From 501b263389da3cb94c68537695bdfe1265df1698 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Fri, 24 Sep 2021 17:16:56 -0400 Subject: [PATCH 01/16] switch to latest core --- ChangeLog.md | 2 +- autorest/codegen/models/lro_operation.py | 2 - autorest/codegen/models/operation.py | 1 - autorest/codegen/models/paging_operation.py | 1 - .../codegen/serializers/builder_serializer.py | 12 +- autorest/codegen/templates/setup.py.jinja2 | 2 +- docs/client/initializing.md | 2 +- .../azure_key_credential/generated/setup.py | 2 +- .../specification/basic/generated/setup.py | 2 +- .../directives/generated/setup.py | 2 +- .../management/generated/setup.py | 2 +- .../AzureBodyDuration/setup.py | 2 +- .../AzureParameterGrouping/setup.py | 2 +- .../AcceptanceTests/AzureReport/setup.py | 2 +- .../AcceptanceTests/AzureSpecials/setup.py | 2 +- .../AcceptanceTests/CustomBaseUri/setup.py | 2 +- .../CustomPollerPager/setup.py | 2 +- .../AcceptanceTests/CustomUrlPaging/setup.py | 2 +- .../Expected/AcceptanceTests/Head/setup.py | 2 +- .../AcceptanceTests/HeadExceptions/setup.py | 2 +- .../HeadWithAzureKeyCredentialPolicy/setup.py | 2 +- .../Expected/AcceptanceTests/Lro/setup.py | 2 +- .../LroWithParameterizedEndpoints/setup.py | 2 +- .../Expected/AcceptanceTests/Paging/setup.py | 2 +- .../StorageManagementClient/setup.py | 2 +- .../SubscriptionIdApiVersion/setup.py | 2 +- .../AzureBodyDurationLowLevel/setup.py | 2 +- .../AzureParameterGroupingLowLevel/setup.py | 2 +- .../AzureReportLowLevel/setup.py | 2 +- .../AzureSpecialsLowLevel/setup.py | 2 +- .../CustomBaseUriLowLevel/setup.py | 2 +- .../CustomUrlPagingLowLevel/setup.py | 2 +- .../HeadExceptionsLowLevel/setup.py | 2 +- .../AcceptanceTests/HeadLowLevel/setup.py | 2 +- .../AcceptanceTests/LroLowLevel/setup.py | 2 +- .../setup.py | 2 +- .../AcceptanceTests/PagingLowLevel/setup.py | 2 +- .../StorageManagementClientLowLevel/setup.py | 2 +- .../SubscriptionIdApiVersionLowLevel/setup.py | 2 +- .../AcceptanceTests/asynctests/test_lro.py | 7 +- .../AcceptanceTests/test_lro.py | 6 +- .../AzureBodyDurationVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../AzureReportVersionTolerant/setup.py | 2 +- .../AzureSpecialsVersionTolerant/setup.py | 2 +- .../CustomBaseUriVersionTolerant/setup.py | 2 +- .../aio/operations/_operations.py | 74 +-- .../operations/_operations.py | 74 +-- .../CustomPollerPagerVersionTolerant/setup.py | 2 +- .../aio/operations/_operations.py | 8 +- .../operations/_operations.py | 8 +- .../CustomUrlPagingVersionTolerant/setup.py | 2 +- .../HeadExceptionsVersionTolerant/setup.py | 2 +- .../HeadVersionTolerant/setup.py | 2 +- .../aio/operations/_operations.py | 586 +++++++++--------- .../operations/_operations.py | 586 +++++++++--------- .../LroVersionTolerant/setup.py | 2 +- .../aio/operations/_operations.py | 20 +- .../operations/_operations.py | 20 +- .../setup.py | 2 +- .../aio/operations/_operations.py | 74 +-- .../operations/_operations.py | 74 +-- .../PagingVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../aio/operations/_operations.py | 18 +- .../operations/_operations.py | 18 +- .../setup.py | 2 +- .../AdditionalProperties/setup.py | 2 +- .../AcceptanceTests/Anything/setup.py | 2 +- .../AcceptanceTests/BodyArray/setup.py | 2 +- .../BodyArrayWithNamespaceFolders/setup.py | 2 +- .../AcceptanceTests/BodyBoolean/setup.py | 2 +- .../AcceptanceTests/BodyByte/setup.py | 2 +- .../BodyByteWithPackageName/setup.py | 2 +- .../AcceptanceTests/BodyComplex/setup.py | 2 +- .../AcceptanceTests/BodyDate/setup.py | 2 +- .../AcceptanceTests/BodyDateTime/setup.py | 2 +- .../BodyDateTimeRfc1123/setup.py | 2 +- .../AcceptanceTests/BodyDictionary/setup.py | 2 +- .../AcceptanceTests/BodyDuration/setup.py | 2 +- .../AcceptanceTests/BodyFile/setup.py | 2 +- .../AcceptanceTests/BodyFormData/setup.py | 2 +- .../AcceptanceTests/BodyInteger/setup.py | 2 +- .../AcceptanceTests/BodyNumber/setup.py | 2 +- .../AcceptanceTests/BodyString/setup.py | 2 +- .../AcceptanceTests/BodyTime/setup.py | 2 +- .../AcceptanceTests/Constants/setup.py | 2 +- .../AcceptanceTests/CustomBaseUri/setup.py | 2 +- .../CustomBaseUriMoreOptions/setup.py | 2 +- .../AcceptanceTests/ExtensibleEnums/setup.py | 2 +- .../Expected/AcceptanceTests/Header/setup.py | 2 +- .../Expected/AcceptanceTests/Http/setup.py | 2 +- .../IncorrectErrorResponse/setup.py | 2 +- .../AcceptanceTests/MediaTypes/setup.py | 2 +- .../AcceptanceTests/ModelFlattening/setup.py | 2 +- .../MultipleInheritance/setup.py | 2 +- .../AcceptanceTests/NoOperations/setup.py | 2 +- .../AcceptanceTests/NonStringEnums/setup.py | 2 +- .../AcceptanceTests/ObjectType/setup.py | 2 +- .../ParameterFlattening/setup.py | 2 +- .../ParameterizedEndpoint/setup.py | 2 +- .../Expected/AcceptanceTests/Report/setup.py | 2 +- .../AcceptanceTests/RequiredOptional/setup.py | 2 +- .../AcceptanceTests/ReservedWords/setup.py | 2 +- .../Expected/AcceptanceTests/Url/setup.py | 2 +- .../UrlMultiCollectionFormat/setup.py | 2 +- .../AcceptanceTests/Validation/setup.py | 2 +- .../Expected/AcceptanceTests/Xml/setup.py | 2 +- .../AcceptanceTests/XmsErrorResponse/setup.py | 2 +- .../AdditionalPropertiesLowLevel/setup.py | 2 +- .../AcceptanceTests/AnythingLowLevel/setup.py | 2 +- .../BodyArrayLowLevel/setup.py | 2 +- .../BodyBooleanLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyByteLowLevel/setup.py | 2 +- .../BodyComplexLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyDateLowLevel/setup.py | 2 +- .../BodyDateTimeLowLevel/setup.py | 2 +- .../BodyDateTimeRfc1123LowLevel/setup.py | 2 +- .../BodyDictionaryLowLevel/setup.py | 2 +- .../BodyDurationLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyFileLowLevel/setup.py | 2 +- .../BodyFormDataLowLevel/setup.py | 2 +- .../BodyIntegerLowLevel/setup.py | 2 +- .../BodyNumberLowLevel/setup.py | 2 +- .../BodyStringLowLevel/setup.py | 2 +- .../AcceptanceTests/BodyTimeLowLevel/setup.py | 2 +- .../ConstantsLowLevel/setup.py | 2 +- .../CustomBaseUriLowLevel/setup.py | 2 +- .../CustomBaseUriMoreOptionsLowLevel/setup.py | 2 +- .../ExtensibleEnumsLowLevel/setup.py | 2 +- .../AcceptanceTests/HeaderLowLevel/setup.py | 2 +- .../AcceptanceTests/HttpLowLevel/setup.py | 2 +- .../IncorrectErrorResponseLowLevel/setup.py | 2 +- .../LLCInitialLowLevel/setup.py | 2 +- .../LLCUpdateOneLowLevel/setup.py | 2 +- .../MediaTypesLowLevel/setup.py | 2 +- .../ModelFlatteningLowLevel/setup.py | 2 +- .../MultipleInheritanceLowLevel/setup.py | 2 +- .../NoOperationsLowLevel/setup.py | 2 +- .../NonStringEnumsLowLevel/setup.py | 2 +- .../ObjectTypeLowLevel/setup.py | 2 +- .../ParameterFlatteningLowLevel/setup.py | 2 +- .../ParameterizedEndpointLowLevel/setup.py | 2 +- .../AcceptanceTests/ReportLowLevel/setup.py | 2 +- .../RequiredOptionalLowLevel/setup.py | 2 +- .../ReservedWordsLowLevel/setup.py | 2 +- .../AcceptanceTests/UrlLowLevel/setup.py | 2 +- .../UrlMultiCollectionFormatLowLevel/setup.py | 2 +- .../ValidationLowLevel/setup.py | 2 +- .../AcceptanceTests/XmlLowLevel/setup.py | 2 +- .../XmsErrorResponseLowLevel/setup.py | 2 +- .../setup.py | 2 +- .../AnythingVersionTolerant/setup.py | 2 +- .../BodyArrayVersionTolerant/setup.py | 2 +- .../BodyBooleanVersionTolerant/setup.py | 2 +- .../BodyByteVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../BodyComplexVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../BodyDateTimeVersionTolerant/setup.py | 2 +- .../BodyDateVersionTolerant/setup.py | 2 +- .../BodyDictionaryVersionTolerant/setup.py | 2 +- .../BodyDurationVersionTolerant/setup.py | 2 +- .../BodyFileVersionTolerant/setup.py | 2 +- .../BodyFormDataVersionTolerant/setup.py | 2 +- .../BodyIntegerVersionTolerant/setup.py | 2 +- .../BodyNumberVersionTolerant/setup.py | 2 +- .../BodyStringVersionTolerant/setup.py | 2 +- .../BodyTimeVersionTolerant/setup.py | 2 +- .../ConstantsVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../CustomBaseUriVersionTolerant/setup.py | 2 +- .../ExtensibleEnumsVersionTolerant/setup.py | 2 +- .../HeaderVersionTolerant/setup.py | 2 +- .../HttpVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../LLCInitialVersionTolerant/setup.py | 2 +- .../LLCUpdateOneVersionTolerant/setup.py | 2 +- .../MediaTypesVersionTolerant/setup.py | 2 +- .../ModelFlatteningVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../NoOperationsVersionTolerant/setup.py | 2 +- .../NonStringEnumsVersionTolerant/setup.py | 2 +- .../ObjectTypeVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../setup.py | 2 +- .../ReportVersionTolerant/setup.py | 2 +- .../RequiredOptionalVersionTolerant/setup.py | 2 +- .../ReservedWordsVersionTolerant/setup.py | 2 +- .../setup.py | 2 +- .../UrlVersionTolerant/setup.py | 2 +- .../ValidationVersionTolerant/setup.py | 2 +- .../XmlVersionTolerant/setup.py | 2 +- .../XmsErrorResponseVersionTolerant/setup.py | 2 +- 194 files changed, 966 insertions(+), 975 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index dcd3dd6bab6..38b7df6c55e 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -6,7 +6,7 @@ | --------------- | ------- |`@autorest/core` | `3.6.2` |`@autorest/modelerfour` | `4.19.1` -|`azure-core` dep of generated code | `1.18.0` +|`azure-core` dep of generated code | `1.19.0` |`msrest` dep of generated code | `0.6.21` |`azure-mgmt-core` dep of generated code (If generating mgmt plane code) | `1.3.0` diff --git a/autorest/codegen/models/lro_operation.py b/autorest/codegen/models/lro_operation.py index c91be8d6b4a..e452ea84c39 100644 --- a/autorest/codegen/models/lro_operation.py +++ b/autorest/codegen/models/lro_operation.py @@ -45,7 +45,6 @@ def __init__( ) self.lro_options = yaml_data.get("extensions", {}).get("x-ms-long-running-operation-options", {}) self.name = "begin_" + self.name - self.use_pipeline_transport = True @property def lro_response(self) -> Optional[SchemaResponse]: @@ -91,7 +90,6 @@ def initial_operation(self) -> Operation: want_tracing=False, ) operation.request_builder = self.request_builder - operation.use_pipeline_transport = True return operation @property diff --git a/autorest/codegen/models/operation.py b/autorest/codegen/models/operation.py index 2983fbb4566..bf20e2bc87b 100644 --- a/autorest/codegen/models/operation.py +++ b/autorest/codegen/models/operation.py @@ -52,7 +52,6 @@ def __init__( self.want_tracing = want_tracing self._request_builder: Optional[RequestBuilder] = None self.deprecated = False - self.use_pipeline_transport = False @property def python_name(self) -> str: diff --git a/autorest/codegen/models/paging_operation.py b/autorest/codegen/models/paging_operation.py index f8ec3106bbf..c616370787a 100644 --- a/autorest/codegen/models/paging_operation.py +++ b/autorest/codegen/models/paging_operation.py @@ -51,7 +51,6 @@ def __init__( self.operation_name: str = yaml_data["extensions"]["x-ms-pageable"].get("operationName") self.next_operation: Optional[Operation] = None self.override_success_response_to_200 = override_success_response_to_200 - self.use_pipeline_transport = True def _get_response(self) -> SchemaResponse: response = self.responses[0] diff --git a/autorest/codegen/serializers/builder_serializer.py b/autorest/codegen/serializers/builder_serializer.py index a967740fdcd..9df8843ced9 100644 --- a/autorest/codegen/serializers/builder_serializer.py +++ b/autorest/codegen/serializers/builder_serializer.py @@ -777,7 +777,7 @@ def _call_request_builder_helper( retval.append(f" template_url={template_url},") convert_to_legacy = "" - if not self.code_model.options["version_tolerant"] or builder.use_pipeline_transport: + if not self.code_model.options["version_tolerant"]: convert_to_legacy = "._to_pipeline_transport_request()" retval.append(f"){convert_to_legacy}") if builder.parameters.path: @@ -819,14 +819,8 @@ def response_headers_and_deserialization( else: is_xml = any(["xml" in ct for ct in response.media_types]) deserialized_value = "" - if is_xml: - deserialized_value = "ET.fromstring(response.text())" - elif builder.use_pipeline_transport: - deserialized_value = "_loads(response.body())" - else: - deserialized_value = "response.json()" - response_body = "response.body()" if builder.use_pipeline_transport else "response.content" - retval.append(f"if {response_body}:") + deserialized_value = "ET.fromstring(response.text())" if is_xml else "response.json()" + retval.append(f"if response.content:") retval.append(f" deserialized = {deserialized_value}") retval.append("else:") retval.append(" deserialized = None") diff --git a/autorest/codegen/templates/setup.py.jinja2 b/autorest/codegen/templates/setup.py.jinja2 index 92f1f01faf3..5b2a2cf2ca2 100644 --- a/autorest/codegen/templates/setup.py.jinja2 +++ b/autorest/codegen/templates/setup.py.jinja2 @@ -16,7 +16,7 @@ VERSION = "{{ code_model.options.get('package_version', '0.0.0') }}" # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"{{ azure_mgmt_core_import }}] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"{{ azure_mgmt_core_import }}] setup( name=NAME, diff --git a/docs/client/initializing.md b/docs/client/initializing.md index fcaca082b0f..80848de29e6 100644 --- a/docs/client/initializing.md +++ b/docs/client/initializing.md @@ -22,7 +22,7 @@ The following are core libraries your generated code depend on, and the minimum | Library | Description | Min Version | | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | -| [`azure-core`][azure_core_library] | The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries. | 1.18.0 | +| [`azure-core`][azure_core_library] | The most important library to have installed. It provides shared exceptions and modules for all the Python SDK client libraries. | 1.19.0 | | [`msrest`][msrest_library] | Library mainly used for serializing and deserializing objects | 0.6.21 | | [`azure-mgmt-core`][azure_mgmt_core_library] | Required if you're generating mgmt plane code (see `--azure-arm` flag in our [flag index][flag_index]. Provides mgmt plane specific shared exceptions and modules. | 1.2.1 | diff --git a/docs/samples/specification/azure_key_credential/generated/setup.py b/docs/samples/specification/azure_key_credential/generated/setup.py index 76b0d91afd0..1047b33fd54 100644 --- a/docs/samples/specification/azure_key_credential/generated/setup.py +++ b/docs/samples/specification/azure_key_credential/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/docs/samples/specification/basic/generated/setup.py b/docs/samples/specification/basic/generated/setup.py index 9a6b31c6dd8..6b6ab2ed886 100644 --- a/docs/samples/specification/basic/generated/setup.py +++ b/docs/samples/specification/basic/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/docs/samples/specification/directives/generated/setup.py b/docs/samples/specification/directives/generated/setup.py index db025f5900f..e356d936f42 100644 --- a/docs/samples/specification/directives/generated/setup.py +++ b/docs/samples/specification/directives/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/docs/samples/specification/management/generated/setup.py b/docs/samples/specification/management/generated/setup.py index e537164ee9b..59b86c38618 100644 --- a/docs/samples/specification/management/generated/setup.py +++ b/docs/samples/specification/management/generated/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py index 3d5ee6f76c0..bb189bac7cb 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py index fa7afaddf9b..e49609d6959 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py index 3a7555b3521..9c52dcb8b28 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureReport/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py index b955fe16ee2..0b89b79f89b 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py index 8c20651b8a4..7b9167844e0 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py index d67d2067cdb..83a2c4999e9 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py index ae139bb7c94..f577d506da0 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py b/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py index 20ec7bd0212..8e456056dd7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Head/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py index 8c540b82021..6b0f8b1dac3 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py index 20ec7bd0212..8e456056dd7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py b/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py index bcb06dfde5a..94850b010c2 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Lro/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py index 887dfd26c19..617f67fe305 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py index 6b19001d19d..954e9367d2e 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/Paging/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py index eaa515fd018..792614cf4e7 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py index f17dd5fd80b..4d51a08c4f6 100644 --- a/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py +++ b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py index 3d5ee6f76c0..bb189bac7cb 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureBodyDurationLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py index fa7afaddf9b..e49609d6959 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py index 3a7555b3521..9c52dcb8b28 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureReportLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py index b955fe16ee2..0b89b79f89b 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/AzureSpecialsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py index 8c20651b8a4..7b9167844e0 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py index ae139bb7c94..f577d506da0 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/CustomUrlPagingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py index 8c540b82021..6b0f8b1dac3 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadExceptionsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py index 20ec7bd0212..8e456056dd7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/HeadLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py index bcb06dfde5a..94850b010c2 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py index 887dfd26c19..617f67fe305 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/LroWithParameterizedEndpointsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py index 6b19001d19d..954e9367d2e 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/PagingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py index eaa515fd018..792614cf4e7 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/StorageManagementClientLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py index f17dd5fd80b..4d51a08c4f6 100644 --- a/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py +++ b/test/azure/low-level/Expected/AcceptanceTests/SubscriptionIdApiVersionLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py b/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py index 14644651bc2..faff145b9be 100644 --- a/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py +++ b/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py @@ -23,7 +23,7 @@ # IN THE SOFTWARE. # # -------------------------------------------------------------------------- - +from azure.core.rest import HttpRequest from async_generator import yield_, async_generator import time @@ -60,11 +60,12 @@ def _polling_cookie(self, response): return {} async def request_status(self, status_link): - request = self._client.get(status_link, headers=self._polling_cookie(self._pipeline_response.http_response)) + + request = HttpRequest("GET", status_link, headers=self._polling_cookie(self._pipeline_response.http_response)) # ARM requires to re-inject 'x-ms-client-request-id' while polling if 'request_id' not in self._operation_config: self._operation_config['request_id'] = self._get_request_id() - return (await self._client._pipeline.run(request, stream=False, **self._operation_config)) + return (await self._client.send_request(request, stream=False, **self._operation_config, _return_pipeline_response=True)) @pytest.fixture @async_generator diff --git a/test/azure/version-tolerant/AcceptanceTests/test_lro.py b/test/azure/version-tolerant/AcceptanceTests/test_lro.py index 22a2f1c19a2..ee256524035 100644 --- a/test/azure/version-tolerant/AcceptanceTests/test_lro.py +++ b/test/azure/version-tolerant/AcceptanceTests/test_lro.py @@ -24,7 +24,7 @@ # # -------------------------------------------------------------------------- import time - +from azure.core.rest import HttpRequest from azure.core.exceptions import DecodeError, HttpResponseError from azure.core.pipeline.policies import ContentDecodePolicy, RetryPolicy, HeadersPolicy, RequestIdPolicy @@ -58,11 +58,11 @@ def _polling_cookie(self, response): return {} def request_status(self, status_link): - request = self._client.get(status_link, headers=self._polling_cookie(self._pipeline_response.http_response)) + request = HttpRequest("GET", status_link, headers=self._polling_cookie(self._pipeline_response.http_response)) # ARM requires to re-inject 'x-ms-client-request-id' while polling if 'request_id' not in self._operation_config: self._operation_config['request_id'] = self._get_request_id() - return self._client._pipeline.run(request, stream=False, **self._operation_config) + return self._client.send_request(request, stream=False, **self._operation_config, _return_pipeline_response=True) @pytest.fixture() def client(cookie_policy, credential): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py index 3d5ee6f76c0..bb189bac7cb 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py index fa7afaddf9b..e49609d6959 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py index 3a7555b3521..9c52dcb8b28 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py index b955fe16ee2..0b89b79f89b 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py index 8c20651b8a4..7b9167844e0 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py index 004a7c23105..3bf6f8d2964 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py @@ -84,14 +84,14 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=self.get_no_item_name_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_no_item_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -158,14 +158,14 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=self.get_null_next_link_name_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -232,14 +232,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -307,14 +307,14 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_first_response_empty_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -395,7 +395,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -405,7 +405,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -479,14 +479,14 @@ def prepare_request(next_link=None): request = build_paging_get_with_query_params_request( required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_next_operation_with_query_params_request( template_url='/paging/multiple/nextOperationWithQueryParams', - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -567,7 +567,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_odata_multiple_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -577,7 +577,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -662,7 +662,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -673,7 +673,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -741,14 +741,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=self.get_multiple_pages_retry_first.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -816,14 +816,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=self.get_multiple_pages_retry_second.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -890,14 +890,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -964,14 +964,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1038,14 +1038,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=self.get_multiple_pages_failure_uri.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1121,7 +1121,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1131,7 +1131,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url='/paging/multiple/fragment/{tenant}/{nextLink}', - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1207,7 +1207,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1217,7 +1217,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url='/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}', - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1267,7 +1267,7 @@ async def _get_multiple_pages_lro_initial( maxresults=maxresults, timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -1277,8 +1277,8 @@ async def _get_multiple_pages_lro_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1334,7 +1334,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1344,7 +1344,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1451,14 +1451,14 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=self.get_paging_model_with_item_name_with_xms_client_name.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py index 6570d015a85..1a6b503ccdc 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py @@ -606,14 +606,14 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=self.get_no_item_name_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_no_item_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -681,14 +681,14 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=self.get_null_next_link_name_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -756,14 +756,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -832,14 +832,14 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_first_response_empty_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -921,7 +921,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -931,7 +931,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1006,14 +1006,14 @@ def prepare_request(next_link=None): request = build_paging_get_with_query_params_request( required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_next_operation_with_query_params_request( template_url='/paging/multiple/nextOperationWithQueryParams', - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1095,7 +1095,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_odata_multiple_pages.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1105,7 +1105,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1191,7 +1191,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1202,7 +1202,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1271,14 +1271,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=self.get_multiple_pages_retry_first.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1347,14 +1347,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=self.get_multiple_pages_retry_second.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1422,14 +1422,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1497,14 +1497,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1572,14 +1572,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=self.get_multiple_pages_failure_uri.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1656,7 +1656,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1666,7 +1666,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url='/paging/multiple/fragment/{tenant}/{nextLink}', - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1743,7 +1743,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1753,7 +1753,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url='/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}', - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1804,7 +1804,7 @@ def _get_multiple_pages_lro_initial( maxresults=maxresults, timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -1814,8 +1814,8 @@ def _get_multiple_pages_lro_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1871,7 +1871,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1881,7 +1881,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1989,14 +1989,14 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=self.get_paging_model_with_item_name_with_xms_client_name.metadata['url'], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py index e722f7d5fb0..a32340d6488 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py index dda7cd0ed9b..e58eea65c5e 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py @@ -90,7 +90,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=self.get_pages_partial_url.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -101,7 +101,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=next_link, - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -173,7 +173,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_operation_request( template_url=self.get_pages_partial_url_operation.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -185,7 +185,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_operation_next_request( next_link=next_link, template_url="/paging/customurl/{nextLink}", - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py index 4decadf94b0..0ef8d4bf4ff 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py @@ -160,7 +160,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=self.get_pages_partial_url.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -171,7 +171,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=next_link, - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -248,7 +248,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_operation_request( template_url=self.get_pages_partial_url_operation.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -260,7 +260,7 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_operation_next_request( next_link=next_link, template_url="/paging/customurl/{nextLink}", - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py index ae139bb7c94..f577d506da0 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py index 8c540b82021..6b0f8b1dac3 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py index 20ec7bd0212..8e456056dd7 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py index a093609b4bc..569d5132ae2 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py @@ -145,7 +145,7 @@ async def _put200_succeeded_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._put200_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -159,8 +159,8 @@ async def _put200_succeeded_initial(self, product: Any = None, **kwargs: Any) -> deserialized = None if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -235,8 +235,8 @@ async def begin_put200_succeeded(self, product: Any = None, **kwargs: Any) -> As def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -277,7 +277,7 @@ async def _patch200_succeeded_ignore_headers_initial(self, product: Any = None, content_type=content_type, json=json, template_url=self._patch200_succeeded_ignore_headers_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -294,8 +294,8 @@ async def _patch200_succeeded_ignore_headers_initial(self, product: Any = None, "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -375,8 +375,8 @@ def get_long_running_output(pipeline_response): "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -417,7 +417,7 @@ async def _put201_succeeded_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._put201_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -429,8 +429,8 @@ async def _put201_succeeded_initial(self, product: Any = None, **kwargs: Any) -> map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -505,8 +505,8 @@ async def begin_put201_succeeded(self, product: Any = None, **kwargs: Any) -> As def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -538,7 +538,7 @@ async def _post202_list_initial(self, **kwargs: Any) -> Optional[List[Any]]: request = build_lros_post202_list_request_initial( template_url=self._post202_list_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -553,8 +553,8 @@ async def _post202_list_initial(self, **kwargs: Any) -> Optional[List[Any]]: deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -617,8 +617,8 @@ async def begin_post202_list(self, **kwargs: Any) -> AsyncLROPoller[List[Any]]: def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -659,7 +659,7 @@ async def _put200_succeeded_no_state_initial(self, product: Any = None, **kwargs content_type=content_type, json=json, template_url=self._put200_succeeded_no_state_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -671,8 +671,8 @@ async def _put200_succeeded_no_state_initial(self, product: Any = None, **kwargs map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -747,8 +747,8 @@ async def begin_put200_succeeded_no_state(self, product: Any = None, **kwargs: A def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -789,7 +789,7 @@ async def _put202_retry200_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._put202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -801,8 +801,8 @@ async def _put202_retry200_initial(self, product: Any = None, **kwargs: Any) -> map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -878,8 +878,8 @@ async def begin_put202_retry200(self, product: Any = None, **kwargs: Any) -> Asy def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -920,7 +920,7 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -933,14 +933,14 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1016,8 +1016,8 @@ async def begin_put201_creating_succeeded200(self, product: Any = None, **kwargs def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1058,7 +1058,7 @@ async def _put200_updating_succeeded204_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._put200_updating_succeeded204_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1070,8 +1070,8 @@ async def _put200_updating_succeeded204_initial(self, product: Any = None, **kwa map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1147,8 +1147,8 @@ async def begin_put200_updating_succeeded204(self, product: Any = None, **kwargs def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1189,7 +1189,7 @@ async def _put201_creating_failed200_initial(self, product: Any = None, **kwargs content_type=content_type, json=json, template_url=self._put201_creating_failed200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1202,14 +1202,14 @@ async def _put201_creating_failed200_initial(self, product: Any = None, **kwargs raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1285,8 +1285,8 @@ async def begin_put201_creating_failed200(self, product: Any = None, **kwargs: A def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1327,7 +1327,7 @@ async def _put200_acceptedcanceled200_initial(self, product: Any = None, **kwarg content_type=content_type, json=json, template_url=self._put200_acceptedcanceled200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1339,8 +1339,8 @@ async def _put200_acceptedcanceled200_initial(self, product: Any = None, **kwarg map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1416,8 +1416,8 @@ async def begin_put200_acceptedcanceled200(self, product: Any = None, **kwargs: def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1458,7 +1458,7 @@ async def _put_no_header_in_retry_initial(self, product: Any = None, **kwargs: A content_type=content_type, json=json, template_url=self._put_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1473,8 +1473,8 @@ async def _put_no_header_in_retry_initial(self, product: Any = None, **kwargs: A response_headers = {} response_headers["location"] = self._deserialize("str", response.headers.get("location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1552,8 +1552,8 @@ def get_long_running_output(pipeline_response): response = pipeline_response.http_response response_headers["location"] = self._deserialize("str", response.headers.get("location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1594,7 +1594,7 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs content_type=content_type, json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1613,8 +1613,8 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1697,8 +1697,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1739,7 +1739,7 @@ async def _put_async_no_retry_succeeded_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._put_async_no_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1757,8 +1757,8 @@ async def _put_async_no_retry_succeeded_initial(self, product: Any = None, **kwa ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1840,8 +1840,8 @@ def get_long_running_output(pipeline_response): ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1882,7 +1882,7 @@ async def _put_async_retry_failed_initial(self, product: Any = None, **kwargs: A content_type=content_type, json=json, template_url=self._put_async_retry_failed_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1901,8 +1901,8 @@ async def _put_async_retry_failed_initial(self, product: Any = None, **kwargs: A response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1985,8 +1985,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2027,7 +2027,7 @@ async def _put_async_no_retrycanceled_initial(self, product: Any = None, **kwarg content_type=content_type, json=json, template_url=self._put_async_no_retrycanceled_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2045,8 +2045,8 @@ async def _put_async_no_retrycanceled_initial(self, product: Any = None, **kwarg ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2128,8 +2128,8 @@ def get_long_running_output(pipeline_response): ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2170,7 +2170,7 @@ async def _put_async_no_header_in_retry_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._put_async_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2187,8 +2187,8 @@ async def _put_async_no_header_in_retry_initial(self, product: Any = None, **kwa "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2269,8 +2269,8 @@ def get_long_running_output(pipeline_response): "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2311,7 +2311,7 @@ async def _put_non_resource_initial(self, sku: Any = None, **kwargs: Any) -> Any content_type=content_type, json=json, template_url=self._put_non_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2323,8 +2323,8 @@ async def _put_non_resource_initial(self, sku: Any = None, **kwargs: Any) -> Any map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2380,8 +2380,8 @@ async def begin_put_non_resource(self, sku: Any = None, **kwargs: Any) -> AsyncL def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2422,7 +2422,7 @@ async def _put_async_non_resource_initial(self, sku: Any = None, **kwargs: Any) content_type=content_type, json=json, template_url=self._put_async_non_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2434,8 +2434,8 @@ async def _put_async_non_resource_initial(self, sku: Any = None, **kwargs: Any) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2491,8 +2491,8 @@ async def begin_put_async_non_resource(self, sku: Any = None, **kwargs: Any) -> def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2533,7 +2533,7 @@ async def _put_sub_resource_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._put_sub_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2545,8 +2545,8 @@ async def _put_sub_resource_initial(self, product: Any = None, **kwargs: Any) -> map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2608,8 +2608,8 @@ async def begin_put_sub_resource(self, product: Any = None, **kwargs: Any) -> As def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2650,7 +2650,7 @@ async def _put_async_sub_resource_initial(self, product: Any = None, **kwargs: A content_type=content_type, json=json, template_url=self._put_async_sub_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2662,8 +2662,8 @@ async def _put_async_sub_resource_initial(self, product: Any = None, **kwargs: A map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2725,8 +2725,8 @@ async def begin_put_async_sub_resource(self, product: Any = None, **kwargs: Any) def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2758,7 +2758,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: request = build_lros_delete_provisioning202_accepted200_succeeded_request_initial( template_url=self._delete_provisioning202_accepted200_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2772,8 +2772,8 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2781,8 +2781,8 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2840,8 +2840,8 @@ async def begin_delete_provisioning202_accepted200_succeeded(self, **kwargs: Any def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2873,7 +2873,7 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any request = build_lros_delete_provisioning202_deleting_failed200_request_initial( template_url=self._delete_provisioning202_deleting_failed200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -2887,8 +2887,8 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2896,8 +2896,8 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2953,8 +2953,8 @@ async def begin_delete_provisioning202_deleting_failed200(self, **kwargs: Any) - def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2986,7 +2986,7 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: An request = build_lros_delete_provisioning202_deletingcanceled200_request_initial( template_url=self._delete_provisioning202_deletingcanceled200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3000,8 +3000,8 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: An response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3009,8 +3009,8 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: An response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3066,8 +3066,8 @@ async def begin_delete_provisioning202_deletingcanceled200(self, **kwargs: Any) def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3099,7 +3099,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = build_lros_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3168,7 +3168,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> Optional[Any]: request = build_lros_delete202_retry200_request_initial( template_url=self._delete202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3183,8 +3183,8 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> Optional[Any]: deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3243,8 +3243,8 @@ async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[Any]: def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3276,7 +3276,7 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> Optional[Any]: request = build_lros_delete202_no_retry204_request_initial( template_url=self._delete202_no_retry204_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3291,8 +3291,8 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> Optional[Any]: deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3351,8 +3351,8 @@ async def begin_delete202_no_retry204(self, **kwargs: Any) -> AsyncLROPoller[Any def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3384,7 +3384,7 @@ async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> None: request = build_lros_delete_no_header_in_retry_request_initial( template_url=self._delete_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3458,7 +3458,7 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> None: request = build_lros_delete_async_no_header_in_retry_request_initial( template_url=self._delete_async_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3532,7 +3532,7 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> None: request = build_lros_delete_async_retry_succeeded_request_initial( template_url=self._delete_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3609,7 +3609,7 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> None: request = build_lros_delete_async_no_retry_succeeded_request_initial( template_url=self._delete_async_no_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3686,7 +3686,7 @@ async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> None: request = build_lros_delete_async_retry_failed_request_initial( template_url=self._delete_async_retry_failed_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3763,7 +3763,7 @@ async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> None: request = build_lros_delete_async_retrycanceled_request_initial( template_url=self._delete_async_retrycanceled_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3840,7 +3840,7 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> Any: request = build_lros_post200_with_payload_request_initial( template_url=self._post200_with_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -3853,14 +3853,14 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> Any: raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 202: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3906,8 +3906,8 @@ async def begin_post200_with_payload(self, **kwargs: Any) -> AsyncLROPoller[Any] def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3948,7 +3948,7 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._post202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4054,7 +4054,7 @@ async def _post202_no_retry204_initial(self, product: Any = None, **kwargs: Any) content_type=content_type, json=json, template_url=self._post202_no_retry204_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4070,8 +4070,8 @@ async def _post202_no_retry204_initial(self, product: Any = None, **kwargs: Any) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4150,8 +4150,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4183,7 +4183,7 @@ async def _post_double_headers_final_location_get_initial(self, **kwargs: Any) - request = build_lros_post_double_headers_final_location_get_request_initial( template_url=self._post_double_headers_final_location_get_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4195,8 +4195,8 @@ async def _post_double_headers_final_location_get_initial(self, **kwargs: Any) - map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4252,8 +4252,8 @@ async def begin_post_double_headers_final_location_get(self, **kwargs: Any) -> A def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4285,7 +4285,7 @@ async def _post_double_headers_final_azure_header_get_initial(self, **kwargs: An request = build_lros_post_double_headers_final_azure_header_get_request_initial( template_url=self._post_double_headers_final_azure_header_get_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4297,8 +4297,8 @@ async def _post_double_headers_final_azure_header_get_initial(self, **kwargs: An map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4354,8 +4354,8 @@ async def begin_post_double_headers_final_azure_header_get(self, **kwargs: Any) def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4389,7 +4389,7 @@ async def _post_double_headers_final_azure_header_get_default_initial(self, **kw request = build_lros_post_double_headers_final_azure_header_get_default_request_initial( template_url=self._post_double_headers_final_azure_header_get_default_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4401,8 +4401,8 @@ async def _post_double_headers_final_azure_header_get_default_initial(self, **kw map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4460,8 +4460,8 @@ async def begin_post_double_headers_final_azure_header_get_default(self, **kwarg def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4502,7 +4502,7 @@ async def _post_async_retry_succeeded_initial(self, product: Any = None, **kwarg content_type=content_type, json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4517,8 +4517,8 @@ async def _post_async_retry_succeeded_initial(self, product: Any = None, **kwarg deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4601,8 +4601,8 @@ async def begin_post_async_retry_succeeded(self, product: Any = None, **kwargs: def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4643,7 +4643,7 @@ async def _post_async_no_retry_succeeded_initial(self, product: Any = None, **kw content_type=content_type, json=json, template_url=self._post_async_no_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4658,8 +4658,8 @@ async def _post_async_no_retry_succeeded_initial(self, product: Any = None, **kw deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4742,8 +4742,8 @@ async def begin_post_async_no_retry_succeeded(self, product: Any = None, **kwarg def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4784,7 +4784,7 @@ async def _post_async_retry_failed_initial(self, product: Any = None, **kwargs: content_type=content_type, json=json, template_url=self._post_async_retry_failed_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -4894,7 +4894,7 @@ async def _post_async_retrycanceled_initial(self, product: Any = None, **kwargs: content_type=content_type, json=json, template_url=self._post_async_retrycanceled_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5023,7 +5023,7 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5036,14 +5036,14 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5119,8 +5119,8 @@ async def begin_put201_creating_succeeded200(self, product: Any = None, **kwargs def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -5161,7 +5161,7 @@ async def _put_async_relative_retry_succeeded_initial(self, product: Any = None, content_type=content_type, json=json, template_url=self._put_async_relative_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5180,8 +5180,8 @@ async def _put_async_relative_retry_succeeded_initial(self, product: Any = None, response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5264,8 +5264,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -5297,7 +5297,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: request = build_lro_retrys_delete_provisioning202_accepted200_succeeded_request_initial( template_url=self._delete_provisioning202_accepted200_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5311,8 +5311,8 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5320,8 +5320,8 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5379,8 +5379,8 @@ async def begin_delete_provisioning202_accepted200_succeeded(self, **kwargs: Any def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -5412,7 +5412,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> None: request = build_lro_retrys_delete202_retry200_request_initial( template_url=self._delete202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5486,7 +5486,7 @@ async def _delete_async_relative_retry_succeeded_initial(self, **kwargs: Any) -> request = build_lro_retrys_delete_async_relative_retry_succeeded_request_initial( template_url=self._delete_async_relative_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5572,7 +5572,7 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._post202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5678,7 +5678,7 @@ async def _post_async_relative_retry_succeeded_initial(self, product: Any = None content_type=content_type, json=json, template_url=self._post_async_relative_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5809,7 +5809,7 @@ async def _put_non_retry400_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._put_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5822,14 +5822,14 @@ async def _put_non_retry400_initial(self, product: Any = None, **kwargs: Any) -> raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5903,8 +5903,8 @@ async def begin_put_non_retry400(self, product: Any = None, **kwargs: Any) -> As def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -5945,7 +5945,7 @@ async def _put_non_retry201_creating400_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._put_non_retry201_creating400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -5958,14 +5958,14 @@ async def _put_non_retry201_creating400_initial(self, product: Any = None, **kwa raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6040,8 +6040,8 @@ async def begin_put_non_retry201_creating400(self, product: Any = None, **kwargs def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6082,7 +6082,7 @@ async def _put_non_retry201_creating400_invalid_json_initial(self, product: Any content_type=content_type, json=json, template_url=self._put_non_retry201_creating400_invalid_json_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6095,14 +6095,14 @@ async def _put_non_retry201_creating400_invalid_json_initial(self, product: Any raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6179,8 +6179,8 @@ async def begin_put_non_retry201_creating400_invalid_json( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6221,7 +6221,7 @@ async def _put_async_relative_retry400_initial(self, product: Any = None, **kwar content_type=content_type, json=json, template_url=self._put_async_relative_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6240,8 +6240,8 @@ async def _put_async_relative_retry400_initial(self, product: Any = None, **kwar response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6323,8 +6323,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6356,7 +6356,7 @@ async def _delete_non_retry400_initial(self, **kwargs: Any) -> None: request = build_lrosads_delete_non_retry400_request_initial( template_url=self._delete_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6429,7 +6429,7 @@ async def _delete202_non_retry400_initial(self, **kwargs: Any) -> None: request = build_lrosads_delete202_non_retry400_request_initial( template_url=self._delete202_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6502,7 +6502,7 @@ async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> None: request = build_lrosads_delete_async_relative_retry400_request_initial( template_url=self._delete_async_relative_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6588,7 +6588,7 @@ async def _post_non_retry400_initial(self, product: Any = None, **kwargs: Any) - content_type=content_type, json=json, template_url=self._post_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6693,7 +6693,7 @@ async def _post202_non_retry400_initial(self, product: Any = None, **kwargs: Any content_type=content_type, json=json, template_url=self._post202_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6798,7 +6798,7 @@ async def _post_async_relative_retry400_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._post_async_relative_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6907,7 +6907,7 @@ async def _put_error201_no_provisioning_state_payload_initial(self, product: Any content_type=content_type, json=json, template_url=self._put_error201_no_provisioning_state_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -6920,14 +6920,14 @@ async def _put_error201_no_provisioning_state_payload_initial(self, product: Any raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7003,8 +7003,8 @@ async def begin_put_error201_no_provisioning_state_payload( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7045,7 +7045,7 @@ async def _put_async_relative_retry_no_status_initial(self, product: Any = None, content_type=content_type, json=json, template_url=self._put_async_relative_retry_no_status_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7064,8 +7064,8 @@ async def _put_async_relative_retry_no_status_initial(self, product: Any = None, response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7148,8 +7148,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7190,7 +7190,7 @@ async def _put_async_relative_retry_no_status_payload_initial(self, product: Any content_type=content_type, json=json, template_url=self._put_async_relative_retry_no_status_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7209,8 +7209,8 @@ async def _put_async_relative_retry_no_status_payload_initial(self, product: Any response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7295,8 +7295,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7328,7 +7328,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = build_lrosads_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7397,7 +7397,7 @@ async def _delete_async_relative_retry_no_status_initial(self, **kwargs: Any) -> request = build_lrosads_delete_async_relative_retry_no_status_request_initial( template_url=self._delete_async_relative_retry_no_status_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7483,7 +7483,7 @@ async def _post202_no_location_initial(self, product: Any = None, **kwargs: Any) content_type=content_type, json=json, template_url=self._post202_no_location_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7589,7 +7589,7 @@ async def _post_async_relative_retry_no_payload_initial(self, product: Any = Non content_type=content_type, json=json, template_url=self._post_async_relative_retry_no_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7701,7 +7701,7 @@ async def _put200_invalid_json_initial(self, product: Any = None, **kwargs: Any) content_type=content_type, json=json, template_url=self._put200_invalid_json_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7715,8 +7715,8 @@ async def _put200_invalid_json_initial(self, product: Any = None, **kwargs: Any) deserialized = None if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7791,8 +7791,8 @@ async def begin_put200_invalid_json(self, product: Any = None, **kwargs: Any) -> def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7833,7 +7833,7 @@ async def _put_async_relative_retry_invalid_header_initial(self, product: Any = content_type=content_type, json=json, template_url=self._put_async_relative_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7852,8 +7852,8 @@ async def _put_async_relative_retry_invalid_header_initial(self, product: Any = response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7938,8 +7938,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7980,7 +7980,7 @@ async def _put_async_relative_retry_invalid_json_polling_initial(self, product: content_type=content_type, json=json, template_url=self._put_async_relative_retry_invalid_json_polling_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -7999,8 +7999,8 @@ async def _put_async_relative_retry_invalid_json_polling_initial(self, product: response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -8085,8 +8085,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -8118,7 +8118,7 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> None: request = build_lrosads_delete202_retry_invalid_header_request_initial( template_url=self._delete202_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8192,7 +8192,7 @@ async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs: An request = build_lrosads_delete_async_relative_retry_invalid_header_request_initial( template_url=self._delete_async_relative_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8269,7 +8269,7 @@ async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwar request = build_lrosads_delete_async_relative_retry_invalid_json_polling_request_initial( template_url=self._delete_async_relative_retry_invalid_json_polling_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8357,7 +8357,7 @@ async def _post202_retry_invalid_header_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._post202_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8463,7 +8463,7 @@ async def _post_async_relative_retry_invalid_header_initial(self, product: Any = content_type=content_type, json=json, template_url=self._post_async_relative_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8575,7 +8575,7 @@ async def _post_async_relative_retry_invalid_json_polling_initial(self, product: content_type=content_type, json=json, template_url=self._post_async_relative_retry_invalid_json_polling_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8706,7 +8706,7 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs content_type=content_type, json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8725,8 +8725,8 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -8810,8 +8810,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -8852,7 +8852,7 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa content_type=content_type, json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -8865,14 +8865,14 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -8949,8 +8949,8 @@ async def begin_put201_creating_succeeded200(self, product: Any = None, **kwargs def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -8991,7 +8991,7 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> content_type=content_type, json=json, template_url=self._post202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -9098,7 +9098,7 @@ async def _post_async_retry_succeeded_initial(self, product: Any = None, **kwarg content_type=content_type, json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py index 93a0b177814..6ecb9568d11 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py @@ -1859,7 +1859,7 @@ def _put200_succeeded_initial( content_type=content_type, json=json, template_url=self._put200_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -1871,8 +1871,8 @@ def _put200_succeeded_initial( deserialized = None if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1952,8 +1952,8 @@ def begin_put200_succeeded( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1999,7 +1999,7 @@ def _patch200_succeeded_ignore_headers_initial( content_type=content_type, json=json, template_url=self._patch200_succeeded_ignore_headers_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2014,8 +2014,8 @@ def _patch200_succeeded_ignore_headers_initial( "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2100,8 +2100,8 @@ def get_long_running_output(pipeline_response): "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2147,7 +2147,7 @@ def _put201_succeeded_initial( content_type=content_type, json=json, template_url=self._put201_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2157,8 +2157,8 @@ def _put201_succeeded_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2238,8 +2238,8 @@ def begin_put201_succeeded( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2274,7 +2274,7 @@ def _post202_list_initial( request = build_lros_post202_list_request_initial( template_url=self._post202_list_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2287,8 +2287,8 @@ def _post202_list_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2354,8 +2354,8 @@ def begin_post202_list( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2401,7 +2401,7 @@ def _put200_succeeded_no_state_initial( content_type=content_type, json=json, template_url=self._put200_succeeded_no_state_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2411,8 +2411,8 @@ def _put200_succeeded_no_state_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2492,8 +2492,8 @@ def begin_put200_succeeded_no_state( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2539,7 +2539,7 @@ def _put202_retry200_initial( content_type=content_type, json=json, template_url=self._put202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2549,8 +2549,8 @@ def _put202_retry200_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2631,8 +2631,8 @@ def begin_put202_retry200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2678,7 +2678,7 @@ def _put201_creating_succeeded200_initial( content_type=content_type, json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2689,14 +2689,14 @@ def _put201_creating_succeeded200_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2777,8 +2777,8 @@ def begin_put201_creating_succeeded200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2824,7 +2824,7 @@ def _put200_updating_succeeded204_initial( content_type=content_type, json=json, template_url=self._put200_updating_succeeded204_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2834,8 +2834,8 @@ def _put200_updating_succeeded204_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -2916,8 +2916,8 @@ def begin_put200_updating_succeeded204( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -2963,7 +2963,7 @@ def _put201_creating_failed200_initial( content_type=content_type, json=json, template_url=self._put201_creating_failed200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -2974,14 +2974,14 @@ def _put201_creating_failed200_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3062,8 +3062,8 @@ def begin_put201_creating_failed200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3109,7 +3109,7 @@ def _put200_acceptedcanceled200_initial( content_type=content_type, json=json, template_url=self._put200_acceptedcanceled200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -3119,8 +3119,8 @@ def _put200_acceptedcanceled200_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3201,8 +3201,8 @@ def begin_put200_acceptedcanceled200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3248,7 +3248,7 @@ def _put_no_header_in_retry_initial( content_type=content_type, json=json, template_url=self._put_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -3261,8 +3261,8 @@ def _put_no_header_in_retry_initial( response_headers = {} response_headers["location"] = self._deserialize("str", response.headers.get("location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3345,8 +3345,8 @@ def get_long_running_output(pipeline_response): response = pipeline_response.http_response response_headers["location"] = self._deserialize("str", response.headers.get("location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3392,7 +3392,7 @@ def _put_async_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -3409,8 +3409,8 @@ def _put_async_retry_succeeded_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3498,8 +3498,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3545,7 +3545,7 @@ def _put_async_no_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._put_async_no_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -3561,8 +3561,8 @@ def _put_async_no_retry_succeeded_initial( ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3649,8 +3649,8 @@ def get_long_running_output(pipeline_response): ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3696,7 +3696,7 @@ def _put_async_retry_failed_initial( content_type=content_type, json=json, template_url=self._put_async_retry_failed_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -3713,8 +3713,8 @@ def _put_async_retry_failed_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3802,8 +3802,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -3849,7 +3849,7 @@ def _put_async_no_retrycanceled_initial( content_type=content_type, json=json, template_url=self._put_async_no_retrycanceled_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -3865,8 +3865,8 @@ def _put_async_no_retrycanceled_initial( ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -3953,8 +3953,8 @@ def get_long_running_output(pipeline_response): ) response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4000,7 +4000,7 @@ def _put_async_no_header_in_retry_initial( content_type=content_type, json=json, template_url=self._put_async_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4015,8 +4015,8 @@ def _put_async_no_header_in_retry_initial( "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4102,8 +4102,8 @@ def get_long_running_output(pipeline_response): "str", response.headers.get("Azure-AsyncOperation") ) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4149,7 +4149,7 @@ def _put_non_resource_initial( content_type=content_type, json=json, template_url=self._put_non_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4159,8 +4159,8 @@ def _put_non_resource_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4221,8 +4221,8 @@ def begin_put_non_resource( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4268,7 +4268,7 @@ def _put_async_non_resource_initial( content_type=content_type, json=json, template_url=self._put_async_non_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4278,8 +4278,8 @@ def _put_async_non_resource_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4340,8 +4340,8 @@ def begin_put_async_non_resource( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4387,7 +4387,7 @@ def _put_sub_resource_initial( content_type=content_type, json=json, template_url=self._put_sub_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4397,8 +4397,8 @@ def _put_sub_resource_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4465,8 +4465,8 @@ def begin_put_sub_resource( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4512,7 +4512,7 @@ def _put_async_sub_resource_initial( content_type=content_type, json=json, template_url=self._put_async_sub_resource_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4522,8 +4522,8 @@ def _put_async_sub_resource_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4590,8 +4590,8 @@ def begin_put_async_sub_resource( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4626,7 +4626,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( request = build_lros_delete_provisioning202_accepted200_succeeded_request_initial( template_url=self._delete_provisioning202_accepted200_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4638,8 +4638,8 @@ def _delete_provisioning202_accepted200_succeeded_initial( response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4647,8 +4647,8 @@ def _delete_provisioning202_accepted200_succeeded_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4707,8 +4707,8 @@ def begin_delete_provisioning202_accepted200_succeeded( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4743,7 +4743,7 @@ def _delete_provisioning202_deleting_failed200_initial( request = build_lros_delete_provisioning202_deleting_failed200_request_initial( template_url=self._delete_provisioning202_deleting_failed200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4755,8 +4755,8 @@ def _delete_provisioning202_deleting_failed200_initial( response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4764,8 +4764,8 @@ def _delete_provisioning202_deleting_failed200_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4824,8 +4824,8 @@ def begin_delete_provisioning202_deleting_failed200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4860,7 +4860,7 @@ def _delete_provisioning202_deletingcanceled200_initial( request = build_lros_delete_provisioning202_deletingcanceled200_request_initial( template_url=self._delete_provisioning202_deletingcanceled200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -4872,8 +4872,8 @@ def _delete_provisioning202_deletingcanceled200_initial( response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4881,8 +4881,8 @@ def _delete_provisioning202_deletingcanceled200_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -4941,8 +4941,8 @@ def begin_delete_provisioning202_deletingcanceled200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -4977,7 +4977,7 @@ def _delete204_succeeded_initial( request = build_lros_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5050,7 +5050,7 @@ def _delete202_retry200_initial( request = build_lros_delete202_retry200_request_initial( template_url=self._delete202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5063,8 +5063,8 @@ def _delete202_retry200_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5126,8 +5126,8 @@ def begin_delete202_retry200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -5162,7 +5162,7 @@ def _delete202_no_retry204_initial( request = build_lros_delete202_no_retry204_request_initial( template_url=self._delete202_no_retry204_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5175,8 +5175,8 @@ def _delete202_no_retry204_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5238,8 +5238,8 @@ def begin_delete202_no_retry204( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -5274,7 +5274,7 @@ def _delete_no_header_in_retry_initial( request = build_lros_delete_no_header_in_retry_request_initial( template_url=self._delete_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5352,7 +5352,7 @@ def _delete_async_no_header_in_retry_initial( request = build_lros_delete_async_no_header_in_retry_request_initial( template_url=self._delete_async_no_header_in_retry_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5430,7 +5430,7 @@ def _delete_async_retry_succeeded_initial( request = build_lros_delete_async_retry_succeeded_request_initial( template_url=self._delete_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5511,7 +5511,7 @@ def _delete_async_no_retry_succeeded_initial( request = build_lros_delete_async_no_retry_succeeded_request_initial( template_url=self._delete_async_no_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5592,7 +5592,7 @@ def _delete_async_retry_failed_initial( request = build_lros_delete_async_retry_failed_request_initial( template_url=self._delete_async_retry_failed_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5673,7 +5673,7 @@ def _delete_async_retrycanceled_initial( request = build_lros_delete_async_retrycanceled_request_initial( template_url=self._delete_async_retrycanceled_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5754,7 +5754,7 @@ def _post200_with_payload_initial( request = build_lros_post200_with_payload_request_initial( template_url=self._post200_with_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5765,14 +5765,14 @@ def _post200_with_payload_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 202: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -5821,8 +5821,8 @@ def begin_post200_with_payload( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -5868,7 +5868,7 @@ def _post202_retry200_initial( content_type=content_type, json=json, template_url=self._post202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5982,7 +5982,7 @@ def _post202_no_retry204_initial( content_type=content_type, json=json, template_url=self._post202_no_retry204_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -5996,8 +5996,8 @@ def _post202_no_retry204_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6081,8 +6081,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6117,7 +6117,7 @@ def _post_double_headers_final_location_get_initial( request = build_lros_post_double_headers_final_location_get_request_initial( template_url=self._post_double_headers_final_location_get_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -6127,8 +6127,8 @@ def _post_double_headers_final_location_get_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6187,8 +6187,8 @@ def begin_post_double_headers_final_location_get( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6223,7 +6223,7 @@ def _post_double_headers_final_azure_header_get_initial( request = build_lros_post_double_headers_final_azure_header_get_request_initial( template_url=self._post_double_headers_final_azure_header_get_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -6233,8 +6233,8 @@ def _post_double_headers_final_azure_header_get_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6293,8 +6293,8 @@ def begin_post_double_headers_final_azure_header_get( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6329,7 +6329,7 @@ def _post_double_headers_final_azure_header_get_default_initial( request = build_lros_post_double_headers_final_azure_header_get_default_request_initial( template_url=self._post_double_headers_final_azure_header_get_default_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -6339,8 +6339,8 @@ def _post_double_headers_final_azure_header_get_default_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6401,8 +6401,8 @@ def begin_post_double_headers_final_azure_header_get_default( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6448,7 +6448,7 @@ def _post_async_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -6461,8 +6461,8 @@ def _post_async_retry_succeeded_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6550,8 +6550,8 @@ def begin_post_async_retry_succeeded( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6597,7 +6597,7 @@ def _post_async_no_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._post_async_no_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -6610,8 +6610,8 @@ def _post_async_no_retry_succeeded_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -6699,8 +6699,8 @@ def begin_post_async_no_retry_succeeded( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -6746,7 +6746,7 @@ def _post_async_retry_failed_initial( content_type=content_type, json=json, template_url=self._post_async_retry_failed_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -6864,7 +6864,7 @@ def _post_async_retrycanceled_initial( content_type=content_type, json=json, template_url=self._post_async_retrycanceled_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7001,7 +7001,7 @@ def _put201_creating_succeeded200_initial( content_type=content_type, json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7012,14 +7012,14 @@ def _put201_creating_succeeded200_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7100,8 +7100,8 @@ def begin_put201_creating_succeeded200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7147,7 +7147,7 @@ def _put_async_relative_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._put_async_relative_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7164,8 +7164,8 @@ def _put_async_relative_retry_succeeded_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7253,8 +7253,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7289,7 +7289,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( request = build_lro_retrys_delete_provisioning202_accepted200_succeeded_request_initial( template_url=self._delete_provisioning202_accepted200_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7301,8 +7301,8 @@ def _delete_provisioning202_accepted200_succeeded_initial( response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7310,8 +7310,8 @@ def _delete_provisioning202_accepted200_succeeded_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7370,8 +7370,8 @@ def begin_delete_provisioning202_accepted200_succeeded( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7406,7 +7406,7 @@ def _delete202_retry200_initial( request = build_lro_retrys_delete202_retry200_request_initial( template_url=self._delete202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7484,7 +7484,7 @@ def _delete_async_relative_retry_succeeded_initial( request = build_lro_retrys_delete_async_relative_retry_succeeded_request_initial( template_url=self._delete_async_relative_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7576,7 +7576,7 @@ def _post202_retry200_initial( content_type=content_type, json=json, template_url=self._post202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7690,7 +7690,7 @@ def _post_async_relative_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._post_async_relative_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7827,7 +7827,7 @@ def _put_non_retry400_initial( content_type=content_type, json=json, template_url=self._put_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7838,14 +7838,14 @@ def _put_non_retry400_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -7924,8 +7924,8 @@ def begin_put_non_retry400( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -7971,7 +7971,7 @@ def _put_non_retry201_creating400_initial( content_type=content_type, json=json, template_url=self._put_non_retry201_creating400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -7982,14 +7982,14 @@ def _put_non_retry201_creating400_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -8069,8 +8069,8 @@ def begin_put_non_retry201_creating400( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -8116,7 +8116,7 @@ def _put_non_retry201_creating400_invalid_json_initial( content_type=content_type, json=json, template_url=self._put_non_retry201_creating400_invalid_json_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8127,14 +8127,14 @@ def _put_non_retry201_creating400_invalid_json_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -8214,8 +8214,8 @@ def begin_put_non_retry201_creating400_invalid_json( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -8261,7 +8261,7 @@ def _put_async_relative_retry400_initial( content_type=content_type, json=json, template_url=self._put_async_relative_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8278,8 +8278,8 @@ def _put_async_relative_retry400_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -8366,8 +8366,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -8402,7 +8402,7 @@ def _delete_non_retry400_initial( request = build_lrosads_delete_non_retry400_request_initial( template_url=self._delete_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8479,7 +8479,7 @@ def _delete202_non_retry400_initial( request = build_lrosads_delete202_non_retry400_request_initial( template_url=self._delete202_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8556,7 +8556,7 @@ def _delete_async_relative_retry400_initial( request = build_lrosads_delete_async_relative_retry400_request_initial( template_url=self._delete_async_relative_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8648,7 +8648,7 @@ def _post_non_retry400_initial( content_type=content_type, json=json, template_url=self._post_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8761,7 +8761,7 @@ def _post202_non_retry400_initial( content_type=content_type, json=json, template_url=self._post202_non_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8874,7 +8874,7 @@ def _post_async_relative_retry400_initial( content_type=content_type, json=json, template_url=self._post_async_relative_retry400_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -8991,7 +8991,7 @@ def _put_error201_no_provisioning_state_payload_initial( content_type=content_type, json=json, template_url=self._put_error201_no_provisioning_state_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9002,14 +9002,14 @@ def _put_error201_no_provisioning_state_payload_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -9088,8 +9088,8 @@ def begin_put_error201_no_provisioning_state_payload( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -9135,7 +9135,7 @@ def _put_async_relative_retry_no_status_initial( content_type=content_type, json=json, template_url=self._put_async_relative_retry_no_status_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9152,8 +9152,8 @@ def _put_async_relative_retry_no_status_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -9241,8 +9241,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -9288,7 +9288,7 @@ def _put_async_relative_retry_no_status_payload_initial( content_type=content_type, json=json, template_url=self._put_async_relative_retry_no_status_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9305,8 +9305,8 @@ def _put_async_relative_retry_no_status_payload_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -9394,8 +9394,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -9430,7 +9430,7 @@ def _delete204_succeeded_initial( request = build_lrosads_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9503,7 +9503,7 @@ def _delete_async_relative_retry_no_status_initial( request = build_lrosads_delete_async_relative_retry_no_status_request_initial( template_url=self._delete_async_relative_retry_no_status_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9595,7 +9595,7 @@ def _post202_no_location_initial( content_type=content_type, json=json, template_url=self._post202_no_location_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9709,7 +9709,7 @@ def _post_async_relative_retry_no_payload_initial( content_type=content_type, json=json, template_url=self._post_async_relative_retry_no_payload_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9827,7 +9827,7 @@ def _put200_invalid_json_initial( content_type=content_type, json=json, template_url=self._put200_invalid_json_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9839,8 +9839,8 @@ def _put200_invalid_json_initial( deserialized = None if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -9920,8 +9920,8 @@ def begin_put200_invalid_json( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -9967,7 +9967,7 @@ def _put_async_relative_retry_invalid_header_initial( content_type=content_type, json=json, template_url=self._put_async_relative_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -9984,8 +9984,8 @@ def _put_async_relative_retry_invalid_header_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -10073,8 +10073,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -10120,7 +10120,7 @@ def _put_async_relative_retry_invalid_json_polling_initial( content_type=content_type, json=json, template_url=self._put_async_relative_retry_invalid_json_polling_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10137,8 +10137,8 @@ def _put_async_relative_retry_invalid_json_polling_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -10226,8 +10226,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -10262,7 +10262,7 @@ def _delete202_retry_invalid_header_initial( request = build_lrosads_delete202_retry_invalid_header_request_initial( template_url=self._delete202_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10340,7 +10340,7 @@ def _delete_async_relative_retry_invalid_header_initial( request = build_lrosads_delete_async_relative_retry_invalid_header_request_initial( template_url=self._delete_async_relative_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10421,7 +10421,7 @@ def _delete_async_relative_retry_invalid_json_polling_initial( request = build_lrosads_delete_async_relative_retry_invalid_json_polling_request_initial( template_url=self._delete_async_relative_retry_invalid_json_polling_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10513,7 +10513,7 @@ def _post202_retry_invalid_header_initial( content_type=content_type, json=json, template_url=self._post202_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10627,7 +10627,7 @@ def _post_async_relative_retry_invalid_header_initial( content_type=content_type, json=json, template_url=self._post_async_relative_retry_invalid_header_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10745,7 +10745,7 @@ def _post_async_relative_retry_invalid_json_polling_initial( content_type=content_type, json=json, template_url=self._post_async_relative_retry_invalid_json_polling_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10882,7 +10882,7 @@ def _put_async_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -10899,8 +10899,8 @@ def _put_async_retry_succeeded_initial( response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -10989,8 +10989,8 @@ def get_long_running_output(pipeline_response): response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -11036,7 +11036,7 @@ def _put201_creating_succeeded200_initial( content_type=content_type, json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -11047,14 +11047,14 @@ def _put201_creating_succeeded200_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if response.status_code == 201: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -11136,8 +11136,8 @@ def begin_put201_creating_succeeded200( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -11183,7 +11183,7 @@ def _post202_retry200_initial( content_type=content_type, json=json, template_url=self._post202_retry200_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -11298,7 +11298,7 @@ def _post_async_retry_succeeded_initial( content_type=content_type, json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py index bcb06dfde5a..94850b010c2 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py index 78302580c95..68de1c3846d 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py @@ -41,7 +41,7 @@ async def _poll_with_parameterized_endpoints_initial(self, account_name: str, ** request = build_poll_with_parameterized_endpoints_request_initial( template_url=self._poll_with_parameterized_endpoints_initial.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -60,8 +60,8 @@ async def _poll_with_parameterized_endpoints_initial(self, account_name: str, ** deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -104,8 +104,8 @@ async def begin_poll_with_parameterized_endpoints(self, account_name: str, **kwa def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -149,7 +149,7 @@ async def _poll_with_constant_parameterized_endpoints_initial( request = build_poll_with_constant_parameterized_endpoints_request_initial( template_url=self._poll_with_constant_parameterized_endpoints_initial.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -168,8 +168,8 @@ async def _poll_with_constant_parameterized_endpoints_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -214,8 +214,8 @@ async def begin_poll_with_constant_parameterized_endpoints( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py index 7d2f27c273c..8b900f70173 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py @@ -95,7 +95,7 @@ def _poll_with_parameterized_endpoints_initial( request = build_poll_with_parameterized_endpoints_request_initial( template_url=self._poll_with_parameterized_endpoints_initial.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -112,8 +112,8 @@ def _poll_with_parameterized_endpoints_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -161,8 +161,8 @@ def begin_poll_with_parameterized_endpoints( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -209,7 +209,7 @@ def _poll_with_constant_parameterized_endpoints_initial( request = build_poll_with_constant_parameterized_endpoints_request_initial( template_url=self._poll_with_constant_parameterized_endpoints_initial.metadata["url"], - )._to_pipeline_transport_request() + ) path_format_arguments = { "accountName": self._serialize.url("account_name", account_name, "str", skip_quote=True), "host": self._serialize.url("self._config.host", self._config.host, "str", skip_quote=True), @@ -226,8 +226,8 @@ def _poll_with_constant_parameterized_endpoints_initial( deserialized = None response_headers = {} if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -275,8 +275,8 @@ def begin_poll_with_constant_parameterized_endpoints( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py index 887dfd26c19..617f67fe305 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py index 7aae0f7991d..5dee76839e8 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py @@ -106,14 +106,14 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=self.get_no_item_name_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_no_item_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -174,14 +174,14 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=self.get_null_next_link_name_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -242,14 +242,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -311,14 +311,14 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_first_response_empty_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -396,7 +396,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -406,7 +406,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -472,14 +472,14 @@ def prepare_request(next_link=None): request = build_paging_get_with_query_params_request( required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_next_operation_with_query_params_request( template_url="/paging/multiple/nextOperationWithQueryParams", - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -557,7 +557,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_odata_multiple_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -567,7 +567,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -649,7 +649,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -660,7 +660,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -722,14 +722,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=self.get_multiple_pages_retry_first.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -791,14 +791,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=self.get_multiple_pages_retry_second.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -859,14 +859,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -927,14 +927,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -995,14 +995,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=self.get_multiple_pages_failure_uri.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1071,7 +1071,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1081,7 +1081,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url="/paging/multiple/fragment/{tenant}/{nextLink}", - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1150,7 +1150,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1160,7 +1160,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url="/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}", - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1205,7 +1205,7 @@ async def _get_multiple_pages_lro_initial( maxresults=maxresults, timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -1217,8 +1217,8 @@ async def _get_multiple_pages_lro_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1271,7 +1271,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1281,7 +1281,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1380,14 +1380,14 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=self.get_paging_model_with_item_name_with_xms_client_name.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py index d400e1f52e7..183d74bba5e 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py @@ -608,14 +608,14 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=self.get_no_item_name_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_no_item_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -679,14 +679,14 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=self.get_null_next_link_name_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -750,14 +750,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -822,14 +822,14 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_first_response_empty_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -907,7 +907,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -917,7 +917,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -988,14 +988,14 @@ def prepare_request(next_link=None): request = build_paging_get_with_query_params_request( required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_next_operation_with_query_params_request( template_url="/paging/multiple/nextOperationWithQueryParams", - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1073,7 +1073,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_odata_multiple_pages.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1083,7 +1083,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1166,7 +1166,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1177,7 +1177,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1242,14 +1242,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=self.get_multiple_pages_retry_first.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1314,14 +1314,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=self.get_multiple_pages_retry_second.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1385,14 +1385,14 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_single_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1456,14 +1456,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1527,14 +1527,14 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=self.get_multiple_pages_failure_uri.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1608,7 +1608,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1618,7 +1618,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url="/paging/multiple/fragment/{tenant}/{nextLink}", - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1692,7 +1692,7 @@ def prepare_request(next_link=None): tenant=tenant, api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1702,7 +1702,7 @@ def prepare_request(next_link=None): next_link=next_link, api_version=api_version, template_url="/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}", - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) return request @@ -1747,7 +1747,7 @@ def _get_multiple_pages_lro_initial( maxresults=maxresults, timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -1757,8 +1757,8 @@ def _get_multiple_pages_lro_initial( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -1811,7 +1811,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1821,7 +1821,7 @@ def prepare_request(next_link=None): maxresults=maxresults, timeout=timeout, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1923,14 +1923,14 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=self.get_paging_model_with_item_name_with_xms_client_name.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py index 6b19001d19d..954e9367d2e 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py index eaa515fd018..792614cf4e7 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py index fb0f148e275..4bac1db6f3a 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py @@ -145,7 +145,7 @@ async def _create_initial( content_type=content_type, json=json, template_url=self._create_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = await self._client.send_request( @@ -159,8 +159,8 @@ async def _create_initial( deserialized = None if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -281,8 +281,8 @@ async def begin_create( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -704,7 +704,7 @@ def prepare_request(next_link=None): request = build_storage_accounts_list_request( subscription_id=self._config.subscription_id, template_url=self.list.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -712,7 +712,7 @@ def prepare_request(next_link=None): request = build_storage_accounts_list_request( subscription_id=self._config.subscription_id, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -817,7 +817,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, template_url=self.list_by_resource_group.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -826,7 +826,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py index 4c70622944a..fff1ff8a5e6 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py @@ -503,7 +503,7 @@ def _create_initial( content_type=content_type, json=json, template_url=self._create_initial.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) @@ -515,8 +515,8 @@ def _create_initial( deserialized = None if response.status_code == 200: - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None @@ -642,8 +642,8 @@ def begin_create( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - if response.body(): - deserialized = _loads(response.body()) + if response.content: + deserialized = response.json() else: deserialized = None if cls: @@ -1085,7 +1085,7 @@ def prepare_request(next_link=None): request = build_storage_accounts_list_request( subscription_id=self._config.subscription_id, template_url=self.list.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1093,7 +1093,7 @@ def prepare_request(next_link=None): request = build_storage_accounts_list_request( subscription_id=self._config.subscription_id, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1203,7 +1203,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, template_url=self.list_by_resource_group.metadata["url"], - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) else: @@ -1212,7 +1212,7 @@ def prepare_request(next_link=None): resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, template_url=next_link, - )._to_pipeline_transport_request() + ) request.url = self._client.format_url(request.url) request.method = "GET" return request diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py index f17dd5fd80b..4d51a08c4f6 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0", "azure-mgmt-core<2.0.0,>=1.2.1"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0", "azure-mgmt-core<2.0.0,>=1.2.1"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py index 4757417ece8..45c73cca0f3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py index 44071ce5178..413e73bf74b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py index e073fa61f08..5a143aa43bf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py index e073fa61f08..5a143aa43bf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py index d430fea87ab..ecb9d3e6344 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyBoolean/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py index 04ccf1c94bd..8fbb0c22dcb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py index e8d7f91e883..d275998e147 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py index a038fa7187b..0eaaf97d9a6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py index 3a47df915d3..976f5b5c839 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py index 412cf35148a..87d4bb498f7 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py index 50915641e17..e164de64391 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py index 5f36e58209b..40d8e3cd72d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py index 3d5ee6f76c0..bb189bac7cb 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py index 73f9585fc1e..62e387b55f4 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py index 55c3196639b..eec61408436 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py index ed19c87c8d6..db8ef7801e9 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py index 864d3d0bb1c..6afe60f3025 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py index 98cd69777cd..b89448ba330 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py index bf066e3c004..f46edb3e3de 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py index 481af51ab36..fd9bc1e6419 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py index 8c20651b8a4..7b9167844e0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py index 496198d7b8e..6fb725e06d6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py index 9240181d77c..97f2e5d3254 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py index c710a6592c7..ce27e643ce0 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Header/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py index 3256fd28213..1173c0aff24 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Http/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py index e9e833faaba..491198bb792 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py index c3e9ac85bb8..0d7b326c9c2 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py index db114a75b36..9b20d9244a3 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py index 81a542c08dd..8d98ed47458 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py index f034dcba2e2..799b953cf37 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NoOperations/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py index 24bcd1b0851..ebedc354da8 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py index 0c40d9f3aeb..a50ad468ad1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py index 8a5982f931a..5c1b1d80cd5 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py index b4ce21d0cf8..835754cea73 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py index 44a078a3664..4f2b215e2d1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Report/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py index 3eca57f6058..454cbce3284 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py index 8bb7fef96df..8fd8a453747 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py index 63ba8c88e26..292a2f1eccc 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Url/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py index e0be32046aa..819dfc5c53b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py index e6c9a9acade..b506d8eadf6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Validation/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py index 78facb0ce06..506c08260da 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py index 6b928abdedc..ede7055d285 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py index 4757417ece8..45c73cca0f3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AdditionalPropertiesLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py index 44071ce5178..413e73bf74b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py index e073fa61f08..5a143aa43bf 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyArrayLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py index d430fea87ab..ecb9d3e6344 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyBooleanLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py index 04ccf1c94bd..8fbb0c22dcb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyByteLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py index a038fa7187b..0eaaf97d9a6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyComplexLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py index 3a47df915d3..976f5b5c839 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py index 412cf35148a..87d4bb498f7 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py index 50915641e17..e164de64391 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDateTimeRfc1123LowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py index 5f36e58209b..40d8e3cd72d 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDictionaryLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py index 3d5ee6f76c0..bb189bac7cb 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py index 73f9585fc1e..62e387b55f4 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFileLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py index 55c3196639b..eec61408436 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py index ed19c87c8d6..db8ef7801e9 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyIntegerLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py index 864d3d0bb1c..6afe60f3025 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyNumberLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py index 98cd69777cd..b89448ba330 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyStringLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py index bf066e3c004..f46edb3e3de 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/BodyTimeLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py index 481af51ab36..fd9bc1e6419 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ConstantsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py index 8c20651b8a4..7b9167844e0 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py index 496198d7b8e..6fb725e06d6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/CustomBaseUriMoreOptionsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py index 9240181d77c..97f2e5d3254 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ExtensibleEnumsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py index c710a6592c7..ce27e643ce0 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HeaderLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py index 3256fd28213..1173c0aff24 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/HttpLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py index e9e833faaba..491198bb792 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/IncorrectErrorResponseLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/setup.py index 2dd60f99dcb..58997d7b93b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/LLCInitialLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/setup.py index 2dd60f99dcb..58997d7b93b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/LLCUpdateOneLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py index c3e9ac85bb8..0d7b326c9c2 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MediaTypesLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py index db114a75b36..9b20d9244a3 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ModelFlatteningLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py index 81a542c08dd..8d98ed47458 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/MultipleInheritanceLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py index f034dcba2e2..799b953cf37 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NoOperationsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py index 24bcd1b0851..ebedc354da8 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/NonStringEnumsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py index 0c40d9f3aeb..a50ad468ad1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ObjectTypeLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py index 8a5982f931a..5c1b1d80cd5 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py index b4ce21d0cf8..835754cea73 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ParameterizedEndpointLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py index 44a078a3664..4f2b215e2d1 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReportLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py index 3eca57f6058..454cbce3284 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/RequiredOptionalLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py index 8bb7fef96df..8fd8a453747 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ReservedWordsLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py index 63ba8c88e26..292a2f1eccc 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py index e0be32046aa..819dfc5c53b 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/UrlMultiCollectionFormatLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py index e6c9a9acade..b506d8eadf6 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/ValidationLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py index 78facb0ce06..506c08260da 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmlLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py index 6b928abdedc..ede7055d285 100644 --- a/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py +++ b/test/vanilla/low-level/Expected/AcceptanceTests/XmsErrorResponseLowLevel/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py index 4757417ece8..45c73cca0f3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py index 44071ce5178..413e73bf74b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py index e073fa61f08..5a143aa43bf 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py index d430fea87ab..ecb9d3e6344 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py index 04ccf1c94bd..8fbb0c22dcb 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py index cf36063f353..d4d7833bbb1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py index a038fa7187b..0eaaf97d9a6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py index 50915641e17..e164de64391 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py index 412cf35148a..87d4bb498f7 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py index 3a47df915d3..976f5b5c839 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py index 5f36e58209b..40d8e3cd72d 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py index 3d5ee6f76c0..bb189bac7cb 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py index 73f9585fc1e..62e387b55f4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py index 55c3196639b..eec61408436 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py index ed19c87c8d6..db8ef7801e9 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py index 864d3d0bb1c..6afe60f3025 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py index 98cd69777cd..b89448ba330 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py index bf066e3c004..f46edb3e3de 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py index 481af51ab36..fd9bc1e6419 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py index 496198d7b8e..6fb725e06d6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py index 8c20651b8a4..7b9167844e0 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py index 9240181d77c..97f2e5d3254 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py index c710a6592c7..ce27e643ce0 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py index 3256fd28213..1173c0aff24 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py index e9e833faaba..491198bb792 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/setup.py index 2dd60f99dcb..58997d7b93b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/setup.py index 2dd60f99dcb..58997d7b93b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py index c3e9ac85bb8..0d7b326c9c2 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py index db114a75b36..9b20d9244a3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py index 81a542c08dd..8d98ed47458 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py index f034dcba2e2..799b953cf37 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoOperationsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py index 24bcd1b0851..ebedc354da8 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py index 0c40d9f3aeb..a50ad468ad1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py index 8a5982f931a..5c1b1d80cd5 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py index b4ce21d0cf8..835754cea73 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py index 44a078a3664..4f2b215e2d1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py index 3eca57f6058..454cbce3284 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py index 8bb7fef96df..8fd8a453747 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py index e0be32046aa..819dfc5c53b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py index 63ba8c88e26..292a2f1eccc 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py index e6c9a9acade..b506d8eadf6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py index 78facb0ce06..506c08260da 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py index 6b928abdedc..ede7055d285 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, From 3a5d8d1dc5a12ebc9adb7acf9efc8248ce77f9e2 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Fri, 24 Sep 2021 17:30:35 -0400 Subject: [PATCH 02/16] pip install branch of azure-core --- test/azure/legacy/requirements.txt | 2 +- test/azure/low-level/requirements.txt | 2 +- test/azure/version-tolerant/requirements.txt | 2 +- test/multiapi/requirements.txt | 2 +- test/vanilla/legacy/requirements.txt | 2 +- test/vanilla/low-level/initial_requirements.txt | 2 +- test/vanilla/low-level/requirements.txt | 2 +- test/vanilla/low-level/update_requirements.txt | 2 +- test/vanilla/version-tolerant/initial_requirements.txt | 2 +- test/vanilla/version-tolerant/requirements.txt | 2 +- test/vanilla/version-tolerant/update_requirements.txt | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/azure/legacy/requirements.txt b/test/azure/legacy/requirements.txt index d429073c2de..ae01ba115ed 100644 --- a/test/azure/legacy/requirements.txt +++ b/test/azure/legacy/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDuration diff --git a/test/azure/low-level/requirements.txt b/test/azure/low-level/requirements.txt index f2077bf44df..d476dc52cce 100644 --- a/test/azure/low-level/requirements.txt +++ b/test/azure/low-level/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationLowLevel diff --git a/test/azure/version-tolerant/requirements.txt b/test/azure/version-tolerant/requirements.txt index 76e82a9a8ad..bdbc2625d82 100644 --- a/test/azure/version-tolerant/requirements.txt +++ b/test/azure/version-tolerant/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationVersionTolerant diff --git a/test/multiapi/requirements.txt b/test/multiapi/requirements.txt index c3641769888..bd81400e179 100644 --- a/test/multiapi/requirements.txt +++ b/test/multiapi/requirements.txt @@ -1,7 +1,7 @@ aiohttp; python_full_version >= '3.5.2' azure-common msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core azure-mgmt-core==1.3.0 pytest pytest-cov diff --git a/test/vanilla/legacy/requirements.txt b/test/vanilla/legacy/requirements.txt index 7d0454da3b9..fbb579d3960 100644 --- a/test/vanilla/legacy/requirements.txt +++ b/test/vanilla/legacy/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core -e ./Expected/AcceptanceTests/AdditionalProperties -e ./Expected/AcceptanceTests/Anything -e ./Expected/AcceptanceTests/BodyArray diff --git a/test/vanilla/low-level/initial_requirements.txt b/test/vanilla/low-level/initial_requirements.txt index 4d3df42e696..a66ab2bba48 100644 --- a/test/vanilla/low-level/initial_requirements.txt +++ b/test/vanilla/low-level/initial_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core -e ./Expected/AcceptanceTests/LLCInitialLowLevel/ \ No newline at end of file diff --git a/test/vanilla/low-level/requirements.txt b/test/vanilla/low-level/requirements.txt index 0e2dc38247a..9b280670da5 100644 --- a/test/vanilla/low-level/requirements.txt +++ b/test/vanilla/low-level/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core -e ./Expected/AcceptanceTests/AdditionalPropertiesLowLevel -e ./Expected/AcceptanceTests/AnythingLowLevel -e ./Expected/AcceptanceTests/BodyArrayLowLevel diff --git a/test/vanilla/low-level/update_requirements.txt b/test/vanilla/low-level/update_requirements.txt index df63195cd9d..cf0a7053fb8 100644 --- a/test/vanilla/low-level/update_requirements.txt +++ b/test/vanilla/low-level/update_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core -e ./Expected/AcceptanceTests/LLCUpdateOneLowLevel \ No newline at end of file diff --git a/test/vanilla/version-tolerant/initial_requirements.txt b/test/vanilla/version-tolerant/initial_requirements.txt index e492fed7546..9c21b1d25ff 100644 --- a/test/vanilla/version-tolerant/initial_requirements.txt +++ b/test/vanilla/version-tolerant/initial_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core -e ./Expected/AcceptanceTests/LLCInitialVersionTolerant/ \ No newline at end of file diff --git a/test/vanilla/version-tolerant/requirements.txt b/test/vanilla/version-tolerant/requirements.txt index 35442a86573..6260cf25a92 100644 --- a/test/vanilla/version-tolerant/requirements.txt +++ b/test/vanilla/version-tolerant/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core -e ./Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant -e ./Expected/AcceptanceTests/AnythingVersionTolerant -e ./Expected/AcceptanceTests/BodyArrayVersionTolerant diff --git a/test/vanilla/version-tolerant/update_requirements.txt b/test/vanilla/version-tolerant/update_requirements.txt index e097f5b81ba..7995440a713 100644 --- a/test/vanilla/version-tolerant/update_requirements.txt +++ b/test/vanilla/version-tolerant/update_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -azure-core==1.18.0 +git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core -e ./Expected/AcceptanceTests/LLCUpdateOneVersionTolerant \ No newline at end of file From 2a2d7ac4a4505f1d5bc7218d6bf8a2204d9a9f75 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Fri, 24 Sep 2021 18:25:52 -0400 Subject: [PATCH 03/16] lint --- autorest/codegen/serializers/builder_serializer.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autorest/codegen/serializers/builder_serializer.py b/autorest/codegen/serializers/builder_serializer.py index 9df8843ced9..6b5d11d8463 100644 --- a/autorest/codegen/serializers/builder_serializer.py +++ b/autorest/codegen/serializers/builder_serializer.py @@ -794,7 +794,6 @@ def call_request_builder(self, builder: BuilderType) -> List[str]: def response_headers_and_deserialization( self, - builder: BuilderType, response: SchemaResponse, ) -> List[str]: retval: List[str] = [ @@ -863,12 +862,12 @@ def handle_response(self, builder: BuilderType) -> List[str]: retval.append(f"if response.status_code == {status_code}:") retval.extend([ f" {line}" - for line in self.response_headers_and_deserialization(builder, response) + for line in self.response_headers_and_deserialization(response) ]) retval.append("") else: retval.extend(self.response_headers_and_deserialization( - builder, builder.responses[0] + builder.responses[0] )) retval.append("") retval.append("if cls:") @@ -1251,7 +1250,7 @@ def get_long_running_output(self, builder: BuilderType) -> List[str]: retval.append(" response = pipeline_response.http_response") retval.extend([ f" {line}" - for line in self.response_headers_and_deserialization(builder, builder.lro_response) + for line in self.response_headers_and_deserialization(builder.lro_response) ]) retval.append(" if cls:") retval.append(" return cls(pipeline_response, {}, {})".format( From 28b9de72e56d74bb6199d0e37057b468f98c08ec Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 27 Sep 2021 14:25:31 -0400 Subject: [PATCH 04/16] switch to pipeline.run from send_request --- .../codegen/templates/operation.py.jinja2 | 2 +- .../operations/_http_success_operations.py | 6 +- .../operations/_http_success_operations.py | 6 +- .../operations/_http_success_operations.py | 6 +- .../operations/_http_success_operations.py | 6 +- .../_polling_paging_example_operations.py | 2 +- .../_polling_paging_example_operations.py | 2 +- .../operations/_http_success_operations.py | 6 +- .../operations/_http_success_operations.py | 6 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../aio/operations/_duration_operations.py | 16 +- .../operations/_duration_operations.py | 8 +- .../_parameter_grouping_operations.py | 20 +- .../_parameter_grouping_operations.py | 10 +- ...est_report_service_for_azure_operations.py | 4 +- ...est_report_service_for_azure_operations.py | 2 +- .../_api_version_default_operations.py | 16 +- .../_api_version_local_operations.py | 16 +- .../aio/operations/_header_operations.py | 12 +- .../aio/operations/_odata_operations.py | 4 +- .../_skip_url_encoding_operations.py | 28 +- ..._subscription_in_credentials_operations.py | 20 +- .../_subscription_in_method_operations.py | 16 +- .../_xms_client_request_id_operations.py | 8 +- .../_api_version_default_operations.py | 8 +- .../_api_version_local_operations.py | 8 +- .../operations/_header_operations.py | 6 +- .../operations/_odata_operations.py | 2 +- .../_skip_url_encoding_operations.py | 14 +- ..._subscription_in_credentials_operations.py | 10 +- .../_subscription_in_method_operations.py | 8 +- .../_xms_client_request_id_operations.py | 4 +- .../aio/operations/_paths_operations.py | 4 +- .../operations/_paths_operations.py | 2 +- .../aio/operations/_paging_operations.py | 2 +- .../operations/_paging_operations.py | 2 +- .../operations/_http_success_operations.py | 12 +- .../operations/_http_success_operations.py | 6 +- .../operations/_head_exception_operations.py | 12 +- .../operations/_head_exception_operations.py | 6 +- .../operations/_http_success_operations.py | 12 +- .../operations/_http_success_operations.py | 6 +- .../_lr_os_custom_header_operations.py | 16 +- .../aio/operations/_lro_retrys_operations.py | 28 +- .../lro/aio/operations/_lros_operations.py | 168 +- .../lro/aio/operations/_lrosads_operations.py | 104 +- .../_lr_os_custom_header_operations.py | 8 +- .../lro/operations/_lro_retrys_operations.py | 14 +- .../Lro/lro/operations/_lros_operations.py | 84 +- .../Lro/lro/operations/_lrosads_operations.py | 52 +- ...with_paramaterized_endpoints_operations.py | 8 +- ...with_paramaterized_endpoints_operations.py | 4 +- .../aio/operations/_paging_operations.py | 4 +- .../paging/operations/_paging_operations.py | 2 +- .../_storage_accounts_operations.py | 28 +- .../aio/operations/_usage_operations.py | 4 +- .../_storage_accounts_operations.py | 14 +- .../storage/operations/_usage_operations.py | 2 +- .../aio/operations/_group_operations.py | 4 +- .../operations/_group_operations.py | 2 +- .../AcceptanceTests/asynctests/test_lro.py | 3 +- .../AcceptanceTests/asynctests/test_paging.py | 6 +- .../low-level/AcceptanceTests/test_lro.py | 5 +- .../low-level/AcceptanceTests/test_paging.py | 8 +- .../low-level/coverage/report-optional.json | 62 +- .../low-level/coverage/report-vanilla.json | 1233 ++--- .../AcceptanceTests/asynctests/test_lro.py | 2 +- .../AcceptanceTests/test_lro.py | 2 +- .../aio/operations/_operations.py | 16 +- .../operations/_operations.py | 8 +- .../aio/operations/_operations.py | 20 +- .../operations/_operations.py | 10 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 120 +- .../operations/_operations.py | 60 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 2 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 12 +- .../operations/_operations.py | 6 +- .../aio/operations/_operations.py | 12 +- .../operations/_operations.py | 6 +- .../aio/operations/_operations.py | 316 +- .../operations/_operations.py | 158 +- .../aio/operations/_operations.py | 8 +- .../operations/_operations.py | 4 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 32 +- .../operations/_operations.py | 16 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- ...stom_base_url_service_client_operations.py | 2 +- ...stom_base_url_service_client_operations.py | 2 +- ...stom_base_url_service_client_operations.py | 2 +- ...stom_base_url_service_client_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 8 +- .../_operation_group_one_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 4 +- .../_operation_group_one_operations.py | 4 +- .../_operation_group_two_operations.py | 2 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../_multiapi_service_client_operations.py | 2 +- .../_operation_group_one_operations.py | 2 +- .../_operation_group_two_operations.py | 4 +- .../asynctests/test_xms_error.py | 2 +- .../legacy/AcceptanceTests/test_xms_error.py | 2 +- .../aio/operations/_pets_operations.py | 24 +- .../operations/_pets_operations.py | 12 +- .../operations/_anything_client_operations.py | 24 +- .../operations/_anything_client_operations.py | 12 +- .../aio/operations/_array_operations.py | 276 +- .../bodyarray/operations/_array_operations.py | 138 +- .../array/aio/operations/_array_operations.py | 276 +- .../array/operations/_array_operations.py | 138 +- .../aio/operations/_array_operations.py | 276 +- .../operations/_array_operations.py | 4257 ----------------- .../operations/_array_operations_py3.py | 138 +- .../setup.py | 2 +- .../aio/operations/_bool_operations.py | 24 +- .../operations/_bool_operations.py | 12 +- .../aio/operations/_byte_operations.py | 20 +- .../bodybyte/operations/_byte_operations.py | 10 +- .../aio/operations/_byte_operations.py | 20 +- .../operations/_byte_operations.py | 10 +- .../aio/operations/_array_operations.py | 20 +- .../aio/operations/_basic_operations.py | 24 +- .../aio/operations/_dictionary_operations.py | 24 +- .../operations/_flattencomplex_operations.py | 4 +- .../aio/operations/_inheritance_operations.py | 8 +- .../_polymorphicrecursive_operations.py | 8 +- .../operations/_polymorphism_operations.py | 36 +- .../aio/operations/_primitive_operations.py | 88 +- .../_readonlyproperty_operations.py | 8 +- .../operations/_array_operations.py | 10 +- .../operations/_basic_operations.py | 12 +- .../operations/_dictionary_operations.py | 12 +- .../operations/_flattencomplex_operations.py | 2 +- .../operations/_inheritance_operations.py | 4 +- .../_polymorphicrecursive_operations.py | 4 +- .../operations/_polymorphism_operations.py | 18 +- .../operations/_primitive_operations.py | 44 +- .../_readonlyproperty_operations.py | 4 +- .../bodycomplexpython3only/__init__.py | 20 - .../_auto_rest_complex_test_service.py | 126 - .../bodycomplexpython3only/_configuration.py | 50 - .../bodycomplexpython3only/_version.py | 9 - .../bodycomplexpython3only/aio/__init__.py | 11 - .../aio/_auto_rest_complex_test_service.py | 109 - .../aio/_configuration.py | 40 - .../aio/operations/__init__.py | 29 - .../aio/operations/_array_operations.py | 252 - .../aio/operations/_basic_operations.py | 284 -- .../aio/operations/_dictionary_operations.py | 290 -- .../operations/_flattencomplex_operations.py | 87 - .../aio/operations/_inheritance_operations.py | 131 - .../aio/operations/_operations.py | 3160 ------------ .../_polymorphicrecursive_operations.py | 181 - .../operations/_polymorphism_operations.py | 479 -- .../aio/operations/_primitive_operations.py | 937 ---- .../_readonlyproperty_operations.py | 130 - .../bodycomplexpython3only/models/__init__.py | 85 - .../_auto_rest_complex_test_service_enums.py | 36 - .../models/_models_py3.py | 1280 ----- .../operations/__init__.py | 29 - .../operations/_array_operations_py3.py | 306 -- .../operations/_basic_operations_py3.py | 350 -- .../operations/_dictionary_operations_py3.py | 353 -- .../_flattencomplex_operations_py3.py | 99 - .../operations/_inheritance_operations_py3.py | 157 - .../operations/_operations_py3.py | 3762 --------------- .../_polymorphicrecursive_operations_py3.py | 207 - .../_polymorphism_operations_py3.py | 577 --- .../operations/_primitive_operations_py3.py | 1180 ----- .../_readonlyproperty_operations_py3.py | 156 - .../bodycomplexpython3only/py.typed | 1 - .../BodyComplexPythonThreeOnly/setup.py | 37 - .../aio/operations/_date_operations.py | 32 +- .../bodydate/operations/_date_operations.py | 16 +- .../aio/operations/_datetime_operations.py | 88 +- .../operations/_datetime_operations.py | 44 +- .../operations/_datetimerfc1123_operations.py | 36 +- .../operations/_datetimerfc1123_operations.py | 18 +- .../aio/operations/_dictionary_operations.py | 260 +- .../operations/_dictionary_operations.py | 130 +- .../aio/operations/_duration_operations.py | 16 +- .../operations/_duration_operations.py | 8 +- .../aio/operations/_files_operations.py | 12 +- .../bodyfile/operations/_files_operations.py | 6 +- .../aio/operations/_formdata_operations.py | 12 +- .../operations/_formdata_operations.py | 6 +- .../aio/operations/_int_operations.py | 56 +- .../bodyinteger/operations/_int_operations.py | 28 +- .../aio/operations/_number_operations.py | 96 +- .../operations/_number_operations.py | 48 +- .../aio/operations/_enum_operations.py | 24 +- .../aio/operations/_string_operations.py | 52 +- .../bodystring/operations/_enum_operations.py | 12 +- .../operations/_string_operations.py | 26 +- .../aio/operations/_time_operations.py | 8 +- .../bodytime/operations/_time_operations.py | 4 +- .../aio/operations/_contants_operations.py | 68 +- .../operations/_contants_operations.py | 34 +- .../aio/operations/_paths_operations.py | 4 +- .../operations/_paths_operations.py | 2 +- .../aio/operations/_paths_operations.py | 4 +- .../operations/_paths_operations.py | 2 +- .../aio/operations/_pet_operations.py | 8 +- .../operations/_pet_operations.py | 4 +- .../aio/operations/_header_operations.py | 116 +- .../header/operations/_header_operations.py | 58 +- .../_http_client_failure_operations.py | 104 +- .../operations/_http_failure_operations.py | 12 +- .../operations/_http_redirects_operations.py | 64 +- .../aio/operations/_http_retry_operations.py | 36 +- .../_http_server_failure_operations.py | 16 +- .../operations/_http_success_operations.py | 76 +- .../_multiple_responses_operations.py | 136 +- .../_http_client_failure_operations.py | 52 +- .../operations/_http_failure_operations.py | 6 +- .../operations/_http_redirects_operations.py | 32 +- .../operations/_http_retry_operations.py | 18 +- .../_http_server_failure_operations.py | 8 +- .../operations/_http_success_operations.py | 38 +- .../_multiple_responses_operations.py | 68 +- ...correct_returned_error_model_operations.py | 4 +- ...correct_returned_error_model_operations.py | 2 +- .../_media_types_client_operations.py | 12 +- .../_media_types_client_operations.py | 6 +- ...urce_flattening_test_service_operations.py | 44 +- ...urce_flattening_test_service_operations.py | 22 +- ...e_inheritance_service_client_operations.py | 40 +- ...e_inheritance_service_client_operations.py | 20 +- .../aio/operations/_float_operations.py | 8 +- .../aio/operations/_int_operations.py | 8 +- .../operations/_float_operations.py | 4 +- .../operations/_int_operations.py | 4 +- .../_object_type_client_operations.py | 8 +- .../_object_type_client_operations.py | 4 +- .../_availability_sets_operations.py | 4 +- .../_availability_sets_operations.py | 2 +- ...parmaterized_endpoint_client_operations.py | 4 +- ...parmaterized_endpoint_client_operations.py | 2 +- .../_auto_rest_report_service_operations.py | 8 +- .../_auto_rest_report_service_operations.py | 4 +- .../aio/operations/_explicit_operations.py | 96 +- .../aio/operations/_implicit_operations.py | 32 +- .../operations/_explicit_operations.py | 48 +- .../operations/_implicit_operations.py | 16 +- .../_import_operations_operations.py | 4 +- .../_import_operations_operations.py | 2 +- .../aio/operations/_path_items_operations.py | 16 +- .../url/aio/operations/_paths_operations.py | 108 +- .../url/aio/operations/_queries_operations.py | 140 +- .../url/operations/_path_items_operations.py | 8 +- .../Url/url/operations/_paths_operations.py | 54 +- .../Url/url/operations/_queries_operations.py | 70 +- .../aio/operations/_queries_operations.py | 12 +- .../operations/_queries_operations.py | 6 +- .../_auto_rest_validation_test_operations.py | 16 +- .../_auto_rest_validation_test_operations.py | 8 +- .../aio/operations/_xml_operations.py | 136 +- .../xmlservice/operations/_xml_operations.py | 68 +- .../aio/operations/_pet_operations.py | 12 +- .../operations/_pet_operations.py | 6 +- .../aio/operations/_operations.py | 24 +- .../operations/_operations.py | 12 +- .../aio/operations/_operations.py | 24 +- .../operations/_operations.py | 12 +- .../aio/operations/_operations.py | 276 +- .../operations/_operations.py | 138 +- .../aio/operations/_operations.py | 24 +- .../operations/_operations.py | 12 +- .../aio/operations/_operations.py | 20 +- .../operations/_operations.py | 10 +- .../aio/operations/_operations.py | 220 +- .../operations/_operations_py3.py | 110 +- .../aio/operations/_operations.py | 220 +- .../operations/_operations.py | 110 +- .../aio/operations/_operations.py | 36 +- .../operations/_operations.py | 18 +- .../aio/operations/_operations.py | 88 +- .../operations/_operations.py | 44 +- .../aio/operations/_operations.py | 32 +- .../operations/_operations.py | 16 +- .../aio/operations/_operations.py | 260 +- .../operations/_operations.py | 130 +- .../aio/operations/_operations.py | 16 +- .../operations/_operations.py | 8 +- .../aio/operations/_operations.py | 12 +- .../operations/_operations.py | 6 +- .../aio/operations/_operations.py | 12 +- .../operations/_operations.py | 6 +- .../aio/operations/_operations.py | 56 +- .../operations/_operations.py | 28 +- .../aio/operations/_operations.py | 96 +- .../operations/_operations.py | 48 +- .../aio/operations/_operations.py | 76 +- .../operations/_operations.py | 38 +- .../aio/operations/_operations.py | 8 +- .../operations/_operations.py | 4 +- .../aio/operations/_operations.py | 68 +- .../operations/_operations.py | 34 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 8 +- .../operations/_operations.py | 4 +- .../aio/operations/_operations.py | 116 +- .../operations/_operations.py | 58 +- .../aio/operations/_operations.py | 444 +- .../operations/_operations.py | 222 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 12 +- .../operations/_operations.py | 6 +- .../aio/operations/_operations.py | 44 +- .../operations/_operations.py | 22 +- .../aio/operations/_operations.py | 40 +- .../operations/_operations.py | 20 +- .../aio/operations/_operations.py | 16 +- .../operations/_operations.py | 8 +- .../aio/operations/_operations.py | 8 +- .../operations/_operations.py | 4 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 4 +- ...parmaterized_endpoint_client_operations.py | 63 - .../operations/_operations.py | 2 +- ...parmaterized_endpoint_client_operations.py | 83 - .../aio/operations/_operations.py | 8 +- .../operations/_operations.py | 4 +- .../aio/operations/_operations.py | 128 +- .../operations/_operations.py | 64 +- .../aio/operations/_operations.py | 4 +- .../operations/_operations.py | 2 +- .../aio/operations/_operations.py | 12 +- .../operations/_operations.py | 6 +- .../aio/operations/_operations.py | 264 +- .../operations/_operations.py | 132 +- .../aio/operations/_operations.py | 16 +- .../operations/_operations.py | 8 +- .../aio/operations/_operations.py | 136 +- .../operations/_operations.py | 68 +- .../aio/operations/_operations.py | 12 +- .../operations/_operations.py | 6 +- 433 files changed, 4440 insertions(+), 27382 deletions(-) delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/__init__.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_array_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_basic_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_dictionary_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_flattencomplex_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_inheritance_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphicrecursive_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphism_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_primitive_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_readonlyproperty_operations.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations_py3.py delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/py.typed delete mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py delete mode 100644 test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_parmaterized_endpoint_client_operations.py delete mode 100644 test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_parmaterized_endpoint_client_operations.py diff --git a/autorest/codegen/templates/operation.py.jinja2 b/autorest/codegen/templates/operation.py.jinja2 index 24a4cd7691f..fc17c136696 100644 --- a/autorest/codegen/templates/operation.py.jinja2 +++ b/autorest/codegen/templates/operation.py.jinja2 @@ -18,6 +18,6 @@ {{ op_tools.serialize(operation_serializer.pop_kwargs_from_signature(operation)) | indent }} {% endif %} {{ op_tools.serialize(operation_serializer.call_request_builder(operation)) | indent }} - pipeline_response = {{ keywords.await }}self._client.send_request(request, {{ stream_request_parameter }}, _return_pipeline_response=True, **kwargs) + pipeline_response = {{ keywords.await }}self._client._pipeline.run(request, {{ stream_request_parameter }}, **kwargs) {{ op_tools.serialize(operation_serializer.handle_response(operation)) | indent }} {{ operation.python_name }}.metadata = {'url': {{ keywords.escape_str(request_builder.url) }}} # type: ignore 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 8c4399f3f7c..3a40543aba0 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 @@ -62,7 +62,7 @@ async def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -99,7 +99,7 @@ async def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -136,7 +136,7 @@ async def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 dd98d42b99c..e221503c784 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 @@ -111,7 +111,7 @@ def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -149,7 +149,7 @@ def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -187,7 +187,7 @@ def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_http_success_operations.py b/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py index 8c4399f3f7c..3a40543aba0 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 @@ -62,7 +62,7 @@ async def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -99,7 +99,7 @@ async def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -136,7 +136,7 @@ async def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 dd98d42b99c..e221503c784 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 @@ -111,7 +111,7 @@ def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -149,7 +149,7 @@ def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -187,7 +187,7 @@ def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_polling_paging_example_operations.py b/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py index 9efaeb9b3e3..f1fb426b508 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 @@ -52,7 +52,7 @@ async def _basic_polling_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: 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 59400fd0424..7c687ff06ed 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 @@ -102,7 +102,7 @@ def _basic_polling_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: 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 8ac30bc0d66..af06320ee8c 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 @@ -63,7 +63,7 @@ async def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -101,7 +101,7 @@ async def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -139,7 +139,7 @@ async def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 ff7635fc592..342fea62067 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 @@ -112,7 +112,7 @@ def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -151,7 +151,7 @@ def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -190,7 +190,7 @@ def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 1663b9586ab..95ad5d380f5 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 @@ -60,7 +60,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -99,7 +99,7 @@ async def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -207,7 +207,7 @@ async def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -381,7 +381,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 99defe45bf5..2ac0ef55073 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 @@ -68,7 +68,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 a418c8b246d..947ee1fdb48 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 @@ -182,7 +182,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -222,7 +222,7 @@ def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -331,7 +331,7 @@ def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -507,7 +507,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 ead1d4c1b7f..5b215aced84 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 @@ -102,7 +102,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py index c4445d0a19b..4d2377cf9bd 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 @@ -56,7 +56,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -106,7 +106,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 7c70bb0f413..3b8d9944f38 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -121,7 +121,7 @@ async def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 f3c51c8fb65..dd40235e6c2 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 @@ -72,7 +72,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 680cfdd1a0e..4a8e6f324fb 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 @@ -128,7 +128,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,7 +179,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 3e236dbe122..409b997bd27 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 @@ -143,7 +143,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -186,7 +186,7 @@ def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 b0fe96fd76e..f72613db478 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 @@ -109,7 +109,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py index 66348d8909c..f2bbe628ddf 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 @@ -121,7 +121,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 d06e8f201b4..f51aab47178 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 f947fc13131..0bae4b00e0e 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 @@ -91,7 +91,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -129,7 +129,7 @@ async def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 7ec87d9b3fc..ac975b43602 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 @@ -184,7 +184,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 2efc1b9ecc6..aef5147eb20 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 @@ -117,7 +117,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 987eedf0ca9..0050530cf2e 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 @@ -155,7 +155,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,7 +194,7 @@ def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_duration_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py index edafc330399..14850272af1 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 @@ -74,9 +74,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -119,9 +117,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -152,9 +148,7 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -189,9 +183,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 23f94b5dc15..dd194ebd59c 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 @@ -162,7 +162,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -210,7 +210,7 @@ def put_positive_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -244,7 +244,7 @@ def get_positive_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -282,7 +282,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_parameter_grouping_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py index 4b179153140..2f7c5cdf91d 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 @@ -99,9 +99,7 @@ async def post_required( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -147,9 +145,7 @@ async def post_optional( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -197,9 +193,7 @@ async def post_reserved_words( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -257,9 +251,7 @@ async def post_multi_param_groups( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -302,9 +294,7 @@ async def post_shared_parameter_group_object( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 14f5d996aff..9b8588052ff 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 @@ -271,7 +271,7 @@ def post_required( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -318,7 +318,7 @@ def post_optional( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -365,7 +365,7 @@ def post_reserved_words( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -422,7 +422,7 @@ def post_multi_param_groups( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -468,7 +468,7 @@ def post_shared_parameter_group_object( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 804276a7e98..6cd31ed7cc7 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 @@ -52,9 +52,7 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Di )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 d56abd6276f..1d58a8b17a8 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 @@ -91,7 +91,7 @@ def get_report( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_default_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py index 8a2eb2f65bf..1bc99ce3d27 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 @@ -74,9 +74,7 @@ async def get_method_global_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -107,9 +105,7 @@ async def get_method_global_not_provided_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -140,9 +136,7 @@ async def get_path_global_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -173,9 +167,7 @@ async def get_swagger_global_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 b3d9cccce7a..2cd5e02bc38 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 @@ -74,9 +74,7 @@ async def get_method_local_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,9 +109,7 @@ async def get_method_local_null(self, api_version: Optional[str] = None, **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -144,9 +140,7 @@ async def get_path_local_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -177,9 +171,7 @@ async def get_swagger_local_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 71d8680beaa..1e56f95e40d 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 @@ -76,9 +76,7 @@ async def custom_named_request_id(self, foo_client_request_id: str, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -125,9 +123,7 @@ async def custom_named_request_id_param_grouping( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -164,9 +160,7 @@ async def custom_named_request_id_head(self, foo_client_request_id: str, **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 2e3d1d923f6..ee64389736a 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 @@ -80,9 +80,7 @@ async def get_with_filter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 0130f038407..103ccd01d50 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 @@ -80,9 +80,7 @@ async def get_method_path_valid(self, unencoded_path_param: str, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -116,9 +114,7 @@ async def get_path_valid(self, unencoded_path_param: str, **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -149,9 +145,7 @@ async def get_swagger_path_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,9 +179,7 @@ async def get_method_query_valid(self, q1: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -221,9 +213,7 @@ async def get_method_query_null(self, q1: Optional[str] = None, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -257,9 +247,7 @@ async def get_path_query_valid(self, q1: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -290,9 +278,7 @@ async def get_swagger_query_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 4fddf7ff649..3e79eb984c5 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 @@ -77,9 +77,7 @@ async def post_method_global_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -112,9 +110,7 @@ async def post_method_global_null(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -147,9 +143,7 @@ async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -182,9 +176,7 @@ async def post_path_global_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -217,9 +209,7 @@ async def post_swagger_global_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 db495817a6e..68afff4807c 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 @@ -79,9 +79,7 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -117,9 +115,7 @@ async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -154,9 +150,7 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -192,9 +186,7 @@ async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 679973f0b25..f21672a41fc 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 @@ -70,9 +70,7 @@ async def get(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -107,9 +105,7 @@ async def param_get(self, x_ms_client_request_id: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 476cf59b6e3..8ace3e23776 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 @@ -182,7 +182,7 @@ def get_method_global_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -216,7 +216,7 @@ def get_method_global_not_provided_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -250,7 +250,7 @@ def get_path_global_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -284,7 +284,7 @@ def get_swagger_global_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 ee93f5ad3cc..a631ff2cbd3 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 @@ -184,7 +184,7 @@ def get_method_local_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -224,7 +224,7 @@ def get_method_local_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -258,7 +258,7 @@ def get_path_local_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -292,7 +292,7 @@ def get_swagger_local_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 685bc111f40..70df9907b51 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 @@ -152,7 +152,7 @@ def custom_named_request_id( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -200,7 +200,7 @@ def custom_named_request_id_param_grouping( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -242,7 +242,7 @@ def custom_named_request_id_head( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 b1a7bbfa5a5..082c8fe5919 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 @@ -125,7 +125,7 @@ def get_with_filter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 667c0dbddd3..5482fe8f1ec 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 @@ -270,7 +270,7 @@ def get_method_path_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -309,7 +309,7 @@ def get_path_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -343,7 +343,7 @@ def get_swagger_path_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -382,7 +382,7 @@ def get_method_query_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -421,7 +421,7 @@ def get_method_query_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -460,7 +460,7 @@ def get_path_query_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -494,7 +494,7 @@ def get_swagger_query_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 5d442b9ff45..a23867ac38a 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 @@ -217,7 +217,7 @@ def post_method_global_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -253,7 +253,7 @@ def post_method_global_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -289,7 +289,7 @@ def post_method_global_not_provided_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -325,7 +325,7 @@ def post_path_global_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -361,7 +361,7 @@ def post_swagger_global_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 c091efb3977..da50272da5c 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 @@ -190,7 +190,7 @@ def post_method_local_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -231,7 +231,7 @@ def post_method_local_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -271,7 +271,7 @@ def post_path_local_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -312,7 +312,7 @@ def post_swagger_local_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 4000139e214..fe9bbdc1f78 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 @@ -116,7 +116,7 @@ def get( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -156,7 +156,7 @@ def param_get( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_paths_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index ebb86ddaca6..8f848eef007 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 @@ -74,9 +74,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 18fad4fa6b2..ad54d239a5d 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 @@ -105,7 +105,7 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py index df7e8575e0e..da8584b47f5 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 @@ -1076,7 +1076,7 @@ async def _get_multiple_pages_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 4b890ed7791..80ad765dbc3 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 @@ -1613,7 +1613,7 @@ def _get_multiple_pages_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 da903dd00ef..92a5c41db0c 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 @@ -64,9 +64,7 @@ async def head200(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -97,9 +95,7 @@ async def head204(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -130,9 +126,7 @@ async def head404(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 f2c60557dc8..ba759d7db6e 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 @@ -114,7 +114,7 @@ def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -148,7 +148,7 @@ def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -182,7 +182,7 @@ def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_head_exception_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py index 71d2b27a5b8..f3e01ea07c9 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 @@ -64,9 +64,7 @@ async def head200(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -97,9 +95,7 @@ async def head204(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -130,9 +126,7 @@ async def head404(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 5a87ad1f27c..b4558d91b23 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 @@ -114,7 +114,7 @@ def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,7 +148,7 @@ def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -182,7 +182,7 @@ def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py index da903dd00ef..92a5c41db0c 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 @@ -64,9 +64,7 @@ async def head200(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -97,9 +95,7 @@ async def head204(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -130,9 +126,7 @@ async def head404(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 f2c60557dc8..ba759d7db6e 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 @@ -114,7 +114,7 @@ def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -148,7 +148,7 @@ def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -182,7 +182,7 @@ def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 be6ce536749..749758e04cb 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 @@ -79,9 +79,7 @@ async def _put_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -192,9 +190,7 @@ async def _put201_creating_succeeded200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -293,9 +289,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -387,9 +381,7 @@ async def _post_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 04b65261397..3cb70f99e85 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 @@ -82,9 +82,7 @@ async def _put201_creating_succeeded200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -184,9 +182,7 @@ async def _put_async_relative_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -285,9 +281,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -377,9 +371,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -452,9 +444,7 @@ async def _delete_async_relative_retry_succeeded_initial(self, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -539,9 +529,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -632,9 +620,7 @@ async def _post_async_relative_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 6f5ae70de8e..99908471dfd 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 @@ -117,9 +117,7 @@ async def _put200_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -216,9 +214,7 @@ async def _patch200_succeeded_ignore_headers_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -323,9 +319,7 @@ async def _put201_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -409,9 +403,7 @@ async def _post202_list_initial(self, **kwargs: Any) -> Optional[List["_models.P )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -508,9 +500,7 @@ async def _put200_succeeded_no_state_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -605,9 +595,7 @@ async def _put202_retry200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -703,9 +691,7 @@ async def _put201_creating_succeeded200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -805,9 +791,7 @@ async def _put200_updating_succeeded204_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -903,9 +887,7 @@ async def _put201_creating_failed200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1005,9 +987,7 @@ async def _put200_acceptedcanceled200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1103,9 +1083,7 @@ async def _put_no_header_in_retry_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1206,9 +1184,7 @@ async def _put_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1318,9 +1294,7 @@ async def _put_async_no_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1428,9 +1402,7 @@ async def _put_async_retry_failed_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1540,9 +1512,7 @@ async def _put_async_no_retrycanceled_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1650,9 +1620,7 @@ async def _put_async_no_header_in_retry_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1756,9 +1724,7 @@ async def _put_non_resource_initial(self, sku: Optional["_models.Sku"] = None, * )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1851,9 +1817,7 @@ async def _put_async_non_resource_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1947,9 +1911,7 @@ async def _put_sub_resource_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2044,9 +2006,7 @@ async def _put_async_sub_resource_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2129,9 +2089,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2221,9 +2179,7 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2309,9 +2265,7 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2399,9 +2353,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -2469,9 +2421,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> Optional["_models. )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2555,9 +2505,7 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> Optional["_mode )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2641,9 +2589,7 @@ async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -2716,9 +2662,7 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -2791,9 +2735,7 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2869,9 +2811,7 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2947,9 +2887,7 @@ async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3025,9 +2963,7 @@ async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3103,9 +3039,7 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> "_models.Sku": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3194,9 +3128,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3287,9 +3219,7 @@ async def _post202_no_retry204_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3381,9 +3311,7 @@ async def _post_double_headers_final_location_get_initial(self, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3461,9 +3389,7 @@ async def _post_double_headers_final_azure_header_get_initial(self, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3545,9 +3471,7 @@ async def _post_double_headers_final_azure_header_get_default_initial(self, **kw )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3640,9 +3564,7 @@ async def _post_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3748,9 +3670,7 @@ async def _post_async_no_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3856,9 +3776,7 @@ async def _post_async_retry_failed_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3953,9 +3871,7 @@ async def _post_async_retrycanceled_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 6a99296f187..04b9280f369 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 @@ -101,9 +101,7 @@ async def _put_non_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -201,9 +199,7 @@ async def _put_non_retry201_creating400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -302,9 +298,7 @@ async def _put_non_retry201_creating400_invalid_json_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -403,9 +397,7 @@ async def _put_async_relative_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -503,9 +495,7 @@ async def _delete_non_retry400_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -577,9 +567,7 @@ async def _delete202_non_retry400_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -651,9 +639,7 @@ async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -738,9 +724,7 @@ async def _post_non_retry400_initial(self, product: Optional["_models.Product"] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -828,9 +812,7 @@ async def _post202_non_retry400_initial(self, product: Optional["_models.Product )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -920,9 +902,7 @@ async def _post_async_relative_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1016,9 +996,7 @@ async def _put_error201_no_provisioning_state_payload_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1116,9 +1094,7 @@ async def _put_async_relative_retry_no_status_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1228,9 +1204,7 @@ async def _put_async_relative_retry_no_status_payload_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1329,9 +1303,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1399,9 +1371,7 @@ async def _delete_async_relative_retry_no_status_initial(self, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1486,9 +1456,7 @@ async def _post202_no_location_initial(self, product: Optional["_models.Product" )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1579,9 +1547,7 @@ async def _post_async_relative_retry_no_payload_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1676,9 +1642,7 @@ async def _put200_invalid_json_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -1775,9 +1739,7 @@ async def _put_async_relative_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1887,9 +1849,7 @@ async def _put_async_relative_retry_invalid_json_polling_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1988,9 +1948,7 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2063,9 +2021,7 @@ async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2141,9 +2097,7 @@ async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwar )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2232,9 +2186,7 @@ async def _post202_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2325,9 +2277,7 @@ async def _post_async_relative_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2422,9 +2372,7 @@ async def _post_async_relative_retry_invalid_json_polling_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 1c18bc64965..22ad96c1862 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 @@ -179,7 +179,7 @@ def _put_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -295,7 +295,7 @@ def _put201_creating_succeeded200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -401,7 +401,7 @@ def _post202_retry200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -499,7 +499,7 @@ def _post_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 ec7dbe84017..23ec431cb99 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 @@ -239,7 +239,7 @@ def _put201_creating_succeeded200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -344,7 +344,7 @@ def _put_async_relative_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -448,7 +448,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -539,7 +539,7 @@ def _delete202_retry200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -618,7 +618,7 @@ def _delete_async_relative_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -711,7 +711,7 @@ def _post202_retry200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -808,7 +808,7 @@ def _post_async_relative_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 7a5dda643dc..b9771316f7a 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 @@ -1023,7 +1023,7 @@ def _put200_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -1125,7 +1125,7 @@ def _patch200_succeeded_ignore_headers_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1235,7 +1235,7 @@ def _put201_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1324,7 +1324,7 @@ def _post202_list_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -1427,7 +1427,7 @@ def _put200_succeeded_no_state_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1527,7 +1527,7 @@ def _put202_retry200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1628,7 +1628,7 @@ def _put201_creating_succeeded200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1733,7 +1733,7 @@ def _put200_updating_succeeded204_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1834,7 +1834,7 @@ def _put201_creating_failed200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1939,7 +1939,7 @@ def _put200_acceptedcanceled200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2040,7 +2040,7 @@ def _put_no_header_in_retry_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2146,7 +2146,7 @@ def _put_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2261,7 +2261,7 @@ def _put_async_no_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2374,7 +2374,7 @@ def _put_async_retry_failed_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2489,7 +2489,7 @@ def _put_async_no_retrycanceled_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2602,7 +2602,7 @@ def _put_async_no_header_in_retry_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2713,7 +2713,7 @@ def _put_non_resource_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2812,7 +2812,7 @@ def _put_async_non_resource_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2912,7 +2912,7 @@ def _put_sub_resource_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3012,7 +3012,7 @@ def _put_async_sub_resource_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3100,7 +3100,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3191,7 +3191,7 @@ def _delete_provisioning202_deleting_failed200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3282,7 +3282,7 @@ def _delete_provisioning202_deletingcanceled200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3373,7 +3373,7 @@ def _delete204_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -3447,7 +3447,7 @@ def _delete202_retry200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3536,7 +3536,7 @@ def _delete202_no_retry204_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3625,7 +3625,7 @@ def _delete_no_header_in_retry_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -3704,7 +3704,7 @@ def _delete_async_no_header_in_retry_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -3783,7 +3783,7 @@ def _delete_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3865,7 +3865,7 @@ def _delete_async_no_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3947,7 +3947,7 @@ def _delete_async_retry_failed_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4029,7 +4029,7 @@ def _delete_async_retrycanceled_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4111,7 +4111,7 @@ def _post200_with_payload_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4208,7 +4208,7 @@ def _post202_retry200_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4305,7 +4305,7 @@ def _post202_no_retry204_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4402,7 +4402,7 @@ def _post_double_headers_final_location_get_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4485,7 +4485,7 @@ def _post_double_headers_final_azure_header_get_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4568,7 +4568,7 @@ def _post_double_headers_final_azure_header_get_default_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4664,7 +4664,7 @@ def _post_async_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4775,7 +4775,7 @@ def _post_async_no_retry_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4886,7 +4886,7 @@ def _post_async_retry_failed_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4987,7 +4987,7 @@ def _post_async_retrycanceled_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 a1c3f520a68..030ec0ac1a8 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 @@ -675,7 +675,7 @@ def _put_non_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -778,7 +778,7 @@ def _put_non_retry201_creating400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -882,7 +882,7 @@ def _put_non_retry201_creating400_invalid_json_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -986,7 +986,7 @@ def _put_async_relative_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1089,7 +1089,7 @@ def _delete_non_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1167,7 +1167,7 @@ def _delete202_non_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1245,7 +1245,7 @@ def _delete_async_relative_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1338,7 +1338,7 @@ def _post_non_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1434,7 +1434,7 @@ def _post202_non_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1530,7 +1530,7 @@ def _post_async_relative_retry400_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1630,7 +1630,7 @@ def _put_error201_no_provisioning_state_payload_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1733,7 +1733,7 @@ def _put_async_relative_retry_no_status_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1848,7 +1848,7 @@ def _put_async_relative_retry_no_status_payload_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1952,7 +1952,7 @@ def _delete204_succeeded_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -2026,7 +2026,7 @@ def _delete_async_relative_retry_no_status_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2119,7 +2119,7 @@ def _post202_no_location_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2216,7 +2216,7 @@ def _post_async_relative_retry_no_payload_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2317,7 +2317,7 @@ def _put200_invalid_json_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -2419,7 +2419,7 @@ def _put_async_relative_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2534,7 +2534,7 @@ def _put_async_relative_retry_invalid_json_polling_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2638,7 +2638,7 @@ def _delete202_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2717,7 +2717,7 @@ def _delete_async_relative_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2799,7 +2799,7 @@ def _delete_async_relative_retry_invalid_json_polling_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2892,7 +2892,7 @@ def _post202_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2989,7 +2989,7 @@ def _post_async_relative_retry_invalid_header_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3090,7 +3090,7 @@ def _post_async_relative_retry_invalid_json_polling_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 56b3933507c..9e9c28bebc7 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 @@ -48,9 +48,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -151,9 +149,7 @@ async def _poll_with_constant_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: 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 9bdf2121d40..21f74132c14 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 @@ -103,7 +103,7 @@ def _poll_with_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -212,7 +212,7 @@ def _poll_with_constant_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: 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 f23e02e7624..b2434caca57 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 @@ -1019,9 +1019,7 @@ async def _get_multiple_pages_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 d4a671c1e64..16d1daecde4 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 @@ -1560,7 +1560,7 @@ def _get_multiple_pages_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: 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 c2123fb95a2..c1dafa91f85 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 @@ -96,9 +96,7 @@ async def check_name_availability( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -139,9 +137,7 @@ async def _create_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -261,9 +257,7 @@ async def delete(self, resource_group_name: str, account_name: str, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -306,9 +300,7 @@ async def get_properties( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -372,9 +364,7 @@ async def update( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -417,9 +407,7 @@ async def list_keys( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -597,9 +585,7 @@ async def regenerate_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 9e74cb4bfc7..041002142d4 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 @@ -70,9 +70,7 @@ async def list(self, **kwargs: Any) -> "_models.UsageListResult": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 17e9b61df59..478510c4c5b 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 @@ -419,7 +419,7 @@ def check_name_availability( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -461,7 +461,7 @@ def _create_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -588,7 +588,7 @@ def delete( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -635,7 +635,7 @@ def get_properties( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -700,7 +700,7 @@ def update( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -747,7 +747,7 @@ def list_keys( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -932,7 +932,7 @@ def regenerate_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 c73d4cd1b18..612e86e2377 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 @@ -112,7 +112,7 @@ def list( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_group_operations.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py index 510c5ec548f..51c6b24829a 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 @@ -73,9 +73,7 @@ async def get_sample_resource_group(self, resource_group_name: str, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 0ee8bd42a0b..02dd726cce0 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 @@ -119,7 +119,7 @@ def get_sample_resource_group( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py index 5389bc8c21c..33f51923ea8 100644 --- a/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py +++ b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py @@ -109,9 +109,8 @@ def _callback(pipeline_response): def get_poller(get_long_running_output, client): async def _callback(request, **kwargs): - pipeline_response = await client.send_request( + pipeline_response = await client._client._pipeline.run( request._to_pipeline_transport_request(), - _return_pipeline_response=True ) pipeline_response.http_response.raise_for_status() polling = kwargs.pop("polling", True) diff --git a/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py b/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py index 995519a1bb4..4907327b054 100644 --- a/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py +++ b/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py @@ -65,9 +65,8 @@ def get_next_fixture(client): async def _callback(prepare_request, next_link=None): request = prepare_request(next_link) - pipeline_response = await client.send_request( + pipeline_response = await client._client._pipeline.run( request, - _return_pipeline_response=True ) pipeline_response.http_response.raise_for_status() @@ -289,9 +288,8 @@ async def test_get_multiple_pages_lro(client, get_next_fixture, extract_data_fix from azure.mgmt.core.polling.arm_polling import ARMPolling from azure.core.polling import LROPoller # initial LRO call - pipeline_response = await client.send_request( + pipeline_response = await client._client._pipeline.run( paging.build_get_multiple_pages_lro_request(), - _return_pipeline_response=True ) pipeline_response.http_response.raise_for_status() prepare_request = functools.partial( diff --git a/test/azure/low-level/AcceptanceTests/test_lro.py b/test/azure/low-level/AcceptanceTests/test_lro.py index 16bab1ddfea..cc8a3b5cc17 100644 --- a/test/azure/low-level/AcceptanceTests/test_lro.py +++ b/test/azure/low-level/AcceptanceTests/test_lro.py @@ -112,9 +112,8 @@ def _callback(pipeline_response): def get_poller(get_long_running_output, client): def _callback(request, **kwargs): - pipeline_response = client.send_request( - request._to_pipeline_transport_request(), - _return_pipeline_response=True + pipeline_response = client._client._pipeline.run( + request._to_pipeline_transport_request(),= ) pipeline_response.http_response.raise_for_status() polling = kwargs.pop("polling", True) diff --git a/test/azure/low-level/AcceptanceTests/test_paging.py b/test/azure/low-level/AcceptanceTests/test_paging.py index b179a4626c8..4473948cf9c 100644 --- a/test/azure/low-level/AcceptanceTests/test_paging.py +++ b/test/azure/low-level/AcceptanceTests/test_paging.py @@ -57,9 +57,8 @@ def get_next_fixture(client): def _callback(prepare_request, next_link=None): request = prepare_request(next_link) - pipeline_response = client.send_request( - request, - _return_pipeline_response=True + pipeline_response = client._client.pipeline.run( + request,= ) pipeline_response.http_response.raise_for_status() @@ -244,9 +243,8 @@ def test_get_multiple_pages_lro(client, get_next_fixture, extract_data_fixture): from azure.mgmt.core.polling.arm_polling import ARMPolling from azure.core.polling import LROPoller # initial LRO call - pipeline_response = client.send_request( + pipeline_response = client._client._pipeline.run( paging.build_get_multiple_pages_lro_request(), - _return_pipeline_response=True ) pipeline_response.http_response.raise_for_status() prepare_request = functools.partial( diff --git a/test/azure/low-level/coverage/report-optional.json b/test/azure/low-level/coverage/report-optional.json index 8d46c893031..a94659e10df 100644 --- a/test/azure/low-level/coverage/report-optional.json +++ b/test/azure/low-level/coverage/report-optional.json @@ -1,48 +1,48 @@ { - "StreamUploadFile": 120, + "StreamUploadFile": 10, "UpdatePetWithForm": 0, - "getDecimalInvalid": 24, - "getDecimalBig": 24, - "getDecimalSmall": 24, - "getDecimalBigPositiveDecimal": 24, - "getDecimalBigNegativeDecimal": 24, - "putDecimalBig": 24, - "putDecimalSmall": 24, - "putDecimalBigPositiveDecimal": 24, - "putDecimalBigNegativeDecimal": 19, + "getDecimalInvalid": 2, + "getDecimalBig": 2, + "getDecimalSmall": 2, + "getDecimalBigPositiveDecimal": 2, + "getDecimalBigNegativeDecimal": 2, + "putDecimalBig": 2, + "putDecimalSmall": 2, + "putDecimalBigPositiveDecimal": 2, + "putDecimalBigNegativeDecimal": 2, "putDateTimeMaxUtc7MS": 0, - "getDateTimeMaxUtc7MSUppercase": 25, - "putDateTimeMaxLocalPositiveOffset": 25, + "getDateTimeMaxUtc7MSUppercase": 2, + "putDateTimeMaxLocalPositiveOffset": 2, "putDateTimeMaxLocalNegativeOffset": 0, "putDateTimeMinLocalPositiveOffset": 0, - "putDateTimeMinLocalNegativeOffset": 25, + "putDateTimeMinLocalNegativeOffset": 2, "HeaderParameterProtectedKey": 1, - "CustomHeaderInRequest": 19, - "FormdataStreamUploadFile": 86, + "CustomHeaderInRequest": 2, + "FormdataStreamUploadFile": 8, "HttpSuccess200Options": 0, "HttpRedirect307Options": 0, "HttpRetry502Options": 0, "HttpClientFailure400Options": 0, "HttpClientFailure403Options": 0, "HttpClientFailure412Options": 0, - "ResponsesScenarioNoModelEmptyBody": 24, - "sendErrorWithParamNameModels": 72, - "MultiapiPutTestOneApiVersionOne": 17, - "MultiapiPutTestOneApiVersionTwo": 17, - "MultiapiGetTestTwoApiVersionOne": 17, - "MultiapiGetTestTwoApiVersionTwo": 17, - "MultiapiGetTestTwoApiVersionThree": 17, - "MultiapiPutTestThreeApiVersionTwo": 17, - "MultiapiPostTestFourApiVersionTwo": 17, - "MultiapiPostTestFourApiVersionThreeJSON": 17, + "ResponsesScenarioNoModelEmptyBody": 2, + "sendErrorWithParamNameModels": 4, + "MultiapiPutTestOneApiVersionOne": 0, + "MultiapiPutTestOneApiVersionTwo": 0, + "MultiapiGetTestTwoApiVersionOne": 0, + "MultiapiGetTestTwoApiVersionTwo": 0, + "MultiapiGetTestTwoApiVersionThree": 0, + "MultiapiPutTestThreeApiVersionTwo": 0, + "MultiapiPostTestFourApiVersionTwo": 0, + "MultiapiPostTestFourApiVersionThreeJSON": 0, "MultiapiPostTestFourApiVersionThreePDF": 0, - "MultiapiPutTestFiveApiVersionThree": 17, - "MultiapiLRO": 13, - "MultiapiPaging": 17, - "MultiapiLROAndPaging": 16, + "MultiapiPutTestFiveApiVersionThree": 0, + "MultiapiLRO": 0, + "MultiapiPaging": 0, + "MultiapiLROAndPaging": 0, "MultiapiDifferentCallsApiVersionOne": 0, "MultiapiDifferentCallsApiVersionTwo": 0, "MultiapiDifferentCallsApiVersionThree": 0, - "MultiapiCustomBaseUrlApiVersionOne": 7, - "MultiapiCustomBaseUrlApiVersionTwo": 7 + "MultiapiCustomBaseUrlApiVersionOne": 0, + "MultiapiCustomBaseUrlApiVersionTwo": 0 } \ No newline at end of file diff --git a/test/azure/low-level/coverage/report-vanilla.json b/test/azure/low-level/coverage/report-vanilla.json index ed1bdb01f0a..a7cf651439c 100644 --- a/test/azure/low-level/coverage/report-vanilla.json +++ b/test/azure/low-level/coverage/report-vanilla.json @@ -1,618 +1,619 @@ { - "GetStringAsAnything": 21, - "PutStringAsAnything": 21, - "GetObjectAsAnything": 21, - "PutObjectAsAnything": 21, - "GetArrayAsAnything": 21, - "PutArrayAsAnything": 21, - "verifyIncorrectErrorParsing": 19, - "LLCRequiredToOptional": 0, - "MediaTypesAnalyzeBodyNoAcceptHeader": 0, - "verifyHost": 0, - "ImplicitOptionalBinaryBody": 19, - "ExplicitOptionalBinaryBody": 29, - "ExplicitRequiredBinaryBody": 21, - "OptionalImplicitBody": 24, - "GeneralOptional": 264, - "OptionalImplicitHeader": 24, - "OptionalImplicitQuery": 24, - "OptionalGlobalQuery": 24, - "getStringNull": 24, - "putStringNull": 24, - "getStringEmpty": 24, - "putStringEmpty": 24, - "getStringNotProvided": 24, - "getStringWithLeadingAndTrailingWhitespace": 24, - "putStringWithLeadingAndTrailingWhitespace": 24, - "getStringBase64UrlEncoded": 24, - "putStringBase64UrlEncoded": 24, - "getStringBase64Encoded": 24, - "getStringNullBase64UrlEncoding": 24, - "getStringMultiByteCharacters": 24, - "putStringMultiByteCharacters": 24, - "getEnumNotExpandable": 24, - "putEnumNotExpandable": 48, - "getEnumReferenced": 24, - "putEnumReferenced": 53, - "getEnumReferencedConstant": 24, - "putEnumReferencedConstant": 19, - "XmlGetBytes": 23, - "XmlPutBytes": 23, - "XmlGetUrl": 23, - "XmlPutUrl": 23, - "additionalPropertiesTrue": 26, - "additionalPropertiesSubclass": 26, - "additionalPropertiesTypeObject": 26, - "additionalPropertiesTypeString": 26, - "additionalPropertiesInProperties": 26, - "additionalPropertiesInPropertiesWithAPTypeString": 26, - "getArrayNull": 25, - "getArrayEmpty": 25, - "putArrayEmpty": 25, - "getArrayInvalid": 25, - "getArrayBooleanValid": 25, - "putArrayBooleanValid": 25, - "getArrayBooleanWithNull": 25, - "getArrayBooleanWithString": 25, - "getArrayIntegerValid": 25, - "putArrayIntegerValid": 25, - "getArrayIntegerWithNull": 25, - "getArrayIntegerWithString": 25, - "getArrayLongValid": 25, - "putArrayLongValid": 25, - "getArrayLongWithNull": 25, - "getArrayLongWithString": 25, - "getArrayFloatValid": 25, - "putArrayFloatValid": 25, - "getArrayFloatWithNull": 25, - "getArrayFloatWithString": 25, - "getArrayDoubleValid": 25, - "putArrayDoubleValid": 25, - "getArrayDoubleWithNull": 25, - "getArrayDoubleWithString": 25, - "getArrayStringValid": 25, - "putArrayStringValid": 25, - "getArrayEnumValid": 25, - "putArrayEnumValid": 25, - "getArrayStringEnumValid": 25, - "putArrayStringEnumValid": 25, - "getArrayStringWithNull": 25, - "getArrayStringWithNumber": 50, - "getArrayDateValid": 25, - "putArrayDateValid": 25, - "getArrayDateWithNull": 25, - "getArrayDateWithInvalidChars": 25, - "getArrayDateTimeValid": 25, - "putArrayDateTimeValid": 25, - "getArrayDateTimeWithNull": 25, - "getArrayDateTimeWithInvalidChars": 25, - "getArrayDateTimeRfc1123Valid": 25, - "putArrayDateTimeRfc1123Valid": 25, - "getArrayDurationValid": 25, - "putArrayDurationValid": 25, - "getArrayUuidValid": 25, - "getArrayUuidWithInvalidChars": 25, - "putArrayUuidValid": 25, - "getArrayByteValid": 25, - "putArrayByteValid": 25, - "getArrayByteWithNull": 25, - "getArrayArrayNull": 25, - "getArrayArrayEmpty": 25, - "getArrayArrayItemNull": 25, - "getArrayArrayItemEmpty": 25, - "getArrayArrayValid": 25, - "putArrayArrayValid": 25, - "getArrayComplexNull": 25, - "getArrayComplexEmpty": 25, - "getArrayComplexItemNull": 25, - "getArrayComplexItemEmpty": 25, - "getArrayComplexValid": 25, - "putArrayComplexValid": 25, - "getArrayDictionaryNull": 25, - "getArrayDictionaryEmpty": 25, - "getArrayDictionaryItemNull": 25, - "getArrayDictionaryItemEmpty": 25, - "getArrayDictionaryValid": 25, - "putArrayDictionaryValid": 25, - "getBoolTrue": 25, - "putBoolTrue": 25, - "getBoolFalse": 25, - "putBoolFalse": 25, - "getBoolInvalid": 25, - "getBoolNull": 25, - "getByteNull": 25, - "getByteEmpty": 25, - "getByteNonAscii": 25, - "putByteNonAscii": 25, - "getByteInvalid": 25, - "getDateNull": 25, - "getDateInvalid": 25, - "getDateOverflow": 25, - "getDateUnderflow": 25, - "getDateMax": 25, - "putDateMax": 25, - "getDateMin": 25, - "putDateMin": 25, - "getDateTimeNull": 25, - "getDateTimeInvalid": 25, - "getDateTimeOverflow": 25, - "getDateTimeUnderflow": 25, - "putDateTimeMaxUtc": 25, - "getDateTimeMaxUtcLowercase": 25, - "getDateTimeMaxUtcUppercase": 25, - "getDateTimeMaxLocalPositiveOffsetLowercase": 25, - "getDateTimeMaxLocalPositiveOffsetUppercase": 25, - "getDateTimeMaxLocalNegativeOffsetLowercase": 25, - "getDateTimeMaxLocalNegativeOffsetUppercase": 25, - "getDateTimeMinUtc": 25, - "putDateTimeMinUtc": 25, - "getDateTimeMinLocalPositiveOffset": 25, - "getDateTimeMinLocalNegativeOffset": 25, - "getDateTimeRfc1123Null": 25, - "getDateTimeRfc1123Invalid": 25, - "getDateTimeRfc1123Overflow": 25, - "getDateTimeRfc1123Underflow": 25, - "getDateTimeRfc1123MinUtc": 25, - "putDateTimeRfc1123Max": 25, - "putDateTimeRfc1123Min": 25, - "getDateTimeRfc1123MaxUtcLowercase": 25, - "getDateTimeRfc1123MaxUtcUppercase": 25, - "getIntegerNull": 24, - "getIntegerInvalid": 24, - "getIntegerOverflow": 24, - "getIntegerUnderflow": 24, - "getLongOverflow": 24, - "getLongUnderflow": 24, - "putIntegerMax": 24, - "putLongMax": 24, - "putIntegerMin": 24, - "putLongMin": 24, - "getNumberNull": 24, - "getFloatInvalid": 24, - "getDoubleInvalid": 24, - "getFloatBigScientificNotation": 24, - "putFloatBigScientificNotation": 24, - "getDoubleBigScientificNotation": 24, - "putDoubleBigScientificNotation": 24, - "getDoubleBigPositiveDecimal": 24, - "putDoubleBigPositiveDecimal": 24, - "getDoubleBigNegativeDecimal": 29, - "putDoubleBigNegativeDecimal": 19, - "getFloatSmallScientificNotation": 24, - "putFloatSmallScientificNotation": 24, - "getDoubleSmallScientificNotation": 24, - "putDoubleSmallScientificNotation": 24, - "putComplexBasicValid": 50, - "getComplexBasicValid": 25, - "getComplexBasicEmpty": 25, - "getComplexBasicNotProvided": 25, - "getComplexBasicNull": 25, - "getComplexBasicInvalid": 25, - "putComplexPrimitiveInteger": 25, - "putComplexPrimitiveLong": 25, - "putComplexPrimitiveFloat": 25, - "putComplexPrimitiveDouble": 25, - "putComplexPrimitiveBool": 25, - "putComplexPrimitiveString": 25, - "putComplexPrimitiveDate": 25, - "putComplexPrimitiveDateTime": 25, - "putComplexPrimitiveDateTimeRfc1123": 25, - "putComplexPrimitiveDuration": 25, - "putComplexPrimitiveByte": 25, - "getComplexPrimitiveInteger": 25, - "getComplexPrimitiveLong": 25, - "getComplexPrimitiveFloat": 25, - "getComplexPrimitiveDouble": 25, - "getComplexPrimitiveBool": 25, - "getComplexPrimitiveString": 25, - "getComplexPrimitiveDate": 25, - "getComplexPrimitiveDateTime": 25, - "getComplexPrimitiveDateTimeRfc1123": 25, - "getComplexPrimitiveDuration": 25, - "getComplexPrimitiveByte": 25, - "putComplexArrayValid": 25, - "putComplexArrayEmpty": 25, - "getComplexArrayValid": 25, - "getComplexArrayEmpty": 25, - "getComplexArrayNotProvided": 25, - "putComplexDictionaryValid": 25, - "putComplexDictionaryEmpty": 25, - "getComplexDictionaryValid": 25, - "getComplexDictionaryEmpty": 25, - "getComplexDictionaryNull": 25, - "getComplexDictionaryNotProvided": 25, - "putComplexInheritanceValid": 68, - "getComplexInheritanceValid": 97, - "putComplexPolymorphismValid": 25, - "getComplexPolymorphismValid": 25, - "putComplexPolymorphismComplicated": 25, - "getComplexPolymorphismComplicated": 25, - "putComplexPolymorphismNoDiscriminator": 25, - "putComplexPolymorphicRecursiveValid": 25, - "getComplexPolymorphicRecursiveValid": 25, - "putComplexReadOnlyPropertyValid": 25, - "getComplexReadOnlyPropertyValid": 25, - "UrlPathsBoolFalse": 24, - "UrlPathsBoolTrue": 24, - "UrlPathsIntPositive": 24, - "UrlPathsIntNegative": 24, - "UrlPathsLongPositive": 24, - "UrlPathsLongNegative": 24, - "UrlPathsFloatPositive": 24, - "UrlPathsFloatNegative": 24, - "UrlPathsDoublePositive": 24, - "UrlPathsDoubleNegative": 24, - "UrlPathsStringUrlEncoded": 24, - "UrlPathsStringUrlNonEncoded": 24, - "UrlPathsStringEmpty": 24, - "UrlPathsStringUnicode": 24, - "UrlPathsEnumValid": 24, - "UrlPathsByteMultiByte": 24, - "UrlPathsByteEmpty": 24, - "UrlPathsDateValid": 24, - "UrlPathsDateTimeValid": 24, - "UrlQueriesBoolFalse": 24, - "UrlQueriesBoolTrue": 24, - "UrlQueriesBoolNull": 24, - "UrlQueriesIntPositive": 24, - "UrlQueriesIntNegative": 24, - "UrlQueriesIntNull": 24, - "UrlQueriesLongPositive": 24, - "UrlQueriesLongNegative": 24, - "UrlQueriesLongNull": 24, - "UrlQueriesFloatPositive": 24, - "UrlQueriesFloatNegative": 24, - "UrlQueriesFloatNull": 24, - "UrlQueriesDoublePositive": 24, - "UrlQueriesDoubleNegative": 24, - "UrlQueriesDoubleNull": 24, - "UrlQueriesStringUrlEncoded": 24, - "UrlQueriesStringEmpty": 24, - "UrlQueriesStringNull": 24, - "UrlQueriesStringUnicode": 24, - "UrlQueriesEnumValid": 24, - "UrlQueriesEnumNull": 24, - "UrlQueriesByteMultiByte": 24, - "UrlQueriesByteEmpty": 24, - "UrlQueriesByteNull": 24, - "UrlQueriesDateValid": 24, - "UrlQueriesDateNull": 24, - "UrlQueriesDateTimeValid": 24, - "UrlQueriesDateTimeNull": 24, - "UrlQueriesArrayCsvNull": 24, - "UrlQueriesArrayCsvEmpty": 24, - "UrlQueriesArrayCsvValid": 24, - "UrlQueriesArrayMultiNull": 24, - "UrlQueriesArrayMultiEmpty": 24, - "UrlQueriesArrayMultiValid": 24, - "UrlQueriesArraySsvValid": 19, - "UrlQueriesArrayPipesValid": 19, - "UrlQueriesArrayTsvValid": 13, - "UrlQueriesArrayNoCollectionFormatValid": 24, - "UrlPathItemGetAll": 24, - "UrlPathItemGetGlobalNull": 24, - "UrlPathItemGetGlobalAndLocalNull": 24, - "UrlPathItemGetPathItemAndLocalNull": 24, - "putDictionaryEmpty": 25, - "getDictionaryNull": 25, - "getDictionaryEmpty": 25, - "getDictionaryInvalid": 25, - "getDictionaryNullValue": 25, - "getDictionaryNullkey": 25, - "getDictionaryKeyEmptyString": 25, - "getDictionaryBooleanValid": 25, - "getDictionaryBooleanWithNull": 25, - "getDictionaryBooleanWithString": 25, - "getDictionaryIntegerValid": 25, - "getDictionaryIntegerWithNull": 25, - "getDictionaryIntegerWithString": 25, - "getDictionaryLongValid": 25, - "getDictionaryLongWithNull": 25, - "getDictionaryLongWithString": 25, - "getDictionaryFloatValid": 25, - "getDictionaryFloatWithNull": 25, - "getDictionaryFloatWithString": 25, - "getDictionaryDoubleValid": 25, - "getDictionaryDoubleWithNull": 25, - "getDictionaryDoubleWithString": 25, - "getDictionaryStringValid": 25, - "getDictionaryStringWithNull": 25, - "getDictionaryStringWithNumber": 25, - "getDictionaryDateValid": 25, - "getDictionaryDateWithNull": 25, - "getDictionaryDateWithInvalidChars": 25, - "getDictionaryDateTimeValid": 25, - "getDictionaryDateTimeWithNull": 25, - "getDictionaryDateTimeWithInvalidChars": 25, - "getDictionaryDateTimeRfc1123Valid": 25, - "getDictionaryDurationValid": 25, - "getDictionaryByteValid": 25, - "getDictionaryByteWithNull": 25, - "putDictionaryBooleanValid": 25, - "putDictionaryIntegerValid": 25, - "putDictionaryLongValid": 25, - "putDictionaryFloatValid": 25, - "putDictionaryDoubleValid": 25, - "putDictionaryStringValid": 25, - "putDictionaryDateValid": 25, - "putDictionaryDateTimeValid": 25, - "putDictionaryDateTimeRfc1123Valid": 25, - "putDictionaryDurationValid": 25, - "putDictionaryByteValid": 25, - "getDictionaryComplexNull": 25, - "getDictionaryComplexEmpty": 25, - "getDictionaryComplexItemNull": 25, - "getDictionaryComplexItemEmpty": 25, - "getDictionaryComplexValid": 25, - "putDictionaryComplexValid": 25, - "getDictionaryArrayNull": 25, - "getDictionaryArrayEmpty": 25, - "getDictionaryArrayItemNull": 30, - "getDictionaryArrayItemEmpty": 20, - "getDictionaryArrayValid": 25, - "putDictionaryArrayValid": 25, - "getDictionaryDictionaryNull": 25, - "getDictionaryDictionaryEmpty": 25, - "getDictionaryDictionaryItemNull": 25, - "getDictionaryDictionaryItemEmpty": 25, - "getDictionaryDictionaryValid": 25, - "putDictionaryDictionaryValid": 25, - "putDurationPositive": 43, - "getDurationNull": 43, - "getDurationInvalid": 43, - "getDurationPositive": 43, - "HeaderParameterExistingKey": 24, - "HeaderResponseExistingKey": 24, - "HeaderResponseProtectedKey": 24, - "HeaderParameterIntegerPositive": 24, - "HeaderParameterIntegerNegative": 24, - "HeaderParameterLongPositive": 24, - "HeaderParameterLongNegative": 24, - "HeaderParameterFloatPositive": 24, - "HeaderParameterFloatNegative": 24, - "HeaderParameterDoublePositive": 24, - "HeaderParameterDoubleNegative": 24, - "HeaderParameterBoolTrue": 24, - "HeaderParameterBoolFalse": 24, - "HeaderParameterStringValid": 24, - "HeaderParameterStringNull": 24, - "HeaderParameterStringEmpty": 24, - "HeaderParameterDateValid": 24, - "HeaderParameterDateMin": 24, - "HeaderParameterDateTimeValid": 24, - "HeaderParameterDateTimeMin": 24, - "HeaderParameterDateTimeRfc1123Valid": 24, - "HeaderParameterDateTimeRfc1123Min": 24, - "HeaderParameterBytesValid": 24, - "HeaderParameterDurationValid": 24, - "HeaderResponseIntegerPositive": 24, - "HeaderResponseIntegerNegative": 24, - "HeaderResponseLongPositive": 24, - "HeaderResponseLongNegative": 24, - "HeaderResponseFloatPositive": 24, - "HeaderResponseFloatNegative": 24, - "HeaderResponseDoublePositive": 24, - "HeaderResponseDoubleNegative": 24, - "HeaderResponseBoolTrue": 24, - "HeaderResponseBoolFalse": 24, - "HeaderResponseStringValid": 24, - "HeaderResponseStringNull": 24, - "HeaderResponseStringEmpty": 24, - "HeaderParameterEnumValid": 48, - "HeaderParameterEnumNull": 24, - "HeaderResponseEnumValid": 24, - "HeaderResponseEnumNull": 24, - "HeaderResponseDateValid": 24, - "HeaderResponseDateMin": 24, - "HeaderResponseDateTimeValid": 24, - "HeaderResponseDateTimeMin": 24, - "HeaderResponseDateTimeRfc1123Valid": 24, - "HeaderResponseDateTimeRfc1123Min": 24, - "HeaderResponseBytesValid": 24, - "HeaderResponseDurationValid": 24, - "ConstantsInPath": 24, - "ConstantsInBody": 24, - "CustomBaseUri": 35, - "CustomBaseUriMoreOptions": 20, - "getModelFlattenArray": 19, - "putModelFlattenArray": 19, - "getModelFlattenDictionary": 19, - "putModelFlattenDictionary": 19, - "getModelFlattenResourceCollection": 19, - "putModelFlattenResourceCollection": 19, - "putModelFlattenCustomBase": 19, - "postModelFlattenCustomParameter": 19, - "putModelFlattenCustomGroupedParameter": 19, - "getArrayBase64Url": 30, - "getDictionaryBase64Url": 25, - "UrlPathsStringBase64Url": 24, - "UrlPathsArrayCSVInPath": 24, - "getUnixTime": 24, - "getInvalidUnixTime": 24, - "getNullUnixTime": 24, - "putUnixTime": 24, - "UrlPathsIntUnixTime": 24, - "expectedEnum": 25, - "unexpectedEnum": 25, - "allowedValueEnum": 25, - "roundTripEnum": 25, - "expectedNoErrors": 36, - "expectedPetSadError": 72, - "expectedPetHungryError": 18, - "intError": 18, - "stringError": 18, - "animalNotFoundError": 18, - "linkNotFoundError": 18, - "getDateTimeMinLocalNoOffset": 25, - "getComplexPolymorphismDotSyntax": 25, - "getComposedWithDiscriminator": 25, - "getComposedWithoutDiscriminator": 25, - "FileStreamNonempty": 68, - "FileStreamVeryLarge": 25, - "FileStreamEmpty": 44, - "HttpSuccess200Head": 60, - "HttpSuccess200Get": 24, - "HttpSuccess200Put": 24, - "HttpSuccess200Post": 24, - "HttpSuccess200Patch": 24, - "HttpSuccess200Delete": 24, - "HttpSuccess201Put": 24, - "HttpSuccess201Post": 24, - "HttpSuccess202Put": 24, - "HttpSuccess202Post": 24, - "HttpSuccess202Patch": 24, - "HttpSuccess202Delete": 24, - "HttpSuccess204Head": 60, - "HttpSuccess404Head": 60, - "HttpSuccess204Put": 24, - "HttpSuccess204Post": 24, - "HttpSuccess204Patch": 24, - "HttpSuccess204Delete": 24, - "HttpRedirect300Head": 24, - "HttpRedirect300Get": 24, - "HttpRedirect301Put": 24, - "HttpRedirect301Get": 24, - "HttpRedirect302Head": 24, - "HttpRedirect302Get": 24, - "HttpRedirect302Patch": 24, - "HttpRedirect303Post": 24, - "HttpRedirect307Head": 24, - "HttpRedirect307Get": 24, - "HttpRedirect307Put": 24, - "HttpRedirect307Post": 24, - "HttpRedirect307Patch": 24, - "HttpRedirect307Delete": 24, - "HttpRetry408Head": 24, - "HttpRetry500Put": 24, - "HttpRetry500Patch": 24, - "HttpRetry502Get": 24, - "HttpRetry503Post": 24, - "HttpRetry503Delete": 24, - "HttpRetry504Put": 24, - "HttpRetry504Patch": 24, - "HttpClientFailure400Head": 24, - "HttpClientFailure400Get": 24, - "HttpClientFailure400Put": 24, - "HttpClientFailure400Post": 24, - "HttpClientFailure400Patch": 24, - "HttpClientFailure400Delete": 24, - "HttpClientFailure401Head": 24, - "HttpClientFailure402Get": 24, - "HttpClientFailure403Get": 24, - "HttpClientFailure404Put": 24, - "HttpClientFailure405Patch": 24, - "HttpClientFailure406Post": 24, - "HttpClientFailure407Delete": 24, - "HttpClientFailure409Put": 24, - "HttpClientFailure410Head": 24, - "HttpClientFailure411Get": 24, - "HttpClientFailure412Get": 24, - "HttpClientFailure413Put": 24, - "HttpClientFailure414Patch": 24, - "HttpClientFailure415Post": 24, - "HttpClientFailure416Get": 24, - "HttpClientFailure417Delete": 24, - "HttpClientFailure429Head": 96, - "HttpServerFailure501Head": 24, - "HttpServerFailure501Get": 24, - "HttpServerFailure505Post": 24, - "HttpServerFailure505Delete": 24, - "ResponsesScenarioA200MatchingModel": 24, - "ResponsesScenarioA204MatchingNoModel": 24, - "ResponsesScenarioA201DefaultNoModel": 24, - "ResponsesScenarioA202DefaultNoModel": 24, - "ResponsesScenarioA400DefaultModel": 24, - "ResponsesScenarioB200MatchingModel": 24, - "ResponsesScenarioB201MatchingModel": 24, - "ResponsesScenarioB400DefaultModel": 24, - "ResponsesScenarioC200MatchingModel": 24, - "ResponsesScenarioC201MatchingModel": 24, - "ResponsesScenarioC404MatchingModel": 24, - "ResponsesScenarioC400DefaultModel": 24, - "ResponsesScenarioD202MatchingNoModel": 24, - "ResponsesScenarioD204MatchingNoModel": 24, - "ResponsesScenarioD400DefaultModel": 24, - "ResponsesScenarioE202MatchingInvalid": 24, - "ResponsesScenarioE204MatchingNoModel": 24, - "ResponsesScenarioE400DefaultNoModel": 24, - "ResponsesScenarioE400DefaultInvalid": 24, - "ResponsesScenarioF200DefaultModel": 48, - "ResponsesScenarioF200DefaultNone": 48, - "ResponsesScenarioF400DefaultModel": 19, - "ResponsesScenarioF400DefaultNone": 19, - "ResponsesScenarioG200DefaultInvalid": 29, - "ResponsesScenarioG200DefaultNoModel": 19, - "ResponsesScenarioG400DefaultInvalid": 24, - "ResponsesScenarioG400DefaultNoModel": 24, - "ResponsesScenarioH200MatchingNone": 24, - "ResponsesScenarioH200MatchingModel": 24, - "ResponsesScenarioH200MatchingInvalid": 24, - "ResponsesScenarioH400NonMatchingNone": 24, - "ResponsesScenarioH400NonMatchingModel": 24, - "ResponsesScenarioH400NonMatchingInvalid": 24, - "ResponsesScenarioH202NonMatchingModel": 24, - "ResponsesScenarioEmptyErrorBody": 24, - "ResponsesScenarioNoModelErrorBody": 24, - "MediaTypeJson": 24, - "MediaTypePdf": 24, - "MediaTypeWithEncoding": 24, - "StorageListContainersXML": 23, - "StorageGetServicePropertiesXML": 23, - "StoragePutServicePropertiesXML": 23, - "StorageGetContainerACLXML": 23, - "StorageListBlobsXML": 23, - "StoragePutContainerACLXML": 23, - "GetSimpleXML": 24, - "PutSimpleXML": 24, - "GetWrappedXMLList": 24, - "PutWrappedXMLList": 24, - "GetEmptyXMLList": 24, - "PutEmptyXMLList": 24, - "GetEmptyWrappedXMLList": 24, - "PutEmptyWrappedXMLList": 24, - "GetXMLListAtRoot": 24, - "PutXMLListAtRoot": 24, - "GetXMLListAtRootSingle": 24, - "PutXMLListAtRootSingle": 24, - "GetEmptyXMLListAtRoot": 29, - "PutEmptyXMLListAtRoot": 24, - "GetXMLEmptyNode": 24, - "PutXMLEmptyNode": 24, - "GetRootWithRefAndNoMetaXML": 24, - "PutRootWithRefAndNoMetaXML": 24, - "GetRootWithRefAndMetaXML": 23, - "PutRootWithRefAndMetaXML": 23, - "jsonInputInXMLSwagger": 24, - "jsonOutputInXMLSwagger": 24, - "GetWithXMsText": 23, - "ObjectTypeResponse": 24, - "ObjectTypePut": 24, - "ObjectTypeErrorResponse": 24, - "NonStringEnumsPostInt": 24, - "NonStringEnumsGetInt": 24, - "NonStringEnumsPostFloat": 24, - "NonStringEnumsGetFloat": 24, - "BodyTimeGet": 24, - "BodyTimePut": 24, - "MultipleInheritancePetGet": 24, - "MultipleInheritancePetPut": 24, - "MultipleInheritanceHorseGet": 24, - "MultipleInheritanceHorsePut": 24, - "MultipleInheritanceFelineGet": 24, - "MultipleInheritanceFelinePut": 24, - "MultipleInheritanceCatGet": 24, - "MultipleInheritanceCatPut": 24, - "MultipleInheritanceKittenGet": 24, - "MultipleInheritanceKittenPut": 24, - "OptionalIntegerParameter": 24, - "OptionalIntegerProperty": 24, - "OptionalIntegerHeader": 24, - "OptionalStringParameter": 24, - "OptionalStringProperty": 24, - "OptionalStringHeader": 24, - "OptionalClassParameter": 24, - "OptionalClassProperty": 24, - "OptionalArrayParameter": 24, - "OptionalArrayProperty": 24, - "OptionalArrayHeader": 24 + "GetStringAsAnything": 2, + "PutStringAsAnything": 2, + "GetObjectAsAnything": 2, + "PutObjectAsAnything": 2, + "GetArrayAsAnything": 2, + "PutArrayAsAnything": 2, + "ConstantClientProperties": 2, + "verifyIncorrectErrorParsing": 2, + "MediaTypesAnalyzeBodyNoAcceptHeader": 4, + "GetParameterizedHostWithNameEndpoint": 2, + "ImplicitOptionalBinaryBody": 2, + "ExplicitOptionalBinaryBody": 2, + "ExplicitRequiredBinaryBody": 2, + "OptionalImplicitBody": 2, + "GeneralOptional": 22, + "OptionalImplicitHeader": 2, + "OptionalImplicitQuery": 2, + "OptionalGlobalQuery": 2, + "reservedWordsOperationGroupImport": 2, + "getStringNull": 2, + "putStringNull": 2, + "getStringEmpty": 2, + "putStringEmpty": 2, + "getStringNotProvided": 2, + "getStringWithLeadingAndTrailingWhitespace": 2, + "putStringWithLeadingAndTrailingWhitespace": 2, + "getStringBase64UrlEncoded": 2, + "putStringBase64UrlEncoded": 2, + "getStringBase64Encoded": 2, + "getStringNullBase64UrlEncoding": 2, + "getStringMultiByteCharacters": 2, + "putStringMultiByteCharacters": 2, + "getEnumNotExpandable": 2, + "putEnumNotExpandable": 4, + "getEnumReferenced": 2, + "putEnumReferenced": 4, + "getEnumReferencedConstant": 2, + "putEnumReferencedConstant": 2, + "XmlGetBytes": 2, + "XmlPutBytes": 2, + "XmlGetUrl": 2, + "XmlPutUrl": 2, + "additionalPropertiesTrue": 2, + "additionalPropertiesSubclass": 2, + "additionalPropertiesTypeObject": 2, + "additionalPropertiesTypeString": 2, + "additionalPropertiesInProperties": 2, + "additionalPropertiesInPropertiesWithAPTypeString": 2, + "getArrayNull": 2, + "getArrayEmpty": 2, + "putArrayEmpty": 2, + "getArrayInvalid": 2, + "getArrayBooleanValid": 2, + "putArrayBooleanValid": 2, + "getArrayBooleanWithNull": 2, + "getArrayBooleanWithString": 2, + "getArrayIntegerValid": 2, + "putArrayIntegerValid": 2, + "getArrayIntegerWithNull": 2, + "getArrayIntegerWithString": 2, + "getArrayLongValid": 2, + "putArrayLongValid": 2, + "getArrayLongWithNull": 2, + "getArrayLongWithString": 2, + "getArrayFloatValid": 2, + "putArrayFloatValid": 2, + "getArrayFloatWithNull": 2, + "getArrayFloatWithString": 2, + "getArrayDoubleValid": 2, + "putArrayDoubleValid": 2, + "getArrayDoubleWithNull": 2, + "getArrayDoubleWithString": 2, + "getArrayStringValid": 2, + "putArrayStringValid": 2, + "getArrayEnumValid": 2, + "putArrayEnumValid": 2, + "getArrayStringEnumValid": 2, + "putArrayStringEnumValid": 2, + "getArrayStringWithNull": 2, + "getArrayStringWithNumber": 4, + "getArrayDateValid": 2, + "putArrayDateValid": 2, + "getArrayDateWithNull": 2, + "getArrayDateWithInvalidChars": 2, + "getArrayDateTimeValid": 2, + "putArrayDateTimeValid": 2, + "getArrayDateTimeWithNull": 2, + "getArrayDateTimeWithInvalidChars": 2, + "getArrayDateTimeRfc1123Valid": 2, + "putArrayDateTimeRfc1123Valid": 2, + "getArrayDurationValid": 2, + "putArrayDurationValid": 2, + "getArrayUuidValid": 2, + "getArrayUuidWithInvalidChars": 2, + "putArrayUuidValid": 2, + "getArrayByteValid": 2, + "putArrayByteValid": 2, + "getArrayByteWithNull": 2, + "getArrayArrayNull": 2, + "getArrayArrayEmpty": 2, + "getArrayArrayItemNull": 2, + "getArrayArrayItemEmpty": 2, + "getArrayArrayValid": 2, + "putArrayArrayValid": 2, + "getArrayComplexNull": 2, + "getArrayComplexEmpty": 2, + "getArrayComplexItemNull": 2, + "getArrayComplexItemEmpty": 2, + "getArrayComplexValid": 2, + "putArrayComplexValid": 2, + "getArrayDictionaryNull": 2, + "getArrayDictionaryEmpty": 2, + "getArrayDictionaryItemNull": 2, + "getArrayDictionaryItemEmpty": 2, + "getArrayDictionaryValid": 2, + "putArrayDictionaryValid": 2, + "getBoolTrue": 2, + "putBoolTrue": 2, + "getBoolFalse": 2, + "putBoolFalse": 2, + "getBoolInvalid": 2, + "getBoolNull": 2, + "getByteNull": 2, + "getByteEmpty": 2, + "getByteNonAscii": 2, + "putByteNonAscii": 2, + "getByteInvalid": 2, + "getDateNull": 2, + "getDateInvalid": 2, + "getDateOverflow": 2, + "getDateUnderflow": 2, + "getDateMax": 2, + "putDateMax": 2, + "getDateMin": 2, + "putDateMin": 2, + "getDateTimeNull": 2, + "getDateTimeInvalid": 2, + "getDateTimeOverflow": 2, + "getDateTimeUnderflow": 2, + "putDateTimeMaxUtc": 2, + "getDateTimeMaxUtcLowercase": 2, + "getDateTimeMaxUtcUppercase": 2, + "getDateTimeMaxLocalPositiveOffsetLowercase": 2, + "getDateTimeMaxLocalPositiveOffsetUppercase": 2, + "getDateTimeMaxLocalNegativeOffsetLowercase": 2, + "getDateTimeMaxLocalNegativeOffsetUppercase": 2, + "getDateTimeMinUtc": 2, + "putDateTimeMinUtc": 2, + "getDateTimeMinLocalPositiveOffset": 2, + "getDateTimeMinLocalNegativeOffset": 2, + "getDateTimeRfc1123Null": 2, + "getDateTimeRfc1123Invalid": 2, + "getDateTimeRfc1123Overflow": 2, + "getDateTimeRfc1123Underflow": 2, + "getDateTimeRfc1123MinUtc": 2, + "putDateTimeRfc1123Max": 2, + "putDateTimeRfc1123Min": 2, + "getDateTimeRfc1123MaxUtcLowercase": 2, + "getDateTimeRfc1123MaxUtcUppercase": 2, + "getIntegerNull": 2, + "getIntegerInvalid": 2, + "getIntegerOverflow": 2, + "getIntegerUnderflow": 2, + "getLongOverflow": 2, + "getLongUnderflow": 2, + "putIntegerMax": 2, + "putLongMax": 2, + "putIntegerMin": 2, + "putLongMin": 2, + "getNumberNull": 2, + "getFloatInvalid": 2, + "getDoubleInvalid": 2, + "getFloatBigScientificNotation": 2, + "putFloatBigScientificNotation": 2, + "getDoubleBigScientificNotation": 2, + "putDoubleBigScientificNotation": 2, + "getDoubleBigPositiveDecimal": 2, + "putDoubleBigPositiveDecimal": 2, + "getDoubleBigNegativeDecimal": 2, + "putDoubleBigNegativeDecimal": 2, + "getFloatSmallScientificNotation": 2, + "putFloatSmallScientificNotation": 2, + "getDoubleSmallScientificNotation": 2, + "putDoubleSmallScientificNotation": 2, + "putComplexBasicValid": 4, + "getComplexBasicValid": 2, + "getComplexBasicEmpty": 2, + "getComplexBasicNotProvided": 2, + "getComplexBasicNull": 2, + "getComplexBasicInvalid": 2, + "putComplexPrimitiveInteger": 2, + "putComplexPrimitiveLong": 2, + "putComplexPrimitiveFloat": 2, + "putComplexPrimitiveDouble": 2, + "putComplexPrimitiveBool": 2, + "putComplexPrimitiveString": 2, + "putComplexPrimitiveDate": 2, + "putComplexPrimitiveDateTime": 2, + "putComplexPrimitiveDateTimeRfc1123": 2, + "putComplexPrimitiveDuration": 2, + "putComplexPrimitiveByte": 2, + "getComplexPrimitiveInteger": 2, + "getComplexPrimitiveLong": 2, + "getComplexPrimitiveFloat": 2, + "getComplexPrimitiveDouble": 2, + "getComplexPrimitiveBool": 2, + "getComplexPrimitiveString": 2, + "getComplexPrimitiveDate": 2, + "getComplexPrimitiveDateTime": 2, + "getComplexPrimitiveDateTimeRfc1123": 2, + "getComplexPrimitiveDuration": 2, + "getComplexPrimitiveByte": 2, + "putComplexArrayValid": 2, + "putComplexArrayEmpty": 2, + "getComplexArrayValid": 2, + "getComplexArrayEmpty": 2, + "getComplexArrayNotProvided": 2, + "putComplexDictionaryValid": 2, + "putComplexDictionaryEmpty": 2, + "getComplexDictionaryValid": 2, + "getComplexDictionaryEmpty": 2, + "getComplexDictionaryNull": 2, + "getComplexDictionaryNotProvided": 2, + "putComplexInheritanceValid": 6, + "getComplexInheritanceValid": 8, + "putComplexPolymorphismValid": 2, + "getComplexPolymorphismValid": 2, + "putComplexPolymorphismComplicated": 2, + "getComplexPolymorphismComplicated": 2, + "putComplexPolymorphismNoDiscriminator": 2, + "putComplexPolymorphicRecursiveValid": 2, + "getComplexPolymorphicRecursiveValid": 2, + "putComplexReadOnlyPropertyValid": 2, + "getComplexReadOnlyPropertyValid": 2, + "UrlPathsBoolFalse": 2, + "UrlPathsBoolTrue": 2, + "UrlPathsIntPositive": 2, + "UrlPathsIntNegative": 2, + "UrlPathsLongPositive": 2, + "UrlPathsLongNegative": 2, + "UrlPathsFloatPositive": 2, + "UrlPathsFloatNegative": 2, + "UrlPathsDoublePositive": 2, + "UrlPathsDoubleNegative": 2, + "UrlPathsStringUrlEncoded": 2, + "UrlPathsStringUrlNonEncoded": 2, + "UrlPathsStringEmpty": 2, + "UrlPathsStringUnicode": 2, + "UrlPathsEnumValid": 2, + "UrlPathsByteMultiByte": 2, + "UrlPathsByteEmpty": 2, + "UrlPathsDateValid": 2, + "UrlPathsDateTimeValid": 2, + "UrlQueriesBoolFalse": 2, + "UrlQueriesBoolTrue": 2, + "UrlQueriesBoolNull": 2, + "UrlQueriesIntPositive": 2, + "UrlQueriesIntNegative": 2, + "UrlQueriesIntNull": 2, + "UrlQueriesLongPositive": 2, + "UrlQueriesLongNegative": 2, + "UrlQueriesLongNull": 2, + "UrlQueriesFloatPositive": 2, + "UrlQueriesFloatNegative": 2, + "UrlQueriesFloatNull": 2, + "UrlQueriesDoublePositive": 2, + "UrlQueriesDoubleNegative": 2, + "UrlQueriesDoubleNull": 2, + "UrlQueriesStringUrlEncoded": 2, + "UrlQueriesStringEmpty": 2, + "UrlQueriesStringNull": 2, + "UrlQueriesStringUnicode": 2, + "UrlQueriesEnumValid": 2, + "UrlQueriesEnumNull": 2, + "UrlQueriesByteMultiByte": 2, + "UrlQueriesByteEmpty": 2, + "UrlQueriesByteNull": 2, + "UrlQueriesDateValid": 2, + "UrlQueriesDateNull": 2, + "UrlQueriesDateTimeValid": 2, + "UrlQueriesDateTimeNull": 2, + "UrlQueriesArrayCsvNull": 2, + "UrlQueriesArrayCsvEmpty": 2, + "UrlQueriesArrayCsvValid": 2, + "UrlQueriesArrayMultiNull": 2, + "UrlQueriesArrayMultiEmpty": 2, + "UrlQueriesArrayMultiValid": 2, + "UrlQueriesArraySsvValid": 2, + "UrlQueriesArrayPipesValid": 2, + "UrlQueriesArrayTsvValid": 1, + "UrlQueriesArrayNoCollectionFormatValid": 2, + "UrlPathItemGetAll": 2, + "UrlPathItemGetGlobalNull": 2, + "UrlPathItemGetGlobalAndLocalNull": 2, + "UrlPathItemGetPathItemAndLocalNull": 2, + "putDictionaryEmpty": 2, + "getDictionaryNull": 2, + "getDictionaryEmpty": 2, + "getDictionaryInvalid": 2, + "getDictionaryNullValue": 2, + "getDictionaryNullkey": 2, + "getDictionaryKeyEmptyString": 2, + "getDictionaryBooleanValid": 2, + "getDictionaryBooleanWithNull": 2, + "getDictionaryBooleanWithString": 2, + "getDictionaryIntegerValid": 2, + "getDictionaryIntegerWithNull": 2, + "getDictionaryIntegerWithString": 2, + "getDictionaryLongValid": 2, + "getDictionaryLongWithNull": 2, + "getDictionaryLongWithString": 2, + "getDictionaryFloatValid": 2, + "getDictionaryFloatWithNull": 2, + "getDictionaryFloatWithString": 2, + "getDictionaryDoubleValid": 2, + "getDictionaryDoubleWithNull": 2, + "getDictionaryDoubleWithString": 2, + "getDictionaryStringValid": 2, + "getDictionaryStringWithNull": 2, + "getDictionaryStringWithNumber": 2, + "getDictionaryDateValid": 2, + "getDictionaryDateWithNull": 2, + "getDictionaryDateWithInvalidChars": 2, + "getDictionaryDateTimeValid": 2, + "getDictionaryDateTimeWithNull": 2, + "getDictionaryDateTimeWithInvalidChars": 2, + "getDictionaryDateTimeRfc1123Valid": 2, + "getDictionaryDurationValid": 2, + "getDictionaryByteValid": 2, + "getDictionaryByteWithNull": 2, + "putDictionaryBooleanValid": 2, + "putDictionaryIntegerValid": 2, + "putDictionaryLongValid": 2, + "putDictionaryFloatValid": 2, + "putDictionaryDoubleValid": 2, + "putDictionaryStringValid": 2, + "putDictionaryDateValid": 2, + "putDictionaryDateTimeValid": 2, + "putDictionaryDateTimeRfc1123Valid": 2, + "putDictionaryDurationValid": 2, + "putDictionaryByteValid": 2, + "getDictionaryComplexNull": 2, + "getDictionaryComplexEmpty": 2, + "getDictionaryComplexItemNull": 2, + "getDictionaryComplexItemEmpty": 2, + "getDictionaryComplexValid": 2, + "putDictionaryComplexValid": 2, + "getDictionaryArrayNull": 2, + "getDictionaryArrayEmpty": 2, + "getDictionaryArrayItemNull": 2, + "getDictionaryArrayItemEmpty": 2, + "getDictionaryArrayValid": 2, + "putDictionaryArrayValid": 2, + "getDictionaryDictionaryNull": 2, + "getDictionaryDictionaryEmpty": 2, + "getDictionaryDictionaryItemNull": 2, + "getDictionaryDictionaryItemEmpty": 2, + "getDictionaryDictionaryValid": 2, + "putDictionaryDictionaryValid": 2, + "putDurationPositive": 11, + "getDurationNull": 11, + "getDurationInvalid": 11, + "getDurationPositive": 11, + "HeaderParameterExistingKey": 2, + "HeaderResponseExistingKey": 2, + "HeaderResponseProtectedKey": 2, + "HeaderParameterIntegerPositive": 2, + "HeaderParameterIntegerNegative": 2, + "HeaderParameterLongPositive": 2, + "HeaderParameterLongNegative": 2, + "HeaderParameterFloatPositive": 2, + "HeaderParameterFloatNegative": 2, + "HeaderParameterDoublePositive": 2, + "HeaderParameterDoubleNegative": 2, + "HeaderParameterBoolTrue": 2, + "HeaderParameterBoolFalse": 2, + "HeaderParameterStringValid": 2, + "HeaderParameterStringNull": 2, + "HeaderParameterStringEmpty": 2, + "HeaderParameterDateValid": 2, + "HeaderParameterDateMin": 2, + "HeaderParameterDateTimeValid": 2, + "HeaderParameterDateTimeMin": 2, + "HeaderParameterDateTimeRfc1123Valid": 2, + "HeaderParameterDateTimeRfc1123Min": 2, + "HeaderParameterBytesValid": 2, + "HeaderParameterDurationValid": 2, + "HeaderResponseIntegerPositive": 2, + "HeaderResponseIntegerNegative": 2, + "HeaderResponseLongPositive": 2, + "HeaderResponseLongNegative": 2, + "HeaderResponseFloatPositive": 2, + "HeaderResponseFloatNegative": 2, + "HeaderResponseDoublePositive": 2, + "HeaderResponseDoubleNegative": 2, + "HeaderResponseBoolTrue": 2, + "HeaderResponseBoolFalse": 2, + "HeaderResponseStringValid": 2, + "HeaderResponseStringNull": 2, + "HeaderResponseStringEmpty": 2, + "HeaderParameterEnumValid": 4, + "HeaderParameterEnumNull": 2, + "HeaderResponseEnumValid": 2, + "HeaderResponseEnumNull": 2, + "HeaderResponseDateValid": 2, + "HeaderResponseDateMin": 2, + "HeaderResponseDateTimeValid": 2, + "HeaderResponseDateTimeMin": 2, + "HeaderResponseDateTimeRfc1123Valid": 2, + "HeaderResponseDateTimeRfc1123Min": 2, + "HeaderResponseBytesValid": 2, + "HeaderResponseDurationValid": 2, + "ConstantsInPath": 2, + "ConstantsInBody": 2, + "CustomBaseUri": 6, + "CustomBaseUriMoreOptions": 2, + "getModelFlattenArray": 2, + "putModelFlattenArray": 2, + "getModelFlattenDictionary": 2, + "putModelFlattenDictionary": 2, + "getModelFlattenResourceCollection": 2, + "putModelFlattenResourceCollection": 2, + "putModelFlattenCustomBase": 2, + "postModelFlattenCustomParameter": 2, + "putModelFlattenCustomGroupedParameter": 2, + "getArrayBase64Url": 2, + "getDictionaryBase64Url": 2, + "UrlPathsStringBase64Url": 2, + "UrlPathsArrayCSVInPath": 2, + "getUnixTime": 2, + "getInvalidUnixTime": 2, + "getNullUnixTime": 2, + "putUnixTime": 2, + "UrlPathsIntUnixTime": 2, + "expectedEnum": 2, + "unexpectedEnum": 2, + "allowedValueEnum": 2, + "roundTripEnum": 2, + "expectedNoErrors": 2, + "expectedPetSadError": 8, + "expectedPetHungryError": 1, + "intError": 1, + "stringError": 1, + "animalNotFoundError": 1, + "linkNotFoundError": 1, + "getDateTimeMinLocalNoOffset": 2, + "getComplexPolymorphismDotSyntax": 2, + "getComposedWithDiscriminator": 2, + "getComposedWithoutDiscriminator": 2, + "FileStreamNonempty": 6, + "FileStreamVeryLarge": 2, + "FileStreamEmpty": 4, + "HttpSuccess200Head": 20, + "HttpSuccess200Get": 2, + "HttpSuccess200Put": 2, + "HttpSuccess200Post": 2, + "HttpSuccess200Patch": 2, + "HttpSuccess200Delete": 2, + "HttpSuccess201Put": 2, + "HttpSuccess201Post": 2, + "HttpSuccess202Put": 2, + "HttpSuccess202Post": 2, + "HttpSuccess202Patch": 2, + "HttpSuccess202Delete": 2, + "HttpSuccess204Head": 20, + "HttpSuccess404Head": 20, + "HttpSuccess204Put": 2, + "HttpSuccess204Post": 2, + "HttpSuccess204Patch": 2, + "HttpSuccess204Delete": 2, + "HttpRedirect300Head": 2, + "HttpRedirect300Get": 2, + "HttpRedirect301Put": 2, + "HttpRedirect301Get": 2, + "HttpRedirect302Head": 2, + "HttpRedirect302Get": 2, + "HttpRedirect302Patch": 2, + "HttpRedirect303Post": 2, + "HttpRedirect307Head": 2, + "HttpRedirect307Get": 2, + "HttpRedirect307Put": 2, + "HttpRedirect307Post": 2, + "HttpRedirect307Patch": 2, + "HttpRedirect307Delete": 2, + "HttpRetry408Head": 2, + "HttpRetry500Put": 2, + "HttpRetry500Patch": 2, + "HttpRetry502Get": 2, + "HttpRetry503Post": 2, + "HttpRetry503Delete": 2, + "HttpRetry504Put": 2, + "HttpRetry504Patch": 2, + "HttpClientFailure400Head": 2, + "HttpClientFailure400Get": 2, + "HttpClientFailure400Put": 2, + "HttpClientFailure400Post": 2, + "HttpClientFailure400Patch": 2, + "HttpClientFailure400Delete": 2, + "HttpClientFailure401Head": 2, + "HttpClientFailure402Get": 2, + "HttpClientFailure403Get": 2, + "HttpClientFailure404Put": 2, + "HttpClientFailure405Patch": 2, + "HttpClientFailure406Post": 2, + "HttpClientFailure407Delete": 2, + "HttpClientFailure409Put": 2, + "HttpClientFailure410Head": 2, + "HttpClientFailure411Get": 2, + "HttpClientFailure412Get": 2, + "HttpClientFailure413Put": 2, + "HttpClientFailure414Patch": 2, + "HttpClientFailure415Post": 2, + "HttpClientFailure416Get": 2, + "HttpClientFailure417Delete": 2, + "HttpClientFailure429Head": 8, + "HttpServerFailure501Head": 2, + "HttpServerFailure501Get": 2, + "HttpServerFailure505Post": 2, + "HttpServerFailure505Delete": 2, + "ResponsesScenarioA200MatchingModel": 2, + "ResponsesScenarioA204MatchingNoModel": 2, + "ResponsesScenarioA201DefaultNoModel": 2, + "ResponsesScenarioA202DefaultNoModel": 2, + "ResponsesScenarioA400DefaultModel": 2, + "ResponsesScenarioB200MatchingModel": 2, + "ResponsesScenarioB201MatchingModel": 2, + "ResponsesScenarioB400DefaultModel": 2, + "ResponsesScenarioC200MatchingModel": 2, + "ResponsesScenarioC201MatchingModel": 2, + "ResponsesScenarioC404MatchingModel": 2, + "ResponsesScenarioC400DefaultModel": 2, + "ResponsesScenarioD202MatchingNoModel": 2, + "ResponsesScenarioD204MatchingNoModel": 2, + "ResponsesScenarioD400DefaultModel": 2, + "ResponsesScenarioE202MatchingInvalid": 2, + "ResponsesScenarioE204MatchingNoModel": 2, + "ResponsesScenarioE400DefaultNoModel": 2, + "ResponsesScenarioE400DefaultInvalid": 2, + "ResponsesScenarioF200DefaultModel": 4, + "ResponsesScenarioF200DefaultNone": 4, + "ResponsesScenarioF400DefaultModel": 2, + "ResponsesScenarioF400DefaultNone": 2, + "ResponsesScenarioG200DefaultInvalid": 2, + "ResponsesScenarioG200DefaultNoModel": 2, + "ResponsesScenarioG400DefaultInvalid": 2, + "ResponsesScenarioG400DefaultNoModel": 2, + "ResponsesScenarioH200MatchingNone": 2, + "ResponsesScenarioH200MatchingModel": 2, + "ResponsesScenarioH200MatchingInvalid": 2, + "ResponsesScenarioH400NonMatchingNone": 2, + "ResponsesScenarioH400NonMatchingModel": 2, + "ResponsesScenarioH400NonMatchingInvalid": 2, + "ResponsesScenarioH202NonMatchingModel": 2, + "ResponsesScenarioEmptyErrorBody": 2, + "ResponsesScenarioNoModelErrorBody": 2, + "MediaTypeJson": 2, + "MediaTypePdf": 2, + "MediaTypeWithEncoding": 2, + "StorageListContainersXML": 2, + "StorageGetServicePropertiesXML": 2, + "StoragePutServicePropertiesXML": 2, + "StorageGetContainerACLXML": 2, + "StorageListBlobsXML": 2, + "StoragePutContainerACLXML": 2, + "GetSimpleXML": 2, + "PutSimpleXML": 2, + "GetWrappedXMLList": 2, + "PutWrappedXMLList": 2, + "GetEmptyXMLList": 2, + "PutEmptyXMLList": 2, + "GetEmptyWrappedXMLList": 2, + "PutEmptyWrappedXMLList": 2, + "GetXMLListAtRoot": 2, + "PutXMLListAtRoot": 2, + "GetXMLListAtRootSingle": 2, + "PutXMLListAtRootSingle": 2, + "GetEmptyXMLListAtRoot": 2, + "PutEmptyXMLListAtRoot": 2, + "GetXMLEmptyNode": 2, + "PutXMLEmptyNode": 2, + "GetRootWithRefAndNoMetaXML": 2, + "PutRootWithRefAndNoMetaXML": 2, + "GetRootWithRefAndMetaXML": 2, + "PutRootWithRefAndMetaXML": 2, + "jsonInputInXMLSwagger": 2, + "jsonOutputInXMLSwagger": 2, + "GetWithXMsText": 2, + "ObjectTypeResponse": 2, + "ObjectTypePut": 2, + "ObjectTypeErrorResponse": 2, + "NonStringEnumsPostInt": 2, + "NonStringEnumsGetInt": 2, + "NonStringEnumsPostFloat": 2, + "NonStringEnumsGetFloat": 2, + "BodyTimeGet": 2, + "BodyTimePut": 2, + "MultipleInheritancePetGet": 2, + "MultipleInheritancePetPut": 2, + "MultipleInheritanceHorseGet": 2, + "MultipleInheritanceHorsePut": 2, + "MultipleInheritanceFelineGet": 2, + "MultipleInheritanceFelinePut": 2, + "MultipleInheritanceCatGet": 2, + "MultipleInheritanceCatPut": 2, + "MultipleInheritanceKittenGet": 2, + "MultipleInheritanceKittenPut": 2, + "OptionalIntegerParameter": 2, + "OptionalIntegerProperty": 2, + "OptionalIntegerHeader": 2, + "OptionalStringParameter": 2, + "OptionalStringProperty": 2, + "OptionalStringHeader": 2, + "OptionalClassParameter": 2, + "OptionalClassProperty": 2, + "OptionalArrayParameter": 2, + "OptionalArrayProperty": 2, + "OptionalArrayHeader": 2 } \ No newline at end of file diff --git a/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py b/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py index faff145b9be..a4caec18026 100644 --- a/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py +++ b/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py @@ -65,7 +65,7 @@ async def request_status(self, status_link): # ARM requires to re-inject 'x-ms-client-request-id' while polling if 'request_id' not in self._operation_config: self._operation_config['request_id'] = self._get_request_id() - return (await self._client.send_request(request, stream=False, **self._operation_config, _return_pipeline_response=True)) + return (await self._client._pipeline.run(request, stream=False, **self._operation_config)) @pytest.fixture @async_generator diff --git a/test/azure/version-tolerant/AcceptanceTests/test_lro.py b/test/azure/version-tolerant/AcceptanceTests/test_lro.py index ee256524035..3ec531b21bb 100644 --- a/test/azure/version-tolerant/AcceptanceTests/test_lro.py +++ b/test/azure/version-tolerant/AcceptanceTests/test_lro.py @@ -62,7 +62,7 @@ def request_status(self, status_link): # ARM requires to re-inject 'x-ms-client-request-id' while polling if 'request_id' not in self._operation_config: self._operation_config['request_id'] = self._get_request_id() - return self._client.send_request(request, stream=False, **self._operation_config, _return_pipeline_response=True) + return self._client._pipeline.run(request, stream=False, **self._operation_config) @pytest.fixture() def client(cookie_policy, credential): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py index 310ef10eb3c..2c86b4d91c3 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py @@ -68,9 +68,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -114,9 +112,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -145,9 +141,7 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -183,9 +177,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py index 606e5c16b44..d1a41e3f0fa 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureBodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py @@ -155,7 +155,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -204,7 +204,7 @@ def put_positive_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -236,7 +236,7 @@ def get_positive_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -275,7 +275,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py index f3b7e4eada8..abccfd1a8af 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py @@ -87,9 +87,7 @@ async def post_required( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -126,9 +124,7 @@ async def post_optional( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -165,9 +161,7 @@ async def post_reserved_words( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -216,9 +210,7 @@ async def post_multi_param_groups( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -255,9 +247,7 @@ async def post_shared_parameter_group_object( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py index 3bf16c35932..93967906412 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py @@ -263,7 +263,7 @@ def post_required( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -304,7 +304,7 @@ def post_optional( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -345,7 +345,7 @@ def post_reserved_words( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -394,7 +394,7 @@ def post_multi_param_groups( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -435,7 +435,7 @@ def post_shared_parameter_group_object( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/operations/_operations.py index 7e1b22881be..b9c605b98d9 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/operations/_operations.py @@ -58,9 +58,7 @@ async def get_report(self, *, qualifier: Optional[str] = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/operations/_operations.py index 943dfb81826..ad7aa7d6884 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/operations/_operations.py @@ -96,7 +96,7 @@ def get_report( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py index cd5ffdeb990..b0251675dce 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py @@ -95,9 +95,7 @@ async def get(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -131,9 +129,7 @@ async def param_get(self, *, x_ms_client_request_id: str, **kwargs: Any) -> None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -183,9 +179,7 @@ async def post_method_global_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -216,9 +210,7 @@ async def post_method_global_null(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -249,9 +241,7 @@ async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -282,9 +272,7 @@ async def post_path_global_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -315,9 +303,7 @@ async def post_swagger_global_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -370,9 +356,7 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -406,9 +390,7 @@ async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -441,9 +423,7 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -477,9 +457,7 @@ async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -527,9 +505,7 @@ async def get_method_global_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -558,9 +534,7 @@ async def get_method_global_not_provided_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -589,9 +563,7 @@ async def get_path_global_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -620,9 +592,7 @@ async def get_swagger_global_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -670,9 +640,7 @@ async def get_method_local_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -705,9 +673,7 @@ async def get_method_local_null(self, *, api_version: Optional[str] = None, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -736,9 +702,7 @@ async def get_path_local_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -767,9 +731,7 @@ async def get_swagger_local_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -820,9 +782,7 @@ async def get_method_path_valid(self, unencoded_path_param: str, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -854,9 +814,7 @@ async def get_path_valid(self, unencoded_path_param: str, **kwargs: Any) -> None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -885,9 +843,7 @@ async def get_swagger_path_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -919,9 +875,7 @@ async def get_method_query_valid(self, *, q1: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -953,9 +907,7 @@ async def get_method_query_null(self, *, q1: Optional[str] = None, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -987,9 +939,7 @@ async def get_path_query_valid(self, *, q1: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1018,9 +968,7 @@ async def get_swagger_query_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1079,9 +1027,7 @@ async def get_with_filter( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1132,9 +1078,7 @@ async def custom_named_request_id(self, *, foo_client_request_id: str, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1170,9 +1114,7 @@ async def custom_named_request_id_param_grouping(self, *, foo_client_request_id: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1207,9 +1149,7 @@ async def custom_named_request_id_head(self, *, foo_client_request_id: str, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py index 88671fedccf..456b4bfa100 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py @@ -849,7 +849,7 @@ def get( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -888,7 +888,7 @@ def param_get( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -941,7 +941,7 @@ def post_method_global_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -975,7 +975,7 @@ def post_method_global_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1009,7 +1009,7 @@ def post_method_global_not_provided_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1043,7 +1043,7 @@ def post_path_global_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1077,7 +1077,7 @@ def post_swagger_global_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1135,7 +1135,7 @@ def post_method_local_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1174,7 +1174,7 @@ def post_method_local_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1212,7 +1212,7 @@ def post_path_local_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1251,7 +1251,7 @@ def post_swagger_local_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1302,7 +1302,7 @@ def get_method_global_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1334,7 +1334,7 @@ def get_method_global_not_provided_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1366,7 +1366,7 @@ def get_path_global_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1398,7 +1398,7 @@ def get_swagger_global_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1449,7 +1449,7 @@ def get_method_local_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1487,7 +1487,7 @@ def get_method_local_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1519,7 +1519,7 @@ def get_path_local_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1551,7 +1551,7 @@ def get_swagger_local_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1607,7 +1607,7 @@ def get_method_path_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1644,7 +1644,7 @@ def get_path_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1676,7 +1676,7 @@ def get_swagger_path_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1713,7 +1713,7 @@ def get_method_query_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1750,7 +1750,7 @@ def get_method_query_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1787,7 +1787,7 @@ def get_path_query_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1819,7 +1819,7 @@ def get_swagger_query_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1883,7 +1883,7 @@ def get_with_filter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1939,7 +1939,7 @@ def custom_named_request_id( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1980,7 +1980,7 @@ def custom_named_request_id_param_grouping( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2020,7 +2020,7 @@ def custom_named_request_id_head( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py index 81e7b841c43..7cf2259efdd 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py @@ -68,9 +68,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py index 4c8fd9d3649..891d9c8ea29 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py @@ -98,7 +98,7 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py index 3bf6f8d2964..53f7ad14939 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py @@ -1270,7 +1270,7 @@ async def _get_multiple_pages_lro_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py index 1a6b503ccdc..b0ba6fca018 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py @@ -1807,7 +1807,7 @@ def _get_multiple_pages_lro_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/operations/_operations.py index e908604228f..64159275c5c 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/operations/_operations.py @@ -67,9 +67,7 @@ async def head200(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -99,9 +97,7 @@ async def head204(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -131,9 +127,7 @@ async def head404(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py index fbd8e60a2e4..549ddb43ece 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/operations/_operations.py @@ -113,7 +113,7 @@ def head200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -146,7 +146,7 @@ def head204( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -179,7 +179,7 @@ def head404( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/operations/_operations.py index 4286c4937b1..a8bf5c8e5c1 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/operations/_operations.py @@ -67,9 +67,7 @@ async def head200(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -99,9 +97,7 @@ async def head204(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -131,9 +127,7 @@ async def head404(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py index c61fc50adef..2c5707cd49c 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/operations/_operations.py @@ -113,7 +113,7 @@ def head200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 404]: @@ -146,7 +146,7 @@ def head204( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -179,7 +179,7 @@ def head404( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py index 569d5132ae2..ea6aaf4e7d5 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py @@ -148,9 +148,7 @@ async def _put200_succeeded_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -280,9 +278,7 @@ async def _patch200_succeeded_ignore_headers_initial(self, product: Any = None, ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -420,9 +416,7 @@ async def _put201_succeeded_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -541,9 +535,7 @@ async def _post202_list_initial(self, **kwargs: Any) -> Optional[List[Any]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -662,9 +654,7 @@ async def _put200_succeeded_no_state_initial(self, product: Any = None, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -792,9 +782,7 @@ async def _put202_retry200_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -923,9 +911,7 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1061,9 +1047,7 @@ async def _put200_updating_succeeded204_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1192,9 +1176,7 @@ async def _put201_creating_failed200_initial(self, product: Any = None, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1330,9 +1312,7 @@ async def _put200_acceptedcanceled200_initial(self, product: Any = None, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1461,9 +1441,7 @@ async def _put_no_header_in_retry_initial(self, product: Any = None, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1597,9 +1575,7 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1742,9 +1718,7 @@ async def _put_async_no_retry_succeeded_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1885,9 +1859,7 @@ async def _put_async_retry_failed_initial(self, product: Any = None, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2030,9 +2002,7 @@ async def _put_async_no_retrycanceled_initial(self, product: Any = None, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2173,9 +2143,7 @@ async def _put_async_no_header_in_retry_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2314,9 +2282,7 @@ async def _put_non_resource_initial(self, sku: Any = None, **kwargs: Any) -> Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2425,9 +2391,7 @@ async def _put_async_non_resource_initial(self, sku: Any = None, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2536,9 +2500,7 @@ async def _put_sub_resource_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2653,9 +2615,7 @@ async def _put_async_sub_resource_initial(self, product: Any = None, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2761,9 +2721,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2876,9 +2834,7 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2989,9 +2945,7 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3102,9 +3056,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -3171,9 +3123,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> Optional[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3279,9 +3229,7 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> Optional[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3387,9 +3335,7 @@ async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -3461,9 +3407,7 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -3535,9 +3479,7 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3612,9 +3554,7 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3689,9 +3629,7 @@ async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3766,9 +3704,7 @@ async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3843,9 +3779,7 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -3951,9 +3885,7 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4057,9 +3989,7 @@ async def _post202_no_retry204_initial(self, product: Any = None, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4186,9 +4116,7 @@ async def _post_double_headers_final_location_get_initial(self, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4288,9 +4216,7 @@ async def _post_double_headers_final_azure_header_get_initial(self, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4392,9 +4318,7 @@ async def _post_double_headers_final_azure_header_get_default_initial(self, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4505,9 +4429,7 @@ async def _post_async_retry_succeeded_initial(self, product: Any = None, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4646,9 +4568,7 @@ async def _post_async_no_retry_succeeded_initial(self, product: Any = None, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4787,9 +4707,7 @@ async def _post_async_retry_failed_initial(self, product: Any = None, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4897,9 +4815,7 @@ async def _post_async_retrycanceled_initial(self, product: Any = None, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5026,9 +4942,7 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -5164,9 +5078,7 @@ async def _put_async_relative_retry_succeeded_initial(self, product: Any = None, ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5300,9 +5212,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -5415,9 +5325,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5489,9 +5397,7 @@ async def _delete_async_relative_retry_succeeded_initial(self, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5575,9 +5481,7 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5681,9 +5585,7 @@ async def _post_async_relative_retry_succeeded_initial(self, product: Any = None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5812,9 +5714,7 @@ async def _put_non_retry400_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -5948,9 +5848,7 @@ async def _put_non_retry201_creating400_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -6085,9 +5983,7 @@ async def _put_non_retry201_creating400_invalid_json_initial(self, product: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -6224,9 +6120,7 @@ async def _put_async_relative_retry400_initial(self, product: Any = None, **kwar ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6359,9 +6253,7 @@ async def _delete_non_retry400_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6432,9 +6324,7 @@ async def _delete202_non_retry400_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6505,9 +6395,7 @@ async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6591,9 +6479,7 @@ async def _post_non_retry400_initial(self, product: Any = None, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6696,9 +6582,7 @@ async def _post202_non_retry400_initial(self, product: Any = None, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6801,9 +6685,7 @@ async def _post_async_relative_retry400_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6910,9 +6792,7 @@ async def _put_error201_no_provisioning_state_payload_initial(self, product: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -7048,9 +6928,7 @@ async def _put_async_relative_retry_no_status_initial(self, product: Any = None, ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7193,9 +7071,7 @@ async def _put_async_relative_retry_no_status_payload_initial(self, product: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7331,9 +7207,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -7400,9 +7274,7 @@ async def _delete_async_relative_retry_no_status_initial(self, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7486,9 +7358,7 @@ async def _post202_no_location_initial(self, product: Any = None, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7592,9 +7462,7 @@ async def _post_async_relative_retry_no_payload_initial(self, product: Any = Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7704,9 +7572,7 @@ async def _put200_invalid_json_initial(self, product: Any = None, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -7836,9 +7702,7 @@ async def _put_async_relative_retry_invalid_header_initial(self, product: Any = ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7983,9 +7847,7 @@ async def _put_async_relative_retry_invalid_json_polling_initial(self, product: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -8121,9 +7983,7 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8195,9 +8055,7 @@ async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8272,9 +8130,7 @@ async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwar ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8360,9 +8216,7 @@ async def _post202_retry_invalid_header_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8466,9 +8320,7 @@ async def _post_async_relative_retry_invalid_header_initial(self, product: Any = ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8578,9 +8430,7 @@ async def _post_async_relative_retry_invalid_json_polling_initial(self, product: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8709,9 +8559,7 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -8855,9 +8703,7 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -8994,9 +8840,7 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -9101,9 +8945,7 @@ async def _post_async_retry_succeeded_initial(self, product: Any = None, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py index 6ecb9568d11..cd7b503b6e7 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py @@ -1862,7 +1862,7 @@ def _put200_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -2002,7 +2002,7 @@ def _patch200_succeeded_ignore_headers_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2150,7 +2150,7 @@ def _put201_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2277,7 +2277,7 @@ def _post202_list_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -2404,7 +2404,7 @@ def _put200_succeeded_no_state_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2542,7 +2542,7 @@ def _put202_retry200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2681,7 +2681,7 @@ def _put201_creating_succeeded200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -2827,7 +2827,7 @@ def _put200_updating_succeeded204_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2966,7 +2966,7 @@ def _put201_creating_failed200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -3112,7 +3112,7 @@ def _put200_acceptedcanceled200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3251,7 +3251,7 @@ def _put_no_header_in_retry_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3395,7 +3395,7 @@ def _put_async_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3548,7 +3548,7 @@ def _put_async_no_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3699,7 +3699,7 @@ def _put_async_retry_failed_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3852,7 +3852,7 @@ def _put_async_no_retrycanceled_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4003,7 +4003,7 @@ def _put_async_no_header_in_retry_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -4152,7 +4152,7 @@ def _put_non_resource_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4271,7 +4271,7 @@ def _put_async_non_resource_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4390,7 +4390,7 @@ def _put_sub_resource_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4515,7 +4515,7 @@ def _put_async_sub_resource_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -4629,7 +4629,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4746,7 +4746,7 @@ def _delete_provisioning202_deleting_failed200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4863,7 +4863,7 @@ def _delete_provisioning202_deletingcanceled200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -4980,7 +4980,7 @@ def _delete204_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -5053,7 +5053,7 @@ def _delete202_retry200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -5165,7 +5165,7 @@ def _delete202_no_retry204_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -5277,7 +5277,7 @@ def _delete_no_header_in_retry_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -5355,7 +5355,7 @@ def _delete_async_no_header_in_retry_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -5433,7 +5433,7 @@ def _delete_async_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5514,7 +5514,7 @@ def _delete_async_no_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5595,7 +5595,7 @@ def _delete_async_retry_failed_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5676,7 +5676,7 @@ def _delete_async_retrycanceled_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5757,7 +5757,7 @@ def _post200_with_payload_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -5871,7 +5871,7 @@ def _post202_retry200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -5985,7 +5985,7 @@ def _post202_no_retry204_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6120,7 +6120,7 @@ def _post_double_headers_final_location_get_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6226,7 +6226,7 @@ def _post_double_headers_final_azure_header_get_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6332,7 +6332,7 @@ def _post_double_headers_final_azure_header_get_default_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6451,7 +6451,7 @@ def _post_async_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -6600,7 +6600,7 @@ def _post_async_no_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -6749,7 +6749,7 @@ def _post_async_retry_failed_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -6867,7 +6867,7 @@ def _post_async_retrycanceled_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7004,7 +7004,7 @@ def _put201_creating_succeeded200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -7150,7 +7150,7 @@ def _put_async_relative_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7292,7 +7292,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -7409,7 +7409,7 @@ def _delete202_retry200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7487,7 +7487,7 @@ def _delete_async_relative_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7579,7 +7579,7 @@ def _post202_retry200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7693,7 +7693,7 @@ def _post_async_relative_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -7830,7 +7830,7 @@ def _put_non_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -7974,7 +7974,7 @@ def _put_non_retry201_creating400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -8119,7 +8119,7 @@ def _put_non_retry201_creating400_invalid_json_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -8264,7 +8264,7 @@ def _put_async_relative_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -8405,7 +8405,7 @@ def _delete_non_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8482,7 +8482,7 @@ def _delete202_non_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8559,7 +8559,7 @@ def _delete_async_relative_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8651,7 +8651,7 @@ def _post_non_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8764,7 +8764,7 @@ def _post202_non_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8877,7 +8877,7 @@ def _post_async_relative_retry400_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -8994,7 +8994,7 @@ def _put_error201_no_provisioning_state_payload_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -9138,7 +9138,7 @@ def _put_async_relative_retry_no_status_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -9291,7 +9291,7 @@ def _put_async_relative_retry_no_status_payload_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -9433,7 +9433,7 @@ def _delete204_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -9506,7 +9506,7 @@ def _delete_async_relative_retry_no_status_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -9598,7 +9598,7 @@ def _post202_no_location_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -9712,7 +9712,7 @@ def _post_async_relative_retry_no_payload_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -9830,7 +9830,7 @@ def _put200_invalid_json_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -9970,7 +9970,7 @@ def _put_async_relative_retry_invalid_header_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -10123,7 +10123,7 @@ def _put_async_relative_retry_invalid_json_polling_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -10265,7 +10265,7 @@ def _delete202_retry_invalid_header_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -10343,7 +10343,7 @@ def _delete_async_relative_retry_invalid_header_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -10424,7 +10424,7 @@ def _delete_async_relative_retry_invalid_json_polling_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -10516,7 +10516,7 @@ def _post202_retry_invalid_header_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -10630,7 +10630,7 @@ def _post_async_relative_retry_invalid_header_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -10748,7 +10748,7 @@ def _post_async_relative_retry_invalid_json_polling_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -10885,7 +10885,7 @@ def _put_async_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -11039,7 +11039,7 @@ def _put201_creating_succeeded200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -11186,7 +11186,7 @@ def _post202_retry200_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -11301,7 +11301,7 @@ def _post_async_retry_succeeded_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py index 68de1c3846d..b8d12b86a1c 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/operations/_operations.py @@ -48,9 +48,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -156,9 +154,7 @@ async def _poll_with_constant_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py index 8b900f70173..d58e51e999d 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/operations/_operations.py @@ -102,7 +102,7 @@ def _poll_with_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -216,7 +216,7 @@ def _poll_with_constant_parameterized_endpoints_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py index 5dee76839e8..31cfd7234a6 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py @@ -1208,9 +1208,7 @@ async def _get_multiple_pages_lro_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py index 183d74bba5e..a8d16116dad 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py @@ -1750,7 +1750,7 @@ def _get_multiple_pages_lro_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py index 4bac1db6f3a..48f9f108b98 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py @@ -106,9 +106,7 @@ async def check_name_availability(self, account_name: Any, **kwargs: Any) -> Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,9 +146,7 @@ async def _create_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -333,9 +329,7 @@ async def delete(self, resource_group_name: str, account_name: str, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -425,9 +419,7 @@ async def get_properties(self, resource_group_name: str, account_name: str, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -555,9 +547,7 @@ async def update(self, resource_group_name: str, account_name: str, parameters: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -609,9 +599,7 @@ async def list_keys(self, resource_group_name: str, account_name: str, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -904,9 +892,7 @@ async def regenerate_key( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -980,9 +966,7 @@ async def list(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py index fff1ff8a5e6..b56d198d20e 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py @@ -461,7 +461,7 @@ def check_name_availability( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -506,7 +506,7 @@ def _create_initial( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -700,7 +700,7 @@ def delete( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -796,7 +796,7 @@ def get_properties( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -931,7 +931,7 @@ def update( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -989,7 +989,7 @@ def list_keys( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1295,7 +1295,7 @@ def regenerate_key( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1372,7 +1372,7 @@ def list( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py index 8d148f96f2f..e16631883f9 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py @@ -76,9 +76,7 @@ async def get_sample_resource_group(self, resource_group_name: str, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py index 3a9cfc1c794..4ff16f6b3ae 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py @@ -121,7 +121,7 @@ def get_sample_resource_group( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py index 98d73f416a7..66b6e33697b 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 @@ -68,7 +68,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 11d387e19d1..efcec8767cb 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 @@ -102,7 +102,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py index f9552ed38d7..e00bac67ba6 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 @@ -60,7 +60,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -99,7 +99,7 @@ async def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -207,7 +207,7 @@ async def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -381,7 +381,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 99449af180a..6e348c17f54 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 @@ -68,7 +68,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 5eb359fb975..0e2ac52a25f 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 @@ -182,7 +182,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -222,7 +222,7 @@ def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -331,7 +331,7 @@ def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -507,7 +507,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 41d525eabc0..4a7978ed99e 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 @@ -102,7 +102,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py index 1a4c2a8502d..e6ef175b5c3 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 @@ -56,7 +56,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -106,7 +106,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 72146044503..f1ec2def4dd 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -121,7 +121,7 @@ async def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 ff03ebb246c..bb22568b53b 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 @@ -72,7 +72,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 b1b348d9f7f..fba0ef5f9ee 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 @@ -128,7 +128,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,7 +179,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 c28e4f72695..024c0c8cb4e 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 @@ -143,7 +143,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -186,7 +186,7 @@ def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 5ff6b18d4b3..232fb46b7d5 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 @@ -109,7 +109,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py index 745087ada6f..e7ca1975fe9 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 @@ -121,7 +121,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 f7df814156b..e6270f74a05 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 7e261a41286..e2711b6b3c5 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 @@ -91,7 +91,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -129,7 +129,7 @@ async def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 53d571bfdb0..bb814b6de61 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 @@ -184,7 +184,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 e0337ff61cb..806674d33d2 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 @@ -117,7 +117,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 652261729cf..9481893552c 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 @@ -155,7 +155,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,7 +194,7 @@ def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py index c974d270a42..f2c2d41c493 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 @@ -60,7 +60,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -99,7 +99,7 @@ async def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -207,7 +207,7 @@ async def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -382,7 +382,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 aec873a4d02..0bd8d2e7db8 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 @@ -68,7 +68,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 2b68ab4f976..2c698b0c596 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 @@ -182,7 +182,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -222,7 +222,7 @@ def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -331,7 +331,7 @@ def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -508,7 +508,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 cecd6f0c434..6d80839ec89 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 @@ -102,7 +102,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py index 71e0db459b4..31f79698184 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 @@ -56,7 +56,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -106,7 +106,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 6971dcebc26..3136ff0e949 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -121,7 +121,7 @@ async def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 71e8c362549..375c50bb27b 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 @@ -72,7 +72,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 5f7a4322c40..4cd3717a287 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 @@ -128,7 +128,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,7 +179,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 dc94ad283ec..63aab6a232c 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 @@ -143,7 +143,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -186,7 +186,7 @@ def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 b4aa2eb8c68..153ade800fc 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 @@ -109,7 +109,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py index 33612b8ac12..7bd20d0e61e 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 @@ -122,7 +122,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 39df22e1d0b..3fb881d51b3 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 9d23fdea32c..de0f0315dfb 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 @@ -91,7 +91,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -129,7 +129,7 @@ async def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 6b06460bfe2..e7a5a6ca8b9 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 @@ -184,7 +184,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 abf77d1b08d..90de736c695 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 @@ -117,7 +117,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 8deb3e13279..7b5e886ceea 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 @@ -155,7 +155,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,7 +194,7 @@ def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 9a45ac8d434..0795b743e72 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 @@ -55,7 +55,7 @@ async def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 c8729338ce8..7708a93540f 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 @@ -92,7 +92,7 @@ def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 8fb8d3e352a..a0c6cccc44d 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 @@ -55,7 +55,7 @@ async def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 330de768d5d..539ea5b6c5d 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 @@ -92,7 +92,7 @@ def test( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py index a9895bdfe8f..0f2b7f3ea00 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 @@ -59,7 +59,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -98,7 +98,7 @@ async def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -206,7 +206,7 @@ async def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -380,7 +380,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 a6820999799..99cb8097d76 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 @@ -67,7 +67,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 4270afe4370..3c29d7799dd 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 @@ -181,7 +181,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -221,7 +221,7 @@ def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -330,7 +330,7 @@ def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -506,7 +506,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 10e3b42e613..9e0d2380a6c 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 @@ -101,7 +101,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py index 4f736fd0add..1f0a326ed8f 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 @@ -55,7 +55,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -105,7 +105,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 a3ae6646f84..05a7a3ad900 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 @@ -78,7 +78,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -120,7 +120,7 @@ async def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 7cac12c0bba..3d730e075b1 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 @@ -71,7 +71,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 f28172b6912..a73774ac27c 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 @@ -127,7 +127,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -178,7 +178,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 97c8702e952..c68e1f1b3a3 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 @@ -142,7 +142,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,7 +185,7 @@ def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 bbf090167db..03609298b57 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 @@ -108,7 +108,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py index b9f657a5a5d..635f7a02902 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 @@ -120,7 +120,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 c63d2c0807c..645b2332f70 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 @@ -78,7 +78,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 a39f83123de..3c157236498 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 @@ -90,7 +90,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -128,7 +128,7 @@ async def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 33708edf252..a3778616f53 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 @@ -183,7 +183,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 2d4b4c91cd3..7e183ca890d 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 @@ -116,7 +116,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 8431ae95f11..8af40817207 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 @@ -154,7 +154,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -193,7 +193,7 @@ def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/operations/_multiapi_service_client_operations.py index c168fdd2452..9c7bca8379c 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 @@ -182,7 +182,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -222,7 +222,7 @@ def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -331,7 +331,7 @@ def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -507,7 +507,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 8ec2b03b279..75d7eb639eb 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 @@ -102,7 +102,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/operations/_multiapi_service_client_operations.py index 4fb01209b50..f1f8bfed55f 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 @@ -128,7 +128,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,7 +179,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 8689e43def7..204f428aec8 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 @@ -143,7 +143,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -186,7 +186,7 @@ def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 8f4a8180d5c..d4e4d1b7d92 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 @@ -109,7 +109,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/operations/_multiapi_service_client_operations.py index 095f556263a..8f1b2cd75f9 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 @@ -184,7 +184,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 5f514e05045..a61953d4fe7 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 @@ -117,7 +117,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 c30e0c4bb83..5ba35edee56 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 @@ -155,7 +155,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,7 +194,7 @@ def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py index a80f1e2dbc5..cc3ad8d076b 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 @@ -60,7 +60,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -99,7 +99,7 @@ async def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -207,7 +207,7 @@ async def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -382,7 +382,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 ffdb28f9ebe..6e8dc692fe1 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 @@ -68,7 +68,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 708d24fc103..35effcbb853 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 @@ -182,7 +182,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -222,7 +222,7 @@ def _test_lro_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -331,7 +331,7 @@ def _test_lro_and_paging_initial( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -508,7 +508,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 46b5b41a93c..c7fd74fca96 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 @@ -102,7 +102,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py index 521a951a8fb..f34fd7d6d38 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 @@ -56,7 +56,7 @@ async def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -106,7 +106,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 5c3ab0f3a58..e5c3c81dbbb 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -121,7 +121,7 @@ async def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 e3eaeb53fa7..0b9689aecb4 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 @@ -72,7 +72,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 d4ecf0faa6d..0e9cd5687b3 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 @@ -128,7 +128,7 @@ def test_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,7 +179,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 eb4829520c7..b4368eb8cf6 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 @@ -143,7 +143,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -186,7 +186,7 @@ def test_three( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 760938f6c65..76b0280bcec 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 @@ -109,7 +109,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py index b3ad53081c9..33bb6f03c1b 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 @@ -122,7 +122,7 @@ async def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 f499cf58466..f08dfaa25e2 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 @@ -79,7 +79,7 @@ async def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 f0dd22fcd38..1719e0551c5 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 @@ -91,7 +91,7 @@ async def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -129,7 +129,7 @@ async def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = await self._client._pipeline.run(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 8f6d62e5ce0..3de3eab2f1a 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 @@ -184,7 +184,7 @@ def test_different_calls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 2000a3bb27f..f5f26b763bf 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 @@ -117,7 +117,7 @@ def test_two( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 fb9a6c44be3..96c85177fc4 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 @@ -155,7 +155,7 @@ def test_four( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,7 +194,7 @@ def test_five( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py index 99c2d6cb61a..4e5b12100e4 100644 --- a/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py @@ -109,7 +109,7 @@ async def test_error_deserialization_with_param_name_models(self, client): async def test_failsafe_deserialize(self, client): from xmserrorresponse.operations._pet_operations import build_do_something_request request = build_do_something_request(what_action="jump") - pipeline_response = await client._send_request(request, _return_pipeline_response=True) + pipeline_response = await client._client._pipeline.run(request) class MyPetSadError(PetSadError): def read(self): return b"ignore me" diff --git a/test/vanilla/legacy/AcceptanceTests/test_xms_error.py b/test/vanilla/legacy/AcceptanceTests/test_xms_error.py index aa9e11390ad..d3bf298e143 100644 --- a/test/vanilla/legacy/AcceptanceTests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/test_xms_error.py @@ -101,7 +101,7 @@ def test_error_deserialization_with_param_name_models(self, client): def test_failsafe_deserialize(self, client): from xmserrorresponse.operations._pet_operations import build_do_something_request request = build_do_something_request(what_action="jump") - pipeline_response = client._send_request(request, _return_pipeline_response=True) + pipeline_response = client._client._pipeline.run(request) class MyPetSadError(PetSadError): def read(self): return b"ignore me" 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 b513820b132..d385fa09a25 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 @@ -83,9 +83,7 @@ async def create_ap_true(self, create_parameters: "_models.PetAPTrue", **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -128,9 +126,7 @@ async def create_cat_ap_true(self, create_parameters: "_models.CatAPTrue", **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -173,9 +169,7 @@ async def create_ap_object(self, create_parameters: "_models.PetAPObject", **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -218,9 +212,7 @@ async def create_ap_string(self, create_parameters: "_models.PetAPString", **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -265,9 +257,7 @@ async def create_ap_in_properties( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -312,9 +302,7 @@ async def create_ap_in_properties_with_ap_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 138311e0865..fac50eb81b5 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 @@ -231,7 +231,7 @@ def create_ap_true( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -279,7 +279,7 @@ def create_cat_ap_true( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -327,7 +327,7 @@ def create_ap_object( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -375,7 +375,7 @@ def create_ap_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -423,7 +423,7 @@ def create_ap_in_properties( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -471,7 +471,7 @@ def create_ap_in_properties_with_ap_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_anything_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py index 73441ff43b0..f4f7936d7d5 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 @@ -54,9 +54,7 @@ async def get_object(self, **kwargs: Any) -> Any: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -99,9 +97,7 @@ async def put_object(self, input: Any, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -131,9 +127,7 @@ async def get_string(self, **kwargs: Any) -> Any: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -176,9 +170,7 @@ async def put_string(self, input: Any, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -208,9 +200,7 @@ async def get_array(self, **kwargs: Any) -> Any: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -253,9 +243,7 @@ async def put_array(self, input: Any, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 e92bba09ac6..f658b4dab6e 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 @@ -181,7 +181,7 @@ def get_object( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -229,7 +229,7 @@ def put_object( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -262,7 +262,7 @@ def get_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -310,7 +310,7 @@ def put_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -343,7 +343,7 @@ def get_array( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -391,7 +391,7 @@ def put_array( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py index 62a814ce1c3..cf3af058ae3 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 @@ -139,9 +139,7 @@ async def get_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -176,9 +174,7 @@ async def get_invalid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -213,9 +209,7 @@ async def get_empty(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -258,9 +252,7 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -291,9 +283,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -336,9 +326,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -369,9 +357,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -406,9 +392,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -443,9 +427,7 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -488,9 +470,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -521,9 +501,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -558,9 +536,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -595,9 +571,7 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -640,9 +614,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -673,9 +645,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -710,9 +680,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -747,9 +715,7 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -792,9 +758,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -825,9 +789,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -862,9 +824,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -899,9 +859,7 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -944,9 +902,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -977,9 +933,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1014,9 +968,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1051,9 +1003,7 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1096,9 +1046,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1129,9 +1077,7 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1174,9 +1120,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1207,9 +1151,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1252,9 +1194,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1285,9 +1225,7 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1322,9 +1260,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1360,9 +1296,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1406,9 +1340,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1439,9 +1371,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1476,9 +1406,7 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1521,9 +1449,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1554,9 +1480,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1591,9 +1515,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1629,9 +1551,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1675,9 +1595,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1708,9 +1626,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1745,9 +1661,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1783,9 +1697,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1829,9 +1741,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1862,9 +1772,7 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1907,9 +1815,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1941,9 +1847,7 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1987,9 +1891,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2020,9 +1922,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2058,9 +1958,7 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2095,9 +1993,7 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2132,9 +2028,7 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2170,9 +2064,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2208,9 +2100,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2246,9 +2136,7 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2292,9 +2180,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2325,9 +2211,7 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2362,9 +2246,7 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2399,9 +2281,7 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2436,9 +2316,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2473,9 +2351,7 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2518,9 +2394,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2551,9 +2425,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2588,9 +2460,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2626,9 +2496,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2664,9 +2532,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2702,9 +2568,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2748,9 +2612,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 e84d2e62228..7a4a6b7d572 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 @@ -1530,7 +1530,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1568,7 +1568,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1606,7 +1606,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1654,7 +1654,7 @@ def put_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1688,7 +1688,7 @@ def get_boolean_tfft( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1736,7 +1736,7 @@ def put_boolean_tfft( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1770,7 +1770,7 @@ def get_boolean_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1808,7 +1808,7 @@ def get_boolean_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1846,7 +1846,7 @@ def get_integer_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1894,7 +1894,7 @@ def put_integer_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1928,7 +1928,7 @@ def get_int_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1966,7 +1966,7 @@ def get_int_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2004,7 +2004,7 @@ def get_long_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2052,7 +2052,7 @@ def put_long_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2086,7 +2086,7 @@ def get_long_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2124,7 +2124,7 @@ def get_long_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2162,7 +2162,7 @@ def get_float_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2210,7 +2210,7 @@ def put_float_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2244,7 +2244,7 @@ def get_float_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2282,7 +2282,7 @@ def get_float_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2320,7 +2320,7 @@ def get_double_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2368,7 +2368,7 @@ def put_double_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2402,7 +2402,7 @@ def get_double_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2440,7 +2440,7 @@ def get_double_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2478,7 +2478,7 @@ def get_string_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2526,7 +2526,7 @@ def put_string_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2560,7 +2560,7 @@ def get_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2608,7 +2608,7 @@ def put_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2642,7 +2642,7 @@ def get_string_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2690,7 +2690,7 @@ def put_string_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2724,7 +2724,7 @@ def get_string_with_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2762,7 +2762,7 @@ def get_string_with_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2801,7 +2801,7 @@ def get_uuid_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2850,7 +2850,7 @@ def put_uuid_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2884,7 +2884,7 @@ def get_uuid_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2922,7 +2922,7 @@ def get_date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2970,7 +2970,7 @@ def put_date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3004,7 +3004,7 @@ def get_date_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3042,7 +3042,7 @@ def get_date_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3081,7 +3081,7 @@ def get_date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3130,7 +3130,7 @@ def put_date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3164,7 +3164,7 @@ def get_date_time_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3202,7 +3202,7 @@ def get_date_time_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3241,7 +3241,7 @@ def get_date_time_rfc1123_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3290,7 +3290,7 @@ def put_date_time_rfc1123_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3324,7 +3324,7 @@ def get_duration_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3372,7 +3372,7 @@ def put_duration_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3407,7 +3407,7 @@ def get_byte_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3456,7 +3456,7 @@ def put_byte_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3490,7 +3490,7 @@ def get_byte_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3529,7 +3529,7 @@ def get_base64_url( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3567,7 +3567,7 @@ def get_complex_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3605,7 +3605,7 @@ def get_complex_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3644,7 +3644,7 @@ def get_complex_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3683,7 +3683,7 @@ def get_complex_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3722,7 +3722,7 @@ def get_complex_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3771,7 +3771,7 @@ def put_complex_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3805,7 +3805,7 @@ def get_array_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3843,7 +3843,7 @@ def get_array_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3881,7 +3881,7 @@ def get_array_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3919,7 +3919,7 @@ def get_array_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3957,7 +3957,7 @@ def get_array_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4005,7 +4005,7 @@ def put_array_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4039,7 +4039,7 @@ def get_dictionary_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4077,7 +4077,7 @@ def get_dictionary_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4116,7 +4116,7 @@ def get_dictionary_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4155,7 +4155,7 @@ def get_dictionary_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4194,7 +4194,7 @@ def get_dictionary_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4243,7 +4243,7 @@ def put_dictionary_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py index a332bd2843d..cfa3bf3df1d 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 @@ -139,9 +139,7 @@ async def get_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -176,9 +174,7 @@ async def get_invalid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -213,9 +209,7 @@ async def get_empty(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -258,9 +252,7 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -291,9 +283,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -336,9 +326,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -369,9 +357,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -406,9 +392,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -443,9 +427,7 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -488,9 +470,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -521,9 +501,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -558,9 +536,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -595,9 +571,7 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -640,9 +614,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -673,9 +645,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -710,9 +680,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -747,9 +715,7 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -792,9 +758,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -825,9 +789,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -862,9 +824,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -899,9 +859,7 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -944,9 +902,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -977,9 +933,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1014,9 +968,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1051,9 +1003,7 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1096,9 +1046,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1129,9 +1077,7 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1174,9 +1120,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1207,9 +1151,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1252,9 +1194,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1285,9 +1225,7 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1322,9 +1260,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1360,9 +1296,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1406,9 +1340,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1439,9 +1371,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1476,9 +1406,7 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1521,9 +1449,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1554,9 +1480,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1591,9 +1515,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1629,9 +1551,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1675,9 +1595,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1708,9 +1626,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1745,9 +1661,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1783,9 +1697,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1829,9 +1741,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1862,9 +1772,7 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1907,9 +1815,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1941,9 +1847,7 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1987,9 +1891,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2020,9 +1922,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2058,9 +1958,7 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2095,9 +1993,7 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2132,9 +2028,7 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2170,9 +2064,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2208,9 +2100,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2246,9 +2136,7 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2292,9 +2180,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2325,9 +2211,7 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2362,9 +2246,7 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2399,9 +2281,7 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2436,9 +2316,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2473,9 +2351,7 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2518,9 +2394,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2551,9 +2425,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2588,9 +2460,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2626,9 +2496,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2664,9 +2532,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2702,9 +2568,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2748,9 +2612,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 30729e294a5..a3e3f6a6792 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 @@ -1530,7 +1530,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1568,7 +1568,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1606,7 +1606,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1654,7 +1654,7 @@ def put_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1688,7 +1688,7 @@ def get_boolean_tfft( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1736,7 +1736,7 @@ def put_boolean_tfft( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1770,7 +1770,7 @@ def get_boolean_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1808,7 +1808,7 @@ def get_boolean_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1846,7 +1846,7 @@ def get_integer_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1894,7 +1894,7 @@ def put_integer_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1928,7 +1928,7 @@ def get_int_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1966,7 +1966,7 @@ def get_int_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2004,7 +2004,7 @@ def get_long_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2052,7 +2052,7 @@ def put_long_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2086,7 +2086,7 @@ def get_long_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2124,7 +2124,7 @@ def get_long_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2162,7 +2162,7 @@ def get_float_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2210,7 +2210,7 @@ def put_float_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2244,7 +2244,7 @@ def get_float_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2282,7 +2282,7 @@ def get_float_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2320,7 +2320,7 @@ def get_double_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2368,7 +2368,7 @@ def put_double_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2402,7 +2402,7 @@ def get_double_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2440,7 +2440,7 @@ def get_double_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2478,7 +2478,7 @@ def get_string_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2526,7 +2526,7 @@ def put_string_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2560,7 +2560,7 @@ def get_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2608,7 +2608,7 @@ def put_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2642,7 +2642,7 @@ def get_string_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2690,7 +2690,7 @@ def put_string_enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2724,7 +2724,7 @@ def get_string_with_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2762,7 +2762,7 @@ def get_string_with_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2801,7 +2801,7 @@ def get_uuid_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2850,7 +2850,7 @@ def put_uuid_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2884,7 +2884,7 @@ def get_uuid_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2922,7 +2922,7 @@ def get_date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2970,7 +2970,7 @@ def put_date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3004,7 +3004,7 @@ def get_date_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3042,7 +3042,7 @@ def get_date_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3081,7 +3081,7 @@ def get_date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3130,7 +3130,7 @@ def put_date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3164,7 +3164,7 @@ def get_date_time_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3202,7 +3202,7 @@ def get_date_time_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3241,7 +3241,7 @@ def get_date_time_rfc1123_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3290,7 +3290,7 @@ def put_date_time_rfc1123_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3324,7 +3324,7 @@ def get_duration_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3372,7 +3372,7 @@ def put_duration_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3407,7 +3407,7 @@ def get_byte_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3456,7 +3456,7 @@ def put_byte_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3490,7 +3490,7 @@ def get_byte_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3529,7 +3529,7 @@ def get_base64_url( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3567,7 +3567,7 @@ def get_complex_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3605,7 +3605,7 @@ def get_complex_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3644,7 +3644,7 @@ def get_complex_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3683,7 +3683,7 @@ def get_complex_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3722,7 +3722,7 @@ def get_complex_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3771,7 +3771,7 @@ def put_complex_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3805,7 +3805,7 @@ def get_array_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3843,7 +3843,7 @@ def get_array_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3881,7 +3881,7 @@ def get_array_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3919,7 +3919,7 @@ def get_array_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3957,7 +3957,7 @@ def get_array_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4005,7 +4005,7 @@ def put_array_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4039,7 +4039,7 @@ def get_dictionary_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4077,7 +4077,7 @@ def get_dictionary_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4116,7 +4116,7 @@ def get_dictionary_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4155,7 +4155,7 @@ def get_dictionary_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4194,7 +4194,7 @@ def get_dictionary_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4243,7 +4243,7 @@ def put_dictionary_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/operations/_array_operations.py index e83a8179536..62dcb399f73 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 @@ -139,9 +139,7 @@ async def get_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -176,9 +174,7 @@ async def get_invalid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -213,9 +209,7 @@ async def get_empty(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -258,9 +252,7 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -291,9 +283,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -336,9 +326,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -369,9 +357,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -406,9 +392,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -443,9 +427,7 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -488,9 +470,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -521,9 +501,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -558,9 +536,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -595,9 +571,7 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -640,9 +614,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -673,9 +645,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -710,9 +680,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -747,9 +715,7 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -792,9 +758,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -825,9 +789,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -862,9 +824,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -899,9 +859,7 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -944,9 +902,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -977,9 +933,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1014,9 +968,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1051,9 +1003,7 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1096,9 +1046,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1129,9 +1077,7 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1174,9 +1120,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1207,9 +1151,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1252,9 +1194,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1285,9 +1225,7 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1322,9 +1260,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1360,9 +1296,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1406,9 +1340,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1439,9 +1371,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1476,9 +1406,7 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1521,9 +1449,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1554,9 +1480,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1591,9 +1515,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1629,9 +1551,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1675,9 +1595,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1708,9 +1626,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1745,9 +1661,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1783,9 +1697,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1829,9 +1741,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1862,9 +1772,7 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1907,9 +1815,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1941,9 +1847,7 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1987,9 +1891,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2020,9 +1922,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2058,9 +1958,7 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2095,9 +1993,7 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2132,9 +2028,7 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2170,9 +2064,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2208,9 +2100,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2246,9 +2136,7 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2292,9 +2180,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2325,9 +2211,7 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2362,9 +2246,7 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2399,9 +2281,7 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2436,9 +2316,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2473,9 +2351,7 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2518,9 +2394,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2551,9 +2425,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2588,9 +2460,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2626,9 +2496,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2664,9 +2532,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2702,9 +2568,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2748,9 +2612,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 deleted file mode 100644 index 2bedb87538a..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations.py +++ /dev/null @@ -1,4257 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import datetime -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 -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union - - T = TypeVar("T") - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -# fmt: off - -def build_get_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/null') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_invalid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/invalid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/empty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/empty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_boolean_tfft_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_boolean_tfft_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/tfft') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_boolean_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.null.false') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_boolean_invalid_string_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/boolean/true.boolean.false') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_integer_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_integer_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.-1.3.300') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_int_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.null.zero') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_int_invalid_string_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/integer/1.integer.0') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_long_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_long_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.-1.3.300') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_long_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.null.zero') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_long_invalid_string_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/long/1.integer.0') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_float_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_float_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0--0.01-1.2e20') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_float_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/0.0-null-1.2e20') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_float_invalid_string_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/float/1.number.0') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_double_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_double_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0--0.01-1.2e20') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_double_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/0.0-null-1.2e20') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_double_invalid_string_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/double/1.number.0') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_string_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_string_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo1.foo2.foo3') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_enum_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_enum_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/enum/foo1.foo2.foo3') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_string_enum_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_string_enum_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/string-enum/foo1.foo2.foo3') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_string_with_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.null.foo2') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_string_with_invalid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/string/foo.123.foo2') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_uuid_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_uuid_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_uuid_invalid_chars_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/uuid/invalidchars') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_date_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_date_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_date_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidnull') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_date_invalid_chars_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date/invalidchars') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_date_time_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_date_time_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_date_time_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidnull') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_date_time_invalid_chars_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time/invalidchars') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_date_time_rfc1123_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_date_time_rfc1123_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/date-time-rfc1123/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_duration_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_duration_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/duration/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_byte_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_byte_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_byte_invalid_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/byte/invalidnull') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_base64_url_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/prim/base64url/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_complex_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/complex/null') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_complex_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/complex/empty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_complex_item_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemnull') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_complex_item_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/complex/itemempty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_complex_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_complex_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/complex/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_array_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/array/null') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_array_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/array/empty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_array_item_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/array/itemnull') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_array_item_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/array/itemempty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_array_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_array_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/array/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_dictionary_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/null') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_dictionary_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/empty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_dictionary_item_null_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemnull') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_dictionary_item_empty_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/itemempty') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_get_dictionary_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="GET", - url=url, - headers=header_parameters, - **kwargs - ) - - -def build_put_dictionary_valid_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", '/array/dictionary/valid') - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - - return HttpRequest( - method="PUT", - url=url, - headers=header_parameters, - **kwargs - ) - -# fmt: on -class ArrayOperations(object): - """ArrayOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodyarraywithpythonthreeoperationfiles.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get null array value. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of int, or the result of cls(response) - :rtype: list[int] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_null_request( - template_url=self.get_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[int]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/array/null"} # type: ignore - - @distributed_trace - def get_invalid( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get invalid array [1, 2, 3. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of int, or the result of cls(response) - :rtype: list[int] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_invalid_request( - template_url=self.get_invalid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[int]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_invalid.metadata = {"url": "/array/invalid"} # type: ignore - - @distributed_trace - def get_empty( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get empty array value []. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of int, or the result of cls(response) - :rtype: list[int] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_empty_request( - template_url=self.get_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[int]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/array/empty"} # type: ignore - - @distributed_trace - def put_empty( - self, - array_body, # type: List[str] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value empty []. - - :param array_body: - :type array_body: list[str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[str]") - - request = build_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/array/empty"} # type: ignore - - @distributed_trace - def get_boolean_tfft( - self, **kwargs # type: Any - ): - # type: (...) -> List[bool] - """Get boolean array value [true, false, false, true]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of bool, or the result of cls(response) - :rtype: list[bool] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[bool]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_boolean_tfft_request( - template_url=self.get_boolean_tfft.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[bool]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_boolean_tfft.metadata = {"url": "/array/prim/boolean/tfft"} # type: ignore - - @distributed_trace - def put_boolean_tfft( - self, - array_body, # type: List[bool] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value empty [true, false, false, true]. - - :param array_body: - :type array_body: list[bool] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[bool]") - - request = build_put_boolean_tfft_request( - content_type=content_type, - json=json, - template_url=self.put_boolean_tfft.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_boolean_tfft.metadata = {"url": "/array/prim/boolean/tfft"} # type: ignore - - @distributed_trace - def get_boolean_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[bool] - """Get boolean array value [true, null, false]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of bool, or the result of cls(response) - :rtype: list[bool] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[bool]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_boolean_invalid_null_request( - template_url=self.get_boolean_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[bool]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_boolean_invalid_null.metadata = {"url": "/array/prim/boolean/true.null.false"} # type: ignore - - @distributed_trace - def get_boolean_invalid_string( - self, **kwargs # type: Any - ): - # type: (...) -> List[bool] - """Get boolean array value [true, 'boolean', false]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of bool, or the result of cls(response) - :rtype: list[bool] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[bool]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_boolean_invalid_string_request( - template_url=self.get_boolean_invalid_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[bool]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_boolean_invalid_string.metadata = {"url": "/array/prim/boolean/true.boolean.false"} # type: ignore - - @distributed_trace - def get_integer_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get integer array value [1, -1, 3, 300]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of int, or the result of cls(response) - :rtype: list[int] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_integer_valid_request( - template_url=self.get_integer_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[int]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_integer_valid.metadata = {"url": "/array/prim/integer/1.-1.3.300"} # type: ignore - - @distributed_trace - def put_integer_valid( - self, - array_body, # type: List[int] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value empty [1, -1, 3, 300]. - - :param array_body: - :type array_body: list[int] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[int]") - - request = build_put_integer_valid_request( - content_type=content_type, - json=json, - template_url=self.put_integer_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_integer_valid.metadata = {"url": "/array/prim/integer/1.-1.3.300"} # type: ignore - - @distributed_trace - def get_int_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get integer array value [1, null, 0]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of int, or the result of cls(response) - :rtype: list[int] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_int_invalid_null_request( - template_url=self.get_int_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[int]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_int_invalid_null.metadata = {"url": "/array/prim/integer/1.null.zero"} # type: ignore - - @distributed_trace - def get_int_invalid_string( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get integer array value [1, 'integer', 0]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of int, or the result of cls(response) - :rtype: list[int] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_int_invalid_string_request( - template_url=self.get_int_invalid_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[int]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_int_invalid_string.metadata = {"url": "/array/prim/integer/1.integer.0"} # type: ignore - - @distributed_trace - def get_long_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get integer array value [1, -1, 3, 300]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of long, or the result of cls(response) - :rtype: list[long] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_long_valid_request( - template_url=self.get_long_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[long]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_long_valid.metadata = {"url": "/array/prim/long/1.-1.3.300"} # type: ignore - - @distributed_trace - def put_long_valid( - self, - array_body, # type: List[int] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value empty [1, -1, 3, 300]. - - :param array_body: - :type array_body: list[long] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[long]") - - request = build_put_long_valid_request( - content_type=content_type, - json=json, - template_url=self.put_long_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_long_valid.metadata = {"url": "/array/prim/long/1.-1.3.300"} # type: ignore - - @distributed_trace - def get_long_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get long array value [1, null, 0]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of long, or the result of cls(response) - :rtype: list[long] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_long_invalid_null_request( - template_url=self.get_long_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[long]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_long_invalid_null.metadata = {"url": "/array/prim/long/1.null.zero"} # type: ignore - - @distributed_trace - def get_long_invalid_string( - self, **kwargs # type: Any - ): - # type: (...) -> List[int] - """Get long array value [1, 'integer', 0]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of long, or the result of cls(response) - :rtype: list[long] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[int]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_long_invalid_string_request( - template_url=self.get_long_invalid_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[long]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_long_invalid_string.metadata = {"url": "/array/prim/long/1.integer.0"} # type: ignore - - @distributed_trace - def get_float_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[float] - """Get float array value [0, -0.01, 1.2e20]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of float, or the result of cls(response) - :rtype: list[float] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[float]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_float_valid_request( - template_url=self.get_float_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[float]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_float_valid.metadata = {"url": "/array/prim/float/0--0.01-1.2e20"} # type: ignore - - @distributed_trace - def put_float_valid( - self, - array_body, # type: List[float] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: - :type array_body: list[float] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[float]") - - request = build_put_float_valid_request( - content_type=content_type, - json=json, - template_url=self.put_float_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_float_valid.metadata = {"url": "/array/prim/float/0--0.01-1.2e20"} # type: ignore - - @distributed_trace - def get_float_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[float] - """Get float array value [0.0, null, -1.2e20]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of float, or the result of cls(response) - :rtype: list[float] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[float]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_float_invalid_null_request( - template_url=self.get_float_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[float]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_float_invalid_null.metadata = {"url": "/array/prim/float/0.0-null-1.2e20"} # type: ignore - - @distributed_trace - def get_float_invalid_string( - self, **kwargs # type: Any - ): - # type: (...) -> List[float] - """Get boolean array value [1.0, 'number', 0.0]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of float, or the result of cls(response) - :rtype: list[float] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[float]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_float_invalid_string_request( - template_url=self.get_float_invalid_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[float]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_float_invalid_string.metadata = {"url": "/array/prim/float/1.number.0"} # type: ignore - - @distributed_trace - def get_double_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[float] - """Get float array value [0, -0.01, 1.2e20]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of float, or the result of cls(response) - :rtype: list[float] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[float]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_double_valid_request( - template_url=self.get_double_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[float]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_double_valid.metadata = {"url": "/array/prim/double/0--0.01-1.2e20"} # type: ignore - - @distributed_trace - def put_double_valid( - self, - array_body, # type: List[float] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: - :type array_body: list[float] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[float]") - - request = build_put_double_valid_request( - content_type=content_type, - json=json, - template_url=self.put_double_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_double_valid.metadata = {"url": "/array/prim/double/0--0.01-1.2e20"} # type: ignore - - @distributed_trace - def get_double_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[float] - """Get float array value [0.0, null, -1.2e20]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of float, or the result of cls(response) - :rtype: list[float] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[float]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_double_invalid_null_request( - template_url=self.get_double_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[float]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_double_invalid_null.metadata = {"url": "/array/prim/double/0.0-null-1.2e20"} # type: ignore - - @distributed_trace - def get_double_invalid_string( - self, **kwargs # type: Any - ): - # type: (...) -> List[float] - """Get boolean array value [1.0, 'number', 0.0]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of float, or the result of cls(response) - :rtype: list[float] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[float]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_double_invalid_string_request( - template_url=self.get_double_invalid_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[float]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_double_invalid_string.metadata = {"url": "/array/prim/double/1.number.0"} # type: ignore - - @distributed_trace - def get_string_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[str] - """Get string array value ['foo1', 'foo2', 'foo3']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of str, or the result of cls(response) - :rtype: list[str] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[str]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_string_valid_request( - template_url=self.get_string_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[str]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string_valid.metadata = {"url": "/array/prim/string/foo1.foo2.foo3"} # type: ignore - - @distributed_trace - def put_string_valid( - self, - array_body, # type: List[str] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: - :type array_body: list[str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[str]") - - request = build_put_string_valid_request( - content_type=content_type, - json=json, - template_url=self.put_string_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_string_valid.metadata = {"url": "/array/prim/string/foo1.foo2.foo3"} # type: ignore - - @distributed_trace - def get_enum_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[Union[str, "_models.FooEnum"]] - """Get enum array value ['foo1', 'foo2', 'foo3']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of FooEnum, or the result of cls(response) - :rtype: list[str or ~bodyarraywithpythonthreeoperationfiles.models.FooEnum] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[Union[str, "_models.FooEnum"]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_enum_valid_request( - template_url=self.get_enum_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[str]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_enum_valid.metadata = {"url": "/array/prim/enum/foo1.foo2.foo3"} # type: ignore - - @distributed_trace - def put_enum_valid( - self, - array_body, # type: List[Union[str, "_models.FooEnum"]] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: - :type array_body: list[str or ~bodyarraywithpythonthreeoperationfiles.models.FooEnum] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[str]") - - request = build_put_enum_valid_request( - content_type=content_type, - json=json, - template_url=self.put_enum_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_enum_valid.metadata = {"url": "/array/prim/enum/foo1.foo2.foo3"} # type: ignore - - @distributed_trace - def get_string_enum_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[Union[str, "_models.Enum0"]] - """Get enum array value ['foo1', 'foo2', 'foo3']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of Enum0, or the result of cls(response) - :rtype: list[str or ~bodyarraywithpythonthreeoperationfiles.models.Enum0] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[Union[str, "_models.Enum0"]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_string_enum_valid_request( - template_url=self.get_string_enum_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[str]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string_enum_valid.metadata = {"url": "/array/prim/string-enum/foo1.foo2.foo3"} # type: ignore - - @distributed_trace - def put_string_enum_valid( - self, - array_body, # type: List[Union[str, "_models.Enum1"]] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: - :type array_body: list[str or ~bodyarraywithpythonthreeoperationfiles.models.Enum1] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[str]") - - request = build_put_string_enum_valid_request( - content_type=content_type, - json=json, - template_url=self.put_string_enum_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_string_enum_valid.metadata = {"url": "/array/prim/string-enum/foo1.foo2.foo3"} # type: ignore - - @distributed_trace - def get_string_with_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[str] - """Get string array value ['foo', null, 'foo2']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of str, or the result of cls(response) - :rtype: list[str] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[str]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_string_with_null_request( - template_url=self.get_string_with_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[str]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string_with_null.metadata = {"url": "/array/prim/string/foo.null.foo2"} # type: ignore - - @distributed_trace - def get_string_with_invalid( - self, **kwargs # type: Any - ): - # type: (...) -> List[str] - """Get string array value ['foo', 123, 'foo2']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of str, or the result of cls(response) - :rtype: list[str] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[str]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_string_with_invalid_request( - template_url=self.get_string_with_invalid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[str]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string_with_invalid.metadata = {"url": "/array/prim/string/foo.123.foo2"} # type: ignore - - @distributed_trace - def get_uuid_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[str] - """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of str, or the result of cls(response) - :rtype: list[str] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[str]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_uuid_valid_request( - template_url=self.get_uuid_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[str]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_uuid_valid.metadata = {"url": "/array/prim/uuid/valid"} # type: ignore - - @distributed_trace - def put_uuid_valid( - self, - array_body, # type: List[str] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :param array_body: - :type array_body: list[str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[str]") - - request = build_put_uuid_valid_request( - content_type=content_type, - json=json, - template_url=self.put_uuid_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_uuid_valid.metadata = {"url": "/array/prim/uuid/valid"} # type: ignore - - @distributed_trace - def get_uuid_invalid_chars( - self, **kwargs # type: Any - ): - # type: (...) -> List[str] - """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of str, or the result of cls(response) - :rtype: list[str] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[str]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_uuid_invalid_chars_request( - template_url=self.get_uuid_invalid_chars.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[str]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_uuid_invalid_chars.metadata = {"url": "/array/prim/uuid/invalidchars"} # type: ignore - - @distributed_trace - def get_date_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.date] - """Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of date, or the result of cls(response) - :rtype: list[~datetime.date] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.date]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_valid_request( - template_url=self.get_date_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[date]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_valid.metadata = {"url": "/array/prim/date/valid"} # type: ignore - - @distributed_trace - def put_date_valid( - self, - array_body, # type: List[datetime.date] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :param array_body: - :type array_body: list[~datetime.date] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[date]") - - request = build_put_date_valid_request( - content_type=content_type, - json=json, - template_url=self.put_date_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_valid.metadata = {"url": "/array/prim/date/valid"} # type: ignore - - @distributed_trace - def get_date_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.date] - """Get date array value ['2012-01-01', null, '1776-07-04']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of date, or the result of cls(response) - :rtype: list[~datetime.date] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.date]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_invalid_null_request( - template_url=self.get_date_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[date]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_invalid_null.metadata = {"url": "/array/prim/date/invalidnull"} # type: ignore - - @distributed_trace - def get_date_invalid_chars( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.date] - """Get date array value ['2011-03-22', 'date']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of date, or the result of cls(response) - :rtype: list[~datetime.date] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.date]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_invalid_chars_request( - template_url=self.get_date_invalid_chars.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[date]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_invalid_chars.metadata = {"url": "/array/prim/date/invalidchars"} # type: ignore - - @distributed_trace - def get_date_time_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.datetime] - """Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of datetime, or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.datetime]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_valid_request( - template_url=self.get_date_time_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[iso-8601]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_valid.metadata = {"url": "/array/prim/date-time/valid"} # type: ignore - - @distributed_trace - def put_date_time_valid( - self, - array_body, # type: List[datetime.datetime] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :param array_body: - :type array_body: list[~datetime.datetime] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[iso-8601]") - - request = build_put_date_time_valid_request( - content_type=content_type, - json=json, - template_url=self.put_date_time_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time_valid.metadata = {"url": "/array/prim/date-time/valid"} # type: ignore - - @distributed_trace - def get_date_time_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.datetime] - """Get date array value ['2000-12-01t00:00:01z', null]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of datetime, or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.datetime]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_invalid_null_request( - template_url=self.get_date_time_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[iso-8601]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_invalid_null.metadata = {"url": "/array/prim/date-time/invalidnull"} # type: ignore - - @distributed_trace - def get_date_time_invalid_chars( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.datetime] - """Get date array value ['2000-12-01t00:00:01z', 'date-time']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of datetime, or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.datetime]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_invalid_chars_request( - template_url=self.get_date_time_invalid_chars.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[iso-8601]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_invalid_chars.metadata = {"url": "/array/prim/date-time/invalidchars"} # type: ignore - - @distributed_trace - def get_date_time_rfc1123_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.datetime] - """Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', - 'Wed, 12 Oct 1492 10:15:01 GMT']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of datetime, or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.datetime]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_rfc1123_valid_request( - template_url=self.get_date_time_rfc1123_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[rfc-1123]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_rfc1123_valid.metadata = {"url": "/array/prim/date-time-rfc1123/valid"} # type: ignore - - @distributed_trace - def put_date_time_rfc1123_valid( - self, - array_body, # type: List[datetime.datetime] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 - Oct 1492 10:15:01 GMT']. - - :param array_body: - :type array_body: list[~datetime.datetime] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[rfc-1123]") - - request = build_put_date_time_rfc1123_valid_request( - content_type=content_type, - json=json, - template_url=self.put_date_time_rfc1123_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time_rfc1123_valid.metadata = {"url": "/array/prim/date-time-rfc1123/valid"} # type: ignore - - @distributed_trace - def get_duration_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[datetime.timedelta] - """Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of timedelta, or the result of cls(response) - :rtype: list[~datetime.timedelta] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[datetime.timedelta]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_duration_valid_request( - template_url=self.get_duration_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[duration]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_duration_valid.metadata = {"url": "/array/prim/duration/valid"} # type: ignore - - @distributed_trace - def put_duration_valid( - self, - array_body, # type: List[datetime.timedelta] - **kwargs # type: Any - ): - # type: (...) -> None - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :param array_body: - :type array_body: list[~datetime.timedelta] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[duration]") - - request = build_put_duration_valid_request( - content_type=content_type, - json=json, - template_url=self.put_duration_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_duration_valid.metadata = {"url": "/array/prim/duration/valid"} # type: ignore - - @distributed_trace - def get_byte_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[bytearray] - """Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded - in base64. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of bytearray, or the result of cls(response) - :rtype: list[bytearray] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[bytearray]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_byte_valid_request( - template_url=self.get_byte_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[bytearray]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_byte_valid.metadata = {"url": "/array/prim/byte/valid"} # type: ignore - - @distributed_trace - def put_byte_valid( - self, - array_body, # type: List[bytearray] - **kwargs # type: Any - ): - # type: (...) -> None - """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each - elementencoded in base 64. - - :param array_body: - :type array_body: list[bytearray] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[bytearray]") - - request = build_put_byte_valid_request( - content_type=content_type, - json=json, - template_url=self.put_byte_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_byte_valid.metadata = {"url": "/array/prim/byte/valid"} # type: ignore - - @distributed_trace - def get_byte_invalid_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[bytearray] - """Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of bytearray, or the result of cls(response) - :rtype: list[bytearray] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[bytearray]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_byte_invalid_null_request( - template_url=self.get_byte_invalid_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[bytearray]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_byte_invalid_null.metadata = {"url": "/array/prim/byte/invalidnull"} # type: ignore - - @distributed_trace - def get_base64_url( - self, **kwargs # type: Any - ): - # type: (...) -> List[bytes] - """Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with - the items base64url encoded. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of bytes, or the result of cls(response) - :rtype: list[bytes] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[bytes]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_base64_url_request( - template_url=self.get_base64_url.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[base64]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_base64_url.metadata = {"url": "/array/prim/base64url/valid"} # type: ignore - - @distributed_trace - def get_complex_null( - self, **kwargs # type: Any - ): - # type: (...) -> List["_models.Product"] - """Get array of complex type null value. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of Product, or the result of cls(response) - :rtype: list[~bodyarraywithpythonthreeoperationfiles.models.Product] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List["_models.Product"]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_complex_null_request( - template_url=self.get_complex_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[Product]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complex_null.metadata = {"url": "/array/complex/null"} # type: ignore - - @distributed_trace - def get_complex_empty( - self, **kwargs # type: Any - ): - # type: (...) -> List["_models.Product"] - """Get empty array of complex type []. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of Product, or the result of cls(response) - :rtype: list[~bodyarraywithpythonthreeoperationfiles.models.Product] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List["_models.Product"]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_complex_empty_request( - template_url=self.get_complex_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[Product]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complex_empty.metadata = {"url": "/array/complex/empty"} # type: ignore - - @distributed_trace - def get_complex_item_null( - self, **kwargs # type: Any - ): - # type: (...) -> List["_models.Product"] - """Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, - 'string': '6'}]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of Product, or the result of cls(response) - :rtype: list[~bodyarraywithpythonthreeoperationfiles.models.Product] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List["_models.Product"]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_complex_item_null_request( - template_url=self.get_complex_item_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[Product]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complex_item_null.metadata = {"url": "/array/complex/itemnull"} # type: ignore - - @distributed_trace - def get_complex_item_empty( - self, **kwargs # type: Any - ): - # type: (...) -> List["_models.Product"] - """Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, - 'string': '6'}]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of Product, or the result of cls(response) - :rtype: list[~bodyarraywithpythonthreeoperationfiles.models.Product] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List["_models.Product"]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_complex_item_empty_request( - template_url=self.get_complex_item_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[Product]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complex_item_empty.metadata = {"url": "/array/complex/itemempty"} # type: ignore - - @distributed_trace - def get_complex_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List["_models.Product"] - """Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, - {'integer': 5, 'string': '6'}]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of Product, or the result of cls(response) - :rtype: list[~bodyarraywithpythonthreeoperationfiles.models.Product] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List["_models.Product"]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_complex_valid_request( - template_url=self.get_complex_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[Product]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complex_valid.metadata = {"url": "/array/complex/valid"} # type: ignore - - @distributed_trace - def put_complex_valid( - self, - array_body, # type: List["_models.Product"] - **kwargs # type: Any - ): - # type: (...) -> None - """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, - 'string': '4'}, {'integer': 5, 'string': '6'}]. - - :param array_body: - :type array_body: list[~bodyarraywithpythonthreeoperationfiles.models.Product] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[Product]") - - request = build_put_complex_valid_request( - content_type=content_type, - json=json, - template_url=self.put_complex_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_complex_valid.metadata = {"url": "/array/complex/valid"} # type: ignore - - @distributed_trace - def get_array_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[List[str]] - """Get a null array. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of list of str, or the result of cls(response) - :rtype: list[list[str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[List[str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_array_null_request( - template_url=self.get_array_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[[str]]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_array_null.metadata = {"url": "/array/array/null"} # type: ignore - - @distributed_trace - def get_array_empty( - self, **kwargs # type: Any - ): - # type: (...) -> List[List[str]] - """Get an empty array []. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of list of str, or the result of cls(response) - :rtype: list[list[str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[List[str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_array_empty_request( - template_url=self.get_array_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[[str]]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_array_empty.metadata = {"url": "/array/array/empty"} # type: ignore - - @distributed_trace - def get_array_item_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[List[str]] - """Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of list of str, or the result of cls(response) - :rtype: list[list[str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[List[str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_array_item_null_request( - template_url=self.get_array_item_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[[str]]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_array_item_null.metadata = {"url": "/array/array/itemnull"} # type: ignore - - @distributed_trace - def get_array_item_empty( - self, **kwargs # type: Any - ): - # type: (...) -> List[List[str]] - """Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of list of str, or the result of cls(response) - :rtype: list[list[str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[List[str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_array_item_empty_request( - template_url=self.get_array_item_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[[str]]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_array_item_empty.metadata = {"url": "/array/array/itemempty"} # type: ignore - - @distributed_trace - def get_array_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[List[str]] - """Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of list of str, or the result of cls(response) - :rtype: list[list[str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[List[str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_array_valid_request( - template_url=self.get_array_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[[str]]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_array_valid.metadata = {"url": "/array/array/valid"} # type: ignore - - @distributed_trace - def put_array_valid( - self, - array_body, # type: List[List[str]] - **kwargs # type: Any - ): - # type: (...) -> None - """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :param array_body: - :type array_body: list[list[str]] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[[str]]") - - request = build_put_array_valid_request( - content_type=content_type, - json=json, - template_url=self.put_array_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_array_valid.metadata = {"url": "/array/array/valid"} # type: ignore - - @distributed_trace - def get_dictionary_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[Dict[str, str]] - """Get an array of Dictionaries with value null. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of dict mapping str to str, or the result of cls(response) - :rtype: list[dict[str, str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[Dict[str, str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_dictionary_null_request( - template_url=self.get_dictionary_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[{str}]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dictionary_null.metadata = {"url": "/array/dictionary/null"} # type: ignore - - @distributed_trace - def get_dictionary_empty( - self, **kwargs # type: Any - ): - # type: (...) -> List[Dict[str, str]] - """Get an array of Dictionaries of type with value []. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of dict mapping str to str, or the result of cls(response) - :rtype: list[dict[str, str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[Dict[str, str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_dictionary_empty_request( - template_url=self.get_dictionary_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[{str}]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dictionary_empty.metadata = {"url": "/array/dictionary/empty"} # type: ignore - - @distributed_trace - def get_dictionary_item_null( - self, **kwargs # type: Any - ): - # type: (...) -> List[Dict[str, str]] - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of dict mapping str to str, or the result of cls(response) - :rtype: list[dict[str, str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[Dict[str, str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_dictionary_item_null_request( - template_url=self.get_dictionary_item_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[{str}]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dictionary_item_null.metadata = {"url": "/array/dictionary/itemnull"} # type: ignore - - @distributed_trace - def get_dictionary_item_empty( - self, **kwargs # type: Any - ): - # type: (...) -> List[Dict[str, str]] - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of dict mapping str to str, or the result of cls(response) - :rtype: list[dict[str, str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[Dict[str, str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_dictionary_item_empty_request( - template_url=self.get_dictionary_item_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[{str}]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dictionary_item_empty.metadata = {"url": "/array/dictionary/itemempty"} # type: ignore - - @distributed_trace - def get_dictionary_valid( - self, **kwargs # type: Any - ): - # type: (...) -> List[Dict[str, str]] - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: list of dict mapping str to str, or the result of cls(response) - :rtype: list[dict[str, str]] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[List[Dict[str, str]]] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_dictionary_valid_request( - template_url=self.get_dictionary_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("[{str}]", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dictionary_valid.metadata = {"url": "/array/dictionary/valid"} # type: ignore - - @distributed_trace - def put_dictionary_valid( - self, - array_body, # type: List[Dict[str, str]] - **kwargs # type: Any - ): - # type: (...) -> None - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :param array_body: - :type array_body: list[dict[str, str]] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(array_body, "[{str}]") - - request = build_put_dictionary_valid_request( - content_type=content_type, - json=json, - template_url=self.put_dictionary_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_dictionary_valid.metadata = {"url": "/array/dictionary/valid"} # type: ignore 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 c5534a07cc1..5b22937df57 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 @@ -971,7 +971,7 @@ def get_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1006,7 +1006,7 @@ def get_invalid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1041,7 +1041,7 @@ def get_empty(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1084,7 +1084,7 @@ def put_empty(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1115,7 +1115,7 @@ def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1158,7 +1158,7 @@ def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1189,7 +1189,7 @@ def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1224,7 +1224,7 @@ def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1259,7 +1259,7 @@ def get_integer_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1302,7 +1302,7 @@ def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1333,7 +1333,7 @@ def get_int_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1368,7 +1368,7 @@ def get_int_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1403,7 +1403,7 @@ def get_long_valid(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1446,7 +1446,7 @@ def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1477,7 +1477,7 @@ def get_long_invalid_null(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1512,7 +1512,7 @@ def get_long_invalid_string(self, **kwargs: Any) -> List[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1547,7 +1547,7 @@ def get_float_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1590,7 +1590,7 @@ def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1621,7 +1621,7 @@ def get_float_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1656,7 +1656,7 @@ def get_float_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1691,7 +1691,7 @@ def get_double_valid(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1734,7 +1734,7 @@ def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1765,7 +1765,7 @@ def get_double_invalid_null(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1800,7 +1800,7 @@ def get_double_invalid_string(self, **kwargs: Any) -> List[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1835,7 +1835,7 @@ def get_string_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1878,7 +1878,7 @@ def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1909,7 +1909,7 @@ def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnum"]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1952,7 +1952,7 @@ def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], **kwar )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1983,7 +1983,7 @@ def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.Enum0 )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2026,7 +2026,7 @@ def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1"]], * )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2057,7 +2057,7 @@ def get_string_with_null(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2092,7 +2092,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2128,7 +2128,7 @@ def get_uuid_valid(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2172,7 +2172,7 @@ def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2203,7 +2203,7 @@ def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2238,7 +2238,7 @@ def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2281,7 +2281,7 @@ def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2312,7 +2312,7 @@ def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2347,7 +2347,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2383,7 +2383,7 @@ def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2427,7 +2427,7 @@ def put_date_time_valid(self, array_body: List[datetime.datetime], **kwargs: Any )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2458,7 +2458,7 @@ def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2493,7 +2493,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2529,7 +2529,7 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2573,7 +2573,7 @@ def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2604,7 +2604,7 @@ def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2647,7 +2647,7 @@ def put_duration_valid(self, array_body: List[datetime.timedelta], **kwargs: Any )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2679,7 +2679,7 @@ def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2723,7 +2723,7 @@ def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2754,7 +2754,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2790,7 +2790,7 @@ def get_base64_url(self, **kwargs: Any) -> List[bytes]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2825,7 +2825,7 @@ def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2860,7 +2860,7 @@ def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2896,7 +2896,7 @@ def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2932,7 +2932,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2968,7 +2968,7 @@ def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3012,7 +3012,7 @@ def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3043,7 +3043,7 @@ def get_array_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3078,7 +3078,7 @@ def get_array_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3113,7 +3113,7 @@ def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3148,7 +3148,7 @@ def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3183,7 +3183,7 @@ def get_array_valid(self, **kwargs: Any) -> List[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3226,7 +3226,7 @@ def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3257,7 +3257,7 @@ def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3292,7 +3292,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3328,7 +3328,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3364,7 +3364,7 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3400,7 +3400,7 @@ def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3444,7 +3444,7 @@ def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/setup.py index e073fa61f08..5a143aa43bf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] setup( name=NAME, 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 065b6292483..526338163ec 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 @@ -75,9 +75,7 @@ async def get_true(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -115,9 +113,7 @@ async def put_true(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,9 +144,7 @@ async def get_false(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -188,9 +182,7 @@ async def put_false(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -221,9 +213,7 @@ async def get_null(self, **kwargs: Any) -> Optional[bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -258,9 +248,7 @@ async def get_invalid(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 c0c61c8aaf4..fb21fff1fbb 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 @@ -209,7 +209,7 @@ def get_true( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -250,7 +250,7 @@ def put_true( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -284,7 +284,7 @@ def get_false( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -325,7 +325,7 @@ def put_false( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -359,7 +359,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -397,7 +397,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py index 387209db0e9..d3647b12559 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 @@ -74,9 +74,7 @@ async def get_null(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,9 +109,7 @@ async def get_empty(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,9 +144,7 @@ async def get_non_ascii(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -193,9 +187,7 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -226,9 +218,7 @@ async def get_invalid(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 cee75957cac..0de67ff308d 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 @@ -181,7 +181,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -219,7 +219,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -257,7 +257,7 @@ def get_non_ascii( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -305,7 +305,7 @@ def put_non_ascii( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -339,7 +339,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py index 0cad8f7e210..df1df7d43fa 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 @@ -74,9 +74,7 @@ async def get_null(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,9 +109,7 @@ async def get_empty(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,9 +144,7 @@ async def get_non_ascii(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -193,9 +187,7 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -226,9 +218,7 @@ async def get_invalid(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 f6bfe81f587..0b667afa4e2 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 @@ -181,7 +181,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -219,7 +219,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -257,7 +257,7 @@ def get_non_ascii( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -305,7 +305,7 @@ def put_non_ascii( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -339,7 +339,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py index 930426074b3..0139765b8b8 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 @@ -74,9 +74,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -120,9 +118,7 @@ async def put_valid(self, array: Optional[List[str]] = None, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -153,9 +149,7 @@ async def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -199,9 +193,7 @@ async def put_empty(self, array: Optional[List[str]] = None, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -232,9 +224,7 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.ArrayWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 9ae5c94f6e4..e44f872aa65 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 @@ -75,9 +75,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.Basic": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -120,9 +118,7 @@ async def put_valid(self, complex_body: "_models.Basic", **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -153,9 +149,7 @@ async def get_invalid(self, **kwargs: Any) -> "_models.Basic": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -190,9 +184,7 @@ async def get_empty(self, **kwargs: Any) -> "_models.Basic": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -227,9 +219,7 @@ async def get_null(self, **kwargs: Any) -> "_models.Basic": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -264,9 +254,7 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.Basic": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 3306e37d6c0..7489daa3888 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 @@ -75,9 +75,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -121,9 +119,7 @@ async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kw )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -154,9 +150,7 @@ async def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -200,9 +194,7 @@ async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kw )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -233,9 +225,7 @@ async def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -270,9 +260,7 @@ async def get_not_provided(self, **kwargs: Any) -> "_models.DictionaryWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 d646f0a0f5e..79cb05a3ae4 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 @@ -68,9 +68,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 450a021346a..4794255b902 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 @@ -68,9 +68,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.Siamese": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -115,9 +113,7 @@ async def put_valid(self, complex_body: "_models.Siamese", **kwargs: Any) -> Non )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 35b6a3193d1..4d78cc82543 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 @@ -68,9 +68,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.Fish": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -165,9 +163,7 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 350de8d52d2..ab3f997c8e4 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 @@ -78,9 +78,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.Fish": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -155,9 +153,7 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -188,9 +184,7 @@ async def get_dot_syntax(self, **kwargs: Any) -> "_models.DotFish": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -227,9 +221,7 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> "_models.DotFi )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -266,9 +258,7 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> "_models.Do )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -304,9 +294,7 @@ async def get_complicated(self, **kwargs: Any) -> "_models.Salmon": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -350,9 +338,7 @@ async def put_complicated(self, complex_body: "_models.Salmon", **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -391,9 +377,7 @@ async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwar )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -463,9 +447,7 @@ async def put_valid_missing_required(self, complex_body: "_models.Fish", **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 3ebc523c979..76d101229cb 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 @@ -92,9 +92,7 @@ async def get_int(self, **kwargs: Any) -> "_models.IntWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -137,9 +135,7 @@ async def put_int(self, complex_body: "_models.IntWrapper", **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -170,9 +166,7 @@ async def get_long(self, **kwargs: Any) -> "_models.LongWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -215,9 +209,7 @@ async def put_long(self, complex_body: "_models.LongWrapper", **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -248,9 +240,7 @@ async def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -293,9 +283,7 @@ async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -326,9 +314,7 @@ async def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -372,9 +358,7 @@ async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -405,9 +389,7 @@ async def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -450,9 +432,7 @@ async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -483,9 +463,7 @@ async def get_string(self, **kwargs: Any) -> "_models.StringWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -528,9 +506,7 @@ async def put_string(self, complex_body: "_models.StringWrapper", **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -561,9 +537,7 @@ async def get_date(self, **kwargs: Any) -> "_models.DateWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -606,9 +580,7 @@ async def put_date(self, complex_body: "_models.DateWrapper", **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -639,9 +611,7 @@ async def get_date_time(self, **kwargs: Any) -> "_models.DatetimeWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -684,9 +654,7 @@ async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -717,9 +685,7 @@ async def get_date_time_rfc1123(self, **kwargs: Any) -> "_models.Datetimerfc1123 )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -763,9 +729,7 @@ async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrap )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -796,9 +760,7 @@ async def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -842,9 +804,7 @@ async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -875,9 +835,7 @@ async def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -921,9 +879,7 @@ async def put_byte(self, field: Optional[bytearray] = None, **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 5fdfbc6929e..d7681f8326c 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 @@ -68,9 +68,7 @@ async def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -114,9 +112,7 @@ async def put_valid(self, size: Optional[int] = None, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 4d998ed5d2e..00416cb4f5f 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 @@ -185,7 +185,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -234,7 +234,7 @@ def put_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -268,7 +268,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -317,7 +317,7 @@ def put_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -351,7 +351,7 @@ def get_not_provided( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 74c237506e1..39fa98dfd4d 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 @@ -207,7 +207,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -255,7 +255,7 @@ def put_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -289,7 +289,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -327,7 +327,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -365,7 +365,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -403,7 +403,7 @@ def get_not_provided( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 cba64d6d620..08b553fb06f 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 @@ -205,7 +205,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -254,7 +254,7 @@ def put_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -288,7 +288,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -337,7 +337,7 @@ def put_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -371,7 +371,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -409,7 +409,7 @@ def get_not_provided( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 586333daba4..36914d73bbf 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 @@ -97,7 +97,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 a60d6257183..0f3e4c536c4 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 @@ -121,7 +121,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -171,7 +171,7 @@ def put_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 1caecfb0112..5d1c9983367 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 @@ -121,7 +121,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -221,7 +221,7 @@ def put_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 e977f9fe3c5..4883bcfe68a 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 @@ -273,7 +273,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -353,7 +353,7 @@ def put_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -387,7 +387,7 @@ def get_dot_syntax( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -427,7 +427,7 @@ def get_composed_with_discriminator( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -467,7 +467,7 @@ def get_composed_without_discriminator( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -506,7 +506,7 @@ def get_complicated( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -555,7 +555,7 @@ def put_complicated( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -599,7 +599,7 @@ def put_missing_discriminator( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -674,7 +674,7 @@ def put_valid_missing_required( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 cbfa96a94af..86fa37b4836 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 @@ -562,7 +562,7 @@ def get_int( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -610,7 +610,7 @@ def put_int( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -644,7 +644,7 @@ def get_long( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -692,7 +692,7 @@ def put_long( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -726,7 +726,7 @@ def get_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -774,7 +774,7 @@ def put_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -808,7 +808,7 @@ def get_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -857,7 +857,7 @@ def put_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -891,7 +891,7 @@ def get_bool( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -939,7 +939,7 @@ def put_bool( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -973,7 +973,7 @@ def get_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1021,7 +1021,7 @@ def put_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1055,7 +1055,7 @@ def get_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1103,7 +1103,7 @@ def put_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1137,7 +1137,7 @@ def get_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1185,7 +1185,7 @@ def put_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1219,7 +1219,7 @@ def get_date_time_rfc1123( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1268,7 +1268,7 @@ def put_date_time_rfc1123( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1302,7 +1302,7 @@ def get_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1351,7 +1351,7 @@ def put_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1385,7 +1385,7 @@ def get_byte( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1434,7 +1434,7 @@ def put_byte( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 d942b1ff219..c9c2b1bab23 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 @@ -121,7 +121,7 @@ def get_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -170,7 +170,7 @@ def put_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/__init__.py deleted file mode 100644 index 0a4e9592113..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._auto_rest_complex_test_service import AutoRestComplexTestService -from ._version import VERSION - -__version__ = VERSION -__all__ = ["AutoRestComplexTestService"] - -try: - from ._patch import patch_sdk # type: ignore - - patch_sdk() -except ImportError: - pass 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 deleted file mode 100644 index be30ea16f1c..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import TYPE_CHECKING - -from azure.core import PipelineClient -from msrest import Deserializer, Serializer - -from . import models -from ._configuration import AutoRestComplexTestServiceConfiguration -from .operations import ( - ArrayOperations, - BasicOperations, - DictionaryOperations, - FlattencomplexOperations, - InheritanceOperations, - PolymorphicrecursiveOperations, - PolymorphismOperations, - PrimitiveOperations, - ReadonlypropertyOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - - from azure.core.rest import HttpRequest, HttpResponse - - -class AutoRestComplexTestService(object): - """Test Infrastructure for AutoRest. - - :ivar basic: BasicOperations operations - :vartype basic: bodycomplexpython3only.operations.BasicOperations - :ivar primitive: PrimitiveOperations operations - :vartype primitive: bodycomplexpython3only.operations.PrimitiveOperations - :ivar array: ArrayOperations operations - :vartype array: bodycomplexpython3only.operations.ArrayOperations - :ivar dictionary: DictionaryOperations operations - :vartype dictionary: bodycomplexpython3only.operations.DictionaryOperations - :ivar inheritance: InheritanceOperations operations - :vartype inheritance: bodycomplexpython3only.operations.InheritanceOperations - :ivar polymorphism: PolymorphismOperations operations - :vartype polymorphism: bodycomplexpython3only.operations.PolymorphismOperations - :ivar polymorphicrecursive: PolymorphicrecursiveOperations operations - :vartype polymorphicrecursive: bodycomplexpython3only.operations.PolymorphicrecursiveOperations - :ivar readonlyproperty: ReadonlypropertyOperations operations - :vartype readonlyproperty: bodycomplexpython3only.operations.ReadonlypropertyOperations - :ivar flattencomplex: FlattencomplexOperations operations - :vartype flattencomplex: bodycomplexpython3only.operations.FlattencomplexOperations - :param base_url: Service URL. Default value is 'http://localhost:3000'. - :type base_url: str - """ - - def __init__( - self, - base_url="http://localhost:3000", # type: str - **kwargs # type: Any - ): - # type: (...) -> None - self._config = AutoRestComplexTestServiceConfiguration(**kwargs) - self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.basic = BasicOperations(self._client, self._config, self._serialize, self._deserialize) - self.primitive = PrimitiveOperations(self._client, self._config, self._serialize, self._deserialize) - self.array = ArrayOperations(self._client, self._config, self._serialize, self._deserialize) - self.dictionary = DictionaryOperations(self._client, self._config, self._serialize, self._deserialize) - self.inheritance = InheritanceOperations(self._client, self._config, self._serialize, self._deserialize) - self.polymorphism = PolymorphismOperations(self._client, self._config, self._serialize, self._deserialize) - self.polymorphicrecursive = PolymorphicrecursiveOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.readonlyproperty = ReadonlypropertyOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.flattencomplex = FlattencomplexOperations(self._client, self._config, self._serialize, self._deserialize) - - def _send_request( - self, - request, # type: HttpRequest - **kwargs # type: Any - ): - # type: (...) -> HttpResponse - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, **kwargs) - - def close(self): - # type: () -> None - self._client.close() - - def __enter__(self): - # type: () -> AutoRestComplexTestService - self._client.__enter__() - return self - - def __exit__(self, *exc_details): - # type: (Any) -> None - self._client.__exit__(*exc_details) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py deleted file mode 100644 index d2d74ac5b9d..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - - -class AutoRestComplexTestServiceConfiguration(Configuration): - """Configuration for AutoRestComplexTestService. - - Note that all parameters used to create this instance are saved as instance - attributes. - """ - - def __init__( - self, **kwargs # type: Any - ): - # type: (...) -> None - super(AutoRestComplexTestServiceConfiguration, self).__init__(**kwargs) - - self.api_version = "2016-02-29" - kwargs.setdefault("sdk_moniker", "bodycomplexpython3only/{}".format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, **kwargs # type: Any - ): - # type: (...) -> None - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or policies.HttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py deleted file mode 100644 index eae7c95b6fb..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.0" diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py deleted file mode 100644 index 6d4a74e4674..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py +++ /dev/null @@ -1,11 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._auto_rest_complex_test_service import AutoRestComplexTestService - -__all__ = ["AutoRestComplexTestService"] 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 deleted file mode 100644 index fa26e3d2ad7..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, Optional - -from azure.core import AsyncPipelineClient -from azure.core.rest import AsyncHttpResponse, HttpRequest -from msrest import Deserializer, Serializer - -from .. import models -from ._configuration import AutoRestComplexTestServiceConfiguration -from .operations import ( - ArrayOperations, - BasicOperations, - DictionaryOperations, - FlattencomplexOperations, - InheritanceOperations, - PolymorphicrecursiveOperations, - PolymorphismOperations, - PrimitiveOperations, - ReadonlypropertyOperations, -) - - -class AutoRestComplexTestService: - """Test Infrastructure for AutoRest. - - :ivar basic: BasicOperations operations - :vartype basic: bodycomplexpython3only.aio.operations.BasicOperations - :ivar primitive: PrimitiveOperations operations - :vartype primitive: bodycomplexpython3only.aio.operations.PrimitiveOperations - :ivar array: ArrayOperations operations - :vartype array: bodycomplexpython3only.aio.operations.ArrayOperations - :ivar dictionary: DictionaryOperations operations - :vartype dictionary: bodycomplexpython3only.aio.operations.DictionaryOperations - :ivar inheritance: InheritanceOperations operations - :vartype inheritance: bodycomplexpython3only.aio.operations.InheritanceOperations - :ivar polymorphism: PolymorphismOperations operations - :vartype polymorphism: bodycomplexpython3only.aio.operations.PolymorphismOperations - :ivar polymorphicrecursive: PolymorphicrecursiveOperations operations - :vartype polymorphicrecursive: - bodycomplexpython3only.aio.operations.PolymorphicrecursiveOperations - :ivar readonlyproperty: ReadonlypropertyOperations operations - :vartype readonlyproperty: bodycomplexpython3only.aio.operations.ReadonlypropertyOperations - :ivar flattencomplex: FlattencomplexOperations operations - :vartype flattencomplex: bodycomplexpython3only.aio.operations.FlattencomplexOperations - :param base_url: Service URL. Default value is 'http://localhost:3000'. - :type base_url: str - """ - - def __init__(self, base_url: str = "http://localhost:3000", **kwargs: Any) -> None: - self._config = AutoRestComplexTestServiceConfiguration(**kwargs) - self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.basic = BasicOperations(self._client, self._config, self._serialize, self._deserialize) - self.primitive = PrimitiveOperations(self._client, self._config, self._serialize, self._deserialize) - self.array = ArrayOperations(self._client, self._config, self._serialize, self._deserialize) - self.dictionary = DictionaryOperations(self._client, self._config, self._serialize, self._deserialize) - self.inheritance = InheritanceOperations(self._client, self._config, self._serialize, self._deserialize) - self.polymorphism = PolymorphismOperations(self._client, self._config, self._serialize, self._deserialize) - self.polymorphicrecursive = PolymorphicrecursiveOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.readonlyproperty = ReadonlypropertyOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.flattencomplex = FlattencomplexOperations(self._client, self._config, self._serialize, self._deserialize) - - def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, **kwargs) - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AutoRestComplexTestService": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details) -> None: - await self._client.__aexit__(*exc_details) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py deleted file mode 100644 index 250912941b0..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies - -from .._version import VERSION - - -class AutoRestComplexTestServiceConfiguration(Configuration): - """Configuration for AutoRestComplexTestService. - - Note that all parameters used to create this instance are saved as instance - attributes. - """ - - def __init__(self, **kwargs: Any) -> None: - super(AutoRestComplexTestServiceConfiguration, self).__init__(**kwargs) - - self.api_version = "2016-02-29" - kwargs.setdefault("sdk_moniker", "bodycomplexpython3only/{}".format(VERSION)) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or policies.HttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py deleted file mode 100644 index a367b382d8d..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._basic_operations_py3 import BasicOperations -from ._primitive_operations_py3 import PrimitiveOperations -from ._array_operations_py3 import ArrayOperations -from ._dictionary_operations_py3 import DictionaryOperations -from ._inheritance_operations_py3 import InheritanceOperations -from ._polymorphism_operations_py3 import PolymorphismOperations -from ._polymorphicrecursive_operations_py3 import PolymorphicrecursiveOperations -from ._readonlyproperty_operations_py3 import ReadonlypropertyOperations -from ._flattencomplex_operations_py3 import FlattencomplexOperations - -__all__ = [ - "BasicOperations", - "PrimitiveOperations", - "ArrayOperations", - "DictionaryOperations", - "InheritanceOperations", - "PolymorphismOperations", - "PolymorphicrecursiveOperations", - "ReadonlypropertyOperations", - "FlattencomplexOperations", -] 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 deleted file mode 100644 index ca2d3711717..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_array_operations.py +++ /dev/null @@ -1,252 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._array_operations import ( - build_get_empty_request, - build_get_not_provided_request, - build_get_valid_request, - build_put_empty_request, - build_put_valid_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ArrayOperations: - """ArrayOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": - """Get complex types with array property. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArrayWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ArrayWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ArrayWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ArrayWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: - """Put complex types with array property. - - :param array: - :type array: list[str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ArrayWrapper(array=array) - json = self._serialize.body(_complex_body, "ArrayWrapper") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace_async - async def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": - """Get complex types with array property which is empty. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArrayWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ArrayWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ArrayWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_empty_request( - template_url=self.get_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ArrayWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace_async - async def put_empty(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: - """Put complex types with array property which is empty. - - :param array: - :type array: list[str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ArrayWrapper(array=array) - json = self._serialize.body(_complex_body, "ArrayWrapper") - - request = build_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace_async - async def get_not_provided(self, **kwargs: Any) -> "_models.ArrayWrapper": - """Get complex types with array property while server doesn't provide a response payload. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArrayWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ArrayWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ArrayWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ArrayWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/array/notprovided"} # type: ignore 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 deleted file mode 100644 index c20ec9705f9..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_basic_operations.py +++ /dev/null @@ -1,284 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._basic_operations import ( - build_get_empty_request, - build_get_invalid_request, - build_get_not_provided_request, - build_get_null_request, - build_get_valid_request, - build_put_valid_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BasicOperations: - """BasicOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.Basic": - """Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: "_models.Basic", **kwargs: Any) -> None: - """Please put {id: 2, name: 'abc', color: 'Magenta'}. - - :param complex_body: Please put {id: 2, name: 'abc', color: 'Magenta'}. - :type complex_body: ~bodycomplexpython3only.models.Basic - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Basic") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace_async - async def get_invalid(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type that is invalid for the local strong type. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_invalid_request( - template_url=self.get_invalid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_invalid.metadata = {"url": "/complex/basic/invalid"} # type: ignore - - @distributed_trace_async - async def get_empty(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type that is empty. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_empty_request( - template_url=self.get_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/basic/empty"} # type: ignore - - @distributed_trace_async - async def get_null(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type whose properties are null. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_null_request( - template_url=self.get_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/basic/null"} # type: ignore - - @distributed_trace_async - async def get_not_provided(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type while the server doesn't provide a response payload. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/basic/notprovided"} # type: ignore 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 deleted file mode 100644 index 115d7672d97..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_dictionary_operations.py +++ /dev/null @@ -1,290 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._dictionary_operations import ( - build_get_empty_request, - build_get_not_provided_request, - build_get_null_request, - build_get_valid_request, - build_put_empty_request, - build_put_valid_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DictionaryOperations: - """DictionaryOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """Put complex types with dictionary property. - - :param default_program: Dictionary of :code:``. - :type default_program: dict[str, str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.DictionaryWrapper(default_program=default_program) - json = self._serialize.body(_complex_body, "DictionaryWrapper") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace_async - async def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property which is empty. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_empty_request( - template_url=self.get_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace_async - async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """Put complex types with dictionary property which is empty. - - :param default_program: Dictionary of :code:``. - :type default_program: dict[str, str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.DictionaryWrapper(default_program=default_program) - json = self._serialize.body(_complex_body, "DictionaryWrapper") - - request = build_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace_async - async def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property which is null. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_null_request( - template_url=self.get_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/dictionary/typed/null"} # type: ignore - - @distributed_trace_async - async def get_not_provided(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property while server doesn't provide a response payload. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/dictionary/typed/notprovided"} # type: ignore 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 deleted file mode 100644 index f9cdb78ce88..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_flattencomplex_operations.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._flattencomplex_operations import build_get_valid_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class FlattencomplexOperations: - """FlattencomplexOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": - """get_valid. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: MyBaseType, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.MyBaseType - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.MyBaseType"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize("MyBaseType", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/flatten/valid"} # type: ignore 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 deleted file mode 100644 index d536cb8a98f..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_inheritance_operations.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._inheritance_operations import build_get_valid_request, build_put_valid_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class InheritanceOperations: - """InheritanceOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.Siamese": - """Get complex types that extend others. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Siamese, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Siamese - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Siamese"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Siamese", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: "_models.Siamese", **kwargs: Any) -> None: - """Put complex types that extend others. - - :param complex_body: Please put a siamese with id=2, name="Siameee", color=green, - breed=persion, which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", and - the 2nd one named "Tomato" with id=-1 and food="french fries". - :type complex_body: ~bodycomplexpython3only.models.Siamese - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Siamese") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_operations.py deleted file mode 100644 index e5959a3260a..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_operations.py +++ /dev/null @@ -1,3160 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ...operations._operations import ( - build_array_get_empty_request, - build_array_get_not_provided_request, - build_array_get_valid_request, - build_array_put_empty_request, - build_array_put_valid_request, - build_basic_get_empty_request, - build_basic_get_invalid_request, - build_basic_get_not_provided_request, - build_basic_get_null_request, - build_basic_get_valid_request, - build_basic_put_valid_request, - build_dictionary_get_empty_request, - build_dictionary_get_not_provided_request, - build_dictionary_get_null_request, - build_dictionary_get_valid_request, - build_dictionary_put_empty_request, - build_dictionary_put_valid_request, - build_flattencomplex_get_valid_request, - build_inheritance_get_valid_request, - build_inheritance_put_valid_request, - build_polymorphicrecursive_get_valid_request, - build_polymorphicrecursive_put_valid_request, - build_polymorphism_get_complicated_request, - build_polymorphism_get_composed_with_discriminator_request, - build_polymorphism_get_composed_without_discriminator_request, - build_polymorphism_get_dot_syntax_request, - build_polymorphism_get_valid_request, - build_polymorphism_put_complicated_request, - build_polymorphism_put_missing_discriminator_request, - build_polymorphism_put_valid_missing_required_request, - build_polymorphism_put_valid_request, - build_primitive_get_bool_request, - build_primitive_get_byte_request, - build_primitive_get_date_request, - build_primitive_get_date_time_request, - build_primitive_get_date_time_rfc1123_request, - build_primitive_get_double_request, - build_primitive_get_duration_request, - build_primitive_get_float_request, - build_primitive_get_int_request, - build_primitive_get_long_request, - build_primitive_get_string_request, - build_primitive_put_bool_request, - build_primitive_put_byte_request, - build_primitive_put_date_request, - build_primitive_put_date_time_request, - build_primitive_put_date_time_rfc1123_request, - build_primitive_put_double_request, - build_primitive_put_duration_request, - build_primitive_put_float_request, - build_primitive_put_int_request, - build_primitive_put_long_request, - build_primitive_put_string_request, - build_readonlyproperty_get_valid_request, - build_readonlyproperty_put_valid_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BasicOperations: - """BasicOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Please put {id: 2, name: 'abc', color: 'Magenta'}. - - :param complex_body: Please put {id: 2, name: 'abc', color: 'Magenta'}. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_basic_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace_async - async def get_invalid(self, **kwargs: Any) -> Any: - """Get a basic complex type that is invalid for the local strong type. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_invalid_request( - template_url=self.get_invalid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_invalid.metadata = {"url": "/complex/basic/invalid"} # type: ignore - - @distributed_trace_async - async def get_empty(self, **kwargs: Any) -> Any: - """Get a basic complex type that is empty. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_empty_request( - template_url=self.get_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/basic/empty"} # type: ignore - - @distributed_trace_async - async def get_null(self, **kwargs: Any) -> Any: - """Get a basic complex type whose properties are null. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_null_request( - template_url=self.get_null.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/basic/null"} # type: ignore - - @distributed_trace_async - async def get_not_provided(self, **kwargs: Any) -> Any: - """Get a basic complex type while the server doesn't provide a response payload. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/basic/notprovided"} # type: ignore - - -class PrimitiveOperations: - """PrimitiveOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_int(self, **kwargs: Any) -> Any: - """Get complex types with integer properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field1": 0, # Optional. - "field2": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_int_request( - template_url=self.get_int.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace_async - async def put_int(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with integer properties. - - :param complex_body: Please put -1 and 2. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field1": 0, # Optional. - "field2": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_int_request( - content_type=content_type, - json=json, - template_url=self.put_int.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace_async - async def get_long(self, **kwargs: Any) -> Any: - """Get complex types with long properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_long_request( - template_url=self.get_long.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace_async - async def put_long(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with long properties. - - :param complex_body: Please put 1099511627775 and -999511627788. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_long_request( - content_type=content_type, - json=json, - template_url=self.put_long.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace_async - async def get_float(self, **kwargs: Any) -> Any: - """Get complex types with float properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_float_request( - template_url=self.get_float.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace_async - async def put_float(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with float properties. - - :param complex_body: Please put 1.05 and -0.003. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_float_request( - content_type=content_type, - json=json, - template_url=self.put_float.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace_async - async def get_double(self, **kwargs: Any) -> Any: - """Get complex types with double properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # 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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_double_request( - template_url=self.get_double.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace_async - async def put_double(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with double properties. - - :param complex_body: Please put 3e-100 and - -0.000000000000000000000000000000000000000000000000000000005. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_double_request( - content_type=content_type, - json=json, - template_url=self.put_double.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace_async - async def get_bool(self, **kwargs: Any) -> Any: - """Get complex types with bool properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field_false": bool, # Optional. - "field_true": bool # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_bool_request( - template_url=self.get_bool.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace_async - async def put_bool(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with bool properties. - - :param complex_body: Please put true and false. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field_false": bool, # Optional. - "field_true": bool # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_bool_request( - content_type=content_type, - json=json, - template_url=self.put_bool.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace_async - async def get_string(self, **kwargs: Any) -> Any: - """Get complex types with string properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "empty": "str", # Optional. - "field": "str", # Optional. - "null": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_string_request( - template_url=self.get_string.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace_async - async def put_string(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with string properties. - - :param complex_body: Please put 'goodrequest', '', and null. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "empty": "str", # Optional. - "field": "str", # Optional. - "null": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_string_request( - content_type=content_type, - json=json, - template_url=self.put_string.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace_async - async def get_date(self, **kwargs: Any) -> Any: - """Get complex types with date properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "2020-02-20", # Optional. - "leap": "2020-02-20" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_date_request( - template_url=self.get_date.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace_async - async def put_date(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with date properties. - - :param complex_body: Please put '0001-01-01' and '2016-02-29'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "2020-02-20", # Optional. - "leap": "2020-02-20" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_date_request( - content_type=content_type, - json=json, - template_url=self.put_date.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace_async - async def get_date_time(self, **kwargs: Any) -> Any: - """Get complex types with datetime properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_date_time_request( - template_url=self.get_date_time.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace_async - async def put_date_time(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with datetime properties. - - :param complex_body: Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_date_time_request( - content_type=content_type, - json=json, - template_url=self.put_date_time.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace_async - async def get_date_time_rfc1123(self, **kwargs: Any) -> Any: - """Get complex types with datetimeRfc1123 properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_date_time_rfc1123_request( - template_url=self.get_date_time_rfc1123.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace_async - async def put_date_time_rfc1123(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with datetimeRfc1123 properties. - - :param complex_body: Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 - GMT'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_date_time_rfc1123_request( - content_type=content_type, - json=json, - template_url=self.put_date_time_rfc1123.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace_async - async def get_duration(self, **kwargs: Any) -> Any: - """Get complex types with duration properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "1 day, 0:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_duration_request( - template_url=self.get_duration.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace_async - async def put_duration(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with duration properties. - - :param complex_body: Please put 'P123DT22H14M12.011S'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "1 day, 0:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_duration_request( - content_type=content_type, - json=json, - template_url=self.put_duration.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace_async - async def get_byte(self, **kwargs: Any) -> Any: - """Get complex types with byte properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": bytearray("bytearray", encoding="utf-8") # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_byte_request( - template_url=self.get_byte.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore - - @distributed_trace_async - async def put_byte(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with byte properties. - - :param complex_body: Please put non-ascii byte string hex(FF FE FD FC 00 FA F9 F8 F7 F6). - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": bytearray("bytearray", encoding="utf-8") # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_byte_request( - content_type=content_type, - json=json, - template_url=self.put_byte.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore - - -class ArrayOperations: - """ArrayOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """Get complex types with array property. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_array_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with array property. - - :param complex_body: Please put an array with 4 items: "1, 2, 3, 4", "", null, "&S#$(*Y", "The - quick brown fox jumps over the lazy dog". - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_array_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace_async - async def get_empty(self, **kwargs: Any) -> Any: - """Get complex types with array property which is empty. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_array_get_empty_request( - template_url=self.get_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace_async - async def put_empty(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with array property which is empty. - - :param complex_body: Please put an empty array. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_array_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace_async - async def get_not_provided(self, **kwargs: Any) -> Any: - """Get complex types with array property while server doesn't provide a response payload. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_array_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/array/notprovided"} # type: ignore - - -class DictionaryOperations: - """DictionaryOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with dictionary property. - - :param complex_body: Please put a dictionary with 5 key-value pairs: "txt":"notepad", - "bmp":"mspaint", "xls":"excel", "exe":"", "":null. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_dictionary_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace_async - async def get_empty(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property which is empty. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_empty_request( - template_url=self.get_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace_async - async def put_empty(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with dictionary property which is empty. - - :param complex_body: Please put an empty dictionary. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_dictionary_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace_async - async def get_null(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property which is null. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_null_request( - template_url=self.get_null.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/dictionary/typed/null"} # type: ignore - - @distributed_trace_async - async def get_not_provided(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property while server doesn't provide a response payload. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/dictionary/typed/notprovided"} # type: ignore - - -class InheritanceOperations: - """InheritanceOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that extend others. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "breed": "str", # Optional. - "color": "str", # Optional. - "hates": [ - { - "food": "str", # Optional. - "id": 0, # Optional. - "name": "str" # Optional. - } - ], - "id": 0, # Optional. - "name": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_inheritance_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that extend others. - - :param complex_body: Please put a siamese with id=2, name="Siameee", color=green, - breed=persion, which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", and - the 2nd one named "Tomato" with id=-1 and food="french fries". - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "breed": "str", # Optional. - "color": "str", # Optional. - "hates": [ - { - "food": "str", # Optional. - "id": 0, # Optional. - "name": "str" # Optional. - } - ], - "id": 0, # Optional. - "name": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_inheritance_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore - - -class PolymorphismOperations: - """PolymorphismOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic. - - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'Salmon' or 'Shark' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace_async - async def get_dot_syntax(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic, JSON key contains a dot. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "species": "str", # Optional. - fish.type: fish.type - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_dot_syntax_request( - template_url=self.get_dot_syntax.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dot_syntax.metadata = {"url": "/complex/polymorphism/dotsyntax"} # type: ignore - - @distributed_trace_async - async def get_composed_with_discriminator(self, **kwargs: Any) -> Any: - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "fishes": [ - { - "species": "str", # Optional. - fish.type: fish.type - } - ], - "salmons": [ - { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - ], - "sampleFish": { - "species": "str", # Optional. - fish.type: fish.type - }, - "sampleSalmon": { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_composed_with_discriminator_request( - template_url=self.get_composed_with_discriminator.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_with_discriminator.metadata = {"url": "/complex/polymorphism/composedWithDiscriminator"} # type: ignore - - @distributed_trace_async - async def get_composed_without_discriminator(self, **kwargs: Any) -> Any: - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "fishes": [ - { - "species": "str", # Optional. - fish.type: fish.type - } - ], - "salmons": [ - { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - ], - "sampleFish": { - "species": "str", # Optional. - fish.type: fish.type - }, - "sampleSalmon": { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_composed_without_discriminator_request( - template_url=self.get_composed_without_discriminator.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_without_discriminator.metadata = {"url": "/complex/polymorphism/composedWithoutDiscriminator"} # type: ignore - - @distributed_trace_async - async def get_complicated(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_complicated_request( - template_url=self.get_complicated.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace_async - async def put_complicated(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :param complex_body: - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'SmartSalmon' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_complicated_request( - content_type=content_type, - json=json, - template_url=self.put_complicated.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace_async - async def put_missing_discriminator(self, complex_body: Any, **kwargs: Any) -> Any: - """Put complex types that are polymorphic, omitting the discriminator. - - :param complex_body: - :type complex_body: Any - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'SmartSalmon' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - - # response body for status code(s): 200 - response.json() == { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_missing_discriminator_request( - content_type=content_type, - json=json, - template_url=self.put_missing_discriminator.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - put_missing_discriminator.metadata = {"url": "/complex/polymorphism/missingdiscriminator"} # type: ignore - - @distributed_trace_async - async def put_valid_missing_required(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. - - :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'Salmon' or 'Shark' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_valid_missing_required_request( - content_type=content_type, - json=json, - template_url=self.put_valid_missing_required.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid_missing_required.metadata = {"url": "/complex/polymorphism/missingrequired/invalid"} # type: ignore - - -class PolymorphicrecursiveOperations: - """PolymorphicrecursiveOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic and have recursive references. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphicrecursive_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic and have recursive references. - - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'Salmon' or 'Shark' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphicrecursive_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore - - -class ReadonlypropertyOperations: - """ReadonlypropertyOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that have readonly properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "id": "str", # Optional. - "size": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_readonlyproperty_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that have readonly properties. - - :param complex_body: - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "id": "str", # Optional. - "size": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_readonlyproperty_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore - - -class FlattencomplexOperations: - """FlattencomplexOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> Any: - """get_valid. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "helper": { - "propBH1": "str" # Optional. - }, - "propB1": "str", # Optional. - kind: kind - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_flattencomplex_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/flatten/valid"} # type: ignore 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 deleted file mode 100644 index 8ef45b455bd..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphicrecursive_operations.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._polymorphicrecursive_operations import build_get_valid_request, build_put_valid_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PolymorphicrecursiveOperations: - """PolymorphicrecursiveOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.Fish": - """Get complex types that are polymorphic and have recursive references. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Fish, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Fish - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Fish"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Fish", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: - """Put complex types that are polymorphic and have recursive references. - - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: ~bodycomplexpython3only.models.Fish - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Fish") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore 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 deleted file mode 100644 index 70f86f1d2f5..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_polymorphism_operations.py +++ /dev/null @@ -1,479 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._polymorphism_operations import ( - build_get_complicated_request, - build_get_composed_with_discriminator_request, - build_get_composed_without_discriminator_request, - build_get_dot_syntax_request, - build_get_valid_request, - build_put_complicated_request, - build_put_missing_discriminator_request, - build_put_valid_missing_required_request, - build_put_valid_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PolymorphismOperations: - """PolymorphismOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.Fish": - """Get complex types that are polymorphic. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Fish, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Fish - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Fish"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Fish", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: - """Put complex types that are polymorphic. - - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. - :type complex_body: ~bodycomplexpython3only.models.Fish - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Fish") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace_async - async def get_dot_syntax(self, **kwargs: Any) -> "_models.DotFish": - """Get complex types that are polymorphic, JSON key contains a dot. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DotFish, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DotFish - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DotFish"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_dot_syntax_request( - template_url=self.get_dot_syntax.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DotFish", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dot_syntax.metadata = {"url": "/complex/polymorphism/dotsyntax"} # type: ignore - - @distributed_trace_async - async def get_composed_with_discriminator(self, **kwargs: Any) -> "_models.DotFishMarket": - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DotFishMarket, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DotFishMarket - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DotFishMarket"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_composed_with_discriminator_request( - template_url=self.get_composed_with_discriminator.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DotFishMarket", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_with_discriminator.metadata = {"url": "/complex/polymorphism/composedWithDiscriminator"} # type: ignore - - @distributed_trace_async - async def get_composed_without_discriminator(self, **kwargs: Any) -> "_models.DotFishMarket": - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DotFishMarket, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DotFishMarket - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DotFishMarket"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_composed_without_discriminator_request( - template_url=self.get_composed_without_discriminator.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DotFishMarket", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_without_discriminator.metadata = {"url": "/complex/polymorphism/composedWithoutDiscriminator"} # type: ignore - - @distributed_trace_async - async def get_complicated(self, **kwargs: Any) -> "_models.Salmon": - """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Salmon, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Salmon - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Salmon"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_complicated_request( - template_url=self.get_complicated.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Salmon", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace_async - async def put_complicated(self, complex_body: "_models.Salmon", **kwargs: Any) -> None: - """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :param complex_body: - :type complex_body: ~bodycomplexpython3only.models.Salmon - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Salmon") - - request = build_put_complicated_request( - content_type=content_type, - json=json, - template_url=self.put_complicated.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace_async - async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwargs: Any) -> "_models.Salmon": - """Put complex types that are polymorphic, omitting the discriminator. - - :param complex_body: - :type complex_body: ~bodycomplexpython3only.models.Salmon - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Salmon, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Salmon - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Salmon"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Salmon") - - request = build_put_missing_discriminator_request( - content_type=content_type, - json=json, - template_url=self.put_missing_discriminator.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Salmon", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - put_missing_discriminator.metadata = {"url": "/complex/polymorphism/missingdiscriminator"} # type: ignore - - @distributed_trace_async - async def put_valid_missing_required(self, complex_body: "_models.Fish", **kwargs: Any) -> None: - """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. - - :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: ~bodycomplexpython3only.models.Fish - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Fish") - - request = build_put_valid_missing_required_request( - content_type=content_type, - json=json, - template_url=self.put_valid_missing_required.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid_missing_required.metadata = {"url": "/complex/polymorphism/missingrequired/invalid"} # type: ignore 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 deleted file mode 100644 index c36a934a284..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_primitive_operations.py +++ /dev/null @@ -1,937 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._primitive_operations import ( - build_get_bool_request, - build_get_byte_request, - build_get_date_request, - build_get_date_time_request, - build_get_date_time_rfc1123_request, - build_get_double_request, - build_get_duration_request, - build_get_float_request, - build_get_int_request, - build_get_long_request, - build_get_string_request, - build_put_bool_request, - build_put_byte_request, - build_put_date_request, - build_put_date_time_request, - build_put_date_time_rfc1123_request, - build_put_double_request, - build_put_duration_request, - build_put_float_request, - build_put_int_request, - build_put_long_request, - build_put_string_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PrimitiveOperations: - """PrimitiveOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_int(self, **kwargs: Any) -> "_models.IntWrapper": - """Get complex types with integer properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.IntWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.IntWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_int_request( - template_url=self.get_int.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("IntWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace_async - async def put_int(self, complex_body: "_models.IntWrapper", **kwargs: Any) -> None: - """Put complex types with integer properties. - - :param complex_body: Please put -1 and 2. - :type complex_body: ~bodycomplexpython3only.models.IntWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "IntWrapper") - - request = build_put_int_request( - content_type=content_type, - json=json, - template_url=self.put_int.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace_async - async def get_long(self, **kwargs: Any) -> "_models.LongWrapper": - """Get complex types with long properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: LongWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.LongWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.LongWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_long_request( - template_url=self.get_long.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("LongWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace_async - async def put_long(self, complex_body: "_models.LongWrapper", **kwargs: Any) -> None: - """Put complex types with long properties. - - :param complex_body: Please put 1099511627775 and -999511627788. - :type complex_body: ~bodycomplexpython3only.models.LongWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "LongWrapper") - - request = build_put_long_request( - content_type=content_type, - json=json, - template_url=self.put_long.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace_async - async def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": - """Get complex types with float properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: FloatWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.FloatWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.FloatWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_float_request( - template_url=self.get_float.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("FloatWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace_async - async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs: Any) -> None: - """Put complex types with float properties. - - :param complex_body: Please put 1.05 and -0.003. - :type complex_body: ~bodycomplexpython3only.models.FloatWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "FloatWrapper") - - request = build_put_float_request( - content_type=content_type, - json=json, - template_url=self.put_float.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace_async - async def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": - """Get complex types with double properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DoubleWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DoubleWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DoubleWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_double_request( - template_url=self.get_double.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DoubleWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace_async - async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs: Any) -> None: - """Put complex types with double properties. - - :param complex_body: Please put 3e-100 and - -0.000000000000000000000000000000000000000000000000000000005. - :type complex_body: ~bodycomplexpython3only.models.DoubleWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "DoubleWrapper") - - request = build_put_double_request( - content_type=content_type, - json=json, - template_url=self.put_double.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace_async - async def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": - """Get complex types with bool properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: BooleanWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.BooleanWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.BooleanWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_bool_request( - template_url=self.get_bool.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("BooleanWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace_async - async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs: Any) -> None: - """Put complex types with bool properties. - - :param complex_body: Please put true and false. - :type complex_body: ~bodycomplexpython3only.models.BooleanWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "BooleanWrapper") - - request = build_put_bool_request( - content_type=content_type, - json=json, - template_url=self.put_bool.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace_async - async def get_string(self, **kwargs: Any) -> "_models.StringWrapper": - """Get complex types with string properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: StringWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.StringWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.StringWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_string_request( - template_url=self.get_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("StringWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace_async - async def put_string(self, complex_body: "_models.StringWrapper", **kwargs: Any) -> None: - """Put complex types with string properties. - - :param complex_body: Please put 'goodrequest', '', and null. - :type complex_body: ~bodycomplexpython3only.models.StringWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "StringWrapper") - - request = build_put_string_request( - content_type=content_type, - json=json, - template_url=self.put_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace_async - async def get_date(self, **kwargs: Any) -> "_models.DateWrapper": - """Get complex types with date properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DateWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DateWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DateWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_request( - template_url=self.get_date.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DateWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace_async - async def put_date(self, complex_body: "_models.DateWrapper", **kwargs: Any) -> None: - """Put complex types with date properties. - - :param complex_body: Please put '0001-01-01' and '2016-02-29'. - :type complex_body: ~bodycomplexpython3only.models.DateWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "DateWrapper") - - request = build_put_date_request( - content_type=content_type, - json=json, - template_url=self.put_date.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace_async - async def get_date_time(self, **kwargs: Any) -> "_models.DatetimeWrapper": - """Get complex types with datetime properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DatetimeWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DatetimeWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DatetimeWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_request( - template_url=self.get_date_time.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DatetimeWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace_async - async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs: Any) -> None: - """Put complex types with datetime properties. - - :param complex_body: Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. - :type complex_body: ~bodycomplexpython3only.models.DatetimeWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "DatetimeWrapper") - - request = build_put_date_time_request( - content_type=content_type, - json=json, - template_url=self.put_date_time.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace_async - async def get_date_time_rfc1123(self, **kwargs: Any) -> "_models.Datetimerfc1123Wrapper": - """Get complex types with datetimeRfc1123 properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Datetimerfc1123Wrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Datetimerfc1123Wrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Datetimerfc1123Wrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_rfc1123_request( - template_url=self.get_date_time_rfc1123.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Datetimerfc1123Wrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace_async - async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrapper", **kwargs: Any) -> None: - """Put complex types with datetimeRfc1123 properties. - - :param complex_body: Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 - GMT'. - :type complex_body: ~bodycomplexpython3only.models.Datetimerfc1123Wrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Datetimerfc1123Wrapper") - - request = build_put_date_time_rfc1123_request( - content_type=content_type, - json=json, - template_url=self.put_date_time_rfc1123.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace_async - async def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": - """Get complex types with duration properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DurationWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DurationWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DurationWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_duration_request( - template_url=self.get_duration.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DurationWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace_async - async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwargs: Any) -> None: - """Put complex types with duration properties. - - :param field: - :type field: ~datetime.timedelta - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.DurationWrapper(field=field) - json = self._serialize.body(_complex_body, "DurationWrapper") - - request = build_put_duration_request( - content_type=content_type, - json=json, - template_url=self.put_duration.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace_async - async def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": - """Get complex types with byte properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ByteWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ByteWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ByteWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_byte_request( - template_url=self.get_byte.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ByteWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore - - @distributed_trace_async - async def put_byte(self, field: Optional[bytearray] = None, **kwargs: Any) -> None: - """Put complex types with byte properties. - - :param field: - :type field: bytearray - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ByteWrapper(field=field) - json = self._serialize.body(_complex_body, "ByteWrapper") - - request = build_put_byte_request( - content_type=content_type, - json=json, - template_url=self.put_byte.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore 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 deleted file mode 100644 index d8bad945c10..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/_readonlyproperty_operations.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ... import models as _models -from ...operations._readonlyproperty_operations import build_get_valid_request, build_put_valid_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ReadonlypropertyOperations: - """ReadonlypropertyOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace_async - async def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": - """Get complex types that have readonly properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ReadonlyObj, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ReadonlyObj - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ReadonlyObj"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ReadonlyObj", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore - - @distributed_trace_async - async def put_valid(self, size: Optional[int] = None, **kwargs: Any) -> None: - """Put complex types that have readonly properties. - - :param size: - :type size: int - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ReadonlyObj(size=size) - json = self._serialize.body(_complex_body, "ReadonlyObj") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py deleted file mode 100644 index b2aada57e11..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import ArrayWrapper -from ._models_py3 import Basic -from ._models_py3 import BooleanWrapper -from ._models_py3 import ByteWrapper -from ._models_py3 import Cat -from ._models_py3 import Cookiecuttershark -from ._models_py3 import DateWrapper -from ._models_py3 import DatetimeWrapper -from ._models_py3 import Datetimerfc1123Wrapper -from ._models_py3 import DictionaryWrapper -from ._models_py3 import Dog -from ._models_py3 import DotFish -from ._models_py3 import DotFishMarket -from ._models_py3 import DotSalmon -from ._models_py3 import DoubleWrapper -from ._models_py3 import DurationWrapper -from ._models_py3 import Error -from ._models_py3 import Fish -from ._models_py3 import FloatWrapper -from ._models_py3 import Goblinshark -from ._models_py3 import IntWrapper -from ._models_py3 import LongWrapper -from ._models_py3 import MyBaseType -from ._models_py3 import MyDerivedType -from ._models_py3 import Pet -from ._models_py3 import ReadonlyObj -from ._models_py3 import Salmon -from ._models_py3 import Sawshark -from ._models_py3 import Shark -from ._models_py3 import Siamese -from ._models_py3 import SmartSalmon -from ._models_py3 import StringWrapper - - -from ._auto_rest_complex_test_service_enums import ( - CMYKColors, - GoblinSharkColor, - MyKind, -) - -__all__ = [ - "ArrayWrapper", - "Basic", - "BooleanWrapper", - "ByteWrapper", - "Cat", - "Cookiecuttershark", - "DateWrapper", - "DatetimeWrapper", - "Datetimerfc1123Wrapper", - "DictionaryWrapper", - "Dog", - "DotFish", - "DotFishMarket", - "DotSalmon", - "DoubleWrapper", - "DurationWrapper", - "Error", - "Fish", - "FloatWrapper", - "Goblinshark", - "IntWrapper", - "LongWrapper", - "MyBaseType", - "MyDerivedType", - "Pet", - "ReadonlyObj", - "Salmon", - "Sawshark", - "Shark", - "Siamese", - "SmartSalmon", - "StringWrapper", - "CMYKColors", - "GoblinSharkColor", - "MyKind", -] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py deleted file mode 100644 index dd6d79768e0..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from six import with_metaclass -from azure.core import CaseInsensitiveEnumMeta - - -class CMYKColors(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - - CYAN = "cyan" - MAGENTA = "Magenta" - YELLOW = "YELLOW" - BLAC_K = "blacK" - - -class GoblinSharkColor(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """Colors possible""" - - PINK = "pink" - GRAY = "gray" - BROWN = "brown" - #: Uppercase RED. - UPPER_RED = "RED" - #: Lowercase RED. - LOWER_RED = "red" - - -class MyKind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - - KIND1 = "Kind1" diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py deleted file mode 100644 index d30cba23c88..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py +++ /dev/null @@ -1,1280 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -from typing import Any, Dict, List, Optional, Union - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - -from ._auto_rest_complex_test_service_enums import * - - -class ArrayWrapper(msrest.serialization.Model): - """ArrayWrapper. - - :ivar array: - :vartype array: list[str] - """ - - _attribute_map = { - "array": {"key": "array", "type": "[str]"}, - } - - def __init__(self, *, array: Optional[List[str]] = None, **kwargs): - """ - :keyword array: - :paramtype array: list[str] - """ - super(ArrayWrapper, self).__init__(**kwargs) - self.array = array - - -class Basic(msrest.serialization.Model): - """Basic. - - :ivar id: Basic Id. - :vartype id: int - :ivar name: Name property with a very long description that does not fit on a single line and a - line break. - :vartype name: str - :ivar color: Possible values include: "cyan", "Magenta", "YELLOW", "blacK". - :vartype color: str or ~bodycomplexpython3only.models.CMYKColors - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "color": {"key": "color", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, - name: Optional[str] = None, - color: Optional[Union[str, "CMYKColors"]] = None, - **kwargs - ): - """ - :keyword id: Basic Id. - :paramtype id: int - :keyword name: Name property with a very long description that does not fit on a single line - and a line break. - :paramtype name: str - :keyword color: Possible values include: "cyan", "Magenta", "YELLOW", "blacK". - :paramtype color: str or ~bodycomplexpython3only.models.CMYKColors - """ - super(Basic, self).__init__(**kwargs) - self.id = id - self.name = name - self.color = color - - -class BooleanWrapper(msrest.serialization.Model): - """BooleanWrapper. - - :ivar field_true: - :vartype field_true: bool - :ivar field_false: - :vartype field_false: bool - """ - - _attribute_map = { - "field_true": {"key": "field_true", "type": "bool"}, - "field_false": {"key": "field_false", "type": "bool"}, - } - - def __init__(self, *, field_true: Optional[bool] = None, field_false: Optional[bool] = None, **kwargs): - """ - :keyword field_true: - :paramtype field_true: bool - :keyword field_false: - :paramtype field_false: bool - """ - super(BooleanWrapper, self).__init__(**kwargs) - self.field_true = field_true - self.field_false = field_false - - -class ByteWrapper(msrest.serialization.Model): - """ByteWrapper. - - :ivar field: - :vartype field: bytearray - """ - - _attribute_map = { - "field": {"key": "field", "type": "bytearray"}, - } - - def __init__(self, *, field: Optional[bytearray] = None, **kwargs): - """ - :keyword field: - :paramtype field: bytearray - """ - super(ByteWrapper, self).__init__(**kwargs) - self.field = field - - -class Pet(msrest.serialization.Model): - """Pet. - - :ivar id: - :vartype id: int - :ivar name: - :vartype name: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, id: Optional[int] = None, name: Optional[str] = None, **kwargs): - """ - :keyword id: - :paramtype id: int - :keyword name: - :paramtype name: str - """ - super(Pet, self).__init__(**kwargs) - self.id = id - self.name = name - - -class Cat(Pet): - """Cat. - - :ivar id: - :vartype id: int - :ivar name: - :vartype name: str - :ivar color: - :vartype color: str - :ivar hates: - :vartype hates: list[~bodycomplexpython3only.models.Dog] - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "color": {"key": "color", "type": "str"}, - "hates": {"key": "hates", "type": "[Dog]"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, - name: Optional[str] = None, - color: Optional[str] = None, - hates: Optional[List["Dog"]] = None, - **kwargs - ): - """ - :keyword id: - :paramtype id: int - :keyword name: - :paramtype name: str - :keyword color: - :paramtype color: str - :keyword hates: - :paramtype hates: list[~bodycomplexpython3only.models.Dog] - """ - super(Cat, self).__init__(id=id, name=name, **kwargs) - self.color = color - self.hates = hates - - -class Fish(msrest.serialization.Model): - """Fish. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Salmon, Shark. - - All required parameters must be populated in order to send to Azure. - - :ivar fishtype: Required. Constant filled by server. - :vartype fishtype: str - :ivar species: - :vartype species: str - :ivar length: Required. - :vartype length: float - :ivar siblings: - :vartype siblings: list[~bodycomplexpython3only.models.Fish] - """ - - _validation = { - "fishtype": {"required": True}, - "length": {"required": True}, - } - - _attribute_map = { - "fishtype": {"key": "fishtype", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "length": {"key": "length", "type": "float"}, - "siblings": {"key": "siblings", "type": "[Fish]"}, - } - - _subtype_map = {"fishtype": {"salmon": "Salmon", "shark": "Shark"}} - - def __init__( - self, *, length: float, species: Optional[str] = None, siblings: Optional[List["Fish"]] = None, **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword length: Required. - :paramtype length: float - :keyword siblings: - :paramtype siblings: list[~bodycomplexpython3only.models.Fish] - """ - super(Fish, self).__init__(**kwargs) - self.fishtype = None # type: Optional[str] - self.species = species - self.length = length - self.siblings = siblings - - -class Shark(Fish): - """Shark. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: Cookiecuttershark, Goblinshark, Sawshark. - - All required parameters must be populated in order to send to Azure. - - :ivar fishtype: Required. Constant filled by server. - :vartype fishtype: str - :ivar species: - :vartype species: str - :ivar length: Required. - :vartype length: float - :ivar siblings: - :vartype siblings: list[~bodycomplexpython3only.models.Fish] - :ivar age: - :vartype age: int - :ivar birthday: Required. - :vartype birthday: ~datetime.datetime - """ - - _validation = { - "fishtype": {"required": True}, - "length": {"required": True}, - "birthday": {"required": True}, - } - - _attribute_map = { - "fishtype": {"key": "fishtype", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "length": {"key": "length", "type": "float"}, - "siblings": {"key": "siblings", "type": "[Fish]"}, - "age": {"key": "age", "type": "int"}, - "birthday": {"key": "birthday", "type": "iso-8601"}, - } - - _subtype_map = { - "fishtype": {"cookiecuttershark": "Cookiecuttershark", "goblin": "Goblinshark", "sawshark": "Sawshark"} - } - - def __init__( - self, - *, - length: float, - birthday: datetime.datetime, - species: Optional[str] = None, - siblings: Optional[List["Fish"]] = None, - age: Optional[int] = None, - **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword length: Required. - :paramtype length: float - :keyword siblings: - :paramtype siblings: list[~bodycomplexpython3only.models.Fish] - :keyword age: - :paramtype age: int - :keyword birthday: Required. - :paramtype birthday: ~datetime.datetime - """ - super(Shark, self).__init__(species=species, length=length, siblings=siblings, **kwargs) - self.fishtype = "shark" # type: str - self.age = age - self.birthday = birthday - - -class Cookiecuttershark(Shark): - """Cookiecuttershark. - - All required parameters must be populated in order to send to Azure. - - :ivar fishtype: Required. Constant filled by server. - :vartype fishtype: str - :ivar species: - :vartype species: str - :ivar length: Required. - :vartype length: float - :ivar siblings: - :vartype siblings: list[~bodycomplexpython3only.models.Fish] - :ivar age: - :vartype age: int - :ivar birthday: Required. - :vartype birthday: ~datetime.datetime - """ - - _validation = { - "fishtype": {"required": True}, - "length": {"required": True}, - "birthday": {"required": True}, - } - - _attribute_map = { - "fishtype": {"key": "fishtype", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "length": {"key": "length", "type": "float"}, - "siblings": {"key": "siblings", "type": "[Fish]"}, - "age": {"key": "age", "type": "int"}, - "birthday": {"key": "birthday", "type": "iso-8601"}, - } - - def __init__( - self, - *, - length: float, - birthday: datetime.datetime, - species: Optional[str] = None, - siblings: Optional[List["Fish"]] = None, - age: Optional[int] = None, - **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword length: Required. - :paramtype length: float - :keyword siblings: - :paramtype siblings: list[~bodycomplexpython3only.models.Fish] - :keyword age: - :paramtype age: int - :keyword birthday: Required. - :paramtype birthday: ~datetime.datetime - """ - super(Cookiecuttershark, self).__init__( - species=species, length=length, siblings=siblings, age=age, birthday=birthday, **kwargs - ) - self.fishtype = "cookiecuttershark" # type: str - - -class Datetimerfc1123Wrapper(msrest.serialization.Model): - """Datetimerfc1123Wrapper. - - :ivar field: - :vartype field: ~datetime.datetime - :ivar now: - :vartype now: ~datetime.datetime - """ - - _attribute_map = { - "field": {"key": "field", "type": "rfc-1123"}, - "now": {"key": "now", "type": "rfc-1123"}, - } - - def __init__(self, *, field: Optional[datetime.datetime] = None, now: Optional[datetime.datetime] = None, **kwargs): - """ - :keyword field: - :paramtype field: ~datetime.datetime - :keyword now: - :paramtype now: ~datetime.datetime - """ - super(Datetimerfc1123Wrapper, self).__init__(**kwargs) - self.field = field - self.now = now - - -class DatetimeWrapper(msrest.serialization.Model): - """DatetimeWrapper. - - :ivar field: - :vartype field: ~datetime.datetime - :ivar now: - :vartype now: ~datetime.datetime - """ - - _attribute_map = { - "field": {"key": "field", "type": "iso-8601"}, - "now": {"key": "now", "type": "iso-8601"}, - } - - def __init__(self, *, field: Optional[datetime.datetime] = None, now: Optional[datetime.datetime] = None, **kwargs): - """ - :keyword field: - :paramtype field: ~datetime.datetime - :keyword now: - :paramtype now: ~datetime.datetime - """ - super(DatetimeWrapper, self).__init__(**kwargs) - self.field = field - self.now = now - - -class DateWrapper(msrest.serialization.Model): - """DateWrapper. - - :ivar field: - :vartype field: ~datetime.date - :ivar leap: - :vartype leap: ~datetime.date - """ - - _attribute_map = { - "field": {"key": "field", "type": "date"}, - "leap": {"key": "leap", "type": "date"}, - } - - def __init__(self, *, field: Optional[datetime.date] = None, leap: Optional[datetime.date] = None, **kwargs): - """ - :keyword field: - :paramtype field: ~datetime.date - :keyword leap: - :paramtype leap: ~datetime.date - """ - super(DateWrapper, self).__init__(**kwargs) - self.field = field - self.leap = leap - - -class DictionaryWrapper(msrest.serialization.Model): - """DictionaryWrapper. - - :ivar default_program: Dictionary of :code:``. - :vartype default_program: dict[str, str] - """ - - _attribute_map = { - "default_program": {"key": "defaultProgram", "type": "{str}"}, - } - - def __init__(self, *, default_program: Optional[Dict[str, str]] = None, **kwargs): - """ - :keyword default_program: Dictionary of :code:``. - :paramtype default_program: dict[str, str] - """ - super(DictionaryWrapper, self).__init__(**kwargs) - self.default_program = default_program - - -class Dog(Pet): - """Dog. - - :ivar id: - :vartype id: int - :ivar name: - :vartype name: str - :ivar food: - :vartype food: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "food": {"key": "food", "type": "str"}, - } - - def __init__(self, *, id: Optional[int] = None, name: Optional[str] = None, food: Optional[str] = None, **kwargs): - """ - :keyword id: - :paramtype id: int - :keyword name: - :paramtype name: str - :keyword food: - :paramtype food: str - """ - super(Dog, self).__init__(id=id, name=name, **kwargs) - self.food = food - - -class DotFish(msrest.serialization.Model): - """DotFish. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: DotSalmon. - - All required parameters must be populated in order to send to Azure. - - :ivar fish_type: Required. Constant filled by server. - :vartype fish_type: str - :ivar species: - :vartype species: str - """ - - _validation = { - "fish_type": {"required": True}, - } - - _attribute_map = { - "fish_type": {"key": "fish\\.type", "type": "str"}, - "species": {"key": "species", "type": "str"}, - } - - _subtype_map = {"fish_type": {"DotSalmon": "DotSalmon"}} - - def __init__(self, *, species: Optional[str] = None, **kwargs): - """ - :keyword species: - :paramtype species: str - """ - super(DotFish, self).__init__(**kwargs) - self.fish_type = None # type: Optional[str] - self.species = species - - -class DotFishMarket(msrest.serialization.Model): - """DotFishMarket. - - :ivar sample_salmon: - :vartype sample_salmon: ~bodycomplexpython3only.models.DotSalmon - :ivar salmons: - :vartype salmons: list[~bodycomplexpython3only.models.DotSalmon] - :ivar sample_fish: - :vartype sample_fish: ~bodycomplexpython3only.models.DotFish - :ivar fishes: - :vartype fishes: list[~bodycomplexpython3only.models.DotFish] - """ - - _attribute_map = { - "sample_salmon": {"key": "sampleSalmon", "type": "DotSalmon"}, - "salmons": {"key": "salmons", "type": "[DotSalmon]"}, - "sample_fish": {"key": "sampleFish", "type": "DotFish"}, - "fishes": {"key": "fishes", "type": "[DotFish]"}, - } - - def __init__( - self, - *, - sample_salmon: Optional["DotSalmon"] = None, - salmons: Optional[List["DotSalmon"]] = None, - sample_fish: Optional["DotFish"] = None, - fishes: Optional[List["DotFish"]] = None, - **kwargs - ): - """ - :keyword sample_salmon: - :paramtype sample_salmon: ~bodycomplexpython3only.models.DotSalmon - :keyword salmons: - :paramtype salmons: list[~bodycomplexpython3only.models.DotSalmon] - :keyword sample_fish: - :paramtype sample_fish: ~bodycomplexpython3only.models.DotFish - :keyword fishes: - :paramtype fishes: list[~bodycomplexpython3only.models.DotFish] - """ - super(DotFishMarket, self).__init__(**kwargs) - self.sample_salmon = sample_salmon - self.salmons = salmons - self.sample_fish = sample_fish - self.fishes = fishes - - -class DotSalmon(DotFish): - """DotSalmon. - - All required parameters must be populated in order to send to Azure. - - :ivar fish_type: Required. Constant filled by server. - :vartype fish_type: str - :ivar species: - :vartype species: str - :ivar location: - :vartype location: str - :ivar iswild: - :vartype iswild: bool - """ - - _validation = { - "fish_type": {"required": True}, - } - - _attribute_map = { - "fish_type": {"key": "fish\\.type", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "iswild": {"key": "iswild", "type": "bool"}, - } - - def __init__( - self, *, species: Optional[str] = None, location: Optional[str] = None, iswild: Optional[bool] = None, **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword location: - :paramtype location: str - :keyword iswild: - :paramtype iswild: bool - """ - super(DotSalmon, self).__init__(species=species, **kwargs) - self.fish_type = "DotSalmon" # type: str - self.location = location - self.iswild = iswild - - -class DoubleWrapper(msrest.serialization.Model): - """DoubleWrapper. - - :ivar field1: - :vartype field1: float - :ivar - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - :vartype - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - float - """ - - _attribute_map = { - "field1": {"key": "field1", "type": "float"}, - "field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": { - "key": "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose", - "type": "float", - }, - } - - def __init__( - self, - *, - field1: Optional[float] = None, - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Optional[ - float - ] = None, - **kwargs - ): - """ - :keyword field1: - :paramtype field1: float - :keyword - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - :paramtype - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - float - """ - super(DoubleWrapper, self).__init__(**kwargs) - self.field1 = field1 - self.field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose = ( - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose - ) - - -class DurationWrapper(msrest.serialization.Model): - """DurationWrapper. - - :ivar field: - :vartype field: ~datetime.timedelta - """ - - _attribute_map = { - "field": {"key": "field", "type": "duration"}, - } - - def __init__(self, *, field: Optional[datetime.timedelta] = None, **kwargs): - """ - :keyword field: - :paramtype field: ~datetime.timedelta - """ - super(DurationWrapper, self).__init__(**kwargs) - self.field = field - - -class Error(msrest.serialization.Model): - """Error. - - :ivar status: - :vartype status: int - :ivar message: - :vartype message: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "int"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, status: Optional[int] = None, message: Optional[str] = None, **kwargs): - """ - :keyword status: - :paramtype status: int - :keyword message: - :paramtype message: str - """ - super(Error, self).__init__(**kwargs) - self.status = status - self.message = message - - -class FloatWrapper(msrest.serialization.Model): - """FloatWrapper. - - :ivar field1: - :vartype field1: float - :ivar field2: - :vartype field2: float - """ - - _attribute_map = { - "field1": {"key": "field1", "type": "float"}, - "field2": {"key": "field2", "type": "float"}, - } - - def __init__(self, *, field1: Optional[float] = None, field2: Optional[float] = None, **kwargs): - """ - :keyword field1: - :paramtype field1: float - :keyword field2: - :paramtype field2: float - """ - super(FloatWrapper, self).__init__(**kwargs) - self.field1 = field1 - self.field2 = field2 - - -class Goblinshark(Shark): - """Goblinshark. - - All required parameters must be populated in order to send to Azure. - - :ivar fishtype: Required. Constant filled by server. - :vartype fishtype: str - :ivar species: - :vartype species: str - :ivar length: Required. - :vartype length: float - :ivar siblings: - :vartype siblings: list[~bodycomplexpython3only.models.Fish] - :ivar age: - :vartype age: int - :ivar birthday: Required. - :vartype birthday: ~datetime.datetime - :ivar jawsize: - :vartype jawsize: int - :ivar color: Colors possible. Possible values include: "pink", "gray", "brown", "RED", "red". - Default value: "gray". - :vartype color: str or ~bodycomplexpython3only.models.GoblinSharkColor - """ - - _validation = { - "fishtype": {"required": True}, - "length": {"required": True}, - "birthday": {"required": True}, - } - - _attribute_map = { - "fishtype": {"key": "fishtype", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "length": {"key": "length", "type": "float"}, - "siblings": {"key": "siblings", "type": "[Fish]"}, - "age": {"key": "age", "type": "int"}, - "birthday": {"key": "birthday", "type": "iso-8601"}, - "jawsize": {"key": "jawsize", "type": "int"}, - "color": {"key": "color", "type": "str"}, - } - - def __init__( - self, - *, - length: float, - birthday: datetime.datetime, - species: Optional[str] = None, - siblings: Optional[List["Fish"]] = None, - age: Optional[int] = None, - jawsize: Optional[int] = None, - color: Optional[Union[str, "GoblinSharkColor"]] = "gray", - **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword length: Required. - :paramtype length: float - :keyword siblings: - :paramtype siblings: list[~bodycomplexpython3only.models.Fish] - :keyword age: - :paramtype age: int - :keyword birthday: Required. - :paramtype birthday: ~datetime.datetime - :keyword jawsize: - :paramtype jawsize: int - :keyword color: Colors possible. Possible values include: "pink", "gray", "brown", "RED", - "red". Default value: "gray". - :paramtype color: str or ~bodycomplexpython3only.models.GoblinSharkColor - """ - super(Goblinshark, self).__init__( - species=species, length=length, siblings=siblings, age=age, birthday=birthday, **kwargs - ) - self.fishtype = "goblin" # type: str - self.jawsize = jawsize - self.color = color - - -class IntWrapper(msrest.serialization.Model): - """IntWrapper. - - :ivar field1: - :vartype field1: int - :ivar field2: - :vartype field2: int - """ - - _attribute_map = { - "field1": {"key": "field1", "type": "int"}, - "field2": {"key": "field2", "type": "int"}, - } - - def __init__(self, *, field1: Optional[int] = None, field2: Optional[int] = None, **kwargs): - """ - :keyword field1: - :paramtype field1: int - :keyword field2: - :paramtype field2: int - """ - super(IntWrapper, self).__init__(**kwargs) - self.field1 = field1 - self.field2 = field2 - - -class LongWrapper(msrest.serialization.Model): - """LongWrapper. - - :ivar field1: - :vartype field1: long - :ivar field2: - :vartype field2: long - """ - - _attribute_map = { - "field1": {"key": "field1", "type": "long"}, - "field2": {"key": "field2", "type": "long"}, - } - - def __init__(self, *, field1: Optional[int] = None, field2: Optional[int] = None, **kwargs): - """ - :keyword field1: - :paramtype field1: long - :keyword field2: - :paramtype field2: long - """ - super(LongWrapper, self).__init__(**kwargs) - self.field1 = field1 - self.field2 = field2 - - -class MyBaseType(msrest.serialization.Model): - """MyBaseType. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: MyDerivedType. - - All required parameters must be populated in order to send to Azure. - - :ivar kind: Required. Constant filled by server. Possible values include: "Kind1". - :vartype kind: str or ~bodycomplexpython3only.models.MyKind - :ivar prop_b1: - :vartype prop_b1: str - :ivar prop_bh1: - :vartype prop_bh1: str - """ - - _validation = { - "kind": {"required": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "prop_b1": {"key": "propB1", "type": "str"}, - "prop_bh1": {"key": "helper.propBH1", "type": "str"}, - } - - _subtype_map = {"kind": {"Kind1": "MyDerivedType"}} - - def __init__(self, *, prop_b1: Optional[str] = None, prop_bh1: Optional[str] = None, **kwargs): - """ - :keyword prop_b1: - :paramtype prop_b1: str - :keyword prop_bh1: - :paramtype prop_bh1: str - """ - super(MyBaseType, self).__init__(**kwargs) - self.kind = None # type: Optional[str] - self.prop_b1 = prop_b1 - self.prop_bh1 = prop_bh1 - - -class MyDerivedType(MyBaseType): - """MyDerivedType. - - All required parameters must be populated in order to send to Azure. - - :ivar kind: Required. Constant filled by server. Possible values include: "Kind1". - :vartype kind: str or ~bodycomplexpython3only.models.MyKind - :ivar prop_b1: - :vartype prop_b1: str - :ivar prop_bh1: - :vartype prop_bh1: str - :ivar prop_d1: - :vartype prop_d1: str - """ - - _validation = { - "kind": {"required": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "prop_b1": {"key": "propB1", "type": "str"}, - "prop_bh1": {"key": "helper.propBH1", "type": "str"}, - "prop_d1": {"key": "propD1", "type": "str"}, - } - - def __init__( - self, *, prop_b1: Optional[str] = None, prop_bh1: Optional[str] = None, prop_d1: Optional[str] = None, **kwargs - ): - """ - :keyword prop_b1: - :paramtype prop_b1: str - :keyword prop_bh1: - :paramtype prop_bh1: str - :keyword prop_d1: - :paramtype prop_d1: str - """ - super(MyDerivedType, self).__init__(prop_b1=prop_b1, prop_bh1=prop_bh1, **kwargs) - self.kind = "Kind1" # type: str - self.prop_d1 = prop_d1 - - -class ReadonlyObj(msrest.serialization.Model): - """ReadonlyObj. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: - :vartype id: str - :ivar size: - :vartype size: int - """ - - _validation = { - "id": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "size": {"key": "size", "type": "int"}, - } - - def __init__(self, *, size: Optional[int] = None, **kwargs): - """ - :keyword size: - :paramtype size: int - """ - super(ReadonlyObj, self).__init__(**kwargs) - self.id = None - self.size = size - - -class Salmon(Fish): - """Salmon. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: SmartSalmon. - - All required parameters must be populated in order to send to Azure. - - :ivar fishtype: Required. Constant filled by server. - :vartype fishtype: str - :ivar species: - :vartype species: str - :ivar length: Required. - :vartype length: float - :ivar siblings: - :vartype siblings: list[~bodycomplexpython3only.models.Fish] - :ivar location: - :vartype location: str - :ivar iswild: - :vartype iswild: bool - """ - - _validation = { - "fishtype": {"required": True}, - "length": {"required": True}, - } - - _attribute_map = { - "fishtype": {"key": "fishtype", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "length": {"key": "length", "type": "float"}, - "siblings": {"key": "siblings", "type": "[Fish]"}, - "location": {"key": "location", "type": "str"}, - "iswild": {"key": "iswild", "type": "bool"}, - } - - _subtype_map = {"fishtype": {"smart_salmon": "SmartSalmon"}} - - def __init__( - self, - *, - length: float, - species: Optional[str] = None, - siblings: Optional[List["Fish"]] = None, - location: Optional[str] = None, - iswild: Optional[bool] = None, - **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword length: Required. - :paramtype length: float - :keyword siblings: - :paramtype siblings: list[~bodycomplexpython3only.models.Fish] - :keyword location: - :paramtype location: str - :keyword iswild: - :paramtype iswild: bool - """ - super(Salmon, self).__init__(species=species, length=length, siblings=siblings, **kwargs) - self.fishtype = "salmon" # type: str - self.location = location - self.iswild = iswild - - -class Sawshark(Shark): - """Sawshark. - - All required parameters must be populated in order to send to Azure. - - :ivar fishtype: Required. Constant filled by server. - :vartype fishtype: str - :ivar species: - :vartype species: str - :ivar length: Required. - :vartype length: float - :ivar siblings: - :vartype siblings: list[~bodycomplexpython3only.models.Fish] - :ivar age: - :vartype age: int - :ivar birthday: Required. - :vartype birthday: ~datetime.datetime - :ivar picture: - :vartype picture: bytearray - """ - - _validation = { - "fishtype": {"required": True}, - "length": {"required": True}, - "birthday": {"required": True}, - } - - _attribute_map = { - "fishtype": {"key": "fishtype", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "length": {"key": "length", "type": "float"}, - "siblings": {"key": "siblings", "type": "[Fish]"}, - "age": {"key": "age", "type": "int"}, - "birthday": {"key": "birthday", "type": "iso-8601"}, - "picture": {"key": "picture", "type": "bytearray"}, - } - - def __init__( - self, - *, - length: float, - birthday: datetime.datetime, - species: Optional[str] = None, - siblings: Optional[List["Fish"]] = None, - age: Optional[int] = None, - picture: Optional[bytearray] = None, - **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword length: Required. - :paramtype length: float - :keyword siblings: - :paramtype siblings: list[~bodycomplexpython3only.models.Fish] - :keyword age: - :paramtype age: int - :keyword birthday: Required. - :paramtype birthday: ~datetime.datetime - :keyword picture: - :paramtype picture: bytearray - """ - super(Sawshark, self).__init__( - species=species, length=length, siblings=siblings, age=age, birthday=birthday, **kwargs - ) - self.fishtype = "sawshark" # type: str - self.picture = picture - - -class Siamese(Cat): - """Siamese. - - :ivar id: - :vartype id: int - :ivar name: - :vartype name: str - :ivar color: - :vartype color: str - :ivar hates: - :vartype hates: list[~bodycomplexpython3only.models.Dog] - :ivar breed: - :vartype breed: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "color": {"key": "color", "type": "str"}, - "hates": {"key": "hates", "type": "[Dog]"}, - "breed": {"key": "breed", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[int] = None, - name: Optional[str] = None, - color: Optional[str] = None, - hates: Optional[List["Dog"]] = None, - breed: Optional[str] = None, - **kwargs - ): - """ - :keyword id: - :paramtype id: int - :keyword name: - :paramtype name: str - :keyword color: - :paramtype color: str - :keyword hates: - :paramtype hates: list[~bodycomplexpython3only.models.Dog] - :keyword breed: - :paramtype breed: str - """ - super(Siamese, self).__init__(id=id, name=name, color=color, hates=hates, **kwargs) - self.breed = breed - - -class SmartSalmon(Salmon): - """SmartSalmon. - - All required parameters must be populated in order to send to Azure. - - :ivar fishtype: Required. Constant filled by server. - :vartype fishtype: str - :ivar species: - :vartype species: str - :ivar length: Required. - :vartype length: float - :ivar siblings: - :vartype siblings: list[~bodycomplexpython3only.models.Fish] - :ivar location: - :vartype location: str - :ivar iswild: - :vartype iswild: bool - :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. - :vartype additional_properties: dict[str, any] - :ivar college_degree: - :vartype college_degree: str - """ - - _validation = { - "fishtype": {"required": True}, - "length": {"required": True}, - } - - _attribute_map = { - "fishtype": {"key": "fishtype", "type": "str"}, - "species": {"key": "species", "type": "str"}, - "length": {"key": "length", "type": "float"}, - "siblings": {"key": "siblings", "type": "[Fish]"}, - "location": {"key": "location", "type": "str"}, - "iswild": {"key": "iswild", "type": "bool"}, - "additional_properties": {"key": "", "type": "{object}"}, - "college_degree": {"key": "college_degree", "type": "str"}, - } - - def __init__( - self, - *, - length: float, - species: Optional[str] = None, - siblings: Optional[List["Fish"]] = None, - location: Optional[str] = None, - iswild: Optional[bool] = None, - additional_properties: Optional[Dict[str, Any]] = None, - college_degree: Optional[str] = None, - **kwargs - ): - """ - :keyword species: - :paramtype species: str - :keyword length: Required. - :paramtype length: float - :keyword siblings: - :paramtype siblings: list[~bodycomplexpython3only.models.Fish] - :keyword location: - :paramtype location: str - :keyword iswild: - :paramtype iswild: bool - :keyword additional_properties: Unmatched properties from the message are deserialized to this - collection. - :paramtype additional_properties: dict[str, any] - :keyword college_degree: - :paramtype college_degree: str - """ - super(SmartSalmon, self).__init__( - species=species, length=length, siblings=siblings, location=location, iswild=iswild, **kwargs - ) - self.fishtype = "smart_salmon" # type: str - self.additional_properties = additional_properties - self.college_degree = college_degree - - -class StringWrapper(msrest.serialization.Model): - """StringWrapper. - - :ivar field: - :vartype field: str - :ivar empty: - :vartype empty: str - :ivar null: - :vartype null: str - """ - - _attribute_map = { - "field": {"key": "field", "type": "str"}, - "empty": {"key": "empty", "type": "str"}, - "null": {"key": "null", "type": "str"}, - } - - def __init__( - self, *, field: Optional[str] = None, empty: Optional[str] = None, null: Optional[str] = None, **kwargs - ): - """ - :keyword field: - :paramtype field: str - :keyword empty: - :paramtype empty: str - :keyword null: - :paramtype null: str - """ - super(StringWrapper, self).__init__(**kwargs) - self.field = field - self.empty = empty - self.null = null diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py deleted file mode 100644 index a367b382d8d..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._basic_operations_py3 import BasicOperations -from ._primitive_operations_py3 import PrimitiveOperations -from ._array_operations_py3 import ArrayOperations -from ._dictionary_operations_py3 import DictionaryOperations -from ._inheritance_operations_py3 import InheritanceOperations -from ._polymorphism_operations_py3 import PolymorphismOperations -from ._polymorphicrecursive_operations_py3 import PolymorphicrecursiveOperations -from ._readonlyproperty_operations_py3 import ReadonlypropertyOperations -from ._flattencomplex_operations_py3 import FlattencomplexOperations - -__all__ = [ - "BasicOperations", - "PrimitiveOperations", - "ArrayOperations", - "DictionaryOperations", - "InheritanceOperations", - "PolymorphismOperations", - "PolymorphicrecursiveOperations", - "ReadonlypropertyOperations", - "FlattencomplexOperations", -] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py deleted file mode 100644 index 5b087455231..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py +++ /dev/null @@ -1,306 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_empty_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_empty_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/notprovided") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -class ArrayOperations(object): - """ArrayOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": - """Get complex types with array property. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArrayWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ArrayWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ArrayWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ArrayWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace - def put_valid(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: - """Put complex types with array property. - - :param array: - :type array: list[str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ArrayWrapper(array=array) - json = self._serialize.body(_complex_body, "ArrayWrapper") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace - def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": - """Get complex types with array property which is empty. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArrayWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ArrayWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ArrayWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_empty_request( - template_url=self.get_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ArrayWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace - def put_empty(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: - """Put complex types with array property which is empty. - - :param array: - :type array: list[str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ArrayWrapper(array=array) - json = self._serialize.body(_complex_body, "ArrayWrapper") - - request = build_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace - def get_not_provided(self, **kwargs: Any) -> "_models.ArrayWrapper": - """Get complex types with array property while server doesn't provide a response payload. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ArrayWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ArrayWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ArrayWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ArrayWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/array/notprovided"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations_py3.py deleted file mode 100644 index 1d78a910a73..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations_py3.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - api_version = "2016-02-29" - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs - ) - - -def build_get_invalid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/invalid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_get_empty_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_get_null_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/null") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/notprovided") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -class BasicOperations(object): - """BasicOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.Basic": - """Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: "_models.Basic", **kwargs: Any) -> None: - """Please put {id: 2, name: 'abc', color: 'Magenta'}. - - :param complex_body: Please put {id: 2, name: 'abc', color: 'Magenta'}. - :type complex_body: ~bodycomplexpython3only.models.Basic - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Basic") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace - def get_invalid(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type that is invalid for the local strong type. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_invalid_request( - template_url=self.get_invalid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_invalid.metadata = {"url": "/complex/basic/invalid"} # type: ignore - - @distributed_trace - def get_empty(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type that is empty. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_empty_request( - template_url=self.get_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/basic/empty"} # type: ignore - - @distributed_trace - def get_null(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type whose properties are null. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_null_request( - template_url=self.get_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/basic/null"} # type: ignore - - @distributed_trace - def get_not_provided(self, **kwargs: Any) -> "_models.Basic": - """Get a basic complex type while the server doesn't provide a response payload. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Basic, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Basic - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Basic"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Basic", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/basic/notprovided"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations_py3.py deleted file mode 100644 index 8eb56c1ac7e..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations_py3.py +++ /dev/null @@ -1,353 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_empty_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_empty_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_null_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/null") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_get_not_provided_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/notprovided") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -class DictionaryOperations(object): - """DictionaryOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace - def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """Put complex types with dictionary property. - - :param default_program: Dictionary of :code:``. - :type default_program: dict[str, str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.DictionaryWrapper(default_program=default_program) - json = self._serialize.body(_complex_body, "DictionaryWrapper") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace - def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property which is empty. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_empty_request( - template_url=self.get_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace - def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """Put complex types with dictionary property which is empty. - - :param default_program: Dictionary of :code:``. - :type default_program: dict[str, str] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.DictionaryWrapper(default_program=default_program) - json = self._serialize.body(_complex_body, "DictionaryWrapper") - - request = build_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace - def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property which is null. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_null_request( - template_url=self.get_null.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/dictionary/typed/null"} # type: ignore - - @distributed_trace - def get_not_provided(self, **kwargs: Any) -> "_models.DictionaryWrapper": - """Get complex types with dictionary property while server doesn't provide a response payload. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DictionaryWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DictionaryWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DictionaryWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DictionaryWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/dictionary/typed/notprovided"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations_py3.py deleted file mode 100644 index abbfa973bc8..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations_py3.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/flatten/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -class FlattencomplexOperations(object): - """FlattencomplexOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": - """get_valid. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: MyBaseType, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.MyBaseType - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.MyBaseType"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize("MyBaseType", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/flatten/valid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations_py3.py deleted file mode 100644 index 0ad7443192f..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations_py3.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -class InheritanceOperations(object): - """InheritanceOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.Siamese": - """Get complex types that extend others. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Siamese, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Siamese - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Siamese"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Siamese", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: "_models.Siamese", **kwargs: Any) -> None: - """Put complex types that extend others. - - :param complex_body: Please put a siamese with id=2, name="Siameee", color=green, - breed=persion, which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", and - the 2nd one named "Tomato" with id=-1 and food="french fries". - :type complex_body: ~bodycomplexpython3only.models.Siamese - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Siamese") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_operations_py3.py deleted file mode 100644 index d1c2538b372..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_operations_py3.py +++ /dev/null @@ -1,3762 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_basic_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_basic_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - api_version = "2016-02-29" - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/valid") - - # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest( - method="PUT", url=url, params=query_parameters, headers=header_parameters, json=json, content=content, **kwargs - ) - - -def build_basic_get_invalid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/invalid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_basic_get_empty_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_basic_get_null_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/null") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_basic_get_not_provided_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/basic/notprovided") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_get_int_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_int_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_long_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_long_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_float_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_float_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_double_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_double_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_bool_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_bool_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_string_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_string_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_date_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_date_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_date_time_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_date_time_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_date_time_rfc1123_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_date_time_rfc1123_request( - *, json: Any = None, content: Any = None, **kwargs: Any -) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_duration_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_duration_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_primitive_get_byte_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_primitive_put_byte_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_array_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_array_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_array_get_empty_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_array_put_empty_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_array_get_not_provided_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/array/notprovided") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_dictionary_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_dictionary_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_dictionary_get_empty_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_dictionary_put_empty_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/empty") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_dictionary_get_null_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/null") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_dictionary_get_not_provided_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/dictionary/typed/notprovided") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_inheritance_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_inheritance_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/inheritance/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_polymorphism_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_polymorphism_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_polymorphism_get_dot_syntax_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/dotsyntax") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_polymorphism_get_composed_with_discriminator_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithDiscriminator") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_polymorphism_get_composed_without_discriminator_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithoutDiscriminator") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_polymorphism_get_complicated_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_polymorphism_put_complicated_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_polymorphism_put_missing_discriminator_request( - *, json: Any = None, content: Any = None, **kwargs: Any -) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingdiscriminator") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_polymorphism_put_valid_missing_required_request( - *, json: Any = None, content: Any = None, **kwargs: Any -) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingrequired/invalid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_polymorphicrecursive_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_polymorphicrecursive_put_valid_request( - *, json: Any = None, content: Any = None, **kwargs: Any -) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_readonlyproperty_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_readonlyproperty_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_flattencomplex_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/flatten/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -class BasicOperations(object): - """BasicOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Please put {id: 2, name: 'abc', color: 'Magenta'}. - - :param complex_body: Please put {id: 2, name: 'abc', color: 'Magenta'}. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_basic_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore - - @distributed_trace - def get_invalid(self, **kwargs: Any) -> Any: - """Get a basic complex type that is invalid for the local strong type. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_invalid_request( - template_url=self.get_invalid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_invalid.metadata = {"url": "/complex/basic/invalid"} # type: ignore - - @distributed_trace - def get_empty(self, **kwargs: Any) -> Any: - """Get a basic complex type that is empty. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_empty_request( - template_url=self.get_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/basic/empty"} # type: ignore - - @distributed_trace - def get_null(self, **kwargs: Any) -> Any: - """Get a basic complex type whose properties are null. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_null_request( - template_url=self.get_null.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/basic/null"} # type: ignore - - @distributed_trace - def get_not_provided(self, **kwargs: Any) -> Any: - """Get a basic complex type while the server doesn't provide a response payload. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "color": "str", # Optional. Valid values are: "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_basic_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/basic/notprovided"} # type: ignore - - -class PrimitiveOperations(object): - """PrimitiveOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_int(self, **kwargs: Any) -> Any: - """Get complex types with integer properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field1": 0, # Optional. - "field2": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_int_request( - template_url=self.get_int.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace - def put_int(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with integer properties. - - :param complex_body: Please put -1 and 2. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field1": 0, # Optional. - "field2": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_int_request( - content_type=content_type, - json=json, - template_url=self.put_int.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace - def get_long(self, **kwargs: Any) -> Any: - """Get complex types with long properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_long_request( - template_url=self.get_long.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace - def put_long(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with long properties. - - :param complex_body: Please put 1099511627775 and -999511627788. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_long_request( - content_type=content_type, - json=json, - template_url=self.put_long.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace - def get_float(self, **kwargs: Any) -> Any: - """Get complex types with float properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_float_request( - template_url=self.get_float.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace - def put_float(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with float properties. - - :param complex_body: Please put 1.05 and -0.003. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field1": 0.0, # Optional. - "field2": 0.0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_float_request( - content_type=content_type, - json=json, - template_url=self.put_float.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace - def get_double(self, **kwargs: Any) -> Any: - """Get complex types with double properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # 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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_double_request( - template_url=self.get_double.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace - def put_double(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with double properties. - - :param complex_body: Please put 3e-100 and - -0.000000000000000000000000000000000000000000000000000000005. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "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. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_double_request( - content_type=content_type, - json=json, - template_url=self.put_double.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace - def get_bool(self, **kwargs: Any) -> Any: - """Get complex types with bool properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field_false": bool, # Optional. - "field_true": bool # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_bool_request( - template_url=self.get_bool.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace - def put_bool(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with bool properties. - - :param complex_body: Please put true and false. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field_false": bool, # Optional. - "field_true": bool # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_bool_request( - content_type=content_type, - json=json, - template_url=self.put_bool.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace - def get_string(self, **kwargs: Any) -> Any: - """Get complex types with string properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "empty": "str", # Optional. - "field": "str", # Optional. - "null": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_string_request( - template_url=self.get_string.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace - def put_string(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with string properties. - - :param complex_body: Please put 'goodrequest', '', and null. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "empty": "str", # Optional. - "field": "str", # Optional. - "null": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_string_request( - content_type=content_type, - json=json, - template_url=self.put_string.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace - def get_date(self, **kwargs: Any) -> Any: - """Get complex types with date properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "2020-02-20", # Optional. - "leap": "2020-02-20" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_date_request( - template_url=self.get_date.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace - def put_date(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with date properties. - - :param complex_body: Please put '0001-01-01' and '2016-02-29'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "2020-02-20", # Optional. - "leap": "2020-02-20" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_date_request( - content_type=content_type, - json=json, - template_url=self.put_date.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace - def get_date_time(self, **kwargs: Any) -> Any: - """Get complex types with datetime properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_date_time_request( - template_url=self.get_date_time.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace - def put_date_time(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with datetime properties. - - :param complex_body: Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_date_time_request( - content_type=content_type, - json=json, - template_url=self.put_date_time.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace - def get_date_time_rfc1123(self, **kwargs: Any) -> Any: - """Get complex types with datetimeRfc1123 properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_date_time_rfc1123_request( - template_url=self.get_date_time_rfc1123.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace - def put_date_time_rfc1123(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with datetimeRfc1123 properties. - - :param complex_body: Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 - GMT'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "2020-02-20 00:00:00", # Optional. - "now": "2020-02-20 00:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_date_time_rfc1123_request( - content_type=content_type, - json=json, - template_url=self.put_date_time_rfc1123.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace - def get_duration(self, **kwargs: Any) -> Any: - """Get complex types with duration properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": "1 day, 0:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_duration_request( - template_url=self.get_duration.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace - def put_duration(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with duration properties. - - :param complex_body: Please put 'P123DT22H14M12.011S'. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": "1 day, 0:00:00" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_duration_request( - content_type=content_type, - json=json, - template_url=self.put_duration.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace - def get_byte(self, **kwargs: Any) -> Any: - """Get complex types with byte properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "field": bytearray("bytearray", encoding="utf-8") # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_primitive_get_byte_request( - template_url=self.get_byte.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore - - @distributed_trace - def put_byte(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with byte properties. - - :param complex_body: Please put non-ascii byte string hex(FF FE FD FC 00 FA F9 F8 F7 F6). - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "field": bytearray("bytearray", encoding="utf-8") # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_primitive_put_byte_request( - content_type=content_type, - json=json, - template_url=self.put_byte.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore - - -class ArrayOperations(object): - """ArrayOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """Get complex types with array property. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_array_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with array property. - - :param complex_body: Please put an array with 4 items: "1, 2, 3, 4", "", null, "&S#$(*Y", "The - quick brown fox jumps over the lazy dog". - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_array_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/array/valid"} # type: ignore - - @distributed_trace - def get_empty(self, **kwargs: Any) -> Any: - """Get complex types with array property which is empty. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_array_get_empty_request( - template_url=self.get_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace - def put_empty(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with array property which is empty. - - :param complex_body: Please put an empty array. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_array_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/array/empty"} # type: ignore - - @distributed_trace - def get_not_provided(self, **kwargs: Any) -> Any: - """Get complex types with array property while server doesn't provide a response payload. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "array": [ - "str" # Optional. - ] - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_array_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/array/notprovided"} # type: ignore - - -class DictionaryOperations(object): - """DictionaryOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with dictionary property. - - :param complex_body: Please put a dictionary with 5 key-value pairs: "txt":"notepad", - "bmp":"mspaint", "xls":"excel", "exe":"", "":null. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_dictionary_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore - - @distributed_trace - def get_empty(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property which is empty. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_empty_request( - template_url=self.get_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace - def put_empty(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types with dictionary property which is empty. - - :param complex_body: Please put an empty dictionary. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_dictionary_put_empty_request( - content_type=content_type, - json=json, - template_url=self.put_empty.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore - - @distributed_trace - def get_null(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property which is null. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_null_request( - template_url=self.get_null.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_null.metadata = {"url": "/complex/dictionary/typed/null"} # type: ignore - - @distributed_trace - def get_not_provided(self, **kwargs: Any) -> Any: - """Get complex types with dictionary property while server doesn't provide a response payload. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "defaultProgram": { - "str": "str" # Optional. Dictionary of :code:``. - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_dictionary_get_not_provided_request( - template_url=self.get_not_provided.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_not_provided.metadata = {"url": "/complex/dictionary/typed/notprovided"} # type: ignore - - -class InheritanceOperations(object): - """InheritanceOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that extend others. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "breed": "str", # Optional. - "color": "str", # Optional. - "hates": [ - { - "food": "str", # Optional. - "id": 0, # Optional. - "name": "str" # Optional. - } - ], - "id": 0, # Optional. - "name": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_inheritance_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that extend others. - - :param complex_body: Please put a siamese with id=2, name="Siameee", color=green, - breed=persion, which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", and - the 2nd one named "Tomato" with id=-1 and food="french fries". - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "breed": "str", # Optional. - "color": "str", # Optional. - "hates": [ - { - "food": "str", # Optional. - "id": 0, # Optional. - "name": "str" # Optional. - } - ], - "id": 0, # Optional. - "name": "str" # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_inheritance_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore - - -class PolymorphismOperations(object): - """PolymorphismOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic. - - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'Salmon' or 'Shark' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace - def get_dot_syntax(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic, JSON key contains a dot. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "species": "str", # Optional. - fish.type: fish.type - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_dot_syntax_request( - template_url=self.get_dot_syntax.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dot_syntax.metadata = {"url": "/complex/polymorphism/dotsyntax"} # type: ignore - - @distributed_trace - def get_composed_with_discriminator(self, **kwargs: Any) -> Any: - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "fishes": [ - { - "species": "str", # Optional. - fish.type: fish.type - } - ], - "salmons": [ - { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - ], - "sampleFish": { - "species": "str", # Optional. - fish.type: fish.type - }, - "sampleSalmon": { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_composed_with_discriminator_request( - template_url=self.get_composed_with_discriminator.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_with_discriminator.metadata = {"url": "/complex/polymorphism/composedWithDiscriminator"} # type: ignore - - @distributed_trace - def get_composed_without_discriminator(self, **kwargs: Any) -> Any: - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "fishes": [ - { - "species": "str", # Optional. - fish.type: fish.type - } - ], - "salmons": [ - { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - ], - "sampleFish": { - "species": "str", # Optional. - fish.type: fish.type - }, - "sampleSalmon": { - "iswild": bool, # Optional. - "location": "str", # Optional. - "species": "str", # Optional. - fish.type: DotSalmon - } - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_composed_without_discriminator_request( - template_url=self.get_composed_without_discriminator.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_without_discriminator.metadata = {"url": "/complex/polymorphism/composedWithoutDiscriminator"} # type: ignore - - @distributed_trace - def get_complicated(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphism_get_complicated_request( - template_url=self.get_complicated.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace - def put_complicated(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :param complex_body: - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'SmartSalmon' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_complicated_request( - content_type=content_type, - json=json, - template_url=self.put_complicated.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace - def put_missing_discriminator(self, complex_body: Any, **kwargs: Any) -> Any: - """Put complex types that are polymorphic, omitting the discriminator. - - :param complex_body: - :type complex_body: Any - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'SmartSalmon' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - - # response body for status code(s): 200 - response.json() == { - "iswild": bool, # Optional. - "length": 0.0, - "location": "str", # Optional. - "siblings": [ - { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - ], - "species": "str", # Optional. - fishtype: salmon - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_missing_discriminator_request( - content_type=content_type, - json=json, - template_url=self.put_missing_discriminator.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - put_missing_discriminator.metadata = {"url": "/complex/polymorphism/missingdiscriminator"} # type: ignore - - @distributed_trace - def put_valid_missing_required(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. - - :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'Salmon' or 'Shark' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphism_put_valid_missing_required_request( - content_type=content_type, - json=json, - template_url=self.put_valid_missing_required.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid_missing_required.metadata = {"url": "/complex/polymorphism/missingrequired/invalid"} # type: ignore - - -class PolymorphicrecursiveOperations(object): - """PolymorphicrecursiveOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that are polymorphic and have recursive references. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_polymorphicrecursive_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that are polymorphic and have recursive references. - - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - fishtype = 'Salmon' or 'Shark' - - # JSON input template you can fill out and use as your body input. - complex_body = { - "length": 0.0, - "siblings": [ - ... - ], - "species": "str", # Optional. - fishtype: fishtype - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_polymorphicrecursive_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore - - -class ReadonlypropertyOperations(object): - """ReadonlypropertyOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """Get complex types that have readonly properties. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "id": "str", # Optional. - "size": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_readonlyproperty_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: Any, **kwargs: Any) -> None: - """Put complex types that have readonly properties. - - :param complex_body: - :type complex_body: Any - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # JSON input template you can fill out and use as your body input. - complex_body = { - "id": "str", # Optional. - "size": 0 # Optional. - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = complex_body - - request = build_readonlyproperty_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore - - -class FlattencomplexOperations(object): - """FlattencomplexOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> Any: - """get_valid. - - :return: JSON object - :rtype: Any - :raises: ~azure.core.exceptions.HttpResponseError - - Example: - .. code-block:: python - - # response body for status code(s): 200 - response.json() == { - "helper": { - "propBH1": "str" # Optional. - }, - "propB1": "str", # Optional. - kind: kind - } - """ - cls = kwargs.pop("cls", None) # type: ClsType[Any] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_flattencomplex_get_valid_request( - template_url=self.get_valid.metadata["url"], - ) - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if response.content: - deserialized = response.json() - else: - deserialized = None - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/flatten/valid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations_py3.py deleted file mode 100644 index 60a2ede663d..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations_py3.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphicrecursive/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -class PolymorphicrecursiveOperations(object): - """PolymorphicrecursiveOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.Fish": - """Get complex types that are polymorphic and have recursive references. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Fish, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Fish - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Fish"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Fish", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: - """Put complex types that are polymorphic and have recursive references. - - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: ~bodycomplexpython3only.models.Fish - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Fish") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations_py3.py deleted file mode 100644 index afd755dab46..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations_py3.py +++ /dev/null @@ -1,577 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_dot_syntax_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/dotsyntax") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_get_composed_with_discriminator_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithDiscriminator") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_get_composed_without_discriminator_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/composedWithoutDiscriminator") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_get_complicated_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_complicated_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/complicated") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_put_missing_discriminator_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingdiscriminator") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_put_valid_missing_required_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/polymorphism/missingrequired/invalid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -class PolymorphismOperations(object): - """PolymorphismOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.Fish": - """Get complex types that are polymorphic. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Fish, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Fish - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Fish"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Fish", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace - def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: - """Put complex types that are polymorphic. - - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. - :type complex_body: ~bodycomplexpython3only.models.Fish - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Fish") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore - - @distributed_trace - def get_dot_syntax(self, **kwargs: Any) -> "_models.DotFish": - """Get complex types that are polymorphic, JSON key contains a dot. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DotFish, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DotFish - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DotFish"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_dot_syntax_request( - template_url=self.get_dot_syntax.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DotFish", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_dot_syntax.metadata = {"url": "/complex/polymorphism/dotsyntax"} # type: ignore - - @distributed_trace - def get_composed_with_discriminator(self, **kwargs: Any) -> "_models.DotFishMarket": - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DotFishMarket, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DotFishMarket - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DotFishMarket"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_composed_with_discriminator_request( - template_url=self.get_composed_with_discriminator.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DotFishMarket", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_with_discriminator.metadata = {"url": "/complex/polymorphism/composedWithDiscriminator"} # type: ignore - - @distributed_trace - def get_composed_without_discriminator(self, **kwargs: Any) -> "_models.DotFishMarket": - """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DotFishMarket, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DotFishMarket - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DotFishMarket"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_composed_without_discriminator_request( - template_url=self.get_composed_without_discriminator.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DotFishMarket", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_composed_without_discriminator.metadata = {"url": "/complex/polymorphism/composedWithoutDiscriminator"} # type: ignore - - @distributed_trace - def get_complicated(self, **kwargs: Any) -> "_models.Salmon": - """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Salmon, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Salmon - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Salmon"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_complicated_request( - template_url=self.get_complicated.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Salmon", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace - def put_complicated(self, complex_body: "_models.Salmon", **kwargs: Any) -> None: - """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. - - :param complex_body: - :type complex_body: ~bodycomplexpython3only.models.Salmon - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Salmon") - - request = build_put_complicated_request( - content_type=content_type, - json=json, - template_url=self.put_complicated.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore - - @distributed_trace - def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwargs: Any) -> "_models.Salmon": - """Put complex types that are polymorphic, omitting the discriminator. - - :param complex_body: - :type complex_body: ~bodycomplexpython3only.models.Salmon - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Salmon, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Salmon - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Salmon"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Salmon") - - request = build_put_missing_discriminator_request( - content_type=content_type, - json=json, - template_url=self.put_missing_discriminator.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Salmon", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - put_missing_discriminator.metadata = {"url": "/complex/polymorphism/missingdiscriminator"} # type: ignore - - @distributed_trace - def put_valid_missing_required(self, complex_body: "_models.Fish", **kwargs: Any) -> None: - """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. - - :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. - :type complex_body: ~bodycomplexpython3only.models.Fish - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Fish") - - request = build_put_valid_missing_required_request( - content_type=content_type, - json=json, - template_url=self.put_valid_missing_required.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid_missing_required.metadata = {"url": "/complex/polymorphism/missingrequired/invalid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations_py3.py deleted file mode 100644 index 766155ff794..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations_py3.py +++ /dev/null @@ -1,1180 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import datetime -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_int_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_int_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/integer") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_long_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_long_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/long") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_float_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_float_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/float") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_double_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_double_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/double") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_bool_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_bool_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/bool") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_string_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_string_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/string") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_date_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_date_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/date") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_date_time_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_date_time_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetime") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_date_time_rfc1123_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_date_time_rfc1123_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/datetimerfc1123") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_duration_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_duration_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/duration") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -def build_get_byte_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_byte_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/primitive/byte") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -class PrimitiveOperations(object): - """PrimitiveOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_int(self, **kwargs: Any) -> "_models.IntWrapper": - """Get complex types with integer properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: IntWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.IntWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.IntWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_int_request( - template_url=self.get_int.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("IntWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace - def put_int(self, complex_body: "_models.IntWrapper", **kwargs: Any) -> None: - """Put complex types with integer properties. - - :param complex_body: Please put -1 and 2. - :type complex_body: ~bodycomplexpython3only.models.IntWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "IntWrapper") - - request = build_put_int_request( - content_type=content_type, - json=json, - template_url=self.put_int.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore - - @distributed_trace - def get_long(self, **kwargs: Any) -> "_models.LongWrapper": - """Get complex types with long properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: LongWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.LongWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.LongWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_long_request( - template_url=self.get_long.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("LongWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace - def put_long(self, complex_body: "_models.LongWrapper", **kwargs: Any) -> None: - """Put complex types with long properties. - - :param complex_body: Please put 1099511627775 and -999511627788. - :type complex_body: ~bodycomplexpython3only.models.LongWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "LongWrapper") - - request = build_put_long_request( - content_type=content_type, - json=json, - template_url=self.put_long.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_long.metadata = {"url": "/complex/primitive/long"} # type: ignore - - @distributed_trace - def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": - """Get complex types with float properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: FloatWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.FloatWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.FloatWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_float_request( - template_url=self.get_float.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("FloatWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace - def put_float(self, complex_body: "_models.FloatWrapper", **kwargs: Any) -> None: - """Put complex types with float properties. - - :param complex_body: Please put 1.05 and -0.003. - :type complex_body: ~bodycomplexpython3only.models.FloatWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "FloatWrapper") - - request = build_put_float_request( - content_type=content_type, - json=json, - template_url=self.put_float.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_float.metadata = {"url": "/complex/primitive/float"} # type: ignore - - @distributed_trace - def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": - """Get complex types with double properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DoubleWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DoubleWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DoubleWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_double_request( - template_url=self.get_double.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DoubleWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace - def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs: Any) -> None: - """Put complex types with double properties. - - :param complex_body: Please put 3e-100 and - -0.000000000000000000000000000000000000000000000000000000005. - :type complex_body: ~bodycomplexpython3only.models.DoubleWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "DoubleWrapper") - - request = build_put_double_request( - content_type=content_type, - json=json, - template_url=self.put_double.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_double.metadata = {"url": "/complex/primitive/double"} # type: ignore - - @distributed_trace - def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": - """Get complex types with bool properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: BooleanWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.BooleanWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.BooleanWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_bool_request( - template_url=self.get_bool.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("BooleanWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace - def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs: Any) -> None: - """Put complex types with bool properties. - - :param complex_body: Please put true and false. - :type complex_body: ~bodycomplexpython3only.models.BooleanWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "BooleanWrapper") - - request = build_put_bool_request( - content_type=content_type, - json=json, - template_url=self.put_bool.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore - - @distributed_trace - def get_string(self, **kwargs: Any) -> "_models.StringWrapper": - """Get complex types with string properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: StringWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.StringWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.StringWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_string_request( - template_url=self.get_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("StringWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace - def put_string(self, complex_body: "_models.StringWrapper", **kwargs: Any) -> None: - """Put complex types with string properties. - - :param complex_body: Please put 'goodrequest', '', and null. - :type complex_body: ~bodycomplexpython3only.models.StringWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "StringWrapper") - - request = build_put_string_request( - content_type=content_type, - json=json, - template_url=self.put_string.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_string.metadata = {"url": "/complex/primitive/string"} # type: ignore - - @distributed_trace - def get_date(self, **kwargs: Any) -> "_models.DateWrapper": - """Get complex types with date properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DateWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DateWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DateWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_request( - template_url=self.get_date.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DateWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace - def put_date(self, complex_body: "_models.DateWrapper", **kwargs: Any) -> None: - """Put complex types with date properties. - - :param complex_body: Please put '0001-01-01' and '2016-02-29'. - :type complex_body: ~bodycomplexpython3only.models.DateWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "DateWrapper") - - request = build_put_date_request( - content_type=content_type, - json=json, - template_url=self.put_date.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date.metadata = {"url": "/complex/primitive/date"} # type: ignore - - @distributed_trace - def get_date_time(self, **kwargs: Any) -> "_models.DatetimeWrapper": - """Get complex types with datetime properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DatetimeWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DatetimeWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DatetimeWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_request( - template_url=self.get_date_time.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DatetimeWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace - def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs: Any) -> None: - """Put complex types with datetime properties. - - :param complex_body: Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. - :type complex_body: ~bodycomplexpython3only.models.DatetimeWrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "DatetimeWrapper") - - request = build_put_date_time_request( - content_type=content_type, - json=json, - template_url=self.put_date_time.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore - - @distributed_trace - def get_date_time_rfc1123(self, **kwargs: Any) -> "_models.Datetimerfc1123Wrapper": - """Get complex types with datetimeRfc1123 properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Datetimerfc1123Wrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.Datetimerfc1123Wrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.Datetimerfc1123Wrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_date_time_rfc1123_request( - template_url=self.get_date_time_rfc1123.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("Datetimerfc1123Wrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace - def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrapper", **kwargs: Any) -> None: - """Put complex types with datetimeRfc1123 properties. - - :param complex_body: Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 - GMT'. - :type complex_body: ~bodycomplexpython3only.models.Datetimerfc1123Wrapper - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - json = self._serialize.body(complex_body, "Datetimerfc1123Wrapper") - - request = build_put_date_time_rfc1123_request( - content_type=content_type, - json=json, - template_url=self.put_date_time_rfc1123.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore - - @distributed_trace - def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": - """Get complex types with duration properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DurationWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.DurationWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.DurationWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_duration_request( - template_url=self.get_duration.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DurationWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace - def put_duration(self, field: Optional[datetime.timedelta] = None, **kwargs: Any) -> None: - """Put complex types with duration properties. - - :param field: - :type field: ~datetime.timedelta - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.DurationWrapper(field=field) - json = self._serialize.body(_complex_body, "DurationWrapper") - - request = build_put_duration_request( - content_type=content_type, - json=json, - template_url=self.put_duration.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore - - @distributed_trace - def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": - """Get complex types with byte properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ByteWrapper, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ByteWrapper - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ByteWrapper"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_byte_request( - template_url=self.get_byte.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ByteWrapper", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore - - @distributed_trace - def put_byte(self, field: Optional[bytearray] = None, **kwargs: Any) -> None: - """Put complex types with byte properties. - - :param field: - :type field: bytearray - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ByteWrapper(field=field) - json = self._serialize.body(_complex_body, "ByteWrapper") - - request = build_put_byte_request( - content_type=content_type, - json=json, - template_url=self.put_byte.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations_py3.py deleted file mode 100644 index c9b4be113b7..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations_py3.py +++ /dev/null @@ -1,156 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -from .. import models as _models - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() - - -def build_get_valid_request(**kwargs: Any) -> HttpRequest: - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=url, headers=header_parameters, **kwargs) - - -def build_put_valid_request(*, json: Any = None, content: Any = None, **kwargs: Any) -> HttpRequest: - content_type = kwargs.pop("content_type", None) # type: Optional[str] - - accept = "application/json" - # Construct URL - url = kwargs.pop("template_url", "/complex/readonlyproperty/valid") - - # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - if content_type is not None: - header_parameters["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - header_parameters["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=url, headers=header_parameters, json=json, content=content, **kwargs) - - -class ReadonlypropertyOperations(object): - """ReadonlypropertyOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~bodycomplexpython3only.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - @distributed_trace - def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": - """Get complex types that have readonly properties. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ReadonlyObj, or the result of cls(response) - :rtype: ~bodycomplexpython3only.models.ReadonlyObj - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType["_models.ReadonlyObj"] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_valid_request( - template_url=self.get_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("ReadonlyObj", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore - - @distributed_trace - def put_valid(self, size: Optional[int] = None, **kwargs: Any) -> None: - """Put complex types that have readonly properties. - - :param size: - :type size: int - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - content_type = kwargs.pop("content_type", "application/json") # type: Optional[str] - - _complex_body = _models.ReadonlyObj(size=size) - json = self._serialize.body(_complex_body, "ReadonlyObj") - - request = build_put_valid_request( - content_type=content_type, - json=json, - template_url=self.put_valid.metadata["url"], - )._to_pipeline_transport_request() - request.url = self._client.format_url(request.url) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) - - put_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/py.typed b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/py.typed deleted file mode 100644 index e5aff4f83af..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/py.typed +++ /dev/null @@ -1 +0,0 @@ -# Marker file for PEP 561. \ No newline at end of file diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py deleted file mode 100644 index cf36063f353..00000000000 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "bodycomplexpython3only" -VERSION = "0.1.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.18.0"] - -setup( - name=NAME, - version=VERSION, - description="bodycomplexpython3only", - author_email="", - url="", - keywords=["Swagger", "AutoRestComplexTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest. - """, -) 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 400f50ea197..ae78d4454fb 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 @@ -78,9 +78,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -115,9 +113,7 @@ async def get_invalid_date(self, **kwargs: Any) -> datetime.date: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -152,9 +148,7 @@ async def get_overflow_date(self, **kwargs: Any) -> datetime.date: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -189,9 +183,7 @@ async def get_underflow_date(self, **kwargs: Any) -> datetime.date: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -234,9 +226,7 @@ async def put_max_date(self, date_body: datetime.date, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -267,9 +257,7 @@ async def get_max_date(self, **kwargs: Any) -> datetime.date: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -312,9 +300,7 @@ async def put_min_date(self, date_body: datetime.date, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -345,9 +331,7 @@ async def get_min_date(self, **kwargs: Any) -> datetime.date: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 3822a7e3b03..5f452e116c5 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 @@ -246,7 +246,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -284,7 +284,7 @@ def get_invalid_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -322,7 +322,7 @@ def get_overflow_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -360,7 +360,7 @@ def get_underflow_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -408,7 +408,7 @@ def put_max_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -442,7 +442,7 @@ def get_max_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -490,7 +490,7 @@ def put_min_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -524,7 +524,7 @@ def get_min_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_datetime_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py index 344ee415ffb..b71b805bad1 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 @@ -92,9 +92,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -129,9 +127,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -166,9 +162,7 @@ async def get_overflow(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -203,9 +197,7 @@ async def get_underflow(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -248,9 +240,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -292,9 +282,7 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -325,9 +313,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -362,9 +348,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -402,9 +386,7 @@ async def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> dateti )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -447,9 +429,7 @@ async def put_local_positive_offset_max_date_time(self, datetime_body: datetime. )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -480,9 +460,7 @@ async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -517,9 +495,7 @@ async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -562,9 +538,7 @@ async def put_local_negative_offset_max_date_time(self, datetime_body: datetime. )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -595,9 +569,7 @@ async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -632,9 +604,7 @@ async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -677,9 +647,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -710,9 +678,7 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -755,9 +721,7 @@ async def put_local_positive_offset_min_date_time(self, datetime_body: datetime. )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -788,9 +752,7 @@ async def get_local_positive_offset_min_date_time(self, **kwargs: Any) -> dateti )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -833,9 +795,7 @@ async def put_local_negative_offset_min_date_time(self, datetime_body: datetime. )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -866,9 +826,7 @@ async def get_local_negative_offset_min_date_time(self, **kwargs: Any) -> dateti )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -903,9 +861,7 @@ async def get_local_no_offset_min_date_time(self, **kwargs: Any) -> datetime.dat )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 2edc10a1c67..5f9b74a1551 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 @@ -546,7 +546,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -584,7 +584,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -622,7 +622,7 @@ def get_overflow( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -660,7 +660,7 @@ def get_underflow( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -708,7 +708,7 @@ def put_utc_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -755,7 +755,7 @@ def put_utc_max_date_time7_digits( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -789,7 +789,7 @@ def get_utc_lowercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -827,7 +827,7 @@ def get_utc_uppercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -868,7 +868,7 @@ def get_utc_uppercase_max_date_time7_digits( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -916,7 +916,7 @@ def put_local_positive_offset_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -950,7 +950,7 @@ def get_local_positive_offset_lowercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -988,7 +988,7 @@ def get_local_positive_offset_uppercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1036,7 +1036,7 @@ def put_local_negative_offset_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1070,7 +1070,7 @@ def get_local_negative_offset_uppercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1108,7 +1108,7 @@ def get_local_negative_offset_lowercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1156,7 +1156,7 @@ def put_utc_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1190,7 +1190,7 @@ def get_utc_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1238,7 +1238,7 @@ def put_local_positive_offset_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1272,7 +1272,7 @@ def get_local_positive_offset_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1320,7 +1320,7 @@ def put_local_negative_offset_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1354,7 +1354,7 @@ def get_local_negative_offset_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1392,7 +1392,7 @@ def get_local_no_offset_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_datetimerfc1123_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py index 69a189555b0..7df6e5c978e 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 @@ -79,9 +79,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -116,9 +114,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -153,9 +149,7 @@ async def get_overflow(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -190,9 +184,7 @@ async def get_underflow(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -235,9 +227,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -268,9 +258,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -305,9 +293,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -350,9 +336,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -383,9 +367,7 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 3718ad574ea..c144c2bf125 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 @@ -266,7 +266,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -304,7 +304,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -342,7 +342,7 @@ def get_overflow( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -380,7 +380,7 @@ def get_underflow( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -428,7 +428,7 @@ def put_utc_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -462,7 +462,7 @@ def get_utc_lowercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -500,7 +500,7 @@ def get_utc_uppercase_max_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -548,7 +548,7 @@ def put_utc_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -582,7 +582,7 @@ def get_utc_min_date_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py index 0cbe3fc8c23..894fa803a24 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 @@ -135,9 +135,7 @@ async def get_null(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -172,9 +170,7 @@ async def get_empty(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -217,9 +213,7 @@ async def put_empty(self, array_body: Dict[str, str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -250,9 +244,7 @@ async def get_null_value(self, **kwargs: Any) -> Dict[str, str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -287,9 +279,7 @@ async def get_null_key(self, **kwargs: Any) -> Dict[str, str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -324,9 +314,7 @@ async def get_empty_string_key(self, **kwargs: Any) -> Dict[str, str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -361,9 +349,7 @@ async def get_invalid(self, **kwargs: Any) -> Dict[str, str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -398,9 +384,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> Dict[str, bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -443,9 +427,7 @@ async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -476,9 +458,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> Dict[str, bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -513,9 +493,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> Dict[str, bool]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -550,9 +528,7 @@ async def get_integer_valid(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -595,9 +571,7 @@ async def put_integer_valid(self, array_body: Dict[str, int], **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -628,9 +602,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -665,9 +637,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -702,9 +672,7 @@ async def get_long_valid(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -747,9 +715,7 @@ async def put_long_valid(self, array_body: Dict[str, int], **kwargs: Any) -> Non )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -780,9 +746,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -817,9 +781,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> Dict[str, int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -854,9 +816,7 @@ async def get_float_valid(self, **kwargs: Any) -> Dict[str, float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -899,9 +859,7 @@ async def put_float_valid(self, array_body: Dict[str, float], **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -932,9 +890,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> Dict[str, float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -969,9 +925,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> Dict[str, float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1006,9 +960,7 @@ async def get_double_valid(self, **kwargs: Any) -> Dict[str, float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1051,9 +1003,7 @@ async def put_double_valid(self, array_body: Dict[str, float], **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1084,9 +1034,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> Dict[str, float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1121,9 +1069,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> Dict[str, float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1158,9 +1104,7 @@ async def get_string_valid(self, **kwargs: Any) -> Dict[str, str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1203,9 +1147,7 @@ async def put_string_valid(self, array_body: Dict[str, str], **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1236,9 +1178,7 @@ async def get_string_with_null(self, **kwargs: Any) -> Dict[str, str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1273,9 +1213,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> Dict[str, str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1310,9 +1248,7 @@ async def get_date_valid(self, **kwargs: Any) -> Dict[str, datetime.date]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1355,9 +1291,7 @@ async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs: A )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1388,9 +1322,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> Dict[str, datetime.date] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1425,9 +1357,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime.date )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1463,9 +1393,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> Dict[str, datetime.datetim )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1509,9 +1437,7 @@ async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], ** )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1542,9 +1468,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> Dict[str, datetime. )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1579,9 +1503,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1617,9 +1539,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> Dict[str, datetime )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1663,9 +1583,7 @@ async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1696,9 +1614,7 @@ async def get_duration_valid(self, **kwargs: Any) -> Dict[str, datetime.timedelt )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1741,9 +1657,7 @@ async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], ** )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1775,9 +1689,7 @@ async def get_byte_valid(self, **kwargs: Any) -> Dict[str, bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1821,9 +1733,7 @@ async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1855,9 +1765,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> Dict[str, bytearray]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1893,9 +1801,7 @@ async def get_base64_url(self, **kwargs: Any) -> Dict[str, bytes]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1930,9 +1836,7 @@ async def get_complex_null(self, **kwargs: Any) -> Optional[Dict[str, "_models.W )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1967,9 +1871,7 @@ async def get_complex_empty(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2005,9 +1907,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> Dict[str, "_models.Widge )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2043,9 +1943,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> Dict[str, "_models.Widg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2081,9 +1979,7 @@ async def get_complex_valid(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2127,9 +2023,7 @@ async def put_complex_valid(self, array_body: Dict[str, "_models.Widget"], **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2160,9 +2054,7 @@ async def get_array_null(self, **kwargs: Any) -> Optional[Dict[str, List[str]]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2197,9 +2089,7 @@ async def get_array_empty(self, **kwargs: Any) -> Dict[str, List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2234,9 +2124,7 @@ async def get_array_item_null(self, **kwargs: Any) -> Dict[str, List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2271,9 +2159,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> Dict[str, List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2309,9 +2195,7 @@ async def get_array_valid(self, **kwargs: Any) -> Dict[str, List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2355,9 +2239,7 @@ async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2388,9 +2270,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2425,9 +2305,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> Dict[str, Dict[str, str]] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2463,9 +2341,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> Dict[str, Dict[str, s )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2501,9 +2377,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> Dict[str, Dict[str, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2540,9 +2414,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> Dict[str, Dict[str, str]] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2587,9 +2459,7 @@ async def put_dictionary_valid(self, array_body: Dict[str, Dict[str, str]], **kw )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 90e0e9929b9..4083106fcb0 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 @@ -1438,7 +1438,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1476,7 +1476,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1524,7 +1524,7 @@ def put_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1558,7 +1558,7 @@ def get_null_value( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1596,7 +1596,7 @@ def get_null_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1634,7 +1634,7 @@ def get_empty_string_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1672,7 +1672,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1710,7 +1710,7 @@ def get_boolean_tfft( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1758,7 +1758,7 @@ def put_boolean_tfft( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1792,7 +1792,7 @@ def get_boolean_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1830,7 +1830,7 @@ def get_boolean_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1868,7 +1868,7 @@ def get_integer_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1916,7 +1916,7 @@ def put_integer_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1950,7 +1950,7 @@ def get_int_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1988,7 +1988,7 @@ def get_int_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2026,7 +2026,7 @@ def get_long_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2074,7 +2074,7 @@ def put_long_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2108,7 +2108,7 @@ def get_long_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2146,7 +2146,7 @@ def get_long_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2184,7 +2184,7 @@ def get_float_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2232,7 +2232,7 @@ def put_float_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2266,7 +2266,7 @@ def get_float_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2304,7 +2304,7 @@ def get_float_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2342,7 +2342,7 @@ def get_double_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2390,7 +2390,7 @@ def put_double_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2424,7 +2424,7 @@ def get_double_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2462,7 +2462,7 @@ def get_double_invalid_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2500,7 +2500,7 @@ def get_string_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2548,7 +2548,7 @@ def put_string_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2582,7 +2582,7 @@ def get_string_with_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2620,7 +2620,7 @@ def get_string_with_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2658,7 +2658,7 @@ def get_date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2706,7 +2706,7 @@ def put_date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2740,7 +2740,7 @@ def get_date_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2778,7 +2778,7 @@ def get_date_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2817,7 +2817,7 @@ def get_date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2866,7 +2866,7 @@ def put_date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2900,7 +2900,7 @@ def get_date_time_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2938,7 +2938,7 @@ def get_date_time_invalid_chars( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2977,7 +2977,7 @@ def get_date_time_rfc1123_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3026,7 +3026,7 @@ def put_date_time_rfc1123_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3060,7 +3060,7 @@ def get_duration_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3108,7 +3108,7 @@ def put_duration_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3143,7 +3143,7 @@ def get_byte_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3192,7 +3192,7 @@ def put_byte_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3227,7 +3227,7 @@ def get_byte_invalid_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3266,7 +3266,7 @@ def get_base64_url( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3304,7 +3304,7 @@ def get_complex_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3342,7 +3342,7 @@ def get_complex_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3381,7 +3381,7 @@ def get_complex_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3420,7 +3420,7 @@ def get_complex_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3459,7 +3459,7 @@ def get_complex_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3508,7 +3508,7 @@ def put_complex_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3542,7 +3542,7 @@ def get_array_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3580,7 +3580,7 @@ def get_array_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3618,7 +3618,7 @@ def get_array_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3656,7 +3656,7 @@ def get_array_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3695,7 +3695,7 @@ def get_array_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3744,7 +3744,7 @@ def put_array_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3778,7 +3778,7 @@ def get_dictionary_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3816,7 +3816,7 @@ def get_dictionary_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3855,7 +3855,7 @@ def get_dictionary_item_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3894,7 +3894,7 @@ def get_dictionary_item_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3934,7 +3934,7 @@ def get_dictionary_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3984,7 +3984,7 @@ def put_dictionary_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_duration_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py index edafc330399..14850272af1 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 @@ -74,9 +74,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -119,9 +117,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -152,9 +148,7 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -189,9 +183,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 23f94b5dc15..dd194ebd59c 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 @@ -162,7 +162,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -210,7 +210,7 @@ def put_positive_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -244,7 +244,7 @@ def get_positive_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -282,7 +282,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_files_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py index 849142cefaa..966d56150cc 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 @@ -72,9 +72,7 @@ async def get_file(self, **kwargs: Any) -> IO: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -109,9 +107,7 @@ async def get_file_large(self, **kwargs: Any) -> IO: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -146,9 +142,7 @@ async def get_empty_file(self, **kwargs: Any) -> IO: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 55f497741ca..94d42b290a6 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 @@ -137,7 +137,7 @@ def get_file( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -175,7 +175,7 @@ def get_file_large( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -213,7 +213,7 @@ def get_empty_file( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_formdata_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py index 8761dd1a95c..7afecd05c93 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 @@ -89,9 +89,7 @@ async def upload_file(self, file_content: IO, file_name: str, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -134,9 +132,7 @@ async def upload_file_via_body(self, file_content: IO, **kwargs: Any) -> IO: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,9 +181,7 @@ async def upload_files(self, file_content: List[IO], **kwargs: Any) -> IO: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 e8122954895..98ac03945c8 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 @@ -169,7 +169,7 @@ def upload_file( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -217,7 +217,7 @@ def upload_file_via_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -271,7 +271,7 @@ def upload_files( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: 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 e0ac919c9d4..7d0a82093b4 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 @@ -84,9 +84,7 @@ async def get_null(self, **kwargs: Any) -> Optional[int]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -121,9 +119,7 @@ async def get_invalid(self, **kwargs: Any) -> int: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -158,9 +154,7 @@ async def get_overflow_int32(self, **kwargs: Any) -> int: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -195,9 +189,7 @@ async def get_underflow_int32(self, **kwargs: Any) -> int: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -232,9 +224,7 @@ async def get_overflow_int64(self, **kwargs: Any) -> int: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -269,9 +259,7 @@ async def get_underflow_int64(self, **kwargs: Any) -> int: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -314,9 +302,7 @@ async def put_max32(self, int_body: int, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -355,9 +341,7 @@ async def put_max64(self, int_body: int, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -396,9 +380,7 @@ async def put_min32(self, int_body: int, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -437,9 +419,7 @@ async def put_min64(self, int_body: int, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -470,9 +450,7 @@ async def get_unix_time(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -515,9 +493,7 @@ async def put_unix_time_date(self, int_body: datetime.datetime, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -548,9 +524,7 @@ async def get_invalid_unix_time(self, **kwargs: Any) -> datetime.datetime: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -585,9 +559,7 @@ async def get_null_unix_time(self, **kwargs: Any) -> Optional[datetime.datetime] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 3cbbe31900c..a6baea3da51 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 @@ -378,7 +378,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -416,7 +416,7 @@ def get_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -454,7 +454,7 @@ def get_overflow_int32( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -492,7 +492,7 @@ def get_underflow_int32( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -530,7 +530,7 @@ def get_overflow_int64( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -568,7 +568,7 @@ def get_underflow_int64( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -616,7 +616,7 @@ def put_max32( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -660,7 +660,7 @@ def put_max64( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -704,7 +704,7 @@ def put_min32( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -748,7 +748,7 @@ def put_min64( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -782,7 +782,7 @@ def get_unix_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -830,7 +830,7 @@ def put_unix_time_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -864,7 +864,7 @@ def get_invalid_unix_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -902,7 +902,7 @@ def get_null_unix_time( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_number_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py index 744f25f51ea..f241d1e1305 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 @@ -93,9 +93,7 @@ async def get_null(self, **kwargs: Any) -> Optional[float]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -130,9 +128,7 @@ async def get_invalid_float(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -167,9 +163,7 @@ async def get_invalid_double(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -204,9 +198,7 @@ async def get_invalid_decimal(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -249,9 +241,7 @@ async def put_big_float(self, number_body: float, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -282,9 +272,7 @@ async def get_big_float(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -327,9 +315,7 @@ async def put_big_double(self, number_body: float, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -360,9 +346,7 @@ async def get_big_double(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -400,9 +384,7 @@ async def put_big_double_positive_decimal(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -433,9 +415,7 @@ async def get_big_double_positive_decimal(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -473,9 +453,7 @@ async def put_big_double_negative_decimal(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -506,9 +484,7 @@ async def get_big_double_negative_decimal(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -551,9 +527,7 @@ async def put_big_decimal(self, number_body: float, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -584,9 +558,7 @@ async def get_big_decimal(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -624,9 +596,7 @@ async def put_big_decimal_positive_decimal(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -657,9 +627,7 @@ async def get_big_decimal_positive_decimal(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -697,9 +665,7 @@ async def put_big_decimal_negative_decimal(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -730,9 +696,7 @@ async def get_big_decimal_negative_decimal(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -775,9 +739,7 @@ async def put_small_float(self, number_body: float, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -808,9 +770,7 @@ async def get_small_float(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -853,9 +813,7 @@ async def put_small_double(self, number_body: float, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -886,9 +844,7 @@ async def get_small_double(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -931,9 +887,7 @@ async def put_small_decimal(self, number_body: float, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -964,9 +918,7 @@ async def get_small_decimal(self, **kwargs: Any) -> float: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 2ec5acfe35f..870a32d774a 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 @@ -605,7 +605,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -643,7 +643,7 @@ def get_invalid_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -681,7 +681,7 @@ def get_invalid_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -719,7 +719,7 @@ def get_invalid_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -767,7 +767,7 @@ def put_big_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -801,7 +801,7 @@ def get_big_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -849,7 +849,7 @@ def put_big_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -883,7 +883,7 @@ def get_big_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -924,7 +924,7 @@ def put_big_double_positive_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -958,7 +958,7 @@ def get_big_double_positive_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -999,7 +999,7 @@ def put_big_double_negative_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1033,7 +1033,7 @@ def get_big_double_negative_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1081,7 +1081,7 @@ def put_big_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1115,7 +1115,7 @@ def get_big_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1156,7 +1156,7 @@ def put_big_decimal_positive_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1190,7 +1190,7 @@ def get_big_decimal_positive_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1231,7 +1231,7 @@ def put_big_decimal_negative_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1265,7 +1265,7 @@ def get_big_decimal_negative_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1313,7 +1313,7 @@ def put_small_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1347,7 +1347,7 @@ def get_small_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1395,7 +1395,7 @@ def put_small_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1429,7 +1429,7 @@ def get_small_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1477,7 +1477,7 @@ def put_small_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1511,7 +1511,7 @@ def get_small_decimal( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_enum_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py index 17f033a3cd9..27f6df5c1ca 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 @@ -75,9 +75,7 @@ async def get_not_expandable(self, **kwargs: Any) -> Union[str, "_models.Colors" )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -120,9 +118,7 @@ async def put_not_expandable(self, string_body: Union[str, "_models.Colors"], ** )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -153,9 +149,7 @@ async def get_referenced(self, **kwargs: Any) -> Union[str, "_models.Colors"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -198,9 +192,7 @@ async def put_referenced(self, enum_string_body: Union[str, "_models.Colors"], * )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -231,9 +223,7 @@ async def get_referenced_constant(self, **kwargs: Any) -> "_models.RefColorConst )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -278,9 +268,7 @@ async def put_referenced_constant(self, field1: Optional[str] = None, **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 e3bd4099621..5f50f31bbd7 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 @@ -82,9 +82,7 @@ async def get_null(self, **kwargs: Any) -> Optional[str]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -130,9 +128,7 @@ async def put_null(self, string_body: Optional[str] = None, **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -163,9 +159,7 @@ async def get_empty(self, **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -203,9 +197,7 @@ async def put_empty(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -236,9 +228,7 @@ async def get_mbcs(self, **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -276,9 +266,7 @@ async def put_mbcs(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -311,9 +299,7 @@ async def get_whitespace(self, **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -353,9 +339,7 @@ async def put_whitespace(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -386,9 +370,7 @@ async def get_not_provided(self, **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -423,9 +405,7 @@ async def get_base64_encoded(self, **kwargs: Any) -> bytearray: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -460,9 +440,7 @@ async def get_base64_url_encoded(self, **kwargs: Any) -> bytes: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -505,9 +483,7 @@ async def put_base64_url_encoded(self, string_body: bytes, **kwargs: Any) -> Non )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -538,9 +514,7 @@ async def get_null_base64_url_encoded(self, **kwargs: Any) -> Optional[bytes]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 6825a460a45..9a3b0643628 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 @@ -209,7 +209,7 @@ def get_not_expandable( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -257,7 +257,7 @@ def put_not_expandable( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -291,7 +291,7 @@ def get_referenced( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -339,7 +339,7 @@ def put_referenced( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -373,7 +373,7 @@ def get_referenced_constant( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -423,7 +423,7 @@ def put_referenced_constant( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 88e40fa92ab..680ba70eefc 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 @@ -363,7 +363,7 @@ def get_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -414,7 +414,7 @@ def put_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -448,7 +448,7 @@ def get_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -489,7 +489,7 @@ def put_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -523,7 +523,7 @@ def get_mbcs( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -564,7 +564,7 @@ def put_mbcs( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -600,7 +600,7 @@ def get_whitespace( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -643,7 +643,7 @@ def put_whitespace( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -677,7 +677,7 @@ def get_not_provided( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -715,7 +715,7 @@ def get_base64_encoded( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -753,7 +753,7 @@ def get_base64_url_encoded( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -801,7 +801,7 @@ def put_base64_url_encoded( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -835,7 +835,7 @@ def get_null_base64_url_encoded( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_time_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py index e9346c764bc..4ac0ea17476 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 @@ -69,9 +69,7 @@ async def get(self, **kwargs: Any) -> datetime.time: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -114,9 +112,7 @@ async def put(self, time_body: datetime.time, **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 8fbbe42ea77..cedf1d02811 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 @@ -122,7 +122,7 @@ def get( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -170,7 +170,7 @@ def put( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_contants_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py index 742974ce287..f06f978fe85 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 @@ -95,9 +95,7 @@ async def put_no_model_as_string_no_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -136,9 +134,7 @@ async def put_no_model_as_string_no_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -175,9 +171,7 @@ async def put_no_model_as_string_no_required_one_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -214,9 +208,7 @@ async def put_no_model_as_string_no_required_one_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -253,9 +245,7 @@ async def put_no_model_as_string_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -292,9 +282,7 @@ async def put_no_model_as_string_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -326,9 +314,7 @@ async def put_no_model_as_string_required_one_value_no_default(self, **kwargs: A )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -360,9 +346,7 @@ async def put_no_model_as_string_required_one_value_default(self, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -401,9 +385,7 @@ async def put_model_as_string_no_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -442,9 +424,7 @@ async def put_model_as_string_no_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -483,9 +463,7 @@ async def put_model_as_string_no_required_one_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -524,9 +502,7 @@ async def put_model_as_string_no_required_one_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -563,9 +539,7 @@ async def put_model_as_string_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -602,9 +576,7 @@ async def put_model_as_string_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -641,9 +613,7 @@ async def put_model_as_string_required_one_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -680,9 +650,7 @@ async def put_model_as_string_required_one_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -713,9 +681,7 @@ async def put_client_constants(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 80b1e5a485b..7d2392f3c81 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 @@ -459,7 +459,7 @@ def put_no_model_as_string_no_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -499,7 +499,7 @@ def put_no_model_as_string_no_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -539,7 +539,7 @@ def put_no_model_as_string_no_required_one_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -579,7 +579,7 @@ def put_no_model_as_string_no_required_one_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -619,7 +619,7 @@ def put_no_model_as_string_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -659,7 +659,7 @@ def put_no_model_as_string_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -694,7 +694,7 @@ def put_no_model_as_string_required_one_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -729,7 +729,7 @@ def put_no_model_as_string_required_one_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -769,7 +769,7 @@ def put_model_as_string_no_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -809,7 +809,7 @@ def put_model_as_string_no_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -849,7 +849,7 @@ def put_model_as_string_no_required_one_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -889,7 +889,7 @@ def put_model_as_string_no_required_one_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -929,7 +929,7 @@ def put_model_as_string_required_two_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -969,7 +969,7 @@ def put_model_as_string_required_two_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1009,7 +1009,7 @@ def put_model_as_string_required_one_value_no_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1049,7 +1049,7 @@ def put_model_as_string_required_one_value_default( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1083,7 +1083,7 @@ def put_client_constants( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index ebb86ddaca6..8f848eef007 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 @@ -74,9 +74,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 18fad4fa6b2..ad54d239a5d 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 @@ -105,7 +105,7 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py index 2ef9c283499..aa5f667fbdc 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 @@ -88,9 +88,7 @@ async def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 23ffeb6d7fb..a39f8650d0d 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 @@ -137,7 +137,7 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py index 48f1f52e1bc..376bd609f6b 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 @@ -71,9 +71,7 @@ async def get_by_pet_id(self, pet_id: str, **kwargs: Any) -> "_models.Pet": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -118,9 +116,7 @@ async def add_pet(self, pet_param: Optional["_models.Pet"] = None, **kwargs: Any )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 cf5a9cb55e6..f7d4309970a 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 @@ -133,7 +133,7 @@ def get_by_pet_id( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -183,7 +183,7 @@ def add_pet( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_header_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py index b7540cb801b..2aaff7b1729 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 @@ -102,9 +102,7 @@ async def param_existing_key(self, user_agent_parameter: str, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -135,9 +133,7 @@ async def response_existing_key(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -174,9 +170,7 @@ async def param_protected_key(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -207,9 +201,7 @@ async def response_protected_key(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -250,9 +242,7 @@ async def param_integer(self, scenario: str, value: int, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -286,9 +276,7 @@ async def response_integer(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -329,9 +317,7 @@ async def param_long(self, scenario: str, value: int, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -365,9 +351,7 @@ async def response_long(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -408,9 +392,7 @@ async def param_float(self, scenario: str, value: float, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -444,9 +426,7 @@ async def response_float(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -487,9 +467,7 @@ async def param_double(self, scenario: str, value: float, **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -523,9 +501,7 @@ async def response_double(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -566,9 +542,7 @@ async def param_bool(self, scenario: str, value: bool, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -602,9 +576,7 @@ async def response_bool(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -647,9 +619,7 @@ async def param_string(self, scenario: str, value: Optional[str] = None, **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -684,9 +654,7 @@ async def response_string(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -727,9 +695,7 @@ async def param_date(self, scenario: str, value: datetime.date, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -763,9 +729,7 @@ async def response_date(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -807,9 +771,7 @@ async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -843,9 +805,7 @@ async def response_datetime(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -889,9 +849,7 @@ async def param_datetime_rfc1123( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -926,9 +884,7 @@ async def response_datetime_rfc1123(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -968,9 +924,7 @@ async def param_duration(self, scenario: str, value: datetime.timedelta, **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1004,9 +958,7 @@ async def response_duration(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1046,9 +998,7 @@ async def param_byte(self, scenario: str, value: bytearray, **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1082,9 +1032,7 @@ async def response_byte(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1128,9 +1076,7 @@ async def param_enum( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1165,9 +1111,7 @@ async def response_enum(self, scenario: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1202,9 +1146,7 @@ async def custom_request_id(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 457a2eb62b3..a7e75733404 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 @@ -768,7 +768,7 @@ def param_existing_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -802,7 +802,7 @@ def response_existing_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -842,7 +842,7 @@ def param_protected_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -876,7 +876,7 @@ def response_protected_key( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -923,7 +923,7 @@ def param_integer( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -962,7 +962,7 @@ def response_integer( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1009,7 +1009,7 @@ def param_long( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1048,7 +1048,7 @@ def response_long( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1095,7 +1095,7 @@ def param_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1134,7 +1134,7 @@ def response_float( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1181,7 +1181,7 @@ def param_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1220,7 +1220,7 @@ def response_double( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1267,7 +1267,7 @@ def param_bool( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1306,7 +1306,7 @@ def response_bool( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1355,7 +1355,7 @@ def param_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1395,7 +1395,7 @@ def response_string( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1442,7 +1442,7 @@ def param_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1481,7 +1481,7 @@ def response_date( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1529,7 +1529,7 @@ def param_datetime( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1568,7 +1568,7 @@ def response_datetime( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1616,7 +1616,7 @@ def param_datetime_rfc1123( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1656,7 +1656,7 @@ def response_datetime_rfc1123( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1702,7 +1702,7 @@ def param_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1741,7 +1741,7 @@ def response_duration( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1787,7 +1787,7 @@ def param_byte( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1826,7 +1826,7 @@ def response_byte( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1874,7 +1874,7 @@ def param_enum( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1914,7 +1914,7 @@ def response_enum( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1952,7 +1952,7 @@ def custom_request_id( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_client_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py index 6d51868256c..ee0364eff72 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 @@ -95,9 +95,7 @@ async def head400(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -128,9 +126,7 @@ async def get400(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -161,9 +157,7 @@ async def options400(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -205,9 +199,7 @@ async def put400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -249,9 +241,7 @@ async def patch400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -293,9 +283,7 @@ async def post400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -337,9 +325,7 @@ async def delete400(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -370,9 +356,7 @@ async def head401(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -403,9 +387,7 @@ async def get402(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -436,9 +418,7 @@ async def options403(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -469,9 +449,7 @@ async def get403(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -513,9 +491,7 @@ async def put404(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -557,9 +533,7 @@ async def patch405(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -601,9 +575,7 @@ async def post406(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -645,9 +617,7 @@ async def delete407(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -689,9 +659,7 @@ async def put409(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -722,9 +690,7 @@ async def head410(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -755,9 +721,7 @@ async def get411(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -788,9 +752,7 @@ async def options412(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -821,9 +783,7 @@ async def get412(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -865,9 +825,7 @@ async def put413(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -909,9 +867,7 @@ async def patch414(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -953,9 +909,7 @@ async def post415(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -986,9 +940,7 @@ async def get416(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1030,9 +982,7 @@ async def delete417(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1063,9 +1013,7 @@ async def head429(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 ea240bbb5f7..fd67cf02aa0 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 @@ -72,9 +72,7 @@ async def get_empty_error(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -109,9 +107,7 @@ async def get_no_model_error(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -145,9 +141,7 @@ async def get_no_model_empty(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 6ed1cf54672..55acd47ca75 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 @@ -85,9 +85,7 @@ async def head300(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -122,9 +120,7 @@ async def get300(self, **kwargs: Any) -> Optional[List[str]]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -164,9 +160,7 @@ async def head301(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -201,9 +195,7 @@ async def get301(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -250,9 +242,7 @@ async def put301(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [301]: @@ -286,9 +276,7 @@ async def head302(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -323,9 +311,7 @@ async def get302(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -372,9 +358,7 @@ async def patch302(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [302]: @@ -420,9 +404,7 @@ async def post303(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 303]: @@ -457,9 +439,7 @@ async def head307(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -494,9 +474,7 @@ async def get307(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -531,9 +509,7 @@ async def options307(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -579,9 +555,7 @@ async def put307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -627,9 +601,7 @@ async def patch307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -675,9 +647,7 @@ async def post307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -723,9 +693,7 @@ async def delete307(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 d17099fdc71..cec9b22a803 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 @@ -78,9 +78,7 @@ async def head408(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -122,9 +120,7 @@ async def put500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -166,9 +162,7 @@ async def patch500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -199,9 +193,7 @@ async def get502(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -232,9 +224,7 @@ async def options502(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -280,9 +270,7 @@ async def post503(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -324,9 +312,7 @@ async def delete503(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -368,9 +354,7 @@ async def put504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -412,9 +396,7 @@ async def patch504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 d39bd31a184..1214337c617 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 @@ -73,9 +73,7 @@ async def head501(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -106,9 +104,7 @@ async def get501(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -150,9 +146,7 @@ async def post505(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -194,9 +188,7 @@ async def delete505(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 0afb2a0627f..e599bbc5072 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 @@ -88,9 +88,7 @@ async def head200(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -121,9 +119,7 @@ async def get200(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -158,9 +154,7 @@ async def options200(self, **kwargs: Any) -> bool: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -206,9 +200,7 @@ async def put200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -250,9 +242,7 @@ async def patch200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -294,9 +284,7 @@ async def post200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -338,9 +326,7 @@ async def delete200(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -382,9 +368,7 @@ async def put201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -426,9 +410,7 @@ async def post201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -470,9 +452,7 @@ async def put202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -514,9 +494,7 @@ async def patch202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -558,9 +536,7 @@ async def post202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -602,9 +578,7 @@ async def delete202(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -635,9 +609,7 @@ async def head204(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -679,9 +651,7 @@ async def put204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -723,9 +693,7 @@ async def patch204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -767,9 +735,7 @@ async def post204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -811,9 +777,7 @@ async def delete204(self, boolean_value: Optional[bool] = True, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -844,9 +808,7 @@ async def head404(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 fa7e3832caf..5f58badbf92 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 @@ -103,9 +103,7 @@ async def get200_model204_no_model_default_error200_valid(self, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -142,9 +140,7 @@ async def get200_model204_no_model_default_error204_valid(self, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -181,9 +177,7 @@ async def get200_model204_no_model_default_error201_invalid(self, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -220,9 +214,7 @@ async def get200_model204_no_model_default_error202_none(self, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -259,9 +251,7 @@ async def get200_model204_no_model_default_error400_valid(self, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -300,9 +290,7 @@ async def get200_model201_model_default_error200_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -343,9 +331,7 @@ async def get200_model201_model_default_error201_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -386,9 +372,7 @@ async def get200_model201_model_default_error400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -430,9 +414,7 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -477,9 +459,7 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -524,9 +504,7 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -571,9 +549,7 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -615,9 +591,7 @@ async def get202_none204_none_default_error202_none(self, **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -648,9 +622,7 @@ async def get202_none204_none_default_error204_none(self, **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -681,9 +653,7 @@ async def get202_none204_none_default_error400_valid(self, **kwargs: Any) -> Non )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -714,9 +684,7 @@ async def get202_none204_none_default_none202_invalid(self, **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -746,9 +714,7 @@ async def get202_none204_none_default_none204_none(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -778,9 +744,7 @@ async def get202_none204_none_default_none400_none(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -810,9 +774,7 @@ async def get202_none204_none_default_none400_invalid(self, **kwargs: Any) -> No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -842,9 +804,7 @@ async def get_default_model_a200_valid(self, **kwargs: Any) -> "_models.MyExcept )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -878,9 +838,7 @@ async def get_default_model_a200_none(self, **kwargs: Any) -> "_models.MyExcepti )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -914,9 +872,7 @@ async def get_default_model_a400_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -947,9 +903,7 @@ async def get_default_model_a400_none(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -980,9 +934,7 @@ async def get_default_none200_invalid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1012,9 +964,7 @@ async def get_default_none200_none(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1044,9 +994,7 @@ async def get_default_none400_invalid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1076,9 +1024,7 @@ async def get_default_none400_none(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1109,9 +1055,7 @@ async def get200_model_a200_none(self, **kwargs: Any) -> "_models.MyException": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1145,9 +1089,7 @@ async def get200_model_a200_valid(self, **kwargs: Any) -> "_models.MyException": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1181,9 +1123,7 @@ async def get200_model_a200_invalid(self, **kwargs: Any) -> "_models.MyException )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1217,9 +1157,7 @@ async def get200_model_a400_none(self, **kwargs: Any) -> "_models.MyException": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1253,9 +1191,7 @@ async def get200_model_a400_valid(self, **kwargs: Any) -> "_models.MyException": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1289,9 +1225,7 @@ async def get200_model_a400_invalid(self, **kwargs: Any) -> "_models.MyException )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1325,9 +1259,7 @@ async def get200_model_a202_valid(self, **kwargs: Any) -> "_models.MyException": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 b91b1def499..e9e13c98a19 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 @@ -649,7 +649,7 @@ def head400( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -683,7 +683,7 @@ def get400( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -717,7 +717,7 @@ def options400( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -764,7 +764,7 @@ def put400( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -811,7 +811,7 @@ def patch400( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -858,7 +858,7 @@ def post400( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -905,7 +905,7 @@ def delete400( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -939,7 +939,7 @@ def head401( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -973,7 +973,7 @@ def get402( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1007,7 +1007,7 @@ def options403( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1041,7 +1041,7 @@ def get403( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1088,7 +1088,7 @@ def put404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1135,7 +1135,7 @@ def patch405( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1182,7 +1182,7 @@ def post406( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1229,7 +1229,7 @@ def delete407( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1276,7 +1276,7 @@ def put409( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1310,7 +1310,7 @@ def head410( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1344,7 +1344,7 @@ def get411( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1378,7 +1378,7 @@ def options412( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1412,7 +1412,7 @@ def get412( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1459,7 +1459,7 @@ def put413( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1506,7 +1506,7 @@ def patch414( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1553,7 +1553,7 @@ def post415( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1587,7 +1587,7 @@ def get416( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1634,7 +1634,7 @@ def delete417( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1668,7 +1668,7 @@ def head429( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 e5de50baef1..70954e5a31c 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 @@ -137,7 +137,7 @@ def get_empty_error( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -175,7 +175,7 @@ def get_no_model_error( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -212,7 +212,7 @@ def get_no_model_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 29dec26531a..d3ae1f6ebbe 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 @@ -425,7 +425,7 @@ def head300( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -463,7 +463,7 @@ def get300( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -506,7 +506,7 @@ def head301( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -544,7 +544,7 @@ def get301( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -596,7 +596,7 @@ def put301( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [301]: @@ -633,7 +633,7 @@ def head302( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -671,7 +671,7 @@ def get302( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -723,7 +723,7 @@ def patch302( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [302]: @@ -774,7 +774,7 @@ def post303( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 303]: @@ -812,7 +812,7 @@ def head307( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -850,7 +850,7 @@ def get307( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -888,7 +888,7 @@ def options307( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -939,7 +939,7 @@ def put307( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -990,7 +990,7 @@ def patch307( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1041,7 +1041,7 @@ def post307( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1092,7 +1092,7 @@ def delete307( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 5c59bf8e0b2..c5df57adaa2 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 @@ -281,7 +281,7 @@ def head408( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -328,7 +328,7 @@ def put500( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -375,7 +375,7 @@ def patch500( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -409,7 +409,7 @@ def get502( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -443,7 +443,7 @@ def options502( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -494,7 +494,7 @@ def post503( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -541,7 +541,7 @@ def delete503( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -588,7 +588,7 @@ def put504( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -635,7 +635,7 @@ def patch504( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 8343310e41f..47f63c41b6f 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 @@ -165,7 +165,7 @@ def head501( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -199,7 +199,7 @@ def get501( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -246,7 +246,7 @@ def post505( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -293,7 +293,7 @@ def delete505( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 577eb4d9e4d..f8ef0c5524e 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 @@ -513,7 +513,7 @@ def head200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -547,7 +547,7 @@ def get200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -585,7 +585,7 @@ def options200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -636,7 +636,7 @@ def put200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -683,7 +683,7 @@ def patch200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -730,7 +730,7 @@ def post200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -777,7 +777,7 @@ def delete200( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -824,7 +824,7 @@ def put201( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -871,7 +871,7 @@ def post201( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -918,7 +918,7 @@ def put202( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -965,7 +965,7 @@ def patch202( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1012,7 +1012,7 @@ def post202( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1059,7 +1059,7 @@ def delete202( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -1093,7 +1093,7 @@ def head204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1140,7 +1140,7 @@ def put204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1187,7 +1187,7 @@ def patch204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1234,7 +1234,7 @@ def post204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1281,7 +1281,7 @@ def delete204( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1315,7 +1315,7 @@ def head404( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 5868ab375af..b2f636ba232 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 @@ -709,7 +709,7 @@ def get200_model204_no_model_default_error200_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -749,7 +749,7 @@ def get200_model204_no_model_default_error204_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -789,7 +789,7 @@ def get200_model204_no_model_default_error201_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -829,7 +829,7 @@ def get200_model204_no_model_default_error202_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -869,7 +869,7 @@ def get200_model204_no_model_default_error400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -909,7 +909,7 @@ def get200_model201_model_default_error200_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -951,7 +951,7 @@ def get200_model201_model_default_error201_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -993,7 +993,7 @@ def get200_model201_model_default_error400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -1036,7 +1036,7 @@ def get200_model_a201_model_c404_model_d_default_error200_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -1082,7 +1082,7 @@ def get200_model_a201_model_c404_model_d_default_error201_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -1128,7 +1128,7 @@ def get200_model_a201_model_c404_model_d_default_error404_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -1174,7 +1174,7 @@ def get200_model_a201_model_c404_model_d_default_error400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -1219,7 +1219,7 @@ def get202_none204_none_default_error202_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -1253,7 +1253,7 @@ def get202_none204_none_default_error204_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -1287,7 +1287,7 @@ def get202_none204_none_default_error400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -1321,7 +1321,7 @@ def get202_none204_none_default_none202_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -1354,7 +1354,7 @@ def get202_none204_none_default_none204_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -1387,7 +1387,7 @@ def get202_none204_none_default_none400_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -1420,7 +1420,7 @@ def get202_none204_none_default_none400_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -1453,7 +1453,7 @@ def get_default_model_a200_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1490,7 +1490,7 @@ def get_default_model_a200_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1527,7 +1527,7 @@ def get_default_model_a400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1561,7 +1561,7 @@ def get_default_model_a400_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1595,7 +1595,7 @@ def get_default_none200_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1628,7 +1628,7 @@ def get_default_none200_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1661,7 +1661,7 @@ def get_default_none400_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1694,7 +1694,7 @@ def get_default_none400_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1728,7 +1728,7 @@ def get200_model_a200_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1765,7 +1765,7 @@ def get200_model_a200_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1802,7 +1802,7 @@ def get200_model_a200_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1839,7 +1839,7 @@ def get200_model_a400_none( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1876,7 +1876,7 @@ def get200_model_a400_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1913,7 +1913,7 @@ def get200_model_a400_invalid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1950,7 +1950,7 @@ def get200_model_a202_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 951356c4c71..d24d028f8db 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 @@ -48,9 +48,7 @@ async def get_incorrect_error_from_server(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 ae59facec75..3aebb287447 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 @@ -71,7 +71,7 @@ def get_incorrect_error_from_server( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_media_types_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py index 2a697ee45d2..a531bbcec01 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 @@ -76,9 +76,7 @@ async def analyze_body(self, input: Optional[Union[IO, "_models.SourcePath"]] = )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -140,9 +138,7 @@ async def analyze_body_no_accept_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -183,9 +179,7 @@ async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 bb6260bfe11..37f10caeba3 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 @@ -153,7 +153,7 @@ def analyze_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -218,7 +218,7 @@ def analyze_body_no_accept_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -264,7 +264,7 @@ def content_type_with_encoding( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 b18ea443f50..608729ff72a 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 @@ -70,9 +70,7 @@ async def put_array(self, resource_array: Optional[List["_models.Resource"]] = N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -103,9 +101,7 @@ async def get_array(self, **kwargs: Any) -> List["_models.FlattenedProduct"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -154,9 +150,7 @@ async def put_wrapped_array( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -188,9 +182,7 @@ async def get_wrapped_array(self, **kwargs: Any) -> List["_models.ProductWrapper )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -238,9 +230,7 @@ async def put_dictionary( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -271,9 +261,7 @@ async def get_dictionary(self, **kwargs: Any) -> Dict[str, "_models.FlattenedPro )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -321,9 +309,7 @@ async def put_resource_collection( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -354,9 +340,7 @@ async def get_resource_collection(self, **kwargs: Any) -> "_models.ResourceColle )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -404,9 +388,7 @@ async def put_simple_product( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -481,9 +463,7 @@ async def post_flattened_simple_product( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -557,9 +537,7 @@ async def put_simple_product_with_grouping( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 3783d36316f..db610fa17da 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 @@ -324,7 +324,7 @@ def put_array( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -358,7 +358,7 @@ def get_array( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -410,7 +410,7 @@ def put_wrapped_array( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -445,7 +445,7 @@ def get_wrapped_array( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -496,7 +496,7 @@ def put_dictionary( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -530,7 +530,7 @@ def get_dictionary( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -581,7 +581,7 @@ def put_resource_collection( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -615,7 +615,7 @@ def get_resource_collection( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -666,7 +666,7 @@ def put_simple_product( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -742,7 +742,7 @@ def post_flattened_simple_product( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -819,7 +819,7 @@ def put_simple_product_with_grouping( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 ff034d4bc73..b918051e741 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 @@ -58,9 +58,7 @@ async def get_horse(self, **kwargs: Any) -> "_models.Horse": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -103,9 +101,7 @@ async def put_horse(self, horse: "_models.Horse", **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -139,9 +135,7 @@ async def get_pet(self, **kwargs: Any) -> "_models.Pet": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,9 +179,7 @@ async def put_pet(self, name: str, **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -221,9 +213,7 @@ async def get_feline(self, **kwargs: Any) -> "_models.Feline": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -266,9 +256,7 @@ async def put_feline(self, feline: "_models.Feline", **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -302,9 +290,7 @@ async def get_cat(self, **kwargs: Any) -> "_models.Cat": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -347,9 +333,7 @@ async def put_cat(self, cat: "_models.Cat", **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -384,9 +368,7 @@ async def get_kitten(self, **kwargs: Any) -> "_models.Kitten": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -431,9 +413,7 @@ async def put_kitten(self, kitten: "_models.Kitten", **kwargs: Any) -> str: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 f49d7a24112..de660df4148 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 @@ -276,7 +276,7 @@ def get_horse( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -324,7 +324,7 @@ def put_horse( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -361,7 +361,7 @@ def get_pet( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -410,7 +410,7 @@ def put_pet( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -447,7 +447,7 @@ def get_feline( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -495,7 +495,7 @@ def put_feline( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -532,7 +532,7 @@ def get_cat( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -580,7 +580,7 @@ def put_cat( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -618,7 +618,7 @@ def get_kitten( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -668,7 +668,7 @@ def put_kitten( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_float_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py index 529fbd4fb84..34a52d4972b 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 @@ -75,9 +75,7 @@ async def put(self, input: Optional[Union[float, "_models.FloatEnum"]] = None, * )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,9 +109,7 @@ async def get(self, **kwargs: Any) -> Union[float, "_models.FloatEnum"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 dabd0b568a4..fb39d83968b 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 @@ -75,9 +75,7 @@ async def put(self, input: Optional[Union[int, "_models.IntEnum"]] = None, **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,9 +109,7 @@ async def get(self, **kwargs: Any) -> Union[int, "_models.IntEnum"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 18d164251fd..e3e8cf842db 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 @@ -130,7 +130,7 @@ def put( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -167,7 +167,7 @@ def get( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 c9f0e30df2a..af16c23fb85 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 @@ -130,7 +130,7 @@ def put( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -167,7 +167,7 @@ def get( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_object_type_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py index 57b8b9159fd..bee153a8de0 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 @@ -47,9 +47,7 @@ async def get(self, **kwargs: Any) -> Any: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -93,9 +91,7 @@ async def put(self, put_object: Any, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 be1fefabaaa..3d5e4683fef 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 @@ -99,7 +99,7 @@ def get( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,7 +148,7 @@ def put( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_availability_sets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py index b71aac0ac2f..1e14db67df2 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 @@ -83,9 +83,7 @@ async def update(self, resource_group_name: str, avset: str, tags: Dict[str, str )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 48df7b1e863..0d4097189e5 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 @@ -127,7 +127,7 @@ def update( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_parmaterized_endpoint_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/operations/_parmaterized_endpoint_client_operations.py index f50aaa617c1..797b7e31324 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 @@ -49,9 +49,7 @@ async def get(self, **kwargs: Any) -> None: } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 d54b371d95f..41847590dba 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 @@ -71,7 +71,7 @@ def get( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 24b783fe308..6344a7da4ee 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 @@ -55,9 +55,7 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Di )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -97,9 +95,7 @@ async def get_optional_report(self, qualifier: Optional[str] = None, **kwargs: A )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 f824122c176..b34ea7d3cfc 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 @@ -119,7 +119,7 @@ def get_report( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -164,7 +164,7 @@ def get_optional_report( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_explicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py index 8c52e2a21f0..2899e66fd0f 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 @@ -101,9 +101,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -142,9 +140,7 @@ async def put_required_binary_body(self, body_parameter: IO, **kwargs: Any) -> N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -184,9 +180,7 @@ async def post_required_integer_parameter(self, body_parameter: int, **kwargs: A )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -228,9 +222,7 @@ async def post_optional_integer_parameter(self, body_parameter: Optional[int] = )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -271,9 +263,7 @@ async def post_required_integer_property(self, value: int, **kwargs: Any) -> Non )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -316,9 +306,7 @@ async def post_optional_integer_property(self, value: Optional[int] = None, **kw )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -353,9 +341,7 @@ async def post_required_integer_header(self, header_parameter: int, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -389,9 +375,7 @@ async def post_optional_integer_header(self, header_parameter: Optional[int] = N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -431,9 +415,7 @@ async def post_required_string_parameter(self, body_parameter: str, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -475,9 +457,7 @@ async def post_optional_string_parameter(self, body_parameter: Optional[str] = N )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -518,9 +498,7 @@ async def post_required_string_property(self, value: str, **kwargs: Any) -> None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -563,9 +541,7 @@ async def post_optional_string_property(self, value: Optional[str] = None, **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -600,9 +576,7 @@ async def post_required_string_header(self, header_parameter: str, **kwargs: Any )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -636,9 +610,7 @@ async def post_optional_string_header(self, body_parameter: Optional[str] = None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -678,9 +650,7 @@ async def post_required_class_parameter(self, body_parameter: "_models.Product", )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -724,9 +694,7 @@ async def post_optional_class_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -767,9 +735,7 @@ async def post_required_class_property(self, value: "_models.Product", **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -812,9 +778,7 @@ async def post_optional_class_property(self, value: Optional["_models.Product"] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -854,9 +818,7 @@ async def post_required_array_parameter(self, body_parameter: List[str], **kwarg )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -898,9 +860,7 @@ async def post_optional_array_parameter(self, body_parameter: Optional[List[str] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -941,9 +901,7 @@ async def post_required_array_property(self, value: List[str], **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -986,9 +944,7 @@ async def post_optional_array_property(self, value: Optional[List[str]] = None, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1023,9 +979,7 @@ async def post_required_array_header(self, header_parameter: List[str], **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1059,9 +1013,7 @@ async def post_optional_array_header(self, header_parameter: Optional[List[str]] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 8fa21356884..ebb55833441 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 @@ -80,9 +80,7 @@ async def get_required_path(self, path_parameter: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -116,9 +114,7 @@ async def put_optional_query(self, query_parameter: Optional[str] = None, **kwar )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -152,9 +148,7 @@ async def put_optional_header(self, query_parameter: Optional[str] = None, **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -196,9 +190,7 @@ async def put_optional_body(self, body_parameter: Optional[str] = None, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -237,9 +229,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -271,9 +261,7 @@ async def get_required_global_path(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -305,9 +293,7 @@ async def get_required_global_query(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -339,9 +325,7 @@ async def get_optional_global_query(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 6e9258db0cc..033902c17f4 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 @@ -660,7 +660,7 @@ def put_optional_binary_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -704,7 +704,7 @@ def put_required_binary_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -749,7 +749,7 @@ def post_required_integer_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -796,7 +796,7 @@ def post_optional_integer_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -842,7 +842,7 @@ def post_required_integer_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -890,7 +890,7 @@ def post_optional_integer_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -930,7 +930,7 @@ def post_required_integer_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -969,7 +969,7 @@ def post_optional_integer_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1014,7 +1014,7 @@ def post_required_string_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1061,7 +1061,7 @@ def post_optional_string_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1107,7 +1107,7 @@ def post_required_string_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1155,7 +1155,7 @@ def post_optional_string_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1195,7 +1195,7 @@ def post_required_string_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1234,7 +1234,7 @@ def post_optional_string_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1279,7 +1279,7 @@ def post_required_class_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1326,7 +1326,7 @@ def post_optional_class_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1372,7 +1372,7 @@ def post_required_class_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1420,7 +1420,7 @@ def post_optional_class_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1465,7 +1465,7 @@ def post_required_array_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1512,7 +1512,7 @@ def post_optional_array_parameter( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1558,7 +1558,7 @@ def post_required_array_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1606,7 +1606,7 @@ def post_optional_array_property( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1646,7 +1646,7 @@ def post_required_array_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1685,7 +1685,7 @@ def post_optional_array_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 f6ab1cd6a82..8cbd34326ce 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 @@ -290,7 +290,7 @@ def get_required_path( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -329,7 +329,7 @@ def put_optional_query( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -368,7 +368,7 @@ def put_optional_header( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -415,7 +415,7 @@ def put_optional_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -459,7 +459,7 @@ def put_optional_binary_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -494,7 +494,7 @@ def get_required_global_path( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -529,7 +529,7 @@ def get_required_global_query( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -564,7 +564,7 @@ def get_optional_global_query( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_import_operations_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_import_operations_operations.py index b8587ceca47..9a5f48c35d2 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 @@ -66,9 +66,7 @@ async def operation_one(self, parameter1: str, **kwargs: Any) -> Any: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 48b95ffc8e7..5615e8e6573 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 @@ -103,7 +103,7 @@ def operation_one( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/_path_items_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py index 40f23aba6e6..4d58e2f3276 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 @@ -97,9 +97,7 @@ async def get_all_with_values( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -154,9 +152,7 @@ async def get_global_query_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -211,9 +207,7 @@ async def get_global_and_local_query_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -267,9 +261,7 @@ async def get_local_path_item_query_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 a47cb33582d..1c7676b2348 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 @@ -97,9 +97,7 @@ async def get_boolean_true(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -130,9 +128,7 @@ async def get_boolean_false(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -163,9 +159,7 @@ async def get_int_one_million(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -196,9 +190,7 @@ async def get_int_negative_one_million(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -229,9 +221,7 @@ async def get_ten_billion(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -262,9 +252,7 @@ async def get_negative_ten_billion(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -295,9 +283,7 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -328,9 +314,7 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -361,9 +345,7 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -394,9 +376,7 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -427,9 +407,7 @@ async def string_unicode(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -460,9 +438,7 @@ async def string_url_encoded(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -495,9 +471,7 @@ async def string_url_non_encoded(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -528,9 +502,7 @@ async def string_empty(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -564,9 +536,7 @@ async def string_null(self, string_path: str, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -600,9 +570,7 @@ async def enum_valid(self, enum_path: Union[str, "_models.UriColor"], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -636,9 +604,7 @@ async def enum_null(self, enum_path: Union[str, "_models.UriColor"], **kwargs: A )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -672,9 +638,7 @@ async def byte_multi_byte(self, byte_path: bytearray, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -705,9 +669,7 @@ async def byte_empty(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -741,9 +703,7 @@ async def byte_null(self, byte_path: bytearray, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -774,9 +734,7 @@ async def date_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -811,9 +769,7 @@ async def date_null(self, date_path: datetime.date, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -844,9 +800,7 @@ async def date_time_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -880,9 +834,7 @@ async def date_time_null(self, date_time_path: datetime.datetime, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -916,9 +868,7 @@ async def base64_url(self, base64_url_path: bytes, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -954,9 +904,7 @@ async def array_csv_in_path(self, array_path: List[str], **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -990,9 +938,7 @@ async def unix_time_url(self, unix_time_url_path: datetime.datetime, **kwargs: A )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 a78d3900d7c..2dd96a43f75 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 @@ -105,9 +105,7 @@ async def get_boolean_true(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -138,9 +136,7 @@ async def get_boolean_false(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -174,9 +170,7 @@ async def get_boolean_null(self, bool_query: Optional[bool] = None, **kwargs: An )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -207,9 +201,7 @@ async def get_int_one_million(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -240,9 +232,7 @@ async def get_int_negative_one_million(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -276,9 +266,7 @@ async def get_int_null(self, int_query: Optional[int] = None, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -309,9 +297,7 @@ async def get_ten_billion(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -342,9 +328,7 @@ async def get_negative_ten_billion(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -378,9 +362,7 @@ async def get_long_null(self, long_query: Optional[int] = None, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -411,9 +393,7 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -444,9 +424,7 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -480,9 +458,7 @@ async def float_null(self, float_query: Optional[float] = None, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -513,9 +489,7 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -546,9 +520,7 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -582,9 +554,7 @@ async def double_null(self, double_query: Optional[float] = None, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -615,9 +585,7 @@ async def string_unicode(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -648,9 +616,7 @@ async def string_url_encoded(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -681,9 +647,7 @@ async def string_empty(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -717,9 +681,7 @@ async def string_null(self, string_query: Optional[str] = None, **kwargs: Any) - )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -753,9 +715,7 @@ async def enum_valid(self, enum_query: Optional[Union[str, "_models.UriColor"]] )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -789,9 +749,7 @@ async def enum_null(self, enum_query: Optional[Union[str, "_models.UriColor"]] = )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -825,9 +783,7 @@ async def byte_multi_byte(self, byte_query: Optional[bytearray] = None, **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -858,9 +814,7 @@ async def byte_empty(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -894,9 +848,7 @@ async def byte_null(self, byte_query: Optional[bytearray] = None, **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -927,9 +879,7 @@ async def date_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -963,9 +913,7 @@ async def date_null(self, date_query: Optional[datetime.date] = None, **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -996,9 +944,7 @@ async def date_time_valid(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1032,9 +978,7 @@ async def date_time_null(self, date_time_query: Optional[datetime.datetime] = No )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1070,9 +1014,7 @@ async def array_string_csv_valid(self, array_query: Optional[List[str]] = None, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1106,9 +1048,7 @@ async def array_string_csv_null(self, array_query: Optional[List[str]] = None, * )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1142,9 +1082,7 @@ async def array_string_csv_empty(self, array_query: Optional[List[str]] = None, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1181,9 +1119,7 @@ async def array_string_no_collection_format_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1219,9 +1155,7 @@ async def array_string_ssv_valid(self, array_query: Optional[List[str]] = None, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1257,9 +1191,7 @@ async def array_string_tsv_valid(self, array_query: Optional[List[str]] = None, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1295,9 +1227,7 @@ async def array_string_pipes_valid(self, array_query: Optional[List[str]] = None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 d023dee6b00..8b39b72ed17 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 @@ -276,7 +276,7 @@ def get_all_with_values( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -332,7 +332,7 @@ def get_global_query_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -388,7 +388,7 @@ def get_global_and_local_query_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -443,7 +443,7 @@ def get_local_path_item_query_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 f586bbafbe0..2fe026caede 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 @@ -781,7 +781,7 @@ def get_boolean_true( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -815,7 +815,7 @@ def get_boolean_false( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -849,7 +849,7 @@ def get_int_one_million( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -883,7 +883,7 @@ def get_int_negative_one_million( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -917,7 +917,7 @@ def get_ten_billion( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -951,7 +951,7 @@ def get_negative_ten_billion( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -985,7 +985,7 @@ def float_scientific_positive( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1019,7 +1019,7 @@ def float_scientific_negative( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1053,7 +1053,7 @@ def double_decimal_positive( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1087,7 +1087,7 @@ def double_decimal_negative( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1121,7 +1121,7 @@ def string_unicode( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1155,7 +1155,7 @@ def string_url_encoded( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1191,7 +1191,7 @@ def string_url_non_encoded( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1225,7 +1225,7 @@ def string_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1264,7 +1264,7 @@ def string_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -1303,7 +1303,7 @@ def enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1342,7 +1342,7 @@ def enum_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -1381,7 +1381,7 @@ def byte_multi_byte( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1415,7 +1415,7 @@ def byte_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1454,7 +1454,7 @@ def byte_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -1488,7 +1488,7 @@ def date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1528,7 +1528,7 @@ def date_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -1562,7 +1562,7 @@ def date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1601,7 +1601,7 @@ def date_time_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -1640,7 +1640,7 @@ def base64_url( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1681,7 +1681,7 @@ def array_csv_in_path( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1720,7 +1720,7 @@ def unix_time_url( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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 01b79e161e4..1c47b5d8f8c 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 @@ -1026,7 +1026,7 @@ def get_boolean_true( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1060,7 +1060,7 @@ def get_boolean_false( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1099,7 +1099,7 @@ def get_boolean_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1133,7 +1133,7 @@ def get_int_one_million( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1167,7 +1167,7 @@ def get_int_negative_one_million( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1206,7 +1206,7 @@ def get_int_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1240,7 +1240,7 @@ def get_ten_billion( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1274,7 +1274,7 @@ def get_negative_ten_billion( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1313,7 +1313,7 @@ def get_long_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1347,7 +1347,7 @@ def float_scientific_positive( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1381,7 +1381,7 @@ def float_scientific_negative( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1420,7 +1420,7 @@ def float_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1454,7 +1454,7 @@ def double_decimal_positive( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1488,7 +1488,7 @@ def double_decimal_negative( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1527,7 +1527,7 @@ def double_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1561,7 +1561,7 @@ def string_unicode( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1595,7 +1595,7 @@ def string_url_encoded( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1629,7 +1629,7 @@ def string_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1668,7 +1668,7 @@ def string_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1707,7 +1707,7 @@ def enum_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1746,7 +1746,7 @@ def enum_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1785,7 +1785,7 @@ def byte_multi_byte( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1819,7 +1819,7 @@ def byte_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1858,7 +1858,7 @@ def byte_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1892,7 +1892,7 @@ def date_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1931,7 +1931,7 @@ def date_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1965,7 +1965,7 @@ def date_time_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2004,7 +2004,7 @@ def date_time_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2045,7 +2045,7 @@ def array_string_csv_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2084,7 +2084,7 @@ def array_string_csv_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2123,7 +2123,7 @@ def array_string_csv_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2163,7 +2163,7 @@ def array_string_no_collection_format_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2204,7 +2204,7 @@ def array_string_ssv_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2245,7 +2245,7 @@ def array_string_tsv_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2286,7 +2286,7 @@ def array_string_pipes_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py index 298b5c1c207..17ba7761d64 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 @@ -75,9 +75,7 @@ async def array_string_multi_null(self, array_query: Optional[List[str]] = None, )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,9 +109,7 @@ async def array_string_multi_empty(self, array_query: Optional[List[str]] = None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -149,9 +145,7 @@ async def array_string_multi_valid(self, array_query: Optional[List[str]] = None )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 eb1adee7c76..a2d0f2a2ffb 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 @@ -166,7 +166,7 @@ def array_string_multi_null( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -205,7 +205,7 @@ def array_string_multi_empty( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -246,7 +246,7 @@ def array_string_multi_valid( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/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 b4ce23a9e84..e493de0b804 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 @@ -61,9 +61,7 @@ async def validation_of_method_parameters( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -118,9 +116,7 @@ async def validation_of_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -155,9 +151,7 @@ async def get_with_constant_in_path(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -200,9 +194,7 @@ async def post_with_constant_in_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 0b79548b94e..27cb271ae4a 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 @@ -193,7 +193,7 @@ def validation_of_method_parameters( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -253,7 +253,7 @@ def validation_of_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -291,7 +291,7 @@ def get_with_constant_in_path( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -337,7 +337,7 @@ def post_with_constant_in_body( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_xml_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py index 84328f7db23..431215d607b 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 @@ -103,9 +103,7 @@ async def get_complex_type_ref_no_meta(self, **kwargs: Any) -> "_models.RootWith )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -147,9 +145,7 @@ async def put_complex_type_ref_no_meta(self, model: "_models.RootWithRefAndNoMet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -179,9 +175,7 @@ async def get_complex_type_ref_with_meta(self, **kwargs: Any) -> "_models.RootWi )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -223,9 +217,7 @@ async def put_complex_type_ref_with_meta(self, model: "_models.RootWithRefAndMet )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -255,9 +247,7 @@ async def get_simple(self, **kwargs: Any) -> "_models.Slideshow": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -300,9 +290,7 @@ async def put_simple(self, slideshow: "_models.Slideshow", **kwargs: Any) -> Non )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -333,9 +321,7 @@ async def get_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -377,9 +363,7 @@ async def put_wrapped_lists(self, wrapped_lists: "_models.AppleBarrel", **kwargs )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -410,9 +394,7 @@ async def get_headers(self, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -445,9 +427,7 @@ async def get_empty_list(self, **kwargs: Any) -> "_models.Slideshow": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -489,9 +469,7 @@ async def put_empty_list(self, slideshow: "_models.Slideshow", **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -521,9 +499,7 @@ async def get_empty_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -565,9 +541,7 @@ async def put_empty_wrapped_lists(self, apple_barrel: "_models.AppleBarrel", **k )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -597,9 +571,7 @@ async def get_root_list(self, **kwargs: Any) -> List["_models.Banana"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -642,9 +614,7 @@ async def put_root_list(self, bananas: List["_models.Banana"], **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -674,9 +644,7 @@ async def get_root_list_single_item(self, **kwargs: Any) -> List["_models.Banana )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -719,9 +687,7 @@ async def put_root_list_single_item(self, bananas: List["_models.Banana"], **kwa )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -751,9 +717,7 @@ async def get_empty_root_list(self, **kwargs: Any) -> List["_models.Banana"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -796,9 +760,7 @@ async def put_empty_root_list(self, bananas: List["_models.Banana"], **kwargs: A )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -828,9 +790,7 @@ async def get_empty_child_element(self, **kwargs: Any) -> "_models.Banana": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -872,9 +832,7 @@ async def put_empty_child_element(self, banana: "_models.Banana", **kwargs: Any) )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -904,9 +862,7 @@ async def list_containers(self, **kwargs: Any) -> "_models.ListContainersRespons )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -940,9 +896,7 @@ async def get_service_properties(self, **kwargs: Any) -> "_models.StorageService )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -984,9 +938,7 @@ async def put_service_properties(self, properties: "_models.StorageServiceProper )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1016,9 +968,7 @@ async def get_acls(self, **kwargs: Any) -> List["_models.SignedIdentifier"]: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1063,9 +1013,7 @@ async def put_acls(self, properties: List["_models.SignedIdentifier"], **kwargs: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1095,9 +1043,7 @@ async def list_blobs(self, **kwargs: Any) -> "_models.ListBlobsResponse": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1141,9 +1087,7 @@ async def json_input(self, id: Optional[int] = None, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1173,9 +1117,7 @@ async def json_output(self, **kwargs: Any) -> "_models.JSONOutput": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1210,9 +1152,7 @@ async def get_xms_text(self, **kwargs: Any) -> "_models.ObjectWithXMsTextPropert )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1246,9 +1186,7 @@ async def get_bytes(self, **kwargs: Any) -> "_models.ModelWithByteProperty": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1292,9 +1230,7 @@ async def put_binary(self, bytes: Optional[bytearray] = None, **kwargs: Any) -> )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1325,9 +1261,7 @@ async def get_uri(self, **kwargs: Any) -> "_models.ModelWithUrlProperty": )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1371,9 +1305,7 @@ async def put_uri(self, url: Optional[str] = None, **kwargs: Any) -> None: )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 5b690e1c76f..8403be66a26 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 @@ -835,7 +835,7 @@ def get_complex_type_ref_no_meta( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -882,7 +882,7 @@ def put_complex_type_ref_no_meta( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -915,7 +915,7 @@ def get_complex_type_ref_with_meta( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -962,7 +962,7 @@ def put_complex_type_ref_with_meta( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -995,7 +995,7 @@ def get_simple( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1043,7 +1043,7 @@ def put_simple( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1077,7 +1077,7 @@ def get_wrapped_lists( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1124,7 +1124,7 @@ def put_wrapped_lists( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1158,7 +1158,7 @@ def get_headers( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1194,7 +1194,7 @@ def get_empty_list( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1241,7 +1241,7 @@ def put_empty_list( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1274,7 +1274,7 @@ def get_empty_wrapped_lists( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1321,7 +1321,7 @@ def put_empty_wrapped_lists( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1354,7 +1354,7 @@ def get_root_list( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1402,7 +1402,7 @@ def put_root_list( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1435,7 +1435,7 @@ def get_root_list_single_item( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1483,7 +1483,7 @@ def put_root_list_single_item( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1516,7 +1516,7 @@ def get_empty_root_list( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1564,7 +1564,7 @@ def put_empty_root_list( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1597,7 +1597,7 @@ def get_empty_child_element( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1644,7 +1644,7 @@ def put_empty_child_element( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1677,7 +1677,7 @@ def list_containers( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1714,7 +1714,7 @@ def get_service_properties( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1761,7 +1761,7 @@ def put_service_properties( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1794,7 +1794,7 @@ def get_acls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1844,7 +1844,7 @@ def put_acls( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1877,7 +1877,7 @@ def list_blobs( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1926,7 +1926,7 @@ def json_input( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1959,7 +1959,7 @@ def json_output( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1997,7 +1997,7 @@ def get_xms_text( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2034,7 +2034,7 @@ def get_bytes( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2083,7 +2083,7 @@ def put_binary( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2117,7 +2117,7 @@ def get_uri( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2166,7 +2166,7 @@ def put_uri( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/aio/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py index 6284d448d4b..34d0aa06579 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 @@ -83,9 +83,7 @@ async def get_pet_by_id(self, pet_id: str, **kwargs: Any) -> Optional["_models.P )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -131,9 +129,7 @@ async def do_something(self, what_action: str, **kwargs: Any) -> "_models.PetAct )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -180,9 +176,7 @@ async def has_models_param(self, models: Optional[str] = "value1", **kwargs: Any )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 9ff665658be..5ee56c677ea 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 @@ -171,7 +171,7 @@ def get_pet_by_id( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -222,7 +222,7 @@ def do_something( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -274,7 +274,7 @@ def has_models_param( )._to_pipeline_transport_request() request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py index c5509f07d28..6c445f2a9ca 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py @@ -94,9 +94,7 @@ async def create_ap_true(self, create_parameters: Any, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -159,9 +157,7 @@ async def create_cat_ap_true(self, create_parameters: Any, **kwargs: Any) -> Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -222,9 +218,7 @@ async def create_ap_object(self, create_parameters: Any, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -285,9 +279,7 @@ async def create_ap_string(self, create_parameters: Any, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -348,9 +340,7 @@ async def create_ap_in_properties(self, create_parameters: Any, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -419,9 +409,7 @@ async def create_ap_in_properties_with_ap_string(self, create_parameters: Any, * ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py index 921442c47c3..f7b3d3dfa17 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py @@ -241,7 +241,7 @@ def create_ap_true( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -309,7 +309,7 @@ def create_cat_ap_true( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -375,7 +375,7 @@ def create_ap_object( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -441,7 +441,7 @@ def create_ap_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -507,7 +507,7 @@ def create_ap_in_properties( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -581,7 +581,7 @@ def create_ap_in_properties_with_ap_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/operations/_operations.py index d9b097e0502..3805f7d0b4f 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/operations/_operations.py @@ -53,9 +53,7 @@ async def get_object(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -100,9 +98,7 @@ async def put_object(self, input: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -131,9 +127,7 @@ async def get_string(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -178,9 +172,7 @@ async def put_string(self, input: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -209,9 +201,7 @@ async def get_array(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -256,9 +246,7 @@ async def put_array(self, input: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/operations/_operations.py index d4a0bf93be8..e20525315b0 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/operations/_operations.py @@ -180,7 +180,7 @@ def get_object( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -230,7 +230,7 @@ def put_object( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -262,7 +262,7 @@ def get_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -312,7 +312,7 @@ def put_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -344,7 +344,7 @@ def get_array( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -394,7 +394,7 @@ def put_array( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py index 83b4efcf0cd..3f5a6eeb538 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py @@ -141,9 +141,7 @@ async def get_null(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -187,9 +185,7 @@ async def get_invalid(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -233,9 +229,7 @@ async def get_empty(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -287,9 +281,7 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -326,9 +318,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -380,9 +370,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -419,9 +407,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -465,9 +451,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -511,9 +495,7 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -565,9 +547,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -604,9 +584,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -650,9 +628,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -696,9 +672,7 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -750,9 +724,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -789,9 +761,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -835,9 +805,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -881,9 +849,7 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -935,9 +901,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -974,9 +938,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1020,9 +982,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1066,9 +1026,7 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1120,9 +1078,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1159,9 +1115,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1205,9 +1159,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1251,9 +1203,7 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1305,9 +1255,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1344,9 +1292,7 @@ async def get_enum_valid(self, **kwargs: Any) -> List[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1398,9 +1344,7 @@ async def put_enum_valid(self, array_body: List[str], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1437,9 +1381,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1491,9 +1433,7 @@ async def put_string_enum_valid(self, array_body: List[str], **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1530,9 +1470,7 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1576,9 +1514,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1623,9 +1559,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1678,9 +1612,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1717,9 +1649,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1763,9 +1693,7 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1817,9 +1745,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1856,9 +1782,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1902,9 +1826,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1949,9 +1871,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2004,9 +1924,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2043,9 +1961,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2089,9 +2005,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2136,9 +2050,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2191,9 +2103,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2230,9 +2140,7 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2284,9 +2192,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2324,9 +2230,7 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2379,9 +2283,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2418,9 +2320,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2465,9 +2365,7 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2514,9 +2412,7 @@ async def get_complex_null(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2563,9 +2459,7 @@ async def get_complex_empty(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2613,9 +2507,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2663,9 +2555,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2713,9 +2603,7 @@ async def get_complex_valid(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2771,9 +2659,7 @@ async def put_complex_valid(self, array_body: List[Any], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2812,9 +2698,7 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2860,9 +2744,7 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2908,9 +2790,7 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2956,9 +2836,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3004,9 +2882,7 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3060,9 +2936,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3101,9 +2975,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3149,9 +3021,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3198,9 +3068,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3247,9 +3115,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3296,9 +3162,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3353,9 +3217,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py index 79034f35401..c944530b7a4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py @@ -1531,7 +1531,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1578,7 +1578,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1625,7 +1625,7 @@ def get_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1682,7 +1682,7 @@ def put_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1722,7 +1722,7 @@ def get_boolean_tfft( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1779,7 +1779,7 @@ def put_boolean_tfft( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1819,7 +1819,7 @@ def get_boolean_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1866,7 +1866,7 @@ def get_boolean_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1913,7 +1913,7 @@ def get_integer_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1970,7 +1970,7 @@ def put_integer_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2010,7 +2010,7 @@ def get_int_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2057,7 +2057,7 @@ def get_int_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2104,7 +2104,7 @@ def get_long_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2161,7 +2161,7 @@ def put_long_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2201,7 +2201,7 @@ def get_long_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2248,7 +2248,7 @@ def get_long_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2295,7 +2295,7 @@ def get_float_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2352,7 +2352,7 @@ def put_float_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2392,7 +2392,7 @@ def get_float_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2439,7 +2439,7 @@ def get_float_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2486,7 +2486,7 @@ def get_double_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2543,7 +2543,7 @@ def put_double_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2583,7 +2583,7 @@ def get_double_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2630,7 +2630,7 @@ def get_double_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2677,7 +2677,7 @@ def get_string_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2734,7 +2734,7 @@ def put_string_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2774,7 +2774,7 @@ def get_enum_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2831,7 +2831,7 @@ def put_enum_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2871,7 +2871,7 @@ def get_string_enum_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2928,7 +2928,7 @@ def put_string_enum_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2968,7 +2968,7 @@ def get_string_with_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3015,7 +3015,7 @@ def get_string_with_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3063,7 +3063,7 @@ def get_uuid_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3121,7 +3121,7 @@ def put_uuid_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3161,7 +3161,7 @@ def get_uuid_invalid_chars( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3208,7 +3208,7 @@ def get_date_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3265,7 +3265,7 @@ def put_date_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3305,7 +3305,7 @@ def get_date_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3352,7 +3352,7 @@ def get_date_invalid_chars( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3400,7 +3400,7 @@ def get_date_time_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3458,7 +3458,7 @@ def put_date_time_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3498,7 +3498,7 @@ def get_date_time_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3545,7 +3545,7 @@ def get_date_time_invalid_chars( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3593,7 +3593,7 @@ def get_date_time_rfc1123_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3651,7 +3651,7 @@ def put_date_time_rfc1123_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3691,7 +3691,7 @@ def get_duration_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3748,7 +3748,7 @@ def put_duration_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3789,7 +3789,7 @@ def get_byte_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3847,7 +3847,7 @@ def put_byte_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3887,7 +3887,7 @@ def get_byte_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3935,7 +3935,7 @@ def get_base64_url( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3985,7 +3985,7 @@ def get_complex_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4035,7 +4035,7 @@ def get_complex_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4086,7 +4086,7 @@ def get_complex_item_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4137,7 +4137,7 @@ def get_complex_item_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4188,7 +4188,7 @@ def get_complex_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4249,7 +4249,7 @@ def put_complex_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4291,7 +4291,7 @@ def get_array_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4340,7 +4340,7 @@ def get_array_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4389,7 +4389,7 @@ def get_array_item_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4438,7 +4438,7 @@ def get_array_item_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4487,7 +4487,7 @@ def get_array_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4546,7 +4546,7 @@ def put_array_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4588,7 +4588,7 @@ def get_dictionary_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4637,7 +4637,7 @@ def get_dictionary_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4687,7 +4687,7 @@ def get_dictionary_item_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4737,7 +4737,7 @@ def get_dictionary_item_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4787,7 +4787,7 @@ def get_dictionary_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4847,7 +4847,7 @@ def put_dictionary_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/aio/operations/_operations.py index 82725c6942e..411ca9cfffa 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/aio/operations/_operations.py @@ -69,9 +69,7 @@ async def get_true(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -110,9 +108,7 @@ async def put_true(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -141,9 +137,7 @@ async def get_false(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -182,9 +176,7 @@ async def put_false(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -213,9 +205,7 @@ async def get_null(self, **kwargs: Any) -> Optional[bool]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -251,9 +241,7 @@ async def get_invalid(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py index 4a4a277bb24..dc03a2bea1b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyBooleanVersionTolerant/bodybooleanversiontolerant/operations/_operations.py @@ -202,7 +202,7 @@ def get_true( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -244,7 +244,7 @@ def put_true( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -276,7 +276,7 @@ def get_false( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -318,7 +318,7 @@ def put_false( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -350,7 +350,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -389,7 +389,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/aio/operations/_operations.py index c0aafc23403..b75b4ad51cb 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/aio/operations/_operations.py @@ -68,9 +68,7 @@ async def get_null(self, **kwargs: Any) -> bytearray: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -106,9 +104,7 @@ async def get_empty(self, **kwargs: Any) -> bytearray: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -144,9 +140,7 @@ async def get_non_ascii(self, **kwargs: Any) -> bytearray: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -190,9 +184,7 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -221,9 +213,7 @@ async def get_invalid(self, **kwargs: Any) -> bytearray: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py index c0d7e7bf6d0..fc61ab4d2f3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/operations/_operations.py @@ -174,7 +174,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -213,7 +213,7 @@ def get_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -252,7 +252,7 @@ def get_non_ascii( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -301,7 +301,7 @@ def put_non_ascii( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -333,7 +333,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/aio/operations/_operations.py index 63222032fc3..9c4264027e6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/aio/operations/_operations.py @@ -128,9 +128,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -184,9 +182,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -225,9 +221,7 @@ async def get_invalid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -273,9 +267,7 @@ async def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -321,9 +313,7 @@ async def get_null(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -369,9 +359,7 @@ async def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -435,9 +423,7 @@ async def get_int(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -490,9 +476,7 @@ async def put_int(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -530,9 +514,7 @@ async def get_long(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -585,9 +567,7 @@ async def put_long(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -625,9 +605,7 @@ async def get_float(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -680,9 +658,7 @@ async def put_float(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -720,9 +696,7 @@ async def get_double(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -776,9 +750,7 @@ async def put_double(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -816,9 +788,7 @@ async def get_bool(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -871,9 +841,7 @@ async def put_bool(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -912,9 +880,7 @@ async def get_string(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -968,9 +934,7 @@ async def put_string(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1008,9 +972,7 @@ async def get_date(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1063,9 +1025,7 @@ async def put_date(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1103,9 +1063,7 @@ async def get_date_time(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1158,9 +1116,7 @@ async def put_date_time(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1198,9 +1154,7 @@ async def get_date_time_rfc1123(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1254,9 +1208,7 @@ async def put_date_time_rfc1123(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1293,9 +1245,7 @@ async def get_duration(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1347,9 +1297,7 @@ async def put_duration(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1386,9 +1334,7 @@ async def get_byte(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1440,9 +1386,7 @@ async def put_byte(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1500,9 +1444,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1557,9 +1499,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1598,9 +1538,7 @@ async def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1654,9 +1592,7 @@ async def put_empty(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1695,9 +1631,7 @@ async def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1762,9 +1696,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1819,9 +1751,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1860,9 +1790,7 @@ async def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1916,9 +1844,7 @@ async def put_empty(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1957,9 +1883,7 @@ async def get_null(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2005,9 +1929,7 @@ async def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2080,9 +2002,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2146,9 +2066,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2209,9 +2127,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2302,9 +2218,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2342,9 +2256,7 @@ async def get_dot_syntax(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2413,9 +2325,7 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2484,9 +2394,7 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2545,9 +2453,7 @@ async def get_complicated(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2616,9 +2522,7 @@ async def put_complicated(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2698,9 +2602,7 @@ async def put_missing_discriminator(self, complex_body: Any, **kwargs: Any) -> A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2786,9 +2688,7 @@ async def put_valid_missing_required(self, complex_body: Any, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2849,9 +2749,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2962,9 +2860,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3021,9 +2917,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3076,9 +2970,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3138,9 +3030,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations_py3.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations_py3.py index aca645df799..189c00affae 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations_py3.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexPythonThreeOnlyVersionTolerant/bodycomplexpython3only/operations/_operations_py3.py @@ -840,7 +840,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -894,7 +894,7 @@ def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -933,7 +933,7 @@ def get_invalid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -979,7 +979,7 @@ def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1025,7 +1025,7 @@ def get_null(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1071,7 +1071,7 @@ def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1135,7 +1135,7 @@ def get_int(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1188,7 +1188,7 @@ def put_int(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1226,7 +1226,7 @@ def get_long(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1279,7 +1279,7 @@ def put_long(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1317,7 +1317,7 @@ def get_float(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1370,7 +1370,7 @@ def put_float(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1408,7 +1408,7 @@ def get_double(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1462,7 +1462,7 @@ def put_double(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1500,7 +1500,7 @@ def get_bool(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1553,7 +1553,7 @@ def put_bool(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1592,7 +1592,7 @@ def get_string(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1646,7 +1646,7 @@ def put_string(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1684,7 +1684,7 @@ def get_date(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1737,7 +1737,7 @@ def put_date(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1775,7 +1775,7 @@ def get_date_time(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1828,7 +1828,7 @@ def put_date_time(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1866,7 +1866,7 @@ def get_date_time_rfc1123(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1920,7 +1920,7 @@ def put_date_time_rfc1123(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1957,7 +1957,7 @@ def get_duration(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2009,7 +2009,7 @@ def put_duration(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2046,7 +2046,7 @@ def get_byte(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2098,7 +2098,7 @@ def put_byte(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2156,7 +2156,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2211,7 +2211,7 @@ def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2250,7 +2250,7 @@ def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2304,7 +2304,7 @@ def put_empty(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2343,7 +2343,7 @@ def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2408,7 +2408,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2463,7 +2463,7 @@ def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2502,7 +2502,7 @@ def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2556,7 +2556,7 @@ def put_empty(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2595,7 +2595,7 @@ def get_null(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2641,7 +2641,7 @@ def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2714,7 +2714,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2778,7 +2778,7 @@ def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2839,7 +2839,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2930,7 +2930,7 @@ def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2968,7 +2968,7 @@ def get_dot_syntax(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3037,7 +3037,7 @@ def get_composed_with_discriminator(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3106,7 +3106,7 @@ def get_composed_without_discriminator(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3165,7 +3165,7 @@ def get_complicated(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3234,7 +3234,7 @@ def put_complicated(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3314,7 +3314,7 @@ def put_missing_discriminator(self, complex_body: Any, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3400,7 +3400,7 @@ def put_valid_missing_required(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3461,7 +3461,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3572,7 +3572,7 @@ def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3629,7 +3629,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3682,7 +3682,7 @@ def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3742,7 +3742,7 @@ def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py index 63222032fc3..9c4264027e6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py @@ -128,9 +128,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -184,9 +182,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -225,9 +221,7 @@ async def get_invalid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -273,9 +267,7 @@ async def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -321,9 +313,7 @@ async def get_null(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -369,9 +359,7 @@ async def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -435,9 +423,7 @@ async def get_int(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -490,9 +476,7 @@ async def put_int(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -530,9 +514,7 @@ async def get_long(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -585,9 +567,7 @@ async def put_long(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -625,9 +605,7 @@ async def get_float(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -680,9 +658,7 @@ async def put_float(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -720,9 +696,7 @@ async def get_double(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -776,9 +750,7 @@ async def put_double(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -816,9 +788,7 @@ async def get_bool(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -871,9 +841,7 @@ async def put_bool(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -912,9 +880,7 @@ async def get_string(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -968,9 +934,7 @@ async def put_string(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1008,9 +972,7 @@ async def get_date(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1063,9 +1025,7 @@ async def put_date(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1103,9 +1063,7 @@ async def get_date_time(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1158,9 +1116,7 @@ async def put_date_time(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1198,9 +1154,7 @@ async def get_date_time_rfc1123(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1254,9 +1208,7 @@ async def put_date_time_rfc1123(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1293,9 +1245,7 @@ async def get_duration(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1347,9 +1297,7 @@ async def put_duration(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1386,9 +1334,7 @@ async def get_byte(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1440,9 +1386,7 @@ async def put_byte(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1500,9 +1444,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1557,9 +1499,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1598,9 +1538,7 @@ async def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1654,9 +1592,7 @@ async def put_empty(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1695,9 +1631,7 @@ async def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1762,9 +1696,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1819,9 +1751,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1860,9 +1790,7 @@ async def get_empty(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1916,9 +1844,7 @@ async def put_empty(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1957,9 +1883,7 @@ async def get_null(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2005,9 +1929,7 @@ async def get_not_provided(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2080,9 +2002,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2146,9 +2066,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2209,9 +2127,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2302,9 +2218,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2342,9 +2256,7 @@ async def get_dot_syntax(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2413,9 +2325,7 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2484,9 +2394,7 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2545,9 +2453,7 @@ async def get_complicated(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2616,9 +2522,7 @@ async def put_complicated(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2698,9 +2602,7 @@ async def put_missing_discriminator(self, complex_body: Any, **kwargs: Any) -> A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2786,9 +2688,7 @@ async def put_valid_missing_required(self, complex_body: Any, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2849,9 +2749,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2962,9 +2860,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3021,9 +2917,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3076,9 +2970,7 @@ async def put_valid(self, complex_body: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3138,9 +3030,7 @@ async def get_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py index 7f575a5b945..c3d7bb0ead1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py @@ -1278,7 +1278,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1337,7 +1337,7 @@ def put_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1379,7 +1379,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1428,7 +1428,7 @@ def get_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1477,7 +1477,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1526,7 +1526,7 @@ def get_not_provided( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1593,7 +1593,7 @@ def get_int( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1651,7 +1651,7 @@ def put_int( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1692,7 +1692,7 @@ def get_long( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1750,7 +1750,7 @@ def put_long( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1791,7 +1791,7 @@ def get_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1849,7 +1849,7 @@ def put_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1890,7 +1890,7 @@ def get_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1949,7 +1949,7 @@ def put_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1990,7 +1990,7 @@ def get_bool( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2048,7 +2048,7 @@ def put_bool( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2090,7 +2090,7 @@ def get_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2149,7 +2149,7 @@ def put_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2190,7 +2190,7 @@ def get_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2248,7 +2248,7 @@ def put_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2289,7 +2289,7 @@ def get_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2347,7 +2347,7 @@ def put_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2388,7 +2388,7 @@ def get_date_time_rfc1123( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2447,7 +2447,7 @@ def put_date_time_rfc1123( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2487,7 +2487,7 @@ def get_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2544,7 +2544,7 @@ def put_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2584,7 +2584,7 @@ def get_byte( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2641,7 +2641,7 @@ def put_byte( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2702,7 +2702,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2762,7 +2762,7 @@ def put_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2804,7 +2804,7 @@ def get_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2863,7 +2863,7 @@ def put_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2905,7 +2905,7 @@ def get_not_provided( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2973,7 +2973,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3033,7 +3033,7 @@ def put_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3075,7 +3075,7 @@ def get_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3134,7 +3134,7 @@ def put_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3176,7 +3176,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3225,7 +3225,7 @@ def get_not_provided( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3301,7 +3301,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3370,7 +3370,7 @@ def put_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3434,7 +3434,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3530,7 +3530,7 @@ def put_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3571,7 +3571,7 @@ def get_dot_syntax( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3643,7 +3643,7 @@ def get_composed_with_discriminator( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3715,7 +3715,7 @@ def get_composed_without_discriminator( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3777,7 +3777,7 @@ def get_complicated( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3851,7 +3851,7 @@ def put_complicated( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3936,7 +3936,7 @@ def put_missing_discriminator( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4027,7 +4027,7 @@ def put_valid_missing_required( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4091,7 +4091,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4207,7 +4207,7 @@ def put_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4267,7 +4267,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4325,7 +4325,7 @@ def put_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4388,7 +4388,7 @@ def get_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/operations/_operations.py index d49efb8b1d0..899183a9818 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/operations/_operations.py @@ -73,9 +73,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,9 +109,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -149,9 +145,7 @@ async def get_overflow(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -187,9 +181,7 @@ async def get_underflow(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -233,9 +225,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -264,9 +254,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -302,9 +290,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -348,9 +334,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -379,9 +363,7 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py index 2f5fbcd07e9..c96359b60de 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/operations/_operations.py @@ -259,7 +259,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -298,7 +298,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -337,7 +337,7 @@ def get_overflow( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -376,7 +376,7 @@ def get_underflow( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -425,7 +425,7 @@ def put_utc_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -457,7 +457,7 @@ def get_utc_lowercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -496,7 +496,7 @@ def get_utc_uppercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -545,7 +545,7 @@ def put_utc_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -577,7 +577,7 @@ def get_utc_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py index d01d8b9b81d..ba10a8bce5b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py @@ -86,9 +86,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -124,9 +122,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -162,9 +158,7 @@ async def get_overflow(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -200,9 +194,7 @@ async def get_underflow(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -246,9 +238,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -288,9 +278,7 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -319,9 +307,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -357,9 +343,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -398,9 +382,7 @@ async def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> dateti ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -444,9 +426,7 @@ async def put_local_positive_offset_max_date_time(self, datetime_body: datetime. ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -475,9 +455,7 @@ async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -513,9 +491,7 @@ async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -559,9 +535,7 @@ async def put_local_negative_offset_max_date_time(self, datetime_body: datetime. ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -590,9 +564,7 @@ async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -628,9 +600,7 @@ async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -674,9 +644,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -705,9 +673,7 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -751,9 +717,7 @@ async def put_local_positive_offset_min_date_time(self, datetime_body: datetime. ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -782,9 +746,7 @@ async def get_local_positive_offset_min_date_time(self, **kwargs: Any) -> dateti ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -828,9 +790,7 @@ async def put_local_negative_offset_min_date_time(self, datetime_body: datetime. ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -859,9 +819,7 @@ async def get_local_negative_offset_min_date_time(self, **kwargs: Any) -> dateti ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -897,9 +855,7 @@ async def get_local_no_offset_min_date_time(self, **kwargs: Any) -> datetime.dat ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py index 4e7deeedea4..92305332e90 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py @@ -539,7 +539,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -578,7 +578,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -617,7 +617,7 @@ def get_overflow( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -656,7 +656,7 @@ def get_underflow( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -705,7 +705,7 @@ def put_utc_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -750,7 +750,7 @@ def put_utc_max_date_time7_digits( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -782,7 +782,7 @@ def get_utc_lowercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -821,7 +821,7 @@ def get_utc_uppercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -863,7 +863,7 @@ def get_utc_uppercase_max_date_time7_digits( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -912,7 +912,7 @@ def put_local_positive_offset_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -944,7 +944,7 @@ def get_local_positive_offset_lowercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -983,7 +983,7 @@ def get_local_positive_offset_uppercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1032,7 +1032,7 @@ def put_local_negative_offset_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1064,7 +1064,7 @@ def get_local_negative_offset_uppercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1103,7 +1103,7 @@ def get_local_negative_offset_lowercase_max_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1152,7 +1152,7 @@ def put_utc_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1184,7 +1184,7 @@ def get_utc_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1233,7 +1233,7 @@ def put_local_positive_offset_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1265,7 +1265,7 @@ def get_local_positive_offset_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1314,7 +1314,7 @@ def put_local_negative_offset_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1346,7 +1346,7 @@ def get_local_negative_offset_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1385,7 +1385,7 @@ def get_local_no_offset_min_date_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/aio/operations/_operations.py index ee4490efee0..4c8c22abcbd 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/aio/operations/_operations.py @@ -72,9 +72,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.date]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -110,9 +108,7 @@ async def get_invalid_date(self, **kwargs: Any) -> datetime.date: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,9 +144,7 @@ async def get_overflow_date(self, **kwargs: Any) -> datetime.date: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -186,9 +180,7 @@ async def get_underflow_date(self, **kwargs: Any) -> datetime.date: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -232,9 +224,7 @@ async def put_max_date(self, date_body: datetime.date, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -263,9 +253,7 @@ async def get_max_date(self, **kwargs: Any) -> datetime.date: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -309,9 +297,7 @@ async def put_min_date(self, date_body: datetime.date, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -340,9 +326,7 @@ async def get_min_date(self, **kwargs: Any) -> datetime.date: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py index 6b2b1f84ed1..87c6b21d4a9 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateVersionTolerant/bodydateversiontolerant/operations/_operations.py @@ -239,7 +239,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -278,7 +278,7 @@ def get_invalid_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -317,7 +317,7 @@ def get_overflow_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -356,7 +356,7 @@ def get_underflow_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -405,7 +405,7 @@ def put_max_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -437,7 +437,7 @@ def get_max_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -486,7 +486,7 @@ def put_min_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -518,7 +518,7 @@ def get_min_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py index ead7b489bd6..cd9da05f041 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py @@ -137,9 +137,7 @@ async def get_null(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -183,9 +181,7 @@ async def get_empty(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -237,9 +233,7 @@ async def put_empty(self, array_body: Dict[str, str], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -276,9 +270,7 @@ async def get_null_value(self, **kwargs: Any) -> Dict[str, str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -322,9 +314,7 @@ async def get_null_key(self, **kwargs: Any) -> Dict[str, str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -368,9 +358,7 @@ async def get_empty_string_key(self, **kwargs: Any) -> Dict[str, str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -414,9 +402,7 @@ async def get_invalid(self, **kwargs: Any) -> Dict[str, str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -460,9 +446,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> Dict[str, bool]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -514,9 +498,7 @@ async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -553,9 +535,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> Dict[str, bool]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -599,9 +579,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> Dict[str, bool]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -645,9 +623,7 @@ async def get_integer_valid(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -699,9 +675,7 @@ async def put_integer_valid(self, array_body: Dict[str, int], **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -738,9 +712,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -784,9 +756,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -830,9 +800,7 @@ async def get_long_valid(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -884,9 +852,7 @@ async def put_long_valid(self, array_body: Dict[str, int], **kwargs: Any) -> Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -923,9 +889,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -969,9 +933,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> Dict[str, int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1015,9 +977,7 @@ async def get_float_valid(self, **kwargs: Any) -> Dict[str, float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1069,9 +1029,7 @@ async def put_float_valid(self, array_body: Dict[str, float], **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1108,9 +1066,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> Dict[str, float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1154,9 +1110,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> Dict[str, float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1200,9 +1154,7 @@ async def get_double_valid(self, **kwargs: Any) -> Dict[str, float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1254,9 +1206,7 @@ async def put_double_valid(self, array_body: Dict[str, float], **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1293,9 +1243,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> Dict[str, float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1339,9 +1287,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> Dict[str, float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1385,9 +1331,7 @@ async def get_string_valid(self, **kwargs: Any) -> Dict[str, str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1439,9 +1383,7 @@ async def put_string_valid(self, array_body: Dict[str, str], **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1478,9 +1420,7 @@ async def get_string_with_null(self, **kwargs: Any) -> Dict[str, str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1524,9 +1464,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> Dict[str, str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1570,9 +1508,7 @@ async def get_date_valid(self, **kwargs: Any) -> Dict[str, datetime.date]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1624,9 +1560,7 @@ async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1663,9 +1597,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> Dict[str, datetime.date] ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1709,9 +1641,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime.date ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1756,9 +1686,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> Dict[str, datetime.datetim ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1811,9 +1739,7 @@ async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], ** ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1850,9 +1776,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> Dict[str, datetime. ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1896,9 +1820,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1943,9 +1865,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> Dict[str, datetime ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1998,9 +1918,7 @@ async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datet ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2037,9 +1955,7 @@ async def get_duration_valid(self, **kwargs: Any) -> Dict[str, datetime.timedelt ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2091,9 +2007,7 @@ async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], ** ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2131,9 +2045,7 @@ async def get_byte_valid(self, **kwargs: Any) -> Dict[str, bytearray]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2186,9 +2098,7 @@ async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2226,9 +2136,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> Dict[str, bytearray]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2273,9 +2181,7 @@ async def get_base64_url(self, **kwargs: Any) -> Dict[str, bytes]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2322,9 +2228,7 @@ async def get_complex_null(self, **kwargs: Any) -> Optional[Dict[str, Any]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2371,9 +2275,7 @@ async def get_complex_empty(self, **kwargs: Any) -> Dict[str, Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2421,9 +2323,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> Dict[str, Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2471,9 +2371,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> Dict[str, Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2521,9 +2419,7 @@ async def get_complex_valid(self, **kwargs: Any) -> Dict[str, Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2579,9 +2475,7 @@ async def put_complex_valid(self, array_body: Dict[str, Any], **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2620,9 +2514,7 @@ async def get_array_null(self, **kwargs: Any) -> Optional[Dict[str, List[str]]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2668,9 +2560,7 @@ async def get_array_empty(self, **kwargs: Any) -> Dict[str, List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2716,9 +2606,7 @@ async def get_array_item_null(self, **kwargs: Any) -> Dict[str, List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2764,9 +2652,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> Dict[str, List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2813,9 +2699,7 @@ async def get_array_valid(self, **kwargs: Any) -> Dict[str, List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2870,9 +2754,7 @@ async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2911,9 +2793,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2959,9 +2839,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> Dict[str, Dict[str, str]] ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3008,9 +2886,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> Dict[str, Dict[str, s ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3057,9 +2933,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> Dict[str, Dict[str, ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3107,9 +2981,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> Dict[str, Dict[str, str]] ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3165,9 +3037,7 @@ async def put_dictionary_valid(self, array_body: Dict[str, Dict[str, str]], **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py index 44669d227f9..2aec133352a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py @@ -1439,7 +1439,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1486,7 +1486,7 @@ def get_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1543,7 +1543,7 @@ def put_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1583,7 +1583,7 @@ def get_null_value( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1630,7 +1630,7 @@ def get_null_key( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1677,7 +1677,7 @@ def get_empty_string_key( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1724,7 +1724,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1771,7 +1771,7 @@ def get_boolean_tfft( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1828,7 +1828,7 @@ def put_boolean_tfft( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1868,7 +1868,7 @@ def get_boolean_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1915,7 +1915,7 @@ def get_boolean_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1962,7 +1962,7 @@ def get_integer_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2019,7 +2019,7 @@ def put_integer_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2059,7 +2059,7 @@ def get_int_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2106,7 +2106,7 @@ def get_int_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2153,7 +2153,7 @@ def get_long_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2210,7 +2210,7 @@ def put_long_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2250,7 +2250,7 @@ def get_long_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2297,7 +2297,7 @@ def get_long_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2344,7 +2344,7 @@ def get_float_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2401,7 +2401,7 @@ def put_float_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2441,7 +2441,7 @@ def get_float_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2488,7 +2488,7 @@ def get_float_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2535,7 +2535,7 @@ def get_double_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2592,7 +2592,7 @@ def put_double_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2632,7 +2632,7 @@ def get_double_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2679,7 +2679,7 @@ def get_double_invalid_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2726,7 +2726,7 @@ def get_string_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2783,7 +2783,7 @@ def put_string_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2823,7 +2823,7 @@ def get_string_with_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2870,7 +2870,7 @@ def get_string_with_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2917,7 +2917,7 @@ def get_date_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2974,7 +2974,7 @@ def put_date_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3014,7 +3014,7 @@ def get_date_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3061,7 +3061,7 @@ def get_date_invalid_chars( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3109,7 +3109,7 @@ def get_date_time_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3167,7 +3167,7 @@ def put_date_time_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3207,7 +3207,7 @@ def get_date_time_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3254,7 +3254,7 @@ def get_date_time_invalid_chars( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3302,7 +3302,7 @@ def get_date_time_rfc1123_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3360,7 +3360,7 @@ def put_date_time_rfc1123_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3400,7 +3400,7 @@ def get_duration_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3457,7 +3457,7 @@ def put_duration_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3498,7 +3498,7 @@ def get_byte_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3556,7 +3556,7 @@ def put_byte_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3597,7 +3597,7 @@ def get_byte_invalid_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3645,7 +3645,7 @@ def get_base64_url( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3695,7 +3695,7 @@ def get_complex_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3745,7 +3745,7 @@ def get_complex_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3796,7 +3796,7 @@ def get_complex_item_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3847,7 +3847,7 @@ def get_complex_item_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3898,7 +3898,7 @@ def get_complex_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3959,7 +3959,7 @@ def put_complex_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4001,7 +4001,7 @@ def get_array_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4050,7 +4050,7 @@ def get_array_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4099,7 +4099,7 @@ def get_array_item_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4148,7 +4148,7 @@ def get_array_item_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4198,7 +4198,7 @@ def get_array_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4258,7 +4258,7 @@ def put_array_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4300,7 +4300,7 @@ def get_dictionary_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4349,7 +4349,7 @@ def get_dictionary_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4399,7 +4399,7 @@ def get_dictionary_item_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4449,7 +4449,7 @@ def get_dictionary_item_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4500,7 +4500,7 @@ def get_dictionary_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4561,7 +4561,7 @@ def put_dictionary_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py index 310ef10eb3c..2c86b4d91c3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/aio/operations/_operations.py @@ -68,9 +68,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -114,9 +112,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -145,9 +141,7 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -183,9 +177,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py index 606e5c16b44..d1a41e3f0fa 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDurationVersionTolerant/bodydurationversiontolerant/operations/_operations.py @@ -155,7 +155,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -204,7 +204,7 @@ def put_positive_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -236,7 +236,7 @@ def get_positive_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -275,7 +275,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/aio/operations/_operations.py index 82235edf297..47b73eab405 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/aio/operations/_operations.py @@ -66,9 +66,7 @@ async def get_file(self, **kwargs: Any) -> IO: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -101,9 +99,7 @@ async def get_file_large(self, **kwargs: Any) -> IO: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -136,9 +132,7 @@ async def get_empty_file(self, **kwargs: Any) -> IO: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py index 01428e57f5a..d7959117c11 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFileVersionTolerant/bodyfileversiontolerant/operations/_operations.py @@ -130,7 +130,7 @@ def get_file( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -166,7 +166,7 @@ def get_file_large( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -202,7 +202,7 @@ def get_empty_file( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/aio/operations/_operations.py index dfedbd5d294..a455500e1fc 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/aio/operations/_operations.py @@ -86,9 +86,7 @@ async def upload_file(self, files: Dict[str, Any], **kwargs: Any) -> IO: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -129,9 +127,7 @@ async def upload_file_via_body(self, file_content: IO, **kwargs: Any) -> IO: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,9 +181,7 @@ async def upload_files(self, files: Dict[str, Any], **kwargs: Any) -> IO: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=True, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py index 8e153783c72..670d3086196 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormDataVersionTolerant/bodyformdataversiontolerant/operations/_operations.py @@ -164,7 +164,7 @@ def upload_file( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -210,7 +210,7 @@ def upload_file_via_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -269,7 +269,7 @@ def upload_files( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=True, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/aio/operations/_operations.py index 248b0c87f8e..cca39c08ce1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/aio/operations/_operations.py @@ -78,9 +78,7 @@ async def get_null(self, **kwargs: Any) -> Optional[int]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -116,9 +114,7 @@ async def get_invalid(self, **kwargs: Any) -> int: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -154,9 +150,7 @@ async def get_overflow_int32(self, **kwargs: Any) -> int: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -192,9 +186,7 @@ async def get_underflow_int32(self, **kwargs: Any) -> int: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -230,9 +222,7 @@ async def get_overflow_int64(self, **kwargs: Any) -> int: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -268,9 +258,7 @@ async def get_underflow_int64(self, **kwargs: Any) -> int: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -314,9 +302,7 @@ async def put_max32(self, int_body: int, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -353,9 +339,7 @@ async def put_max64(self, int_body: int, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -392,9 +376,7 @@ async def put_min32(self, int_body: int, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -431,9 +413,7 @@ async def put_min64(self, int_body: int, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -462,9 +442,7 @@ async def get_unix_time(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -508,9 +486,7 @@ async def put_unix_time_date(self, int_body: datetime.datetime, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -539,9 +515,7 @@ async def get_invalid_unix_time(self, **kwargs: Any) -> datetime.datetime: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -577,9 +551,7 @@ async def get_null_unix_time(self, **kwargs: Any) -> Optional[datetime.datetime] ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py index c0e9962e4a9..8bd52ea660b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyIntegerVersionTolerant/bodyintegerversiontolerant/operations/_operations.py @@ -371,7 +371,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -410,7 +410,7 @@ def get_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -449,7 +449,7 @@ def get_overflow_int32( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -488,7 +488,7 @@ def get_underflow_int32( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -527,7 +527,7 @@ def get_overflow_int64( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -566,7 +566,7 @@ def get_underflow_int64( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -615,7 +615,7 @@ def put_max32( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -657,7 +657,7 @@ def put_max64( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -699,7 +699,7 @@ def put_min32( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -741,7 +741,7 @@ def put_min64( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -773,7 +773,7 @@ def get_unix_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -822,7 +822,7 @@ def put_unix_time_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -854,7 +854,7 @@ def get_invalid_unix_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -893,7 +893,7 @@ def get_null_unix_time( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/aio/operations/_operations.py index c5340cdab48..928bc63aca4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/aio/operations/_operations.py @@ -87,9 +87,7 @@ async def get_null(self, **kwargs: Any) -> Optional[float]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -125,9 +123,7 @@ async def get_invalid_float(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -163,9 +159,7 @@ async def get_invalid_double(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -201,9 +195,7 @@ async def get_invalid_decimal(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -247,9 +239,7 @@ async def put_big_float(self, number_body: float, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -278,9 +268,7 @@ async def get_big_float(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -324,9 +312,7 @@ async def put_big_double(self, number_body: float, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -355,9 +341,7 @@ async def get_big_double(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -396,9 +380,7 @@ async def put_big_double_positive_decimal(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -427,9 +409,7 @@ async def get_big_double_positive_decimal(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -468,9 +448,7 @@ async def put_big_double_negative_decimal(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -499,9 +477,7 @@ async def get_big_double_negative_decimal(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -545,9 +521,7 @@ async def put_big_decimal(self, number_body: float, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -576,9 +550,7 @@ async def get_big_decimal(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -617,9 +589,7 @@ async def put_big_decimal_positive_decimal(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -648,9 +618,7 @@ async def get_big_decimal_positive_decimal(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -689,9 +657,7 @@ async def put_big_decimal_negative_decimal(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -720,9 +686,7 @@ async def get_big_decimal_negative_decimal(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -766,9 +730,7 @@ async def put_small_float(self, number_body: float, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -797,9 +759,7 @@ async def get_small_float(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -843,9 +803,7 @@ async def put_small_double(self, number_body: float, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -874,9 +832,7 @@ async def get_small_double(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -920,9 +876,7 @@ async def put_small_decimal(self, number_body: float, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -951,9 +905,7 @@ async def get_small_decimal(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py index 8d58b0a41f2..cf98cfb9a9e 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyNumberVersionTolerant/bodynumberversiontolerant/operations/_operations.py @@ -598,7 +598,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -637,7 +637,7 @@ def get_invalid_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -676,7 +676,7 @@ def get_invalid_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -715,7 +715,7 @@ def get_invalid_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -764,7 +764,7 @@ def put_big_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -796,7 +796,7 @@ def get_big_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -845,7 +845,7 @@ def put_big_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -877,7 +877,7 @@ def get_big_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -919,7 +919,7 @@ def put_big_double_positive_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -951,7 +951,7 @@ def get_big_double_positive_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -993,7 +993,7 @@ def put_big_double_negative_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1025,7 +1025,7 @@ def get_big_double_negative_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1074,7 +1074,7 @@ def put_big_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1106,7 +1106,7 @@ def get_big_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1148,7 +1148,7 @@ def put_big_decimal_positive_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1180,7 +1180,7 @@ def get_big_decimal_positive_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1222,7 +1222,7 @@ def put_big_decimal_negative_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1254,7 +1254,7 @@ def get_big_decimal_negative_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1303,7 +1303,7 @@ def put_small_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1335,7 +1335,7 @@ def get_small_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1384,7 +1384,7 @@ def put_small_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1416,7 +1416,7 @@ def get_small_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1465,7 +1465,7 @@ def put_small_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1497,7 +1497,7 @@ def get_small_decimal( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py index 2cc614d7fd0..d30cda34bd1 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py @@ -82,9 +82,7 @@ async def get_null(self, **kwargs: Any) -> Optional[str]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -131,9 +129,7 @@ async def put_null(self, string_body: Optional[str] = None, **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -162,9 +158,7 @@ async def get_empty(self, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -203,9 +197,7 @@ async def put_empty(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -234,9 +226,7 @@ async def get_mbcs(self, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -275,9 +265,7 @@ async def put_mbcs(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -308,9 +296,7 @@ async def get_whitespace(self, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -351,9 +337,7 @@ async def put_whitespace(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -382,9 +366,7 @@ async def get_not_provided(self, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -420,9 +402,7 @@ async def get_base64_encoded(self, **kwargs: Any) -> bytearray: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -458,9 +438,7 @@ async def get_base64_url_encoded(self, **kwargs: Any) -> bytes: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -504,9 +482,7 @@ async def put_base64_url_encoded(self, string_body: bytes, **kwargs: Any) -> Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -535,9 +511,7 @@ async def get_null_base64_url_encoded(self, **kwargs: Any) -> Optional[bytes]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -598,9 +572,7 @@ async def get_not_expandable(self, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -645,9 +617,7 @@ async def put_not_expandable(self, string_body: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -682,9 +652,7 @@ async def get_referenced(self, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -729,9 +697,7 @@ async def put_referenced(self, enum_string_body: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -769,9 +735,7 @@ async def get_referenced_constant(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -824,9 +788,7 @@ async def put_referenced_constant(self, enum_string_body: Any, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py index ec1d8a90c32..a3ae5f2f2d9 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py @@ -488,7 +488,7 @@ def get_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -540,7 +540,7 @@ def put_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -572,7 +572,7 @@ def get_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -614,7 +614,7 @@ def put_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -646,7 +646,7 @@ def get_mbcs( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -688,7 +688,7 @@ def put_mbcs( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -722,7 +722,7 @@ def get_whitespace( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -766,7 +766,7 @@ def put_whitespace( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -798,7 +798,7 @@ def get_not_provided( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -837,7 +837,7 @@ def get_base64_encoded( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -876,7 +876,7 @@ def get_base64_url_encoded( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -925,7 +925,7 @@ def put_base64_url_encoded( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -957,7 +957,7 @@ def get_null_base64_url_encoded( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1021,7 +1021,7 @@ def get_not_expandable( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1071,7 +1071,7 @@ def put_not_expandable( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1109,7 +1109,7 @@ def get_referenced( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1159,7 +1159,7 @@ def put_referenced( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1200,7 +1200,7 @@ def get_referenced_constant( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1258,7 +1258,7 @@ def put_referenced_constant( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/aio/operations/_operations.py index 82043578fb7..ef42aedca08 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/aio/operations/_operations.py @@ -63,9 +63,7 @@ async def get(self, **kwargs: Any) -> datetime.time: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -109,9 +107,7 @@ async def put(self, time_body: datetime.time, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py index ae927b4aedf..9bcd774abb4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyTimeVersionTolerant/bodytimeversiontolerant/operations/_operations.py @@ -115,7 +115,7 @@ def get( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -164,7 +164,7 @@ def put( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py index cf0fa4da401..c22dcb07a9b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py @@ -87,9 +87,7 @@ async def put_no_model_as_string_no_required_two_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -125,9 +123,7 @@ async def put_no_model_as_string_no_required_two_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -163,9 +159,7 @@ async def put_no_model_as_string_no_required_one_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -201,9 +195,7 @@ async def put_no_model_as_string_no_required_one_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -237,9 +229,7 @@ async def put_no_model_as_string_required_two_value_no_default(self, *, input: s ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -273,9 +263,7 @@ async def put_no_model_as_string_required_two_value_default(self, *, input: str ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -306,9 +294,7 @@ async def put_no_model_as_string_required_one_value_no_default(self, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -339,9 +325,7 @@ async def put_no_model_as_string_required_one_value_default(self, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -377,9 +361,7 @@ async def put_model_as_string_no_required_two_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -415,9 +397,7 @@ async def put_model_as_string_no_required_two_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -453,9 +433,7 @@ async def put_model_as_string_no_required_one_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -491,9 +469,7 @@ async def put_model_as_string_no_required_one_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -527,9 +503,7 @@ async def put_model_as_string_required_two_value_no_default(self, *, input: str, ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -563,9 +537,7 @@ async def put_model_as_string_required_two_value_default(self, *, input: str = " ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -599,9 +571,7 @@ async def put_model_as_string_required_one_value_no_default(self, *, input: str, ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -635,9 +605,7 @@ async def put_model_as_string_required_one_value_default(self, *, input: str = " ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -667,9 +635,7 @@ async def put_client_constants(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py index fd40a734679..92abc00492b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py @@ -452,7 +452,7 @@ def put_no_model_as_string_no_required_two_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -491,7 +491,7 @@ def put_no_model_as_string_no_required_two_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -530,7 +530,7 @@ def put_no_model_as_string_no_required_one_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -569,7 +569,7 @@ def put_no_model_as_string_no_required_one_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -608,7 +608,7 @@ def put_no_model_as_string_required_two_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -647,7 +647,7 @@ def put_no_model_as_string_required_two_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -681,7 +681,7 @@ def put_no_model_as_string_required_one_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -715,7 +715,7 @@ def put_no_model_as_string_required_one_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -754,7 +754,7 @@ def put_model_as_string_no_required_two_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -793,7 +793,7 @@ def put_model_as_string_no_required_two_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -832,7 +832,7 @@ def put_model_as_string_no_required_one_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -871,7 +871,7 @@ def put_model_as_string_no_required_one_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -910,7 +910,7 @@ def put_model_as_string_required_two_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -949,7 +949,7 @@ def put_model_as_string_required_two_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -988,7 +988,7 @@ def put_model_as_string_required_one_value_no_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1027,7 +1027,7 @@ def put_model_as_string_required_one_value_default( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1060,7 +1060,7 @@ def put_client_constants( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/operations/_operations.py index ce02586221f..05ebf1febeb 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/operations/_operations.py @@ -82,9 +82,7 @@ async def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py index 66ca0cdf0be..5fce4ef1bb4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/operations/_operations.py @@ -131,7 +131,7 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py index 81e7b841c43..7cf2259efdd 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/operations/_operations.py @@ -68,9 +68,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py index 4c8fd9d3649..891d9c8ea29 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/operations/_operations.py @@ -98,7 +98,7 @@ def get_empty( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py index 8a72d1d9401..b0f7984ba61 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py @@ -75,9 +75,7 @@ async def get_by_pet_id(self, pet_id: str, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -141,9 +139,7 @@ async def add_pet(self, pet_param: Any = None, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py index 16aed40b745..3177d16b97f 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py @@ -136,7 +136,7 @@ def get_by_pet_id( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -205,7 +205,7 @@ def add_pet( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py index 0b32d9bae28..69af6f0588d 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py @@ -96,9 +96,7 @@ async def param_existing_key(self, *, user_agent_parameter: str, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -127,9 +125,7 @@ async def response_existing_key(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -164,9 +160,7 @@ async def param_protected_key(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -195,9 +189,7 @@ async def response_protected_key(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -236,9 +228,7 @@ async def param_integer(self, *, scenario: str, value: int, **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -270,9 +260,7 @@ async def response_integer(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -311,9 +299,7 @@ async def param_long(self, *, scenario: str, value: int, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -345,9 +331,7 @@ async def response_long(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -386,9 +370,7 @@ async def param_float(self, *, scenario: str, value: float, **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -420,9 +402,7 @@ async def response_float(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -461,9 +441,7 @@ async def param_double(self, *, scenario: str, value: float, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -495,9 +473,7 @@ async def response_double(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -536,9 +512,7 @@ async def param_bool(self, *, scenario: str, value: bool, **kwargs: Any) -> None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -570,9 +544,7 @@ async def response_bool(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -613,9 +585,7 @@ async def param_string(self, *, scenario: str, value: Optional[str] = None, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -648,9 +618,7 @@ async def response_string(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -689,9 +657,7 @@ async def param_date(self, *, scenario: str, value: datetime.date, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -723,9 +689,7 @@ async def response_date(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -765,9 +729,7 @@ async def param_datetime(self, *, scenario: str, value: datetime.datetime, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -799,9 +761,7 @@ async def response_datetime(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -843,9 +803,7 @@ async def param_datetime_rfc1123( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -878,9 +836,7 @@ async def response_datetime_rfc1123(self, *, scenario: str, **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -918,9 +874,7 @@ async def param_duration(self, *, scenario: str, value: datetime.timedelta, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -952,9 +906,7 @@ async def response_duration(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -992,9 +944,7 @@ async def param_byte(self, *, scenario: str, value: bytearray, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1026,9 +976,7 @@ async def response_byte(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1069,9 +1017,7 @@ async def param_enum(self, *, scenario: str, value: Optional[str] = None, **kwar ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1104,9 +1050,7 @@ async def response_enum(self, *, scenario: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1139,9 +1083,7 @@ async def custom_request_id(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py index 65527870ae7..caeeb2bbbe7 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py @@ -761,7 +761,7 @@ def param_existing_key( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -793,7 +793,7 @@ def response_existing_key( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -831,7 +831,7 @@ def param_protected_key( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -863,7 +863,7 @@ def response_protected_key( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -908,7 +908,7 @@ def param_integer( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -945,7 +945,7 @@ def response_integer( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -990,7 +990,7 @@ def param_long( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1027,7 +1027,7 @@ def response_long( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1072,7 +1072,7 @@ def param_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1109,7 +1109,7 @@ def response_float( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1154,7 +1154,7 @@ def param_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1191,7 +1191,7 @@ def response_double( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1236,7 +1236,7 @@ def param_bool( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1273,7 +1273,7 @@ def response_bool( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1320,7 +1320,7 @@ def param_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1358,7 +1358,7 @@ def response_string( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1403,7 +1403,7 @@ def param_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1440,7 +1440,7 @@ def response_date( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1486,7 +1486,7 @@ def param_datetime( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1523,7 +1523,7 @@ def response_datetime( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1569,7 +1569,7 @@ def param_datetime_rfc1123( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1607,7 +1607,7 @@ def response_datetime_rfc1123( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1651,7 +1651,7 @@ def param_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1688,7 +1688,7 @@ def response_duration( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1732,7 +1732,7 @@ def param_byte( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1769,7 +1769,7 @@ def response_byte( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1816,7 +1816,7 @@ def param_enum( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1854,7 +1854,7 @@ def response_enum( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1890,7 +1890,7 @@ def custom_request_id( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py index 4997ba82784..ef50de7984a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py @@ -174,9 +174,7 @@ async def get_empty_error(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -212,9 +210,7 @@ async def get_no_model_error(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -250,9 +246,7 @@ async def get_no_model_empty(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -307,9 +301,7 @@ async def head200(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -338,9 +330,7 @@ async def get200(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -376,9 +366,7 @@ async def options200(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -425,9 +413,7 @@ async def put200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -467,9 +453,7 @@ async def patch200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -509,9 +493,7 @@ async def post200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -551,9 +533,7 @@ async def delete200(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -593,9 +573,7 @@ async def put201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -635,9 +613,7 @@ async def post201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -677,9 +653,7 @@ async def put202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -719,9 +693,7 @@ async def patch202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -761,9 +733,7 @@ async def post202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -803,9 +773,7 @@ async def delete202(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -834,9 +802,7 @@ async def head204(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -876,9 +842,7 @@ async def put204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -918,9 +882,7 @@ async def patch204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -960,9 +922,7 @@ async def post204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1002,9 +962,7 @@ async def delete204(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -1033,9 +991,7 @@ async def head404(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -1083,9 +1039,7 @@ async def head300(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -1126,9 +1080,7 @@ async def get300(self, **kwargs: Any) -> Optional[List[str]]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -1169,9 +1121,7 @@ async def head301(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -1204,9 +1154,7 @@ async def get301(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -1251,9 +1199,7 @@ async def put301(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [301]: @@ -1285,9 +1231,7 @@ async def head302(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -1320,9 +1264,7 @@ async def get302(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -1367,9 +1309,7 @@ async def patch302(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [302]: @@ -1413,9 +1353,7 @@ async def post303(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 303]: @@ -1448,9 +1386,7 @@ async def head307(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1483,9 +1419,7 @@ async def get307(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1518,9 +1452,7 @@ async def options307(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1564,9 +1496,7 @@ async def put307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1610,9 +1540,7 @@ async def patch307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1656,9 +1584,7 @@ async def post307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1702,9 +1628,7 @@ async def delete307(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -1756,9 +1680,7 @@ async def head400(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1787,9 +1709,7 @@ async def get400(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1818,9 +1738,7 @@ async def options400(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1860,9 +1778,7 @@ async def put400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1902,9 +1818,7 @@ async def patch400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1944,9 +1858,7 @@ async def post400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1986,9 +1898,7 @@ async def delete400(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2017,9 +1927,7 @@ async def head401(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2048,9 +1956,7 @@ async def get402(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2079,9 +1985,7 @@ async def options403(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2110,9 +2014,7 @@ async def get403(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2152,9 +2054,7 @@ async def put404(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2194,9 +2094,7 @@ async def patch405(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2236,9 +2134,7 @@ async def post406(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2278,9 +2174,7 @@ async def delete407(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2320,9 +2214,7 @@ async def put409(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2351,9 +2243,7 @@ async def head410(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2382,9 +2272,7 @@ async def get411(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2413,9 +2301,7 @@ async def options412(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2444,9 +2330,7 @@ async def get412(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2486,9 +2370,7 @@ async def put413(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2528,9 +2410,7 @@ async def patch414(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2570,9 +2450,7 @@ async def post415(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2601,9 +2479,7 @@ async def get416(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2643,9 +2519,7 @@ async def delete417(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2674,9 +2548,7 @@ async def head429(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2724,9 +2596,7 @@ async def head501(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2755,9 +2625,7 @@ async def get501(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2797,9 +2665,7 @@ async def post505(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2839,9 +2705,7 @@ async def delete505(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -2889,9 +2753,7 @@ async def head408(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2931,9 +2793,7 @@ async def put500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2973,9 +2833,7 @@ async def patch500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3004,9 +2862,7 @@ async def get502(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3035,9 +2891,7 @@ async def options502(self, **kwargs: Any) -> bool: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3084,9 +2938,7 @@ async def post503(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3126,9 +2978,7 @@ async def delete503(self, boolean_value: Optional[bool] = True, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3168,9 +3018,7 @@ async def put504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3210,9 +3058,7 @@ async def patch504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3268,9 +3114,7 @@ async def get200_model204_no_model_default_error200_valid(self, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -3316,9 +3160,7 @@ async def get200_model204_no_model_default_error204_valid(self, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -3364,9 +3206,7 @@ async def get200_model204_no_model_default_error201_invalid(self, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -3412,9 +3252,7 @@ async def get200_model204_no_model_default_error202_none(self, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -3460,9 +3298,7 @@ async def get200_model204_no_model_default_error400_valid(self, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -3513,9 +3349,7 @@ async def get200_model201_model_default_error200_valid(self, **kwargs: Any) -> A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -3571,9 +3405,7 @@ async def get200_model201_model_default_error201_valid(self, **kwargs: Any) -> A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -3629,9 +3461,7 @@ async def get200_model201_model_default_error400_valid(self, **kwargs: Any) -> A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -3690,9 +3520,7 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid(self, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -3757,9 +3585,7 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid(self, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -3824,9 +3650,7 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid(self, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -3891,9 +3715,7 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid(self, **kw ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -3942,9 +3764,7 @@ async def get202_none204_none_default_error202_none(self, **kwargs: Any) -> None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -3973,9 +3793,7 @@ async def get202_none204_none_default_error204_none(self, **kwargs: Any) -> None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -4004,9 +3822,7 @@ async def get202_none204_none_default_error400_valid(self, **kwargs: Any) -> Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -4035,9 +3851,7 @@ async def get202_none204_none_default_none202_invalid(self, **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -4066,9 +3880,7 @@ async def get202_none204_none_default_none204_none(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -4097,9 +3909,7 @@ async def get202_none204_none_default_none400_none(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -4128,9 +3938,7 @@ async def get202_none204_none_default_none400_invalid(self, **kwargs: Any) -> No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -4167,9 +3975,7 @@ async def get_default_model_a200_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4213,9 +4019,7 @@ async def get_default_model_a200_none(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4251,9 +4055,7 @@ async def get_default_model_a400_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4282,9 +4084,7 @@ async def get_default_model_a400_none(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4313,9 +4113,7 @@ async def get_default_none200_invalid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4344,9 +4142,7 @@ async def get_default_none200_none(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4375,9 +4171,7 @@ async def get_default_none400_invalid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4406,9 +4200,7 @@ async def get_default_none400_none(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4446,9 +4238,7 @@ async def get200_model_a200_none(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4492,9 +4282,7 @@ async def get200_model_a200_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4538,9 +4326,7 @@ async def get200_model_a200_invalid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4584,9 +4370,7 @@ async def get200_model_a400_none(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4630,9 +4414,7 @@ async def get200_model_a400_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4676,9 +4458,7 @@ async def get200_model_a400_invalid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4722,9 +4502,7 @@ async def get200_model_a202_valid(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py index f39e8658f5c..03efd231d28 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py @@ -2410,7 +2410,7 @@ def get_empty_error( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2449,7 +2449,7 @@ def get_no_model_error( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2488,7 +2488,7 @@ def get_no_model_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2546,7 +2546,7 @@ def head200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2578,7 +2578,7 @@ def get200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2617,7 +2617,7 @@ def options200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2669,7 +2669,7 @@ def put200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2714,7 +2714,7 @@ def patch200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2759,7 +2759,7 @@ def post200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2804,7 +2804,7 @@ def delete200( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2849,7 +2849,7 @@ def put201( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2894,7 +2894,7 @@ def post201( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2939,7 +2939,7 @@ def put202( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -2984,7 +2984,7 @@ def patch202( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3029,7 +3029,7 @@ def post202( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3074,7 +3074,7 @@ def delete202( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -3106,7 +3106,7 @@ def head204( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -3151,7 +3151,7 @@ def put204( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -3196,7 +3196,7 @@ def patch204( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -3241,7 +3241,7 @@ def post204( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -3286,7 +3286,7 @@ def delete204( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204]: @@ -3318,7 +3318,7 @@ def head404( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [204, 404]: @@ -3369,7 +3369,7 @@ def head300( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -3413,7 +3413,7 @@ def get300( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 300]: @@ -3457,7 +3457,7 @@ def head301( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -3493,7 +3493,7 @@ def get301( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 301]: @@ -3543,7 +3543,7 @@ def put301( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [301]: @@ -3578,7 +3578,7 @@ def head302( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -3614,7 +3614,7 @@ def get302( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 302]: @@ -3664,7 +3664,7 @@ def patch302( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [302]: @@ -3713,7 +3713,7 @@ def post303( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 303]: @@ -3749,7 +3749,7 @@ def head307( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -3785,7 +3785,7 @@ def get307( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -3821,7 +3821,7 @@ def options307( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -3870,7 +3870,7 @@ def put307( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -3919,7 +3919,7 @@ def patch307( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -3968,7 +3968,7 @@ def post307( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -4017,7 +4017,7 @@ def delete307( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -4072,7 +4072,7 @@ def head400( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4104,7 +4104,7 @@ def get400( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4136,7 +4136,7 @@ def options400( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4181,7 +4181,7 @@ def put400( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4226,7 +4226,7 @@ def patch400( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4271,7 +4271,7 @@ def post400( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4316,7 +4316,7 @@ def delete400( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4348,7 +4348,7 @@ def head401( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4380,7 +4380,7 @@ def get402( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4412,7 +4412,7 @@ def options403( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4444,7 +4444,7 @@ def get403( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4489,7 +4489,7 @@ def put404( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4534,7 +4534,7 @@ def patch405( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4579,7 +4579,7 @@ def post406( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4624,7 +4624,7 @@ def delete407( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4669,7 +4669,7 @@ def put409( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4701,7 +4701,7 @@ def head410( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4733,7 +4733,7 @@ def get411( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4765,7 +4765,7 @@ def options412( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4797,7 +4797,7 @@ def get412( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4842,7 +4842,7 @@ def put413( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4887,7 +4887,7 @@ def patch414( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4932,7 +4932,7 @@ def post415( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -4964,7 +4964,7 @@ def get416( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -5009,7 +5009,7 @@ def delete417( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -5041,7 +5041,7 @@ def head429( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -5092,7 +5092,7 @@ def head501( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -5124,7 +5124,7 @@ def get501( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -5169,7 +5169,7 @@ def post505( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -5214,7 +5214,7 @@ def delete505( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -5265,7 +5265,7 @@ def head408( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5310,7 +5310,7 @@ def put500( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5355,7 +5355,7 @@ def patch500( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5387,7 +5387,7 @@ def get502( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5419,7 +5419,7 @@ def options502( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5471,7 +5471,7 @@ def post503( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5516,7 +5516,7 @@ def delete503( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5561,7 +5561,7 @@ def put504( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5606,7 +5606,7 @@ def patch504( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -5665,7 +5665,7 @@ def get200_model204_no_model_default_error200_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -5714,7 +5714,7 @@ def get200_model204_no_model_default_error204_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -5763,7 +5763,7 @@ def get200_model204_no_model_default_error201_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -5812,7 +5812,7 @@ def get200_model204_no_model_default_error202_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -5861,7 +5861,7 @@ def get200_model204_no_model_default_error400_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: @@ -5915,7 +5915,7 @@ def get200_model201_model_default_error200_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -5974,7 +5974,7 @@ def get200_model201_model_default_error201_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -6033,7 +6033,7 @@ def get200_model201_model_default_error400_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -6095,7 +6095,7 @@ def get200_model_a201_model_c404_model_d_default_error200_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -6163,7 +6163,7 @@ def get200_model_a201_model_c404_model_d_default_error201_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -6231,7 +6231,7 @@ def get200_model_a201_model_c404_model_d_default_error404_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -6299,7 +6299,7 @@ def get200_model_a201_model_c404_model_d_default_error400_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201, 404]: @@ -6351,7 +6351,7 @@ def get202_none204_none_default_error202_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -6383,7 +6383,7 @@ def get202_none204_none_default_error204_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -6415,7 +6415,7 @@ def get202_none204_none_default_error400_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -6447,7 +6447,7 @@ def get202_none204_none_default_none202_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -6479,7 +6479,7 @@ def get202_none204_none_default_none204_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -6511,7 +6511,7 @@ def get202_none204_none_default_none400_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -6543,7 +6543,7 @@ def get202_none204_none_default_none400_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -6583,7 +6583,7 @@ def get_default_model_a200_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6630,7 +6630,7 @@ def get_default_model_a200_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6669,7 +6669,7 @@ def get_default_model_a400_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6701,7 +6701,7 @@ def get_default_model_a400_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6733,7 +6733,7 @@ def get_default_none200_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6765,7 +6765,7 @@ def get_default_none200_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6797,7 +6797,7 @@ def get_default_none400_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6829,7 +6829,7 @@ def get_default_none400_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6870,7 +6870,7 @@ def get200_model_a200_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6917,7 +6917,7 @@ def get200_model_a200_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -6964,7 +6964,7 @@ def get200_model_a200_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7011,7 +7011,7 @@ def get200_model_a400_none( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7058,7 +7058,7 @@ def get200_model_a400_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7105,7 +7105,7 @@ def get200_model_a400_invalid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -7152,7 +7152,7 @@ def get200_model_a202_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/operations/_operations.py index d4273ab94aa..b1c87d17ed4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/operations/_operations.py @@ -46,9 +46,7 @@ async def get_incorrect_error_from_server(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/operations/_operations.py index 5bd80f9c458..41060eb849a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/operations/_operations.py @@ -68,7 +68,7 @@ def get_incorrect_error_from_server( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py index 10b83322192..f9a7c2504e8 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py @@ -71,9 +71,7 @@ async def get_required(self, *, parameter1: str, parameter2: str, parameter3: st ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py index 3822d4629de..5ac9685c02b 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCInitialVersionTolerant/llcpackageversiontolerant/operations/_operations.py @@ -114,7 +114,7 @@ def get_required( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py index fb68cdcdd6d..15794a8c2a6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/aio/operations/_operations.py @@ -73,9 +73,7 @@ async def get_required( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/_operations.py index 50d99443dca..9c5dedc8436 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/LLCUpdateOneVersionTolerant/llcpackageversiontolerant/operations/_operations.py @@ -115,7 +115,7 @@ def get_required( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/operations/_operations.py index 2adc8a30140..e3e2d8ea3f4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/operations/_operations.py @@ -80,9 +80,7 @@ async def analyze_body(self, input: Optional[Union[IO, Any]] = None, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -150,9 +148,7 @@ async def analyze_body_no_accept_header(self, input: Optional[Union[IO, Any]] = ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -192,9 +188,7 @@ async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/operations/_operations.py index 4086d03cd30..d04d4dabfc8 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/operations/_operations.py @@ -156,7 +156,7 @@ def analyze_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -229,7 +229,7 @@ def analyze_body_no_accept_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: @@ -274,7 +274,7 @@ def content_type_with_encoding( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/operations/_operations.py index bcd50711b81..9d34b33fd5e 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/operations/_operations.py @@ -84,9 +84,7 @@ async def put_array(self, resource_array: Optional[List[Any]] = None, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -137,9 +135,7 @@ async def get_array(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -197,9 +193,7 @@ async def put_wrapped_array(self, resource_array: Optional[List[Any]] = None, ** ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -241,9 +235,7 @@ async def get_wrapped_array(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -312,9 +304,7 @@ async def put_dictionary(self, resource_dictionary: Optional[Dict[str, Any]] = N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -365,9 +355,7 @@ async def get_dictionary(self, **kwargs: Any) -> Dict[str, Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -470,9 +458,7 @@ async def put_resource_collection(self, resource_complex_object: Any = None, **k ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -557,9 +543,7 @@ async def get_resource_collection(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -637,9 +621,7 @@ async def put_simple_product(self, simple_body_product: Any = None, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -717,9 +699,7 @@ async def post_flattened_simple_product(self, simple_body_product: Any = None, * ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -800,9 +780,7 @@ async def put_simple_product_with_grouping(self, name: str, simple_body_product: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/operations/_operations.py index 7d6f1d83730..482a8fda364 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/operations/_operations.py @@ -337,7 +337,7 @@ def put_array( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -391,7 +391,7 @@ def get_array( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -454,7 +454,7 @@ def put_wrapped_array( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -499,7 +499,7 @@ def get_wrapped_array( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -573,7 +573,7 @@ def put_dictionary( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -627,7 +627,7 @@ def get_dictionary( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -735,7 +735,7 @@ def put_resource_collection( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -823,7 +823,7 @@ def get_resource_collection( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -906,7 +906,7 @@ def put_simple_product( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -989,7 +989,7 @@ def post_flattened_simple_product( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1076,7 +1076,7 @@ def put_simple_product_with_grouping( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/operations/_operations.py index ec4a61e162c..cc40df34fa4 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/operations/_operations.py @@ -65,9 +65,7 @@ async def get_horse(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -120,9 +118,7 @@ async def put_horse(self, horse: Any, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -166,9 +162,7 @@ async def get_pet(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -220,9 +214,7 @@ async def put_pet(self, pet: Any, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -267,9 +259,7 @@ async def get_feline(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -322,9 +312,7 @@ async def put_feline(self, feline: Any, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -371,9 +359,7 @@ async def get_cat(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -428,9 +414,7 @@ async def put_cat(self, cat: Any, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -479,9 +463,7 @@ async def get_kitten(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -539,9 +521,7 @@ async def put_kitten(self, kitten: Any, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/operations/_operations.py index 6ddfa79473e..ad3112e28a8 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/operations/_operations.py @@ -282,7 +282,7 @@ def get_horse( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -340,7 +340,7 @@ def put_horse( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -387,7 +387,7 @@ def get_pet( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -444,7 +444,7 @@ def put_pet( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -492,7 +492,7 @@ def get_feline( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -550,7 +550,7 @@ def put_feline( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -600,7 +600,7 @@ def get_cat( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -660,7 +660,7 @@ def put_cat( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -712,7 +712,7 @@ def get_kitten( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -775,7 +775,7 @@ def put_kitten( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/aio/operations/_operations.py index f83d0158761..3918e270c75 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/aio/operations/_operations.py @@ -78,9 +78,7 @@ async def put(self, input: Optional[int] = None, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -122,9 +120,7 @@ async def get(self, **kwargs: Any) -> int: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -190,9 +186,7 @@ async def put(self, input: Optional[float] = None, **kwargs: Any) -> str: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -234,9 +228,7 @@ async def get(self, **kwargs: Any) -> float: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py index 3cb953ff990..6713a15ae34 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/operations/_operations.py @@ -171,7 +171,7 @@ def put( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -216,7 +216,7 @@ def get( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -287,7 +287,7 @@ def put( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -332,7 +332,7 @@ def get( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/operations/_operations.py index f0ea7e023ba..4d0d0a625ff 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/operations/_operations.py @@ -46,9 +46,7 @@ async def get(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -93,9 +91,7 @@ async def put(self, put_object: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/operations/_operations.py index 6db61d2d9f4..a7591fdadf5 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/operations/_operations.py @@ -98,7 +98,7 @@ def get( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -148,7 +148,7 @@ def put( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py index 0d8f2225658..5e6944f97f7 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py @@ -86,9 +86,7 @@ async def update(self, resource_group_name: str, avset: str, tags: Any, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py index cf94783dd4c..580a2246e54 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py @@ -129,7 +129,7 @@ def update( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_operations.py index 9ce32dac8d7..812a3de8d55 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_operations.py @@ -48,9 +48,7 @@ async def get(self, **kwargs: Any) -> None: } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_parmaterized_endpoint_client_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_parmaterized_endpoint_client_operations.py deleted file mode 100644 index 4332589d314..00000000000 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/aio/operations/_parmaterized_endpoint_client_operations.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async - -from ...operations._parmaterized_endpoint_client_operations import build_get_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ParmaterizedEndpointClientOperationsMixin: - @distributed_trace_async - async def get(self, **kwargs: Any) -> None: - """Basic get to make sure base url formatting of 'endpoint' works. - - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_request( - template_url=self.get.metadata["url"], - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - request.url = self._client.format_url(request.url, **path_format_arguments) - - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - get.metadata = {"url": "/parameterizedEndpoint/get"} # type: ignore diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_operations.py index 2c45c0d24dc..8aa801da2c3 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_operations.py @@ -70,7 +70,7 @@ def get( } request.url = self._client.format_url(request.url, **path_format_arguments) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_parmaterized_endpoint_client_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_parmaterized_endpoint_client_operations.py deleted file mode 100644 index 2c45c0d24dc..00000000000 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterizedEndpointVersionTolerant/parameterizedendpointversiontolerant/operations/_parmaterized_endpoint_client_operations.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -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 -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - - T = TypeVar("T") - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -# fmt: off - -def build_get_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - # Construct URL - url = kwargs.pop("template_url", '/parameterizedEndpoint/get') - - return HttpRequest( - method="GET", - url=url, - **kwargs - ) - -# fmt: on -class ParmaterizedEndpointClientOperationsMixin(object): - @distributed_trace - def get( - self, **kwargs # type: Any - ): - # type: (...) -> None - """Basic get to make sure base url formatting of 'endpoint' works. - - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop("cls", None) # type: ClsType[None] - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop("error_map", {})) - - request = build_get_request( - template_url=self.get.metadata["url"], - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - request.url = self._client.format_url(request.url, **path_format_arguments) - - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - get.metadata = {"url": "/parameterizedEndpoint/get"} # type: ignore diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/operations/_operations.py index 00f684de98a..bcf6c43e18f 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/operations/_operations.py @@ -58,9 +58,7 @@ async def get_report(self, *, qualifier: Optional[str] = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -109,9 +107,7 @@ async def get_optional_report(self, *, qualifier: Optional[str] = None, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/operations/_operations.py index bef5dc0bb6c..2db7accfba8 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/operations/_operations.py @@ -124,7 +124,7 @@ def get_report( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -178,7 +178,7 @@ def get_optional_report( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py index ad009d2b1fc..920318a689a 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py @@ -98,9 +98,7 @@ async def get_required_path(self, path_parameter: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -132,9 +130,7 @@ async def put_optional_query(self, *, query_parameter: Optional[str] = None, **k ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -166,9 +162,7 @@ async def put_optional_header(self, *, query_parameter: Optional[str] = None, ** ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -208,9 +202,7 @@ async def put_optional_body(self, body_parameter: Optional[str] = None, **kwargs ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -247,9 +239,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -279,9 +269,7 @@ async def get_required_global_path(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -311,9 +299,7 @@ async def get_required_global_query(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -343,9 +329,7 @@ async def get_optional_global_query(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -401,9 +385,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -440,9 +422,7 @@ async def put_required_binary_body(self, body_parameter: IO, **kwargs: Any) -> N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -480,9 +460,7 @@ async def post_required_integer_parameter(self, body_parameter: int, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -522,9 +500,7 @@ async def post_optional_integer_parameter(self, body_parameter: Optional[int] = ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -570,9 +546,7 @@ async def post_required_integer_property(self, body_parameter: Any, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -620,9 +594,7 @@ async def post_optional_integer_property(self, body_parameter: Any = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -655,9 +627,7 @@ async def post_required_integer_header(self, *, header_parameter: int, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -689,9 +659,7 @@ async def post_optional_integer_header(self, *, header_parameter: Optional[int] ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -729,9 +697,7 @@ async def post_required_string_parameter(self, body_parameter: str, **kwargs: An ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -771,9 +737,7 @@ async def post_optional_string_parameter(self, body_parameter: Optional[str] = N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -819,9 +783,7 @@ async def post_required_string_property(self, body_parameter: Any, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -869,9 +831,7 @@ async def post_optional_string_property(self, body_parameter: Any = None, **kwar ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -904,9 +864,7 @@ async def post_required_string_header(self, *, header_parameter: str, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -938,9 +896,7 @@ async def post_optional_string_header(self, *, body_parameter: Optional[str] = N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -987,9 +943,7 @@ async def post_required_class_parameter(self, body_parameter: Any, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1038,9 +992,7 @@ async def post_optional_class_parameter(self, body_parameter: Any = None, **kwar ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1089,9 +1041,7 @@ async def post_required_class_property(self, body_parameter: Any, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1142,9 +1092,7 @@ async def post_optional_class_property(self, body_parameter: Any = None, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1190,9 +1138,7 @@ async def post_required_array_parameter(self, body_parameter: List[str], **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1240,9 +1186,7 @@ async def post_optional_array_parameter(self, body_parameter: Optional[List[str] ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1290,9 +1234,7 @@ async def post_required_array_property(self, body_parameter: Any, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1342,9 +1284,7 @@ async def post_optional_array_property(self, body_parameter: Any = None, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1377,9 +1317,7 @@ async def post_required_array_header(self, *, header_parameter: List[str], **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1411,9 +1349,7 @@ async def post_optional_array_header(self, *, header_parameter: Optional[List[st ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py index 4133118697d..7c8e4af6e3f 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py @@ -856,7 +856,7 @@ def get_required_path( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -893,7 +893,7 @@ def put_optional_query( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -930,7 +930,7 @@ def put_optional_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -975,7 +975,7 @@ def put_optional_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1017,7 +1017,7 @@ def put_optional_binary_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1050,7 +1050,7 @@ def get_required_global_path( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1083,7 +1083,7 @@ def get_required_global_query( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1116,7 +1116,7 @@ def get_optional_global_query( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1177,7 +1177,7 @@ def put_optional_binary_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1219,7 +1219,7 @@ def put_required_binary_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1262,7 +1262,7 @@ def post_required_integer_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1307,7 +1307,7 @@ def post_optional_integer_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1358,7 +1358,7 @@ def post_required_integer_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1411,7 +1411,7 @@ def post_optional_integer_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1449,7 +1449,7 @@ def post_required_integer_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1486,7 +1486,7 @@ def post_optional_integer_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1529,7 +1529,7 @@ def post_required_string_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1574,7 +1574,7 @@ def post_optional_string_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1625,7 +1625,7 @@ def post_required_string_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1678,7 +1678,7 @@ def post_optional_string_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1716,7 +1716,7 @@ def post_required_string_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1753,7 +1753,7 @@ def post_optional_string_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1805,7 +1805,7 @@ def post_required_class_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1859,7 +1859,7 @@ def post_optional_class_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1913,7 +1913,7 @@ def post_required_class_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1969,7 +1969,7 @@ def post_optional_class_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2020,7 +2020,7 @@ def post_required_array_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2073,7 +2073,7 @@ def post_optional_array_parameter( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2126,7 +2126,7 @@ def post_required_array_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2181,7 +2181,7 @@ def post_optional_array_property( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2219,7 +2219,7 @@ def post_required_array_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2256,7 +2256,7 @@ def post_optional_array_header( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py index 996b9b267db..6c018bbfad6 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py @@ -65,9 +65,7 @@ async def operation_one(self, *, parameter1: str, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py index 5f52421c032..0ddc1d7e3aa 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py @@ -102,7 +102,7 @@ def operation_one( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py index e53f7e0612d..0a00972e811 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py @@ -69,9 +69,7 @@ async def array_string_multi_null(self, *, array_query: Optional[List[str]] = No ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -103,9 +101,7 @@ async def array_string_multi_empty(self, *, array_query: Optional[List[str]] = N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -139,9 +135,7 @@ async def array_string_multi_valid(self, *, array_query: Optional[List[str]] = N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py index 028a53e8307..a57b5ca0361 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py @@ -159,7 +159,7 @@ def array_string_multi_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -196,7 +196,7 @@ def array_string_multi_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -235,7 +235,7 @@ def array_string_multi_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py index 83f161a9d5e..724d254a0e8 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py @@ -130,9 +130,7 @@ async def get_boolean_true(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -161,9 +159,7 @@ async def get_boolean_false(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -192,9 +188,7 @@ async def get_int_one_million(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -223,9 +217,7 @@ async def get_int_negative_one_million(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -254,9 +246,7 @@ async def get_ten_billion(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -285,9 +275,7 @@ async def get_negative_ten_billion(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -316,9 +304,7 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -347,9 +333,7 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -378,9 +362,7 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -409,9 +391,7 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -440,9 +420,7 @@ async def string_unicode(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -471,9 +449,7 @@ async def string_url_encoded(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -504,9 +480,7 @@ async def string_url_non_encoded(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -535,9 +509,7 @@ async def string_empty(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -569,9 +541,7 @@ async def string_null(self, string_path: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -604,9 +574,7 @@ async def enum_valid(self, enum_path: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -639,9 +607,7 @@ async def enum_null(self, enum_path: str, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -673,9 +639,7 @@ async def byte_multi_byte(self, byte_path: bytearray, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -704,9 +668,7 @@ async def byte_empty(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -738,9 +700,7 @@ async def byte_null(self, byte_path: bytearray, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -769,9 +729,7 @@ async def date_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -804,9 +762,7 @@ async def date_null(self, date_path: datetime.date, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -835,9 +791,7 @@ async def date_time_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -869,9 +823,7 @@ async def date_time_null(self, date_time_path: datetime.datetime, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -903,9 +855,7 @@ async def base64_url(self, base64_url_path: bytes, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -939,9 +889,7 @@ async def array_csv_in_path(self, array_path: List[str], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -973,9 +921,7 @@ async def unix_time_url(self, unix_time_url_path: datetime.datetime, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1023,9 +969,7 @@ async def get_boolean_true(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1054,9 +998,7 @@ async def get_boolean_false(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1088,9 +1030,7 @@ async def get_boolean_null(self, *, bool_query: Optional[bool] = None, **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1119,9 +1059,7 @@ async def get_int_one_million(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1150,9 +1088,7 @@ async def get_int_negative_one_million(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1184,9 +1120,7 @@ async def get_int_null(self, *, int_query: Optional[int] = None, **kwargs: Any) ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1215,9 +1149,7 @@ async def get_ten_billion(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1246,9 +1178,7 @@ async def get_negative_ten_billion(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1280,9 +1210,7 @@ async def get_long_null(self, *, long_query: Optional[int] = None, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1311,9 +1239,7 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1342,9 +1268,7 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1376,9 +1300,7 @@ async def float_null(self, *, float_query: Optional[float] = None, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1407,9 +1329,7 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1438,9 +1358,7 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1472,9 +1390,7 @@ async def double_null(self, *, double_query: Optional[float] = None, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1503,9 +1419,7 @@ async def string_unicode(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1534,9 +1448,7 @@ async def string_url_encoded(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1565,9 +1477,7 @@ async def string_empty(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1599,9 +1509,7 @@ async def string_null(self, *, string_query: Optional[str] = None, **kwargs: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1634,9 +1542,7 @@ async def enum_valid(self, *, enum_query: Optional[str] = None, **kwargs: Any) - ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1669,9 +1575,7 @@ async def enum_null(self, *, enum_query: Optional[str] = None, **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1703,9 +1607,7 @@ async def byte_multi_byte(self, *, byte_query: Optional[bytearray] = None, **kwa ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1734,9 +1636,7 @@ async def byte_empty(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1768,9 +1668,7 @@ async def byte_null(self, *, byte_query: Optional[bytearray] = None, **kwargs: A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1799,9 +1697,7 @@ async def date_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1833,9 +1729,7 @@ async def date_null(self, *, date_query: Optional[datetime.date] = None, **kwarg ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1864,9 +1758,7 @@ async def date_time_valid(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1898,9 +1790,7 @@ async def date_time_null(self, *, date_time_query: Optional[datetime.datetime] = ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1934,9 +1824,7 @@ async def array_string_csv_valid(self, *, array_query: Optional[List[str]] = Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1968,9 +1856,7 @@ async def array_string_csv_null(self, *, array_query: Optional[List[str]] = None ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2002,9 +1888,7 @@ async def array_string_csv_empty(self, *, array_query: Optional[List[str]] = Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2039,9 +1923,7 @@ async def array_string_no_collection_format_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2075,9 +1957,7 @@ async def array_string_ssv_valid(self, *, array_query: Optional[List[str]] = Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2111,9 +1991,7 @@ async def array_string_tsv_valid(self, *, array_query: Optional[List[str]] = Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2147,9 +2025,7 @@ async def array_string_pipes_valid(self, *, array_query: Optional[List[str]] = N ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2222,9 +2098,7 @@ async def get_all_with_values( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2278,9 +2152,7 @@ async def get_global_query_null( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2334,9 +2206,7 @@ async def get_global_and_local_query_null( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2389,9 +2259,7 @@ async def get_local_path_item_query_null( ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py index 438d4f2e339..b5af5870fb8 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py @@ -1898,7 +1898,7 @@ def get_boolean_true( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1930,7 +1930,7 @@ def get_boolean_false( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1962,7 +1962,7 @@ def get_int_one_million( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1994,7 +1994,7 @@ def get_int_negative_one_million( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2026,7 +2026,7 @@ def get_ten_billion( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2058,7 +2058,7 @@ def get_negative_ten_billion( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2090,7 +2090,7 @@ def float_scientific_positive( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2122,7 +2122,7 @@ def float_scientific_negative( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2154,7 +2154,7 @@ def double_decimal_positive( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2186,7 +2186,7 @@ def double_decimal_negative( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2218,7 +2218,7 @@ def string_unicode( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2250,7 +2250,7 @@ def string_url_encoded( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2284,7 +2284,7 @@ def string_url_non_encoded( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2316,7 +2316,7 @@ def string_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2353,7 +2353,7 @@ def string_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -2391,7 +2391,7 @@ def enum_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2429,7 +2429,7 @@ def enum_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -2466,7 +2466,7 @@ def byte_multi_byte( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2498,7 +2498,7 @@ def byte_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2535,7 +2535,7 @@ def byte_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -2567,7 +2567,7 @@ def date_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2605,7 +2605,7 @@ def date_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -2637,7 +2637,7 @@ def date_time_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2674,7 +2674,7 @@ def date_time_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [400]: @@ -2711,7 +2711,7 @@ def base64_url( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2750,7 +2750,7 @@ def array_csv_in_path( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2787,7 +2787,7 @@ def unix_time_url( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2838,7 +2838,7 @@ def get_boolean_true( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2870,7 +2870,7 @@ def get_boolean_false( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2907,7 +2907,7 @@ def get_boolean_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2939,7 +2939,7 @@ def get_int_one_million( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2971,7 +2971,7 @@ def get_int_negative_one_million( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3008,7 +3008,7 @@ def get_int_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3040,7 +3040,7 @@ def get_ten_billion( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3072,7 +3072,7 @@ def get_negative_ten_billion( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3109,7 +3109,7 @@ def get_long_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3141,7 +3141,7 @@ def float_scientific_positive( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3173,7 +3173,7 @@ def float_scientific_negative( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3210,7 +3210,7 @@ def float_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3242,7 +3242,7 @@ def double_decimal_positive( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3274,7 +3274,7 @@ def double_decimal_negative( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3311,7 +3311,7 @@ def double_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3343,7 +3343,7 @@ def string_unicode( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3375,7 +3375,7 @@ def string_url_encoded( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3407,7 +3407,7 @@ def string_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3444,7 +3444,7 @@ def string_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3482,7 +3482,7 @@ def enum_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3520,7 +3520,7 @@ def enum_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3557,7 +3557,7 @@ def byte_multi_byte( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3589,7 +3589,7 @@ def byte_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3626,7 +3626,7 @@ def byte_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3658,7 +3658,7 @@ def date_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3695,7 +3695,7 @@ def date_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3727,7 +3727,7 @@ def date_time_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3764,7 +3764,7 @@ def date_time_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3803,7 +3803,7 @@ def array_string_csv_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3840,7 +3840,7 @@ def array_string_csv_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3877,7 +3877,7 @@ def array_string_csv_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3915,7 +3915,7 @@ def array_string_no_collection_format_empty( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3954,7 +3954,7 @@ def array_string_ssv_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3993,7 +3993,7 @@ def array_string_tsv_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4032,7 +4032,7 @@ def array_string_pipes_valid( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4106,7 +4106,7 @@ def get_all_with_values( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4161,7 +4161,7 @@ def get_global_query_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4216,7 +4216,7 @@ def get_global_and_local_query_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -4270,7 +4270,7 @@ def get_local_path_item_query_null( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/operations/_operations.py index 87a54cb5414..ab09f1b3142 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/operations/_operations.py @@ -80,9 +80,7 @@ async def validation_of_method_parameters(self, resource_group_name: str, id: in ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -179,9 +177,7 @@ async def validation_of_body(self, resource_group_name: str, id: int, body: Any ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -217,9 +213,7 @@ async def get_with_constant_in_path(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -302,9 +296,7 @@ async def post_with_constant_in_body(self, body: Any = None, **kwargs: Any) -> A ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/operations/_operations.py index e4ec9af09b9..d27737af455 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/operations/_operations.py @@ -213,7 +213,7 @@ def validation_of_method_parameters( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -317,7 +317,7 @@ def validation_of_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -356,7 +356,7 @@ def get_with_constant_in_path( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -444,7 +444,7 @@ def post_with_constant_in_body( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py index caebdd97360..2d570b30692 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py @@ -109,9 +109,7 @@ async def get_complex_type_ref_no_meta(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -166,9 +164,7 @@ async def put_complex_type_ref_no_meta(self, model: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -208,9 +204,7 @@ async def get_complex_type_ref_with_meta(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -265,9 +259,7 @@ async def put_complex_type_ref_with_meta(self, model: Any, **kwargs: Any) -> Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -315,9 +307,7 @@ async def get_simple(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -380,9 +370,7 @@ async def put_simple(self, slideshow: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -424,9 +412,7 @@ async def get_wrapped_lists(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -483,9 +469,7 @@ async def put_wrapped_lists(self, wrapped_lists: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -514,9 +498,7 @@ async def get_headers(self, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -567,9 +549,7 @@ async def get_empty_list(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -632,9 +612,7 @@ async def put_empty_list(self, slideshow: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -676,9 +654,7 @@ async def get_empty_wrapped_lists(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -735,9 +711,7 @@ async def put_empty_wrapped_lists(self, apple_barrel: Any, **kwargs: Any) -> Non ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -778,9 +752,7 @@ async def get_root_list(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -837,9 +809,7 @@ async def put_root_list(self, bananas: List[Any], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -880,9 +850,7 @@ async def get_root_list_single_item(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -939,9 +907,7 @@ async def put_root_list_single_item(self, bananas: List[Any], **kwargs: Any) -> ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -982,9 +948,7 @@ async def get_empty_root_list(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1041,9 +1005,7 @@ async def put_empty_root_list(self, bananas: List[Any], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1082,9 +1044,7 @@ async def get_empty_child_element(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1138,9 +1098,7 @@ async def put_empty_child_element(self, banana: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1197,9 +1155,7 @@ async def list_containers(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1284,9 +1240,7 @@ async def get_service_properties(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1379,9 +1333,7 @@ async def put_service_properties(self, properties: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1425,9 +1377,7 @@ async def get_acls(self, **kwargs: Any) -> List[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1487,9 +1437,7 @@ async def put_acls(self, properties: List[Any], **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1579,9 +1527,7 @@ async def list_blobs(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1634,9 +1580,7 @@ async def json_input(self, properties: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1673,9 +1617,7 @@ async def json_output(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1721,9 +1663,7 @@ async def get_xms_text(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1767,9 +1707,7 @@ async def get_bytes(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1821,9 +1759,7 @@ async def put_binary(self, slideshow: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1860,9 +1796,7 @@ async def get_uri(self, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1914,9 +1848,7 @@ async def put_uri(self, model: Any, **kwargs: Any) -> None: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py index 5c5dbc50e0a..ffae9a39e90 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py @@ -840,7 +840,7 @@ def get_complex_type_ref_no_meta( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -900,7 +900,7 @@ def put_complex_type_ref_no_meta( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -943,7 +943,7 @@ def get_complex_type_ref_with_meta( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1003,7 +1003,7 @@ def put_complex_type_ref_with_meta( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1054,7 +1054,7 @@ def get_simple( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1122,7 +1122,7 @@ def put_simple( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1167,7 +1167,7 @@ def get_wrapped_lists( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1229,7 +1229,7 @@ def put_wrapped_lists( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1261,7 +1261,7 @@ def get_headers( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1315,7 +1315,7 @@ def get_empty_list( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1383,7 +1383,7 @@ def put_empty_list( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1428,7 +1428,7 @@ def get_empty_wrapped_lists( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1490,7 +1490,7 @@ def put_empty_wrapped_lists( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1534,7 +1534,7 @@ def get_root_list( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1596,7 +1596,7 @@ def put_root_list( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1640,7 +1640,7 @@ def get_root_list_single_item( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1702,7 +1702,7 @@ def put_root_list_single_item( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1746,7 +1746,7 @@ def get_empty_root_list( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1808,7 +1808,7 @@ def put_empty_root_list( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1850,7 +1850,7 @@ def get_empty_child_element( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1909,7 +1909,7 @@ def put_empty_child_element( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -1969,7 +1969,7 @@ def list_containers( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2057,7 +2057,7 @@ def get_service_properties( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2155,7 +2155,7 @@ def put_service_properties( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2202,7 +2202,7 @@ def get_acls( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2267,7 +2267,7 @@ def put_acls( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2360,7 +2360,7 @@ def list_blobs( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2418,7 +2418,7 @@ def json_input( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2458,7 +2458,7 @@ def json_output( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2507,7 +2507,7 @@ def get_xms_text( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2554,7 +2554,7 @@ def get_bytes( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2611,7 +2611,7 @@ def put_binary( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: @@ -2651,7 +2651,7 @@ def get_uri( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2708,7 +2708,7 @@ def put_uri( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [201]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py index e36f4e2cf4d..3d0bf089051 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py @@ -84,9 +84,7 @@ async def get_pet_by_id(self, pet_id: str, **kwargs: Any) -> Optional[Any]: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -140,9 +138,7 @@ async def do_something(self, what_action: str, **kwargs: Any) -> Any: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -188,9 +184,7 @@ async def has_models_param(self, *, models: Optional[str] = "value1", **kwargs: ) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: diff --git a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py index d7df1414cf0..a4a05188035 100644 --- a/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py +++ b/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py @@ -171,7 +171,7 @@ def get_pet_by_id( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: @@ -230,7 +230,7 @@ def do_something( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -281,7 +281,7 @@ def has_models_param( ) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: From c9e046f12a1ed49fb2dd5fe6a53d6d63e6fb1745 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 27 Sep 2021 17:53:22 -0400 Subject: [PATCH 05/16] fix tests --- .../low-level/coverage/report-optional.json | 62 +- .../low-level/coverage/report-vanilla.json | 1233 +++++++++-------- .../asynctests/test_xms_error.py | 7 - .../AcceptanceTests/test_send_request.py | 2 +- .../legacy/AcceptanceTests/test_xms_error.py | 8 +- 5 files changed, 650 insertions(+), 662 deletions(-) diff --git a/test/azure/low-level/coverage/report-optional.json b/test/azure/low-level/coverage/report-optional.json index 8d46c893031..c388eeb4501 100644 --- a/test/azure/low-level/coverage/report-optional.json +++ b/test/azure/low-level/coverage/report-optional.json @@ -1,48 +1,48 @@ { - "StreamUploadFile": 120, + "StreamUploadFile": 20, "UpdatePetWithForm": 0, - "getDecimalInvalid": 24, - "getDecimalBig": 24, - "getDecimalSmall": 24, - "getDecimalBigPositiveDecimal": 24, - "getDecimalBigNegativeDecimal": 24, - "putDecimalBig": 24, - "putDecimalSmall": 24, - "putDecimalBigPositiveDecimal": 24, - "putDecimalBigNegativeDecimal": 19, + "getDecimalInvalid": 4, + "getDecimalBig": 4, + "getDecimalSmall": 4, + "getDecimalBigPositiveDecimal": 4, + "getDecimalBigNegativeDecimal": 4, + "putDecimalBig": 4, + "putDecimalSmall": 4, + "putDecimalBigPositiveDecimal": 4, + "putDecimalBigNegativeDecimal": 4, "putDateTimeMaxUtc7MS": 0, - "getDateTimeMaxUtc7MSUppercase": 25, - "putDateTimeMaxLocalPositiveOffset": 25, + "getDateTimeMaxUtc7MSUppercase": 4, + "putDateTimeMaxLocalPositiveOffset": 4, "putDateTimeMaxLocalNegativeOffset": 0, "putDateTimeMinLocalPositiveOffset": 0, - "putDateTimeMinLocalNegativeOffset": 25, + "putDateTimeMinLocalNegativeOffset": 4, "HeaderParameterProtectedKey": 1, - "CustomHeaderInRequest": 19, - "FormdataStreamUploadFile": 86, + "CustomHeaderInRequest": 4, + "FormdataStreamUploadFile": 16, "HttpSuccess200Options": 0, "HttpRedirect307Options": 0, "HttpRetry502Options": 0, "HttpClientFailure400Options": 0, "HttpClientFailure403Options": 0, "HttpClientFailure412Options": 0, - "ResponsesScenarioNoModelEmptyBody": 24, - "sendErrorWithParamNameModels": 72, - "MultiapiPutTestOneApiVersionOne": 17, - "MultiapiPutTestOneApiVersionTwo": 17, - "MultiapiGetTestTwoApiVersionOne": 17, - "MultiapiGetTestTwoApiVersionTwo": 17, - "MultiapiGetTestTwoApiVersionThree": 17, - "MultiapiPutTestThreeApiVersionTwo": 17, - "MultiapiPostTestFourApiVersionTwo": 17, - "MultiapiPostTestFourApiVersionThreeJSON": 17, + "ResponsesScenarioNoModelEmptyBody": 4, + "sendErrorWithParamNameModels": 12, + "MultiapiPutTestOneApiVersionOne": 0, + "MultiapiPutTestOneApiVersionTwo": 0, + "MultiapiGetTestTwoApiVersionOne": 0, + "MultiapiGetTestTwoApiVersionTwo": 0, + "MultiapiGetTestTwoApiVersionThree": 0, + "MultiapiPutTestThreeApiVersionTwo": 0, + "MultiapiPostTestFourApiVersionTwo": 0, + "MultiapiPostTestFourApiVersionThreeJSON": 0, "MultiapiPostTestFourApiVersionThreePDF": 0, - "MultiapiPutTestFiveApiVersionThree": 17, - "MultiapiLRO": 13, - "MultiapiPaging": 17, - "MultiapiLROAndPaging": 16, + "MultiapiPutTestFiveApiVersionThree": 0, + "MultiapiLRO": 0, + "MultiapiPaging": 0, + "MultiapiLROAndPaging": 0, "MultiapiDifferentCallsApiVersionOne": 0, "MultiapiDifferentCallsApiVersionTwo": 0, "MultiapiDifferentCallsApiVersionThree": 0, - "MultiapiCustomBaseUrlApiVersionOne": 7, - "MultiapiCustomBaseUrlApiVersionTwo": 7 + "MultiapiCustomBaseUrlApiVersionOne": 0, + "MultiapiCustomBaseUrlApiVersionTwo": 0 } \ No newline at end of file diff --git a/test/azure/low-level/coverage/report-vanilla.json b/test/azure/low-level/coverage/report-vanilla.json index ed1bdb01f0a..26379b49edd 100644 --- a/test/azure/low-level/coverage/report-vanilla.json +++ b/test/azure/low-level/coverage/report-vanilla.json @@ -1,618 +1,619 @@ { - "GetStringAsAnything": 21, - "PutStringAsAnything": 21, - "GetObjectAsAnything": 21, - "PutObjectAsAnything": 21, - "GetArrayAsAnything": 21, - "PutArrayAsAnything": 21, - "verifyIncorrectErrorParsing": 19, - "LLCRequiredToOptional": 0, - "MediaTypesAnalyzeBodyNoAcceptHeader": 0, - "verifyHost": 0, - "ImplicitOptionalBinaryBody": 19, - "ExplicitOptionalBinaryBody": 29, - "ExplicitRequiredBinaryBody": 21, - "OptionalImplicitBody": 24, - "GeneralOptional": 264, - "OptionalImplicitHeader": 24, - "OptionalImplicitQuery": 24, - "OptionalGlobalQuery": 24, - "getStringNull": 24, - "putStringNull": 24, - "getStringEmpty": 24, - "putStringEmpty": 24, - "getStringNotProvided": 24, - "getStringWithLeadingAndTrailingWhitespace": 24, - "putStringWithLeadingAndTrailingWhitespace": 24, - "getStringBase64UrlEncoded": 24, - "putStringBase64UrlEncoded": 24, - "getStringBase64Encoded": 24, - "getStringNullBase64UrlEncoding": 24, - "getStringMultiByteCharacters": 24, - "putStringMultiByteCharacters": 24, - "getEnumNotExpandable": 24, - "putEnumNotExpandable": 48, - "getEnumReferenced": 24, - "putEnumReferenced": 53, - "getEnumReferencedConstant": 24, - "putEnumReferencedConstant": 19, - "XmlGetBytes": 23, - "XmlPutBytes": 23, - "XmlGetUrl": 23, - "XmlPutUrl": 23, - "additionalPropertiesTrue": 26, - "additionalPropertiesSubclass": 26, - "additionalPropertiesTypeObject": 26, - "additionalPropertiesTypeString": 26, - "additionalPropertiesInProperties": 26, - "additionalPropertiesInPropertiesWithAPTypeString": 26, - "getArrayNull": 25, - "getArrayEmpty": 25, - "putArrayEmpty": 25, - "getArrayInvalid": 25, - "getArrayBooleanValid": 25, - "putArrayBooleanValid": 25, - "getArrayBooleanWithNull": 25, - "getArrayBooleanWithString": 25, - "getArrayIntegerValid": 25, - "putArrayIntegerValid": 25, - "getArrayIntegerWithNull": 25, - "getArrayIntegerWithString": 25, - "getArrayLongValid": 25, - "putArrayLongValid": 25, - "getArrayLongWithNull": 25, - "getArrayLongWithString": 25, - "getArrayFloatValid": 25, - "putArrayFloatValid": 25, - "getArrayFloatWithNull": 25, - "getArrayFloatWithString": 25, - "getArrayDoubleValid": 25, - "putArrayDoubleValid": 25, - "getArrayDoubleWithNull": 25, - "getArrayDoubleWithString": 25, - "getArrayStringValid": 25, - "putArrayStringValid": 25, - "getArrayEnumValid": 25, - "putArrayEnumValid": 25, - "getArrayStringEnumValid": 25, - "putArrayStringEnumValid": 25, - "getArrayStringWithNull": 25, - "getArrayStringWithNumber": 50, - "getArrayDateValid": 25, - "putArrayDateValid": 25, - "getArrayDateWithNull": 25, - "getArrayDateWithInvalidChars": 25, - "getArrayDateTimeValid": 25, - "putArrayDateTimeValid": 25, - "getArrayDateTimeWithNull": 25, - "getArrayDateTimeWithInvalidChars": 25, - "getArrayDateTimeRfc1123Valid": 25, - "putArrayDateTimeRfc1123Valid": 25, - "getArrayDurationValid": 25, - "putArrayDurationValid": 25, - "getArrayUuidValid": 25, - "getArrayUuidWithInvalidChars": 25, - "putArrayUuidValid": 25, - "getArrayByteValid": 25, - "putArrayByteValid": 25, - "getArrayByteWithNull": 25, - "getArrayArrayNull": 25, - "getArrayArrayEmpty": 25, - "getArrayArrayItemNull": 25, - "getArrayArrayItemEmpty": 25, - "getArrayArrayValid": 25, - "putArrayArrayValid": 25, - "getArrayComplexNull": 25, - "getArrayComplexEmpty": 25, - "getArrayComplexItemNull": 25, - "getArrayComplexItemEmpty": 25, - "getArrayComplexValid": 25, - "putArrayComplexValid": 25, - "getArrayDictionaryNull": 25, - "getArrayDictionaryEmpty": 25, - "getArrayDictionaryItemNull": 25, - "getArrayDictionaryItemEmpty": 25, - "getArrayDictionaryValid": 25, - "putArrayDictionaryValid": 25, - "getBoolTrue": 25, - "putBoolTrue": 25, - "getBoolFalse": 25, - "putBoolFalse": 25, - "getBoolInvalid": 25, - "getBoolNull": 25, - "getByteNull": 25, - "getByteEmpty": 25, - "getByteNonAscii": 25, - "putByteNonAscii": 25, - "getByteInvalid": 25, - "getDateNull": 25, - "getDateInvalid": 25, - "getDateOverflow": 25, - "getDateUnderflow": 25, - "getDateMax": 25, - "putDateMax": 25, - "getDateMin": 25, - "putDateMin": 25, - "getDateTimeNull": 25, - "getDateTimeInvalid": 25, - "getDateTimeOverflow": 25, - "getDateTimeUnderflow": 25, - "putDateTimeMaxUtc": 25, - "getDateTimeMaxUtcLowercase": 25, - "getDateTimeMaxUtcUppercase": 25, - "getDateTimeMaxLocalPositiveOffsetLowercase": 25, - "getDateTimeMaxLocalPositiveOffsetUppercase": 25, - "getDateTimeMaxLocalNegativeOffsetLowercase": 25, - "getDateTimeMaxLocalNegativeOffsetUppercase": 25, - "getDateTimeMinUtc": 25, - "putDateTimeMinUtc": 25, - "getDateTimeMinLocalPositiveOffset": 25, - "getDateTimeMinLocalNegativeOffset": 25, - "getDateTimeRfc1123Null": 25, - "getDateTimeRfc1123Invalid": 25, - "getDateTimeRfc1123Overflow": 25, - "getDateTimeRfc1123Underflow": 25, - "getDateTimeRfc1123MinUtc": 25, - "putDateTimeRfc1123Max": 25, - "putDateTimeRfc1123Min": 25, - "getDateTimeRfc1123MaxUtcLowercase": 25, - "getDateTimeRfc1123MaxUtcUppercase": 25, - "getIntegerNull": 24, - "getIntegerInvalid": 24, - "getIntegerOverflow": 24, - "getIntegerUnderflow": 24, - "getLongOverflow": 24, - "getLongUnderflow": 24, - "putIntegerMax": 24, - "putLongMax": 24, - "putIntegerMin": 24, - "putLongMin": 24, - "getNumberNull": 24, - "getFloatInvalid": 24, - "getDoubleInvalid": 24, - "getFloatBigScientificNotation": 24, - "putFloatBigScientificNotation": 24, - "getDoubleBigScientificNotation": 24, - "putDoubleBigScientificNotation": 24, - "getDoubleBigPositiveDecimal": 24, - "putDoubleBigPositiveDecimal": 24, - "getDoubleBigNegativeDecimal": 29, - "putDoubleBigNegativeDecimal": 19, - "getFloatSmallScientificNotation": 24, - "putFloatSmallScientificNotation": 24, - "getDoubleSmallScientificNotation": 24, - "putDoubleSmallScientificNotation": 24, - "putComplexBasicValid": 50, - "getComplexBasicValid": 25, - "getComplexBasicEmpty": 25, - "getComplexBasicNotProvided": 25, - "getComplexBasicNull": 25, - "getComplexBasicInvalid": 25, - "putComplexPrimitiveInteger": 25, - "putComplexPrimitiveLong": 25, - "putComplexPrimitiveFloat": 25, - "putComplexPrimitiveDouble": 25, - "putComplexPrimitiveBool": 25, - "putComplexPrimitiveString": 25, - "putComplexPrimitiveDate": 25, - "putComplexPrimitiveDateTime": 25, - "putComplexPrimitiveDateTimeRfc1123": 25, - "putComplexPrimitiveDuration": 25, - "putComplexPrimitiveByte": 25, - "getComplexPrimitiveInteger": 25, - "getComplexPrimitiveLong": 25, - "getComplexPrimitiveFloat": 25, - "getComplexPrimitiveDouble": 25, - "getComplexPrimitiveBool": 25, - "getComplexPrimitiveString": 25, - "getComplexPrimitiveDate": 25, - "getComplexPrimitiveDateTime": 25, - "getComplexPrimitiveDateTimeRfc1123": 25, - "getComplexPrimitiveDuration": 25, - "getComplexPrimitiveByte": 25, - "putComplexArrayValid": 25, - "putComplexArrayEmpty": 25, - "getComplexArrayValid": 25, - "getComplexArrayEmpty": 25, - "getComplexArrayNotProvided": 25, - "putComplexDictionaryValid": 25, - "putComplexDictionaryEmpty": 25, - "getComplexDictionaryValid": 25, - "getComplexDictionaryEmpty": 25, - "getComplexDictionaryNull": 25, - "getComplexDictionaryNotProvided": 25, - "putComplexInheritanceValid": 68, - "getComplexInheritanceValid": 97, - "putComplexPolymorphismValid": 25, - "getComplexPolymorphismValid": 25, - "putComplexPolymorphismComplicated": 25, - "getComplexPolymorphismComplicated": 25, - "putComplexPolymorphismNoDiscriminator": 25, - "putComplexPolymorphicRecursiveValid": 25, - "getComplexPolymorphicRecursiveValid": 25, - "putComplexReadOnlyPropertyValid": 25, - "getComplexReadOnlyPropertyValid": 25, - "UrlPathsBoolFalse": 24, - "UrlPathsBoolTrue": 24, - "UrlPathsIntPositive": 24, - "UrlPathsIntNegative": 24, - "UrlPathsLongPositive": 24, - "UrlPathsLongNegative": 24, - "UrlPathsFloatPositive": 24, - "UrlPathsFloatNegative": 24, - "UrlPathsDoublePositive": 24, - "UrlPathsDoubleNegative": 24, - "UrlPathsStringUrlEncoded": 24, - "UrlPathsStringUrlNonEncoded": 24, - "UrlPathsStringEmpty": 24, - "UrlPathsStringUnicode": 24, - "UrlPathsEnumValid": 24, - "UrlPathsByteMultiByte": 24, - "UrlPathsByteEmpty": 24, - "UrlPathsDateValid": 24, - "UrlPathsDateTimeValid": 24, - "UrlQueriesBoolFalse": 24, - "UrlQueriesBoolTrue": 24, - "UrlQueriesBoolNull": 24, - "UrlQueriesIntPositive": 24, - "UrlQueriesIntNegative": 24, - "UrlQueriesIntNull": 24, - "UrlQueriesLongPositive": 24, - "UrlQueriesLongNegative": 24, - "UrlQueriesLongNull": 24, - "UrlQueriesFloatPositive": 24, - "UrlQueriesFloatNegative": 24, - "UrlQueriesFloatNull": 24, - "UrlQueriesDoublePositive": 24, - "UrlQueriesDoubleNegative": 24, - "UrlQueriesDoubleNull": 24, - "UrlQueriesStringUrlEncoded": 24, - "UrlQueriesStringEmpty": 24, - "UrlQueriesStringNull": 24, - "UrlQueriesStringUnicode": 24, - "UrlQueriesEnumValid": 24, - "UrlQueriesEnumNull": 24, - "UrlQueriesByteMultiByte": 24, - "UrlQueriesByteEmpty": 24, - "UrlQueriesByteNull": 24, - "UrlQueriesDateValid": 24, - "UrlQueriesDateNull": 24, - "UrlQueriesDateTimeValid": 24, - "UrlQueriesDateTimeNull": 24, - "UrlQueriesArrayCsvNull": 24, - "UrlQueriesArrayCsvEmpty": 24, - "UrlQueriesArrayCsvValid": 24, - "UrlQueriesArrayMultiNull": 24, - "UrlQueriesArrayMultiEmpty": 24, - "UrlQueriesArrayMultiValid": 24, - "UrlQueriesArraySsvValid": 19, - "UrlQueriesArrayPipesValid": 19, - "UrlQueriesArrayTsvValid": 13, - "UrlQueriesArrayNoCollectionFormatValid": 24, - "UrlPathItemGetAll": 24, - "UrlPathItemGetGlobalNull": 24, - "UrlPathItemGetGlobalAndLocalNull": 24, - "UrlPathItemGetPathItemAndLocalNull": 24, - "putDictionaryEmpty": 25, - "getDictionaryNull": 25, - "getDictionaryEmpty": 25, - "getDictionaryInvalid": 25, - "getDictionaryNullValue": 25, - "getDictionaryNullkey": 25, - "getDictionaryKeyEmptyString": 25, - "getDictionaryBooleanValid": 25, - "getDictionaryBooleanWithNull": 25, - "getDictionaryBooleanWithString": 25, - "getDictionaryIntegerValid": 25, - "getDictionaryIntegerWithNull": 25, - "getDictionaryIntegerWithString": 25, - "getDictionaryLongValid": 25, - "getDictionaryLongWithNull": 25, - "getDictionaryLongWithString": 25, - "getDictionaryFloatValid": 25, - "getDictionaryFloatWithNull": 25, - "getDictionaryFloatWithString": 25, - "getDictionaryDoubleValid": 25, - "getDictionaryDoubleWithNull": 25, - "getDictionaryDoubleWithString": 25, - "getDictionaryStringValid": 25, - "getDictionaryStringWithNull": 25, - "getDictionaryStringWithNumber": 25, - "getDictionaryDateValid": 25, - "getDictionaryDateWithNull": 25, - "getDictionaryDateWithInvalidChars": 25, - "getDictionaryDateTimeValid": 25, - "getDictionaryDateTimeWithNull": 25, - "getDictionaryDateTimeWithInvalidChars": 25, - "getDictionaryDateTimeRfc1123Valid": 25, - "getDictionaryDurationValid": 25, - "getDictionaryByteValid": 25, - "getDictionaryByteWithNull": 25, - "putDictionaryBooleanValid": 25, - "putDictionaryIntegerValid": 25, - "putDictionaryLongValid": 25, - "putDictionaryFloatValid": 25, - "putDictionaryDoubleValid": 25, - "putDictionaryStringValid": 25, - "putDictionaryDateValid": 25, - "putDictionaryDateTimeValid": 25, - "putDictionaryDateTimeRfc1123Valid": 25, - "putDictionaryDurationValid": 25, - "putDictionaryByteValid": 25, - "getDictionaryComplexNull": 25, - "getDictionaryComplexEmpty": 25, - "getDictionaryComplexItemNull": 25, - "getDictionaryComplexItemEmpty": 25, - "getDictionaryComplexValid": 25, - "putDictionaryComplexValid": 25, - "getDictionaryArrayNull": 25, - "getDictionaryArrayEmpty": 25, - "getDictionaryArrayItemNull": 30, - "getDictionaryArrayItemEmpty": 20, - "getDictionaryArrayValid": 25, - "putDictionaryArrayValid": 25, - "getDictionaryDictionaryNull": 25, - "getDictionaryDictionaryEmpty": 25, - "getDictionaryDictionaryItemNull": 25, - "getDictionaryDictionaryItemEmpty": 25, - "getDictionaryDictionaryValid": 25, - "putDictionaryDictionaryValid": 25, - "putDurationPositive": 43, - "getDurationNull": 43, - "getDurationInvalid": 43, - "getDurationPositive": 43, - "HeaderParameterExistingKey": 24, - "HeaderResponseExistingKey": 24, - "HeaderResponseProtectedKey": 24, - "HeaderParameterIntegerPositive": 24, - "HeaderParameterIntegerNegative": 24, - "HeaderParameterLongPositive": 24, - "HeaderParameterLongNegative": 24, - "HeaderParameterFloatPositive": 24, - "HeaderParameterFloatNegative": 24, - "HeaderParameterDoublePositive": 24, - "HeaderParameterDoubleNegative": 24, - "HeaderParameterBoolTrue": 24, - "HeaderParameterBoolFalse": 24, - "HeaderParameterStringValid": 24, - "HeaderParameterStringNull": 24, - "HeaderParameterStringEmpty": 24, - "HeaderParameterDateValid": 24, - "HeaderParameterDateMin": 24, - "HeaderParameterDateTimeValid": 24, - "HeaderParameterDateTimeMin": 24, - "HeaderParameterDateTimeRfc1123Valid": 24, - "HeaderParameterDateTimeRfc1123Min": 24, - "HeaderParameterBytesValid": 24, - "HeaderParameterDurationValid": 24, - "HeaderResponseIntegerPositive": 24, - "HeaderResponseIntegerNegative": 24, - "HeaderResponseLongPositive": 24, - "HeaderResponseLongNegative": 24, - "HeaderResponseFloatPositive": 24, - "HeaderResponseFloatNegative": 24, - "HeaderResponseDoublePositive": 24, - "HeaderResponseDoubleNegative": 24, - "HeaderResponseBoolTrue": 24, - "HeaderResponseBoolFalse": 24, - "HeaderResponseStringValid": 24, - "HeaderResponseStringNull": 24, - "HeaderResponseStringEmpty": 24, - "HeaderParameterEnumValid": 48, - "HeaderParameterEnumNull": 24, - "HeaderResponseEnumValid": 24, - "HeaderResponseEnumNull": 24, - "HeaderResponseDateValid": 24, - "HeaderResponseDateMin": 24, - "HeaderResponseDateTimeValid": 24, - "HeaderResponseDateTimeMin": 24, - "HeaderResponseDateTimeRfc1123Valid": 24, - "HeaderResponseDateTimeRfc1123Min": 24, - "HeaderResponseBytesValid": 24, - "HeaderResponseDurationValid": 24, - "ConstantsInPath": 24, - "ConstantsInBody": 24, - "CustomBaseUri": 35, - "CustomBaseUriMoreOptions": 20, - "getModelFlattenArray": 19, - "putModelFlattenArray": 19, - "getModelFlattenDictionary": 19, - "putModelFlattenDictionary": 19, - "getModelFlattenResourceCollection": 19, - "putModelFlattenResourceCollection": 19, - "putModelFlattenCustomBase": 19, - "postModelFlattenCustomParameter": 19, - "putModelFlattenCustomGroupedParameter": 19, - "getArrayBase64Url": 30, - "getDictionaryBase64Url": 25, - "UrlPathsStringBase64Url": 24, - "UrlPathsArrayCSVInPath": 24, - "getUnixTime": 24, - "getInvalidUnixTime": 24, - "getNullUnixTime": 24, - "putUnixTime": 24, - "UrlPathsIntUnixTime": 24, - "expectedEnum": 25, - "unexpectedEnum": 25, - "allowedValueEnum": 25, - "roundTripEnum": 25, - "expectedNoErrors": 36, - "expectedPetSadError": 72, - "expectedPetHungryError": 18, - "intError": 18, - "stringError": 18, - "animalNotFoundError": 18, - "linkNotFoundError": 18, - "getDateTimeMinLocalNoOffset": 25, - "getComplexPolymorphismDotSyntax": 25, - "getComposedWithDiscriminator": 25, - "getComposedWithoutDiscriminator": 25, - "FileStreamNonempty": 68, - "FileStreamVeryLarge": 25, - "FileStreamEmpty": 44, - "HttpSuccess200Head": 60, - "HttpSuccess200Get": 24, - "HttpSuccess200Put": 24, - "HttpSuccess200Post": 24, - "HttpSuccess200Patch": 24, - "HttpSuccess200Delete": 24, - "HttpSuccess201Put": 24, - "HttpSuccess201Post": 24, - "HttpSuccess202Put": 24, - "HttpSuccess202Post": 24, - "HttpSuccess202Patch": 24, - "HttpSuccess202Delete": 24, - "HttpSuccess204Head": 60, - "HttpSuccess404Head": 60, - "HttpSuccess204Put": 24, - "HttpSuccess204Post": 24, - "HttpSuccess204Patch": 24, - "HttpSuccess204Delete": 24, - "HttpRedirect300Head": 24, - "HttpRedirect300Get": 24, - "HttpRedirect301Put": 24, - "HttpRedirect301Get": 24, - "HttpRedirect302Head": 24, - "HttpRedirect302Get": 24, - "HttpRedirect302Patch": 24, - "HttpRedirect303Post": 24, - "HttpRedirect307Head": 24, - "HttpRedirect307Get": 24, - "HttpRedirect307Put": 24, - "HttpRedirect307Post": 24, - "HttpRedirect307Patch": 24, - "HttpRedirect307Delete": 24, - "HttpRetry408Head": 24, - "HttpRetry500Put": 24, - "HttpRetry500Patch": 24, - "HttpRetry502Get": 24, - "HttpRetry503Post": 24, - "HttpRetry503Delete": 24, - "HttpRetry504Put": 24, - "HttpRetry504Patch": 24, - "HttpClientFailure400Head": 24, - "HttpClientFailure400Get": 24, - "HttpClientFailure400Put": 24, - "HttpClientFailure400Post": 24, - "HttpClientFailure400Patch": 24, - "HttpClientFailure400Delete": 24, - "HttpClientFailure401Head": 24, - "HttpClientFailure402Get": 24, - "HttpClientFailure403Get": 24, - "HttpClientFailure404Put": 24, - "HttpClientFailure405Patch": 24, - "HttpClientFailure406Post": 24, - "HttpClientFailure407Delete": 24, - "HttpClientFailure409Put": 24, - "HttpClientFailure410Head": 24, - "HttpClientFailure411Get": 24, - "HttpClientFailure412Get": 24, - "HttpClientFailure413Put": 24, - "HttpClientFailure414Patch": 24, - "HttpClientFailure415Post": 24, - "HttpClientFailure416Get": 24, - "HttpClientFailure417Delete": 24, - "HttpClientFailure429Head": 96, - "HttpServerFailure501Head": 24, - "HttpServerFailure501Get": 24, - "HttpServerFailure505Post": 24, - "HttpServerFailure505Delete": 24, - "ResponsesScenarioA200MatchingModel": 24, - "ResponsesScenarioA204MatchingNoModel": 24, - "ResponsesScenarioA201DefaultNoModel": 24, - "ResponsesScenarioA202DefaultNoModel": 24, - "ResponsesScenarioA400DefaultModel": 24, - "ResponsesScenarioB200MatchingModel": 24, - "ResponsesScenarioB201MatchingModel": 24, - "ResponsesScenarioB400DefaultModel": 24, - "ResponsesScenarioC200MatchingModel": 24, - "ResponsesScenarioC201MatchingModel": 24, - "ResponsesScenarioC404MatchingModel": 24, - "ResponsesScenarioC400DefaultModel": 24, - "ResponsesScenarioD202MatchingNoModel": 24, - "ResponsesScenarioD204MatchingNoModel": 24, - "ResponsesScenarioD400DefaultModel": 24, - "ResponsesScenarioE202MatchingInvalid": 24, - "ResponsesScenarioE204MatchingNoModel": 24, - "ResponsesScenarioE400DefaultNoModel": 24, - "ResponsesScenarioE400DefaultInvalid": 24, - "ResponsesScenarioF200DefaultModel": 48, - "ResponsesScenarioF200DefaultNone": 48, - "ResponsesScenarioF400DefaultModel": 19, - "ResponsesScenarioF400DefaultNone": 19, - "ResponsesScenarioG200DefaultInvalid": 29, - "ResponsesScenarioG200DefaultNoModel": 19, - "ResponsesScenarioG400DefaultInvalid": 24, - "ResponsesScenarioG400DefaultNoModel": 24, - "ResponsesScenarioH200MatchingNone": 24, - "ResponsesScenarioH200MatchingModel": 24, - "ResponsesScenarioH200MatchingInvalid": 24, - "ResponsesScenarioH400NonMatchingNone": 24, - "ResponsesScenarioH400NonMatchingModel": 24, - "ResponsesScenarioH400NonMatchingInvalid": 24, - "ResponsesScenarioH202NonMatchingModel": 24, - "ResponsesScenarioEmptyErrorBody": 24, - "ResponsesScenarioNoModelErrorBody": 24, - "MediaTypeJson": 24, - "MediaTypePdf": 24, - "MediaTypeWithEncoding": 24, - "StorageListContainersXML": 23, - "StorageGetServicePropertiesXML": 23, - "StoragePutServicePropertiesXML": 23, - "StorageGetContainerACLXML": 23, - "StorageListBlobsXML": 23, - "StoragePutContainerACLXML": 23, - "GetSimpleXML": 24, - "PutSimpleXML": 24, - "GetWrappedXMLList": 24, - "PutWrappedXMLList": 24, - "GetEmptyXMLList": 24, - "PutEmptyXMLList": 24, - "GetEmptyWrappedXMLList": 24, - "PutEmptyWrappedXMLList": 24, - "GetXMLListAtRoot": 24, - "PutXMLListAtRoot": 24, - "GetXMLListAtRootSingle": 24, - "PutXMLListAtRootSingle": 24, - "GetEmptyXMLListAtRoot": 29, - "PutEmptyXMLListAtRoot": 24, - "GetXMLEmptyNode": 24, - "PutXMLEmptyNode": 24, - "GetRootWithRefAndNoMetaXML": 24, - "PutRootWithRefAndNoMetaXML": 24, - "GetRootWithRefAndMetaXML": 23, - "PutRootWithRefAndMetaXML": 23, - "jsonInputInXMLSwagger": 24, - "jsonOutputInXMLSwagger": 24, - "GetWithXMsText": 23, - "ObjectTypeResponse": 24, - "ObjectTypePut": 24, - "ObjectTypeErrorResponse": 24, - "NonStringEnumsPostInt": 24, - "NonStringEnumsGetInt": 24, - "NonStringEnumsPostFloat": 24, - "NonStringEnumsGetFloat": 24, - "BodyTimeGet": 24, - "BodyTimePut": 24, - "MultipleInheritancePetGet": 24, - "MultipleInheritancePetPut": 24, - "MultipleInheritanceHorseGet": 24, - "MultipleInheritanceHorsePut": 24, - "MultipleInheritanceFelineGet": 24, - "MultipleInheritanceFelinePut": 24, - "MultipleInheritanceCatGet": 24, - "MultipleInheritanceCatPut": 24, - "MultipleInheritanceKittenGet": 24, - "MultipleInheritanceKittenPut": 24, - "OptionalIntegerParameter": 24, - "OptionalIntegerProperty": 24, - "OptionalIntegerHeader": 24, - "OptionalStringParameter": 24, - "OptionalStringProperty": 24, - "OptionalStringHeader": 24, - "OptionalClassParameter": 24, - "OptionalClassProperty": 24, - "OptionalArrayParameter": 24, - "OptionalArrayProperty": 24, - "OptionalArrayHeader": 24 + "GetStringAsAnything": 4, + "PutStringAsAnything": 4, + "GetObjectAsAnything": 4, + "PutObjectAsAnything": 4, + "GetArrayAsAnything": 4, + "PutArrayAsAnything": 4, + "ConstantClientProperties": 4, + "verifyIncorrectErrorParsing": 4, + "MediaTypesAnalyzeBodyNoAcceptHeader": 8, + "GetParameterizedHostWithNameEndpoint": 4, + "ImplicitOptionalBinaryBody": 4, + "ExplicitOptionalBinaryBody": 4, + "ExplicitRequiredBinaryBody": 4, + "OptionalImplicitBody": 4, + "GeneralOptional": 44, + "OptionalImplicitHeader": 4, + "OptionalImplicitQuery": 4, + "OptionalGlobalQuery": 4, + "reservedWordsOperationGroupImport": 4, + "getStringNull": 4, + "putStringNull": 4, + "getStringEmpty": 4, + "putStringEmpty": 4, + "getStringNotProvided": 4, + "getStringWithLeadingAndTrailingWhitespace": 4, + "putStringWithLeadingAndTrailingWhitespace": 4, + "getStringBase64UrlEncoded": 4, + "putStringBase64UrlEncoded": 4, + "getStringBase64Encoded": 4, + "getStringNullBase64UrlEncoding": 4, + "getStringMultiByteCharacters": 4, + "putStringMultiByteCharacters": 4, + "getEnumNotExpandable": 4, + "putEnumNotExpandable": 8, + "getEnumReferenced": 4, + "putEnumReferenced": 8, + "getEnumReferencedConstant": 4, + "putEnumReferencedConstant": 4, + "XmlGetBytes": 4, + "XmlPutBytes": 4, + "XmlGetUrl": 4, + "XmlPutUrl": 4, + "additionalPropertiesTrue": 4, + "additionalPropertiesSubclass": 4, + "additionalPropertiesTypeObject": 4, + "additionalPropertiesTypeString": 4, + "additionalPropertiesInProperties": 4, + "additionalPropertiesInPropertiesWithAPTypeString": 4, + "getArrayNull": 4, + "getArrayEmpty": 4, + "putArrayEmpty": 4, + "getArrayInvalid": 4, + "getArrayBooleanValid": 4, + "putArrayBooleanValid": 4, + "getArrayBooleanWithNull": 4, + "getArrayBooleanWithString": 4, + "getArrayIntegerValid": 4, + "putArrayIntegerValid": 4, + "getArrayIntegerWithNull": 4, + "getArrayIntegerWithString": 4, + "getArrayLongValid": 4, + "putArrayLongValid": 4, + "getArrayLongWithNull": 4, + "getArrayLongWithString": 4, + "getArrayFloatValid": 4, + "putArrayFloatValid": 4, + "getArrayFloatWithNull": 4, + "getArrayFloatWithString": 4, + "getArrayDoubleValid": 4, + "putArrayDoubleValid": 4, + "getArrayDoubleWithNull": 4, + "getArrayDoubleWithString": 4, + "getArrayStringValid": 4, + "putArrayStringValid": 4, + "getArrayEnumValid": 4, + "putArrayEnumValid": 4, + "getArrayStringEnumValid": 4, + "putArrayStringEnumValid": 4, + "getArrayStringWithNull": 4, + "getArrayStringWithNumber": 8, + "getArrayDateValid": 4, + "putArrayDateValid": 4, + "getArrayDateWithNull": 4, + "getArrayDateWithInvalidChars": 4, + "getArrayDateTimeValid": 4, + "putArrayDateTimeValid": 4, + "getArrayDateTimeWithNull": 4, + "getArrayDateTimeWithInvalidChars": 4, + "getArrayDateTimeRfc1123Valid": 4, + "putArrayDateTimeRfc1123Valid": 4, + "getArrayDurationValid": 4, + "putArrayDurationValid": 4, + "getArrayUuidValid": 4, + "getArrayUuidWithInvalidChars": 4, + "putArrayUuidValid": 4, + "getArrayByteValid": 4, + "putArrayByteValid": 4, + "getArrayByteWithNull": 4, + "getArrayArrayNull": 4, + "getArrayArrayEmpty": 4, + "getArrayArrayItemNull": 4, + "getArrayArrayItemEmpty": 4, + "getArrayArrayValid": 4, + "putArrayArrayValid": 4, + "getArrayComplexNull": 4, + "getArrayComplexEmpty": 4, + "getArrayComplexItemNull": 4, + "getArrayComplexItemEmpty": 4, + "getArrayComplexValid": 4, + "putArrayComplexValid": 4, + "getArrayDictionaryNull": 4, + "getArrayDictionaryEmpty": 4, + "getArrayDictionaryItemNull": 4, + "getArrayDictionaryItemEmpty": 4, + "getArrayDictionaryValid": 4, + "putArrayDictionaryValid": 4, + "getBoolTrue": 4, + "putBoolTrue": 4, + "getBoolFalse": 4, + "putBoolFalse": 4, + "getBoolInvalid": 4, + "getBoolNull": 4, + "getByteNull": 4, + "getByteEmpty": 4, + "getByteNonAscii": 4, + "putByteNonAscii": 4, + "getByteInvalid": 4, + "getDateNull": 4, + "getDateInvalid": 4, + "getDateOverflow": 4, + "getDateUnderflow": 4, + "getDateMax": 4, + "putDateMax": 4, + "getDateMin": 4, + "putDateMin": 4, + "getDateTimeNull": 4, + "getDateTimeInvalid": 4, + "getDateTimeOverflow": 4, + "getDateTimeUnderflow": 4, + "putDateTimeMaxUtc": 4, + "getDateTimeMaxUtcLowercase": 4, + "getDateTimeMaxUtcUppercase": 4, + "getDateTimeMaxLocalPositiveOffsetLowercase": 4, + "getDateTimeMaxLocalPositiveOffsetUppercase": 4, + "getDateTimeMaxLocalNegativeOffsetLowercase": 4, + "getDateTimeMaxLocalNegativeOffsetUppercase": 4, + "getDateTimeMinUtc": 4, + "putDateTimeMinUtc": 4, + "getDateTimeMinLocalPositiveOffset": 4, + "getDateTimeMinLocalNegativeOffset": 4, + "getDateTimeRfc1123Null": 4, + "getDateTimeRfc1123Invalid": 4, + "getDateTimeRfc1123Overflow": 4, + "getDateTimeRfc1123Underflow": 4, + "getDateTimeRfc1123MinUtc": 4, + "putDateTimeRfc1123Max": 4, + "putDateTimeRfc1123Min": 4, + "getDateTimeRfc1123MaxUtcLowercase": 4, + "getDateTimeRfc1123MaxUtcUppercase": 4, + "getIntegerNull": 4, + "getIntegerInvalid": 4, + "getIntegerOverflow": 4, + "getIntegerUnderflow": 4, + "getLongOverflow": 4, + "getLongUnderflow": 4, + "putIntegerMax": 4, + "putLongMax": 4, + "putIntegerMin": 4, + "putLongMin": 4, + "getNumberNull": 4, + "getFloatInvalid": 4, + "getDoubleInvalid": 4, + "getFloatBigScientificNotation": 4, + "putFloatBigScientificNotation": 4, + "getDoubleBigScientificNotation": 4, + "putDoubleBigScientificNotation": 4, + "getDoubleBigPositiveDecimal": 4, + "putDoubleBigPositiveDecimal": 4, + "getDoubleBigNegativeDecimal": 4, + "putDoubleBigNegativeDecimal": 4, + "getFloatSmallScientificNotation": 4, + "putFloatSmallScientificNotation": 4, + "getDoubleSmallScientificNotation": 4, + "putDoubleSmallScientificNotation": 4, + "putComplexBasicValid": 8, + "getComplexBasicValid": 4, + "getComplexBasicEmpty": 4, + "getComplexBasicNotProvided": 4, + "getComplexBasicNull": 4, + "getComplexBasicInvalid": 4, + "putComplexPrimitiveInteger": 4, + "putComplexPrimitiveLong": 4, + "putComplexPrimitiveFloat": 4, + "putComplexPrimitiveDouble": 4, + "putComplexPrimitiveBool": 4, + "putComplexPrimitiveString": 4, + "putComplexPrimitiveDate": 4, + "putComplexPrimitiveDateTime": 4, + "putComplexPrimitiveDateTimeRfc1123": 4, + "putComplexPrimitiveDuration": 4, + "putComplexPrimitiveByte": 4, + "getComplexPrimitiveInteger": 4, + "getComplexPrimitiveLong": 4, + "getComplexPrimitiveFloat": 4, + "getComplexPrimitiveDouble": 4, + "getComplexPrimitiveBool": 4, + "getComplexPrimitiveString": 4, + "getComplexPrimitiveDate": 4, + "getComplexPrimitiveDateTime": 4, + "getComplexPrimitiveDateTimeRfc1123": 4, + "getComplexPrimitiveDuration": 4, + "getComplexPrimitiveByte": 4, + "putComplexArrayValid": 4, + "putComplexArrayEmpty": 4, + "getComplexArrayValid": 4, + "getComplexArrayEmpty": 4, + "getComplexArrayNotProvided": 4, + "putComplexDictionaryValid": 4, + "putComplexDictionaryEmpty": 4, + "getComplexDictionaryValid": 4, + "getComplexDictionaryEmpty": 4, + "getComplexDictionaryNull": 4, + "getComplexDictionaryNotProvided": 4, + "putComplexInheritanceValid": 12, + "getComplexInheritanceValid": 16, + "putComplexPolymorphismValid": 4, + "getComplexPolymorphismValid": 4, + "putComplexPolymorphismComplicated": 4, + "getComplexPolymorphismComplicated": 4, + "putComplexPolymorphismNoDiscriminator": 4, + "putComplexPolymorphicRecursiveValid": 4, + "getComplexPolymorphicRecursiveValid": 4, + "putComplexReadOnlyPropertyValid": 4, + "getComplexReadOnlyPropertyValid": 4, + "UrlPathsBoolFalse": 4, + "UrlPathsBoolTrue": 4, + "UrlPathsIntPositive": 4, + "UrlPathsIntNegative": 4, + "UrlPathsLongPositive": 4, + "UrlPathsLongNegative": 4, + "UrlPathsFloatPositive": 4, + "UrlPathsFloatNegative": 4, + "UrlPathsDoublePositive": 4, + "UrlPathsDoubleNegative": 4, + "UrlPathsStringUrlEncoded": 4, + "UrlPathsStringUrlNonEncoded": 4, + "UrlPathsStringEmpty": 4, + "UrlPathsStringUnicode": 4, + "UrlPathsEnumValid": 4, + "UrlPathsByteMultiByte": 4, + "UrlPathsByteEmpty": 4, + "UrlPathsDateValid": 4, + "UrlPathsDateTimeValid": 4, + "UrlQueriesBoolFalse": 4, + "UrlQueriesBoolTrue": 4, + "UrlQueriesBoolNull": 4, + "UrlQueriesIntPositive": 4, + "UrlQueriesIntNegative": 4, + "UrlQueriesIntNull": 4, + "UrlQueriesLongPositive": 4, + "UrlQueriesLongNegative": 4, + "UrlQueriesLongNull": 4, + "UrlQueriesFloatPositive": 4, + "UrlQueriesFloatNegative": 4, + "UrlQueriesFloatNull": 4, + "UrlQueriesDoublePositive": 4, + "UrlQueriesDoubleNegative": 4, + "UrlQueriesDoubleNull": 4, + "UrlQueriesStringUrlEncoded": 4, + "UrlQueriesStringEmpty": 4, + "UrlQueriesStringNull": 4, + "UrlQueriesStringUnicode": 4, + "UrlQueriesEnumValid": 4, + "UrlQueriesEnumNull": 4, + "UrlQueriesByteMultiByte": 4, + "UrlQueriesByteEmpty": 4, + "UrlQueriesByteNull": 4, + "UrlQueriesDateValid": 4, + "UrlQueriesDateNull": 4, + "UrlQueriesDateTimeValid": 4, + "UrlQueriesDateTimeNull": 4, + "UrlQueriesArrayCsvNull": 4, + "UrlQueriesArrayCsvEmpty": 4, + "UrlQueriesArrayCsvValid": 4, + "UrlQueriesArrayMultiNull": 4, + "UrlQueriesArrayMultiEmpty": 4, + "UrlQueriesArrayMultiValid": 4, + "UrlQueriesArraySsvValid": 4, + "UrlQueriesArrayPipesValid": 4, + "UrlQueriesArrayTsvValid": 2, + "UrlQueriesArrayNoCollectionFormatValid": 4, + "UrlPathItemGetAll": 4, + "UrlPathItemGetGlobalNull": 4, + "UrlPathItemGetGlobalAndLocalNull": 4, + "UrlPathItemGetPathItemAndLocalNull": 4, + "putDictionaryEmpty": 4, + "getDictionaryNull": 4, + "getDictionaryEmpty": 4, + "getDictionaryInvalid": 4, + "getDictionaryNullValue": 4, + "getDictionaryNullkey": 4, + "getDictionaryKeyEmptyString": 4, + "getDictionaryBooleanValid": 4, + "getDictionaryBooleanWithNull": 4, + "getDictionaryBooleanWithString": 4, + "getDictionaryIntegerValid": 4, + "getDictionaryIntegerWithNull": 4, + "getDictionaryIntegerWithString": 4, + "getDictionaryLongValid": 4, + "getDictionaryLongWithNull": 4, + "getDictionaryLongWithString": 4, + "getDictionaryFloatValid": 4, + "getDictionaryFloatWithNull": 4, + "getDictionaryFloatWithString": 4, + "getDictionaryDoubleValid": 4, + "getDictionaryDoubleWithNull": 4, + "getDictionaryDoubleWithString": 4, + "getDictionaryStringValid": 4, + "getDictionaryStringWithNull": 4, + "getDictionaryStringWithNumber": 4, + "getDictionaryDateValid": 4, + "getDictionaryDateWithNull": 4, + "getDictionaryDateWithInvalidChars": 4, + "getDictionaryDateTimeValid": 4, + "getDictionaryDateTimeWithNull": 4, + "getDictionaryDateTimeWithInvalidChars": 4, + "getDictionaryDateTimeRfc1123Valid": 4, + "getDictionaryDurationValid": 4, + "getDictionaryByteValid": 4, + "getDictionaryByteWithNull": 4, + "putDictionaryBooleanValid": 4, + "putDictionaryIntegerValid": 4, + "putDictionaryLongValid": 4, + "putDictionaryFloatValid": 4, + "putDictionaryDoubleValid": 4, + "putDictionaryStringValid": 4, + "putDictionaryDateValid": 4, + "putDictionaryDateTimeValid": 4, + "putDictionaryDateTimeRfc1123Valid": 4, + "putDictionaryDurationValid": 4, + "putDictionaryByteValid": 4, + "getDictionaryComplexNull": 4, + "getDictionaryComplexEmpty": 4, + "getDictionaryComplexItemNull": 4, + "getDictionaryComplexItemEmpty": 4, + "getDictionaryComplexValid": 4, + "putDictionaryComplexValid": 4, + "getDictionaryArrayNull": 4, + "getDictionaryArrayEmpty": 4, + "getDictionaryArrayItemNull": 4, + "getDictionaryArrayItemEmpty": 4, + "getDictionaryArrayValid": 4, + "putDictionaryArrayValid": 4, + "getDictionaryDictionaryNull": 4, + "getDictionaryDictionaryEmpty": 4, + "getDictionaryDictionaryItemNull": 4, + "getDictionaryDictionaryItemEmpty": 4, + "getDictionaryDictionaryValid": 4, + "putDictionaryDictionaryValid": 4, + "putDurationPositive": 13, + "getDurationNull": 13, + "getDurationInvalid": 13, + "getDurationPositive": 13, + "HeaderParameterExistingKey": 4, + "HeaderResponseExistingKey": 4, + "HeaderResponseProtectedKey": 4, + "HeaderParameterIntegerPositive": 4, + "HeaderParameterIntegerNegative": 4, + "HeaderParameterLongPositive": 4, + "HeaderParameterLongNegative": 4, + "HeaderParameterFloatPositive": 4, + "HeaderParameterFloatNegative": 4, + "HeaderParameterDoublePositive": 4, + "HeaderParameterDoubleNegative": 4, + "HeaderParameterBoolTrue": 4, + "HeaderParameterBoolFalse": 4, + "HeaderParameterStringValid": 4, + "HeaderParameterStringNull": 4, + "HeaderParameterStringEmpty": 4, + "HeaderParameterDateValid": 4, + "HeaderParameterDateMin": 4, + "HeaderParameterDateTimeValid": 4, + "HeaderParameterDateTimeMin": 4, + "HeaderParameterDateTimeRfc1123Valid": 4, + "HeaderParameterDateTimeRfc1123Min": 4, + "HeaderParameterBytesValid": 4, + "HeaderParameterDurationValid": 4, + "HeaderResponseIntegerPositive": 4, + "HeaderResponseIntegerNegative": 4, + "HeaderResponseLongPositive": 4, + "HeaderResponseLongNegative": 4, + "HeaderResponseFloatPositive": 4, + "HeaderResponseFloatNegative": 4, + "HeaderResponseDoublePositive": 4, + "HeaderResponseDoubleNegative": 4, + "HeaderResponseBoolTrue": 4, + "HeaderResponseBoolFalse": 4, + "HeaderResponseStringValid": 4, + "HeaderResponseStringNull": 4, + "HeaderResponseStringEmpty": 4, + "HeaderParameterEnumValid": 8, + "HeaderParameterEnumNull": 4, + "HeaderResponseEnumValid": 4, + "HeaderResponseEnumNull": 4, + "HeaderResponseDateValid": 4, + "HeaderResponseDateMin": 4, + "HeaderResponseDateTimeValid": 4, + "HeaderResponseDateTimeMin": 4, + "HeaderResponseDateTimeRfc1123Valid": 4, + "HeaderResponseDateTimeRfc1123Min": 4, + "HeaderResponseBytesValid": 4, + "HeaderResponseDurationValid": 4, + "ConstantsInPath": 4, + "ConstantsInBody": 4, + "CustomBaseUri": 8, + "CustomBaseUriMoreOptions": 4, + "getModelFlattenArray": 4, + "putModelFlattenArray": 4, + "getModelFlattenDictionary": 4, + "putModelFlattenDictionary": 4, + "getModelFlattenResourceCollection": 4, + "putModelFlattenResourceCollection": 4, + "putModelFlattenCustomBase": 4, + "postModelFlattenCustomParameter": 4, + "putModelFlattenCustomGroupedParameter": 4, + "getArrayBase64Url": 4, + "getDictionaryBase64Url": 4, + "UrlPathsStringBase64Url": 4, + "UrlPathsArrayCSVInPath": 4, + "getUnixTime": 4, + "getInvalidUnixTime": 4, + "getNullUnixTime": 4, + "putUnixTime": 4, + "UrlPathsIntUnixTime": 4, + "expectedEnum": 4, + "unexpectedEnum": 4, + "allowedValueEnum": 4, + "roundTripEnum": 4, + "expectedNoErrors": 6, + "expectedPetSadError": 24, + "expectedPetHungryError": 3, + "intError": 3, + "stringError": 3, + "animalNotFoundError": 3, + "linkNotFoundError": 3, + "getDateTimeMinLocalNoOffset": 4, + "getComplexPolymorphismDotSyntax": 4, + "getComposedWithDiscriminator": 4, + "getComposedWithoutDiscriminator": 4, + "FileStreamNonempty": 12, + "FileStreamVeryLarge": 4, + "FileStreamEmpty": 8, + "HttpSuccess200Head": 22, + "HttpSuccess200Get": 4, + "HttpSuccess200Put": 4, + "HttpSuccess200Post": 4, + "HttpSuccess200Patch": 4, + "HttpSuccess200Delete": 4, + "HttpSuccess201Put": 4, + "HttpSuccess201Post": 4, + "HttpSuccess202Put": 4, + "HttpSuccess202Post": 4, + "HttpSuccess202Patch": 4, + "HttpSuccess202Delete": 4, + "HttpSuccess204Head": 22, + "HttpSuccess404Head": 22, + "HttpSuccess204Put": 4, + "HttpSuccess204Post": 4, + "HttpSuccess204Patch": 4, + "HttpSuccess204Delete": 4, + "HttpRedirect300Head": 4, + "HttpRedirect300Get": 4, + "HttpRedirect301Put": 4, + "HttpRedirect301Get": 4, + "HttpRedirect302Head": 4, + "HttpRedirect302Get": 4, + "HttpRedirect302Patch": 4, + "HttpRedirect303Post": 4, + "HttpRedirect307Head": 4, + "HttpRedirect307Get": 4, + "HttpRedirect307Put": 4, + "HttpRedirect307Post": 4, + "HttpRedirect307Patch": 4, + "HttpRedirect307Delete": 4, + "HttpRetry408Head": 4, + "HttpRetry500Put": 4, + "HttpRetry500Patch": 4, + "HttpRetry502Get": 4, + "HttpRetry503Post": 4, + "HttpRetry503Delete": 4, + "HttpRetry504Put": 4, + "HttpRetry504Patch": 4, + "HttpClientFailure400Head": 4, + "HttpClientFailure400Get": 4, + "HttpClientFailure400Put": 4, + "HttpClientFailure400Post": 4, + "HttpClientFailure400Patch": 4, + "HttpClientFailure400Delete": 4, + "HttpClientFailure401Head": 4, + "HttpClientFailure402Get": 4, + "HttpClientFailure403Get": 4, + "HttpClientFailure404Put": 4, + "HttpClientFailure405Patch": 4, + "HttpClientFailure406Post": 4, + "HttpClientFailure407Delete": 4, + "HttpClientFailure409Put": 4, + "HttpClientFailure410Head": 4, + "HttpClientFailure411Get": 4, + "HttpClientFailure412Get": 4, + "HttpClientFailure413Put": 4, + "HttpClientFailure414Patch": 4, + "HttpClientFailure415Post": 4, + "HttpClientFailure416Get": 4, + "HttpClientFailure417Delete": 4, + "HttpClientFailure429Head": 16, + "HttpServerFailure501Head": 4, + "HttpServerFailure501Get": 4, + "HttpServerFailure505Post": 4, + "HttpServerFailure505Delete": 4, + "ResponsesScenarioA200MatchingModel": 4, + "ResponsesScenarioA204MatchingNoModel": 4, + "ResponsesScenarioA201DefaultNoModel": 4, + "ResponsesScenarioA202DefaultNoModel": 4, + "ResponsesScenarioA400DefaultModel": 4, + "ResponsesScenarioB200MatchingModel": 4, + "ResponsesScenarioB201MatchingModel": 4, + "ResponsesScenarioB400DefaultModel": 4, + "ResponsesScenarioC200MatchingModel": 4, + "ResponsesScenarioC201MatchingModel": 4, + "ResponsesScenarioC404MatchingModel": 4, + "ResponsesScenarioC400DefaultModel": 4, + "ResponsesScenarioD202MatchingNoModel": 4, + "ResponsesScenarioD204MatchingNoModel": 4, + "ResponsesScenarioD400DefaultModel": 4, + "ResponsesScenarioE202MatchingInvalid": 4, + "ResponsesScenarioE204MatchingNoModel": 4, + "ResponsesScenarioE400DefaultNoModel": 4, + "ResponsesScenarioE400DefaultInvalid": 4, + "ResponsesScenarioF200DefaultModel": 8, + "ResponsesScenarioF200DefaultNone": 8, + "ResponsesScenarioF400DefaultModel": 4, + "ResponsesScenarioF400DefaultNone": 4, + "ResponsesScenarioG200DefaultInvalid": 4, + "ResponsesScenarioG200DefaultNoModel": 4, + "ResponsesScenarioG400DefaultInvalid": 4, + "ResponsesScenarioG400DefaultNoModel": 4, + "ResponsesScenarioH200MatchingNone": 4, + "ResponsesScenarioH200MatchingModel": 4, + "ResponsesScenarioH200MatchingInvalid": 4, + "ResponsesScenarioH400NonMatchingNone": 4, + "ResponsesScenarioH400NonMatchingModel": 4, + "ResponsesScenarioH400NonMatchingInvalid": 4, + "ResponsesScenarioH202NonMatchingModel": 4, + "ResponsesScenarioEmptyErrorBody": 4, + "ResponsesScenarioNoModelErrorBody": 4, + "MediaTypeJson": 4, + "MediaTypePdf": 4, + "MediaTypeWithEncoding": 4, + "StorageListContainersXML": 4, + "StorageGetServicePropertiesXML": 4, + "StoragePutServicePropertiesXML": 4, + "StorageGetContainerACLXML": 4, + "StorageListBlobsXML": 4, + "StoragePutContainerACLXML": 4, + "GetSimpleXML": 4, + "PutSimpleXML": 4, + "GetWrappedXMLList": 4, + "PutWrappedXMLList": 4, + "GetEmptyXMLList": 4, + "PutEmptyXMLList": 4, + "GetEmptyWrappedXMLList": 4, + "PutEmptyWrappedXMLList": 4, + "GetXMLListAtRoot": 4, + "PutXMLListAtRoot": 4, + "GetXMLListAtRootSingle": 4, + "PutXMLListAtRootSingle": 4, + "GetEmptyXMLListAtRoot": 4, + "PutEmptyXMLListAtRoot": 4, + "GetXMLEmptyNode": 4, + "PutXMLEmptyNode": 4, + "GetRootWithRefAndNoMetaXML": 4, + "PutRootWithRefAndNoMetaXML": 4, + "GetRootWithRefAndMetaXML": 4, + "PutRootWithRefAndMetaXML": 4, + "jsonInputInXMLSwagger": 4, + "jsonOutputInXMLSwagger": 4, + "GetWithXMsText": 4, + "ObjectTypeResponse": 4, + "ObjectTypePut": 4, + "ObjectTypeErrorResponse": 4, + "NonStringEnumsPostInt": 4, + "NonStringEnumsGetInt": 4, + "NonStringEnumsPostFloat": 4, + "NonStringEnumsGetFloat": 4, + "BodyTimeGet": 4, + "BodyTimePut": 4, + "MultipleInheritancePetGet": 4, + "MultipleInheritancePetPut": 4, + "MultipleInheritanceHorseGet": 4, + "MultipleInheritanceHorsePut": 4, + "MultipleInheritanceFelineGet": 4, + "MultipleInheritanceFelinePut": 4, + "MultipleInheritanceCatGet": 4, + "MultipleInheritanceCatPut": 4, + "MultipleInheritanceKittenGet": 4, + "MultipleInheritanceKittenPut": 4, + "OptionalIntegerParameter": 4, + "OptionalIntegerProperty": 4, + "OptionalIntegerHeader": 4, + "OptionalStringParameter": 4, + "OptionalStringProperty": 4, + "OptionalStringHeader": 4, + "OptionalClassParameter": 4, + "OptionalClassProperty": 4, + "OptionalArrayParameter": 4, + "OptionalArrayProperty": 4, + "OptionalArrayHeader": 4 } \ No newline at end of file diff --git a/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py index 99c2d6cb61a..ebe0ab17e8c 100644 --- a/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py @@ -121,13 +121,6 @@ def read(self): "actionResponse": "hello" } - # deserialize without pipeline context - # shouldn't have a model - error_model = client._deserialize.failsafe_deserialize(MyPetSadError, pipeline_response.http_response) - assert error_model is None - error = HttpResponseError(response=pipeline_response.http_response, model=error_model) - assert error.model is None - # add pipeline context with deserialized data and pass to failsafe_deserialize # should get a correct model error_model = client._deserialize.failsafe_deserialize(MyPetSadError, pipeline_response) diff --git a/test/vanilla/legacy/AcceptanceTests/test_send_request.py b/test/vanilla/legacy/AcceptanceTests/test_send_request.py index 03ac18b1db6..2275bb2af63 100644 --- a/test/vanilla/legacy/AcceptanceTests/test_send_request.py +++ b/test/vanilla/legacy/AcceptanceTests/test_send_request.py @@ -199,7 +199,7 @@ def test_send_request_put_stream(self): }, data=stream_data, ) - response = client._send_request(request) + response = client._send_request(request, stream=True) assert response.status_code == 200 def test_send_request_full_url(self): diff --git a/test/vanilla/legacy/AcceptanceTests/test_xms_error.py b/test/vanilla/legacy/AcceptanceTests/test_xms_error.py index aa9e11390ad..0ac565dad68 100644 --- a/test/vanilla/legacy/AcceptanceTests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/test_xms_error.py @@ -105,6 +105,7 @@ def test_failsafe_deserialize(self, client): class MyPetSadError(PetSadError): def read(self): return b"ignore me" + pipeline_response.context['deserialized_data'] = { "reason": "Not OK", "errorMessage": "i should be the message", @@ -112,13 +113,6 @@ def read(self): "actionResponse": "hello" } - # deserialize without pipeline context - # shouldn't have a model - error_model = client._deserialize.failsafe_deserialize(MyPetSadError, pipeline_response.http_response) - assert error_model is None - error = HttpResponseError(response=pipeline_response.http_response, model=error_model) - assert error.model is None - # add pipeline context with deserialized data and pass to failsafe_deserialize # should get a correct model error_model = client._deserialize.failsafe_deserialize(MyPetSadError, pipeline_response) From 2873d0320dd0d504e18b2f7fa1064cee1ded4d54 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 27 Sep 2021 17:54:24 -0400 Subject: [PATCH 06/16] unstage report file changes --- .../low-level/coverage/report-optional.json | 62 +- .../low-level/coverage/report-vanilla.json | 1233 ++++++++--------- 2 files changed, 647 insertions(+), 648 deletions(-) diff --git a/test/azure/low-level/coverage/report-optional.json b/test/azure/low-level/coverage/report-optional.json index c388eeb4501..8d46c893031 100644 --- a/test/azure/low-level/coverage/report-optional.json +++ b/test/azure/low-level/coverage/report-optional.json @@ -1,48 +1,48 @@ { - "StreamUploadFile": 20, + "StreamUploadFile": 120, "UpdatePetWithForm": 0, - "getDecimalInvalid": 4, - "getDecimalBig": 4, - "getDecimalSmall": 4, - "getDecimalBigPositiveDecimal": 4, - "getDecimalBigNegativeDecimal": 4, - "putDecimalBig": 4, - "putDecimalSmall": 4, - "putDecimalBigPositiveDecimal": 4, - "putDecimalBigNegativeDecimal": 4, + "getDecimalInvalid": 24, + "getDecimalBig": 24, + "getDecimalSmall": 24, + "getDecimalBigPositiveDecimal": 24, + "getDecimalBigNegativeDecimal": 24, + "putDecimalBig": 24, + "putDecimalSmall": 24, + "putDecimalBigPositiveDecimal": 24, + "putDecimalBigNegativeDecimal": 19, "putDateTimeMaxUtc7MS": 0, - "getDateTimeMaxUtc7MSUppercase": 4, - "putDateTimeMaxLocalPositiveOffset": 4, + "getDateTimeMaxUtc7MSUppercase": 25, + "putDateTimeMaxLocalPositiveOffset": 25, "putDateTimeMaxLocalNegativeOffset": 0, "putDateTimeMinLocalPositiveOffset": 0, - "putDateTimeMinLocalNegativeOffset": 4, + "putDateTimeMinLocalNegativeOffset": 25, "HeaderParameterProtectedKey": 1, - "CustomHeaderInRequest": 4, - "FormdataStreamUploadFile": 16, + "CustomHeaderInRequest": 19, + "FormdataStreamUploadFile": 86, "HttpSuccess200Options": 0, "HttpRedirect307Options": 0, "HttpRetry502Options": 0, "HttpClientFailure400Options": 0, "HttpClientFailure403Options": 0, "HttpClientFailure412Options": 0, - "ResponsesScenarioNoModelEmptyBody": 4, - "sendErrorWithParamNameModels": 12, - "MultiapiPutTestOneApiVersionOne": 0, - "MultiapiPutTestOneApiVersionTwo": 0, - "MultiapiGetTestTwoApiVersionOne": 0, - "MultiapiGetTestTwoApiVersionTwo": 0, - "MultiapiGetTestTwoApiVersionThree": 0, - "MultiapiPutTestThreeApiVersionTwo": 0, - "MultiapiPostTestFourApiVersionTwo": 0, - "MultiapiPostTestFourApiVersionThreeJSON": 0, + "ResponsesScenarioNoModelEmptyBody": 24, + "sendErrorWithParamNameModels": 72, + "MultiapiPutTestOneApiVersionOne": 17, + "MultiapiPutTestOneApiVersionTwo": 17, + "MultiapiGetTestTwoApiVersionOne": 17, + "MultiapiGetTestTwoApiVersionTwo": 17, + "MultiapiGetTestTwoApiVersionThree": 17, + "MultiapiPutTestThreeApiVersionTwo": 17, + "MultiapiPostTestFourApiVersionTwo": 17, + "MultiapiPostTestFourApiVersionThreeJSON": 17, "MultiapiPostTestFourApiVersionThreePDF": 0, - "MultiapiPutTestFiveApiVersionThree": 0, - "MultiapiLRO": 0, - "MultiapiPaging": 0, - "MultiapiLROAndPaging": 0, + "MultiapiPutTestFiveApiVersionThree": 17, + "MultiapiLRO": 13, + "MultiapiPaging": 17, + "MultiapiLROAndPaging": 16, "MultiapiDifferentCallsApiVersionOne": 0, "MultiapiDifferentCallsApiVersionTwo": 0, "MultiapiDifferentCallsApiVersionThree": 0, - "MultiapiCustomBaseUrlApiVersionOne": 0, - "MultiapiCustomBaseUrlApiVersionTwo": 0 + "MultiapiCustomBaseUrlApiVersionOne": 7, + "MultiapiCustomBaseUrlApiVersionTwo": 7 } \ No newline at end of file diff --git a/test/azure/low-level/coverage/report-vanilla.json b/test/azure/low-level/coverage/report-vanilla.json index 26379b49edd..ed1bdb01f0a 100644 --- a/test/azure/low-level/coverage/report-vanilla.json +++ b/test/azure/low-level/coverage/report-vanilla.json @@ -1,619 +1,618 @@ { - "GetStringAsAnything": 4, - "PutStringAsAnything": 4, - "GetObjectAsAnything": 4, - "PutObjectAsAnything": 4, - "GetArrayAsAnything": 4, - "PutArrayAsAnything": 4, - "ConstantClientProperties": 4, - "verifyIncorrectErrorParsing": 4, - "MediaTypesAnalyzeBodyNoAcceptHeader": 8, - "GetParameterizedHostWithNameEndpoint": 4, - "ImplicitOptionalBinaryBody": 4, - "ExplicitOptionalBinaryBody": 4, - "ExplicitRequiredBinaryBody": 4, - "OptionalImplicitBody": 4, - "GeneralOptional": 44, - "OptionalImplicitHeader": 4, - "OptionalImplicitQuery": 4, - "OptionalGlobalQuery": 4, - "reservedWordsOperationGroupImport": 4, - "getStringNull": 4, - "putStringNull": 4, - "getStringEmpty": 4, - "putStringEmpty": 4, - "getStringNotProvided": 4, - "getStringWithLeadingAndTrailingWhitespace": 4, - "putStringWithLeadingAndTrailingWhitespace": 4, - "getStringBase64UrlEncoded": 4, - "putStringBase64UrlEncoded": 4, - "getStringBase64Encoded": 4, - "getStringNullBase64UrlEncoding": 4, - "getStringMultiByteCharacters": 4, - "putStringMultiByteCharacters": 4, - "getEnumNotExpandable": 4, - "putEnumNotExpandable": 8, - "getEnumReferenced": 4, - "putEnumReferenced": 8, - "getEnumReferencedConstant": 4, - "putEnumReferencedConstant": 4, - "XmlGetBytes": 4, - "XmlPutBytes": 4, - "XmlGetUrl": 4, - "XmlPutUrl": 4, - "additionalPropertiesTrue": 4, - "additionalPropertiesSubclass": 4, - "additionalPropertiesTypeObject": 4, - "additionalPropertiesTypeString": 4, - "additionalPropertiesInProperties": 4, - "additionalPropertiesInPropertiesWithAPTypeString": 4, - "getArrayNull": 4, - "getArrayEmpty": 4, - "putArrayEmpty": 4, - "getArrayInvalid": 4, - "getArrayBooleanValid": 4, - "putArrayBooleanValid": 4, - "getArrayBooleanWithNull": 4, - "getArrayBooleanWithString": 4, - "getArrayIntegerValid": 4, - "putArrayIntegerValid": 4, - "getArrayIntegerWithNull": 4, - "getArrayIntegerWithString": 4, - "getArrayLongValid": 4, - "putArrayLongValid": 4, - "getArrayLongWithNull": 4, - "getArrayLongWithString": 4, - "getArrayFloatValid": 4, - "putArrayFloatValid": 4, - "getArrayFloatWithNull": 4, - "getArrayFloatWithString": 4, - "getArrayDoubleValid": 4, - "putArrayDoubleValid": 4, - "getArrayDoubleWithNull": 4, - "getArrayDoubleWithString": 4, - "getArrayStringValid": 4, - "putArrayStringValid": 4, - "getArrayEnumValid": 4, - "putArrayEnumValid": 4, - "getArrayStringEnumValid": 4, - "putArrayStringEnumValid": 4, - "getArrayStringWithNull": 4, - "getArrayStringWithNumber": 8, - "getArrayDateValid": 4, - "putArrayDateValid": 4, - "getArrayDateWithNull": 4, - "getArrayDateWithInvalidChars": 4, - "getArrayDateTimeValid": 4, - "putArrayDateTimeValid": 4, - "getArrayDateTimeWithNull": 4, - "getArrayDateTimeWithInvalidChars": 4, - "getArrayDateTimeRfc1123Valid": 4, - "putArrayDateTimeRfc1123Valid": 4, - "getArrayDurationValid": 4, - "putArrayDurationValid": 4, - "getArrayUuidValid": 4, - "getArrayUuidWithInvalidChars": 4, - "putArrayUuidValid": 4, - "getArrayByteValid": 4, - "putArrayByteValid": 4, - "getArrayByteWithNull": 4, - "getArrayArrayNull": 4, - "getArrayArrayEmpty": 4, - "getArrayArrayItemNull": 4, - "getArrayArrayItemEmpty": 4, - "getArrayArrayValid": 4, - "putArrayArrayValid": 4, - "getArrayComplexNull": 4, - "getArrayComplexEmpty": 4, - "getArrayComplexItemNull": 4, - "getArrayComplexItemEmpty": 4, - "getArrayComplexValid": 4, - "putArrayComplexValid": 4, - "getArrayDictionaryNull": 4, - "getArrayDictionaryEmpty": 4, - "getArrayDictionaryItemNull": 4, - "getArrayDictionaryItemEmpty": 4, - "getArrayDictionaryValid": 4, - "putArrayDictionaryValid": 4, - "getBoolTrue": 4, - "putBoolTrue": 4, - "getBoolFalse": 4, - "putBoolFalse": 4, - "getBoolInvalid": 4, - "getBoolNull": 4, - "getByteNull": 4, - "getByteEmpty": 4, - "getByteNonAscii": 4, - "putByteNonAscii": 4, - "getByteInvalid": 4, - "getDateNull": 4, - "getDateInvalid": 4, - "getDateOverflow": 4, - "getDateUnderflow": 4, - "getDateMax": 4, - "putDateMax": 4, - "getDateMin": 4, - "putDateMin": 4, - "getDateTimeNull": 4, - "getDateTimeInvalid": 4, - "getDateTimeOverflow": 4, - "getDateTimeUnderflow": 4, - "putDateTimeMaxUtc": 4, - "getDateTimeMaxUtcLowercase": 4, - "getDateTimeMaxUtcUppercase": 4, - "getDateTimeMaxLocalPositiveOffsetLowercase": 4, - "getDateTimeMaxLocalPositiveOffsetUppercase": 4, - "getDateTimeMaxLocalNegativeOffsetLowercase": 4, - "getDateTimeMaxLocalNegativeOffsetUppercase": 4, - "getDateTimeMinUtc": 4, - "putDateTimeMinUtc": 4, - "getDateTimeMinLocalPositiveOffset": 4, - "getDateTimeMinLocalNegativeOffset": 4, - "getDateTimeRfc1123Null": 4, - "getDateTimeRfc1123Invalid": 4, - "getDateTimeRfc1123Overflow": 4, - "getDateTimeRfc1123Underflow": 4, - "getDateTimeRfc1123MinUtc": 4, - "putDateTimeRfc1123Max": 4, - "putDateTimeRfc1123Min": 4, - "getDateTimeRfc1123MaxUtcLowercase": 4, - "getDateTimeRfc1123MaxUtcUppercase": 4, - "getIntegerNull": 4, - "getIntegerInvalid": 4, - "getIntegerOverflow": 4, - "getIntegerUnderflow": 4, - "getLongOverflow": 4, - "getLongUnderflow": 4, - "putIntegerMax": 4, - "putLongMax": 4, - "putIntegerMin": 4, - "putLongMin": 4, - "getNumberNull": 4, - "getFloatInvalid": 4, - "getDoubleInvalid": 4, - "getFloatBigScientificNotation": 4, - "putFloatBigScientificNotation": 4, - "getDoubleBigScientificNotation": 4, - "putDoubleBigScientificNotation": 4, - "getDoubleBigPositiveDecimal": 4, - "putDoubleBigPositiveDecimal": 4, - "getDoubleBigNegativeDecimal": 4, - "putDoubleBigNegativeDecimal": 4, - "getFloatSmallScientificNotation": 4, - "putFloatSmallScientificNotation": 4, - "getDoubleSmallScientificNotation": 4, - "putDoubleSmallScientificNotation": 4, - "putComplexBasicValid": 8, - "getComplexBasicValid": 4, - "getComplexBasicEmpty": 4, - "getComplexBasicNotProvided": 4, - "getComplexBasicNull": 4, - "getComplexBasicInvalid": 4, - "putComplexPrimitiveInteger": 4, - "putComplexPrimitiveLong": 4, - "putComplexPrimitiveFloat": 4, - "putComplexPrimitiveDouble": 4, - "putComplexPrimitiveBool": 4, - "putComplexPrimitiveString": 4, - "putComplexPrimitiveDate": 4, - "putComplexPrimitiveDateTime": 4, - "putComplexPrimitiveDateTimeRfc1123": 4, - "putComplexPrimitiveDuration": 4, - "putComplexPrimitiveByte": 4, - "getComplexPrimitiveInteger": 4, - "getComplexPrimitiveLong": 4, - "getComplexPrimitiveFloat": 4, - "getComplexPrimitiveDouble": 4, - "getComplexPrimitiveBool": 4, - "getComplexPrimitiveString": 4, - "getComplexPrimitiveDate": 4, - "getComplexPrimitiveDateTime": 4, - "getComplexPrimitiveDateTimeRfc1123": 4, - "getComplexPrimitiveDuration": 4, - "getComplexPrimitiveByte": 4, - "putComplexArrayValid": 4, - "putComplexArrayEmpty": 4, - "getComplexArrayValid": 4, - "getComplexArrayEmpty": 4, - "getComplexArrayNotProvided": 4, - "putComplexDictionaryValid": 4, - "putComplexDictionaryEmpty": 4, - "getComplexDictionaryValid": 4, - "getComplexDictionaryEmpty": 4, - "getComplexDictionaryNull": 4, - "getComplexDictionaryNotProvided": 4, - "putComplexInheritanceValid": 12, - "getComplexInheritanceValid": 16, - "putComplexPolymorphismValid": 4, - "getComplexPolymorphismValid": 4, - "putComplexPolymorphismComplicated": 4, - "getComplexPolymorphismComplicated": 4, - "putComplexPolymorphismNoDiscriminator": 4, - "putComplexPolymorphicRecursiveValid": 4, - "getComplexPolymorphicRecursiveValid": 4, - "putComplexReadOnlyPropertyValid": 4, - "getComplexReadOnlyPropertyValid": 4, - "UrlPathsBoolFalse": 4, - "UrlPathsBoolTrue": 4, - "UrlPathsIntPositive": 4, - "UrlPathsIntNegative": 4, - "UrlPathsLongPositive": 4, - "UrlPathsLongNegative": 4, - "UrlPathsFloatPositive": 4, - "UrlPathsFloatNegative": 4, - "UrlPathsDoublePositive": 4, - "UrlPathsDoubleNegative": 4, - "UrlPathsStringUrlEncoded": 4, - "UrlPathsStringUrlNonEncoded": 4, - "UrlPathsStringEmpty": 4, - "UrlPathsStringUnicode": 4, - "UrlPathsEnumValid": 4, - "UrlPathsByteMultiByte": 4, - "UrlPathsByteEmpty": 4, - "UrlPathsDateValid": 4, - "UrlPathsDateTimeValid": 4, - "UrlQueriesBoolFalse": 4, - "UrlQueriesBoolTrue": 4, - "UrlQueriesBoolNull": 4, - "UrlQueriesIntPositive": 4, - "UrlQueriesIntNegative": 4, - "UrlQueriesIntNull": 4, - "UrlQueriesLongPositive": 4, - "UrlQueriesLongNegative": 4, - "UrlQueriesLongNull": 4, - "UrlQueriesFloatPositive": 4, - "UrlQueriesFloatNegative": 4, - "UrlQueriesFloatNull": 4, - "UrlQueriesDoublePositive": 4, - "UrlQueriesDoubleNegative": 4, - "UrlQueriesDoubleNull": 4, - "UrlQueriesStringUrlEncoded": 4, - "UrlQueriesStringEmpty": 4, - "UrlQueriesStringNull": 4, - "UrlQueriesStringUnicode": 4, - "UrlQueriesEnumValid": 4, - "UrlQueriesEnumNull": 4, - "UrlQueriesByteMultiByte": 4, - "UrlQueriesByteEmpty": 4, - "UrlQueriesByteNull": 4, - "UrlQueriesDateValid": 4, - "UrlQueriesDateNull": 4, - "UrlQueriesDateTimeValid": 4, - "UrlQueriesDateTimeNull": 4, - "UrlQueriesArrayCsvNull": 4, - "UrlQueriesArrayCsvEmpty": 4, - "UrlQueriesArrayCsvValid": 4, - "UrlQueriesArrayMultiNull": 4, - "UrlQueriesArrayMultiEmpty": 4, - "UrlQueriesArrayMultiValid": 4, - "UrlQueriesArraySsvValid": 4, - "UrlQueriesArrayPipesValid": 4, - "UrlQueriesArrayTsvValid": 2, - "UrlQueriesArrayNoCollectionFormatValid": 4, - "UrlPathItemGetAll": 4, - "UrlPathItemGetGlobalNull": 4, - "UrlPathItemGetGlobalAndLocalNull": 4, - "UrlPathItemGetPathItemAndLocalNull": 4, - "putDictionaryEmpty": 4, - "getDictionaryNull": 4, - "getDictionaryEmpty": 4, - "getDictionaryInvalid": 4, - "getDictionaryNullValue": 4, - "getDictionaryNullkey": 4, - "getDictionaryKeyEmptyString": 4, - "getDictionaryBooleanValid": 4, - "getDictionaryBooleanWithNull": 4, - "getDictionaryBooleanWithString": 4, - "getDictionaryIntegerValid": 4, - "getDictionaryIntegerWithNull": 4, - "getDictionaryIntegerWithString": 4, - "getDictionaryLongValid": 4, - "getDictionaryLongWithNull": 4, - "getDictionaryLongWithString": 4, - "getDictionaryFloatValid": 4, - "getDictionaryFloatWithNull": 4, - "getDictionaryFloatWithString": 4, - "getDictionaryDoubleValid": 4, - "getDictionaryDoubleWithNull": 4, - "getDictionaryDoubleWithString": 4, - "getDictionaryStringValid": 4, - "getDictionaryStringWithNull": 4, - "getDictionaryStringWithNumber": 4, - "getDictionaryDateValid": 4, - "getDictionaryDateWithNull": 4, - "getDictionaryDateWithInvalidChars": 4, - "getDictionaryDateTimeValid": 4, - "getDictionaryDateTimeWithNull": 4, - "getDictionaryDateTimeWithInvalidChars": 4, - "getDictionaryDateTimeRfc1123Valid": 4, - "getDictionaryDurationValid": 4, - "getDictionaryByteValid": 4, - "getDictionaryByteWithNull": 4, - "putDictionaryBooleanValid": 4, - "putDictionaryIntegerValid": 4, - "putDictionaryLongValid": 4, - "putDictionaryFloatValid": 4, - "putDictionaryDoubleValid": 4, - "putDictionaryStringValid": 4, - "putDictionaryDateValid": 4, - "putDictionaryDateTimeValid": 4, - "putDictionaryDateTimeRfc1123Valid": 4, - "putDictionaryDurationValid": 4, - "putDictionaryByteValid": 4, - "getDictionaryComplexNull": 4, - "getDictionaryComplexEmpty": 4, - "getDictionaryComplexItemNull": 4, - "getDictionaryComplexItemEmpty": 4, - "getDictionaryComplexValid": 4, - "putDictionaryComplexValid": 4, - "getDictionaryArrayNull": 4, - "getDictionaryArrayEmpty": 4, - "getDictionaryArrayItemNull": 4, - "getDictionaryArrayItemEmpty": 4, - "getDictionaryArrayValid": 4, - "putDictionaryArrayValid": 4, - "getDictionaryDictionaryNull": 4, - "getDictionaryDictionaryEmpty": 4, - "getDictionaryDictionaryItemNull": 4, - "getDictionaryDictionaryItemEmpty": 4, - "getDictionaryDictionaryValid": 4, - "putDictionaryDictionaryValid": 4, - "putDurationPositive": 13, - "getDurationNull": 13, - "getDurationInvalid": 13, - "getDurationPositive": 13, - "HeaderParameterExistingKey": 4, - "HeaderResponseExistingKey": 4, - "HeaderResponseProtectedKey": 4, - "HeaderParameterIntegerPositive": 4, - "HeaderParameterIntegerNegative": 4, - "HeaderParameterLongPositive": 4, - "HeaderParameterLongNegative": 4, - "HeaderParameterFloatPositive": 4, - "HeaderParameterFloatNegative": 4, - "HeaderParameterDoublePositive": 4, - "HeaderParameterDoubleNegative": 4, - "HeaderParameterBoolTrue": 4, - "HeaderParameterBoolFalse": 4, - "HeaderParameterStringValid": 4, - "HeaderParameterStringNull": 4, - "HeaderParameterStringEmpty": 4, - "HeaderParameterDateValid": 4, - "HeaderParameterDateMin": 4, - "HeaderParameterDateTimeValid": 4, - "HeaderParameterDateTimeMin": 4, - "HeaderParameterDateTimeRfc1123Valid": 4, - "HeaderParameterDateTimeRfc1123Min": 4, - "HeaderParameterBytesValid": 4, - "HeaderParameterDurationValid": 4, - "HeaderResponseIntegerPositive": 4, - "HeaderResponseIntegerNegative": 4, - "HeaderResponseLongPositive": 4, - "HeaderResponseLongNegative": 4, - "HeaderResponseFloatPositive": 4, - "HeaderResponseFloatNegative": 4, - "HeaderResponseDoublePositive": 4, - "HeaderResponseDoubleNegative": 4, - "HeaderResponseBoolTrue": 4, - "HeaderResponseBoolFalse": 4, - "HeaderResponseStringValid": 4, - "HeaderResponseStringNull": 4, - "HeaderResponseStringEmpty": 4, - "HeaderParameterEnumValid": 8, - "HeaderParameterEnumNull": 4, - "HeaderResponseEnumValid": 4, - "HeaderResponseEnumNull": 4, - "HeaderResponseDateValid": 4, - "HeaderResponseDateMin": 4, - "HeaderResponseDateTimeValid": 4, - "HeaderResponseDateTimeMin": 4, - "HeaderResponseDateTimeRfc1123Valid": 4, - "HeaderResponseDateTimeRfc1123Min": 4, - "HeaderResponseBytesValid": 4, - "HeaderResponseDurationValid": 4, - "ConstantsInPath": 4, - "ConstantsInBody": 4, - "CustomBaseUri": 8, - "CustomBaseUriMoreOptions": 4, - "getModelFlattenArray": 4, - "putModelFlattenArray": 4, - "getModelFlattenDictionary": 4, - "putModelFlattenDictionary": 4, - "getModelFlattenResourceCollection": 4, - "putModelFlattenResourceCollection": 4, - "putModelFlattenCustomBase": 4, - "postModelFlattenCustomParameter": 4, - "putModelFlattenCustomGroupedParameter": 4, - "getArrayBase64Url": 4, - "getDictionaryBase64Url": 4, - "UrlPathsStringBase64Url": 4, - "UrlPathsArrayCSVInPath": 4, - "getUnixTime": 4, - "getInvalidUnixTime": 4, - "getNullUnixTime": 4, - "putUnixTime": 4, - "UrlPathsIntUnixTime": 4, - "expectedEnum": 4, - "unexpectedEnum": 4, - "allowedValueEnum": 4, - "roundTripEnum": 4, - "expectedNoErrors": 6, - "expectedPetSadError": 24, - "expectedPetHungryError": 3, - "intError": 3, - "stringError": 3, - "animalNotFoundError": 3, - "linkNotFoundError": 3, - "getDateTimeMinLocalNoOffset": 4, - "getComplexPolymorphismDotSyntax": 4, - "getComposedWithDiscriminator": 4, - "getComposedWithoutDiscriminator": 4, - "FileStreamNonempty": 12, - "FileStreamVeryLarge": 4, - "FileStreamEmpty": 8, - "HttpSuccess200Head": 22, - "HttpSuccess200Get": 4, - "HttpSuccess200Put": 4, - "HttpSuccess200Post": 4, - "HttpSuccess200Patch": 4, - "HttpSuccess200Delete": 4, - "HttpSuccess201Put": 4, - "HttpSuccess201Post": 4, - "HttpSuccess202Put": 4, - "HttpSuccess202Post": 4, - "HttpSuccess202Patch": 4, - "HttpSuccess202Delete": 4, - "HttpSuccess204Head": 22, - "HttpSuccess404Head": 22, - "HttpSuccess204Put": 4, - "HttpSuccess204Post": 4, - "HttpSuccess204Patch": 4, - "HttpSuccess204Delete": 4, - "HttpRedirect300Head": 4, - "HttpRedirect300Get": 4, - "HttpRedirect301Put": 4, - "HttpRedirect301Get": 4, - "HttpRedirect302Head": 4, - "HttpRedirect302Get": 4, - "HttpRedirect302Patch": 4, - "HttpRedirect303Post": 4, - "HttpRedirect307Head": 4, - "HttpRedirect307Get": 4, - "HttpRedirect307Put": 4, - "HttpRedirect307Post": 4, - "HttpRedirect307Patch": 4, - "HttpRedirect307Delete": 4, - "HttpRetry408Head": 4, - "HttpRetry500Put": 4, - "HttpRetry500Patch": 4, - "HttpRetry502Get": 4, - "HttpRetry503Post": 4, - "HttpRetry503Delete": 4, - "HttpRetry504Put": 4, - "HttpRetry504Patch": 4, - "HttpClientFailure400Head": 4, - "HttpClientFailure400Get": 4, - "HttpClientFailure400Put": 4, - "HttpClientFailure400Post": 4, - "HttpClientFailure400Patch": 4, - "HttpClientFailure400Delete": 4, - "HttpClientFailure401Head": 4, - "HttpClientFailure402Get": 4, - "HttpClientFailure403Get": 4, - "HttpClientFailure404Put": 4, - "HttpClientFailure405Patch": 4, - "HttpClientFailure406Post": 4, - "HttpClientFailure407Delete": 4, - "HttpClientFailure409Put": 4, - "HttpClientFailure410Head": 4, - "HttpClientFailure411Get": 4, - "HttpClientFailure412Get": 4, - "HttpClientFailure413Put": 4, - "HttpClientFailure414Patch": 4, - "HttpClientFailure415Post": 4, - "HttpClientFailure416Get": 4, - "HttpClientFailure417Delete": 4, - "HttpClientFailure429Head": 16, - "HttpServerFailure501Head": 4, - "HttpServerFailure501Get": 4, - "HttpServerFailure505Post": 4, - "HttpServerFailure505Delete": 4, - "ResponsesScenarioA200MatchingModel": 4, - "ResponsesScenarioA204MatchingNoModel": 4, - "ResponsesScenarioA201DefaultNoModel": 4, - "ResponsesScenarioA202DefaultNoModel": 4, - "ResponsesScenarioA400DefaultModel": 4, - "ResponsesScenarioB200MatchingModel": 4, - "ResponsesScenarioB201MatchingModel": 4, - "ResponsesScenarioB400DefaultModel": 4, - "ResponsesScenarioC200MatchingModel": 4, - "ResponsesScenarioC201MatchingModel": 4, - "ResponsesScenarioC404MatchingModel": 4, - "ResponsesScenarioC400DefaultModel": 4, - "ResponsesScenarioD202MatchingNoModel": 4, - "ResponsesScenarioD204MatchingNoModel": 4, - "ResponsesScenarioD400DefaultModel": 4, - "ResponsesScenarioE202MatchingInvalid": 4, - "ResponsesScenarioE204MatchingNoModel": 4, - "ResponsesScenarioE400DefaultNoModel": 4, - "ResponsesScenarioE400DefaultInvalid": 4, - "ResponsesScenarioF200DefaultModel": 8, - "ResponsesScenarioF200DefaultNone": 8, - "ResponsesScenarioF400DefaultModel": 4, - "ResponsesScenarioF400DefaultNone": 4, - "ResponsesScenarioG200DefaultInvalid": 4, - "ResponsesScenarioG200DefaultNoModel": 4, - "ResponsesScenarioG400DefaultInvalid": 4, - "ResponsesScenarioG400DefaultNoModel": 4, - "ResponsesScenarioH200MatchingNone": 4, - "ResponsesScenarioH200MatchingModel": 4, - "ResponsesScenarioH200MatchingInvalid": 4, - "ResponsesScenarioH400NonMatchingNone": 4, - "ResponsesScenarioH400NonMatchingModel": 4, - "ResponsesScenarioH400NonMatchingInvalid": 4, - "ResponsesScenarioH202NonMatchingModel": 4, - "ResponsesScenarioEmptyErrorBody": 4, - "ResponsesScenarioNoModelErrorBody": 4, - "MediaTypeJson": 4, - "MediaTypePdf": 4, - "MediaTypeWithEncoding": 4, - "StorageListContainersXML": 4, - "StorageGetServicePropertiesXML": 4, - "StoragePutServicePropertiesXML": 4, - "StorageGetContainerACLXML": 4, - "StorageListBlobsXML": 4, - "StoragePutContainerACLXML": 4, - "GetSimpleXML": 4, - "PutSimpleXML": 4, - "GetWrappedXMLList": 4, - "PutWrappedXMLList": 4, - "GetEmptyXMLList": 4, - "PutEmptyXMLList": 4, - "GetEmptyWrappedXMLList": 4, - "PutEmptyWrappedXMLList": 4, - "GetXMLListAtRoot": 4, - "PutXMLListAtRoot": 4, - "GetXMLListAtRootSingle": 4, - "PutXMLListAtRootSingle": 4, - "GetEmptyXMLListAtRoot": 4, - "PutEmptyXMLListAtRoot": 4, - "GetXMLEmptyNode": 4, - "PutXMLEmptyNode": 4, - "GetRootWithRefAndNoMetaXML": 4, - "PutRootWithRefAndNoMetaXML": 4, - "GetRootWithRefAndMetaXML": 4, - "PutRootWithRefAndMetaXML": 4, - "jsonInputInXMLSwagger": 4, - "jsonOutputInXMLSwagger": 4, - "GetWithXMsText": 4, - "ObjectTypeResponse": 4, - "ObjectTypePut": 4, - "ObjectTypeErrorResponse": 4, - "NonStringEnumsPostInt": 4, - "NonStringEnumsGetInt": 4, - "NonStringEnumsPostFloat": 4, - "NonStringEnumsGetFloat": 4, - "BodyTimeGet": 4, - "BodyTimePut": 4, - "MultipleInheritancePetGet": 4, - "MultipleInheritancePetPut": 4, - "MultipleInheritanceHorseGet": 4, - "MultipleInheritanceHorsePut": 4, - "MultipleInheritanceFelineGet": 4, - "MultipleInheritanceFelinePut": 4, - "MultipleInheritanceCatGet": 4, - "MultipleInheritanceCatPut": 4, - "MultipleInheritanceKittenGet": 4, - "MultipleInheritanceKittenPut": 4, - "OptionalIntegerParameter": 4, - "OptionalIntegerProperty": 4, - "OptionalIntegerHeader": 4, - "OptionalStringParameter": 4, - "OptionalStringProperty": 4, - "OptionalStringHeader": 4, - "OptionalClassParameter": 4, - "OptionalClassProperty": 4, - "OptionalArrayParameter": 4, - "OptionalArrayProperty": 4, - "OptionalArrayHeader": 4 + "GetStringAsAnything": 21, + "PutStringAsAnything": 21, + "GetObjectAsAnything": 21, + "PutObjectAsAnything": 21, + "GetArrayAsAnything": 21, + "PutArrayAsAnything": 21, + "verifyIncorrectErrorParsing": 19, + "LLCRequiredToOptional": 0, + "MediaTypesAnalyzeBodyNoAcceptHeader": 0, + "verifyHost": 0, + "ImplicitOptionalBinaryBody": 19, + "ExplicitOptionalBinaryBody": 29, + "ExplicitRequiredBinaryBody": 21, + "OptionalImplicitBody": 24, + "GeneralOptional": 264, + "OptionalImplicitHeader": 24, + "OptionalImplicitQuery": 24, + "OptionalGlobalQuery": 24, + "getStringNull": 24, + "putStringNull": 24, + "getStringEmpty": 24, + "putStringEmpty": 24, + "getStringNotProvided": 24, + "getStringWithLeadingAndTrailingWhitespace": 24, + "putStringWithLeadingAndTrailingWhitespace": 24, + "getStringBase64UrlEncoded": 24, + "putStringBase64UrlEncoded": 24, + "getStringBase64Encoded": 24, + "getStringNullBase64UrlEncoding": 24, + "getStringMultiByteCharacters": 24, + "putStringMultiByteCharacters": 24, + "getEnumNotExpandable": 24, + "putEnumNotExpandable": 48, + "getEnumReferenced": 24, + "putEnumReferenced": 53, + "getEnumReferencedConstant": 24, + "putEnumReferencedConstant": 19, + "XmlGetBytes": 23, + "XmlPutBytes": 23, + "XmlGetUrl": 23, + "XmlPutUrl": 23, + "additionalPropertiesTrue": 26, + "additionalPropertiesSubclass": 26, + "additionalPropertiesTypeObject": 26, + "additionalPropertiesTypeString": 26, + "additionalPropertiesInProperties": 26, + "additionalPropertiesInPropertiesWithAPTypeString": 26, + "getArrayNull": 25, + "getArrayEmpty": 25, + "putArrayEmpty": 25, + "getArrayInvalid": 25, + "getArrayBooleanValid": 25, + "putArrayBooleanValid": 25, + "getArrayBooleanWithNull": 25, + "getArrayBooleanWithString": 25, + "getArrayIntegerValid": 25, + "putArrayIntegerValid": 25, + "getArrayIntegerWithNull": 25, + "getArrayIntegerWithString": 25, + "getArrayLongValid": 25, + "putArrayLongValid": 25, + "getArrayLongWithNull": 25, + "getArrayLongWithString": 25, + "getArrayFloatValid": 25, + "putArrayFloatValid": 25, + "getArrayFloatWithNull": 25, + "getArrayFloatWithString": 25, + "getArrayDoubleValid": 25, + "putArrayDoubleValid": 25, + "getArrayDoubleWithNull": 25, + "getArrayDoubleWithString": 25, + "getArrayStringValid": 25, + "putArrayStringValid": 25, + "getArrayEnumValid": 25, + "putArrayEnumValid": 25, + "getArrayStringEnumValid": 25, + "putArrayStringEnumValid": 25, + "getArrayStringWithNull": 25, + "getArrayStringWithNumber": 50, + "getArrayDateValid": 25, + "putArrayDateValid": 25, + "getArrayDateWithNull": 25, + "getArrayDateWithInvalidChars": 25, + "getArrayDateTimeValid": 25, + "putArrayDateTimeValid": 25, + "getArrayDateTimeWithNull": 25, + "getArrayDateTimeWithInvalidChars": 25, + "getArrayDateTimeRfc1123Valid": 25, + "putArrayDateTimeRfc1123Valid": 25, + "getArrayDurationValid": 25, + "putArrayDurationValid": 25, + "getArrayUuidValid": 25, + "getArrayUuidWithInvalidChars": 25, + "putArrayUuidValid": 25, + "getArrayByteValid": 25, + "putArrayByteValid": 25, + "getArrayByteWithNull": 25, + "getArrayArrayNull": 25, + "getArrayArrayEmpty": 25, + "getArrayArrayItemNull": 25, + "getArrayArrayItemEmpty": 25, + "getArrayArrayValid": 25, + "putArrayArrayValid": 25, + "getArrayComplexNull": 25, + "getArrayComplexEmpty": 25, + "getArrayComplexItemNull": 25, + "getArrayComplexItemEmpty": 25, + "getArrayComplexValid": 25, + "putArrayComplexValid": 25, + "getArrayDictionaryNull": 25, + "getArrayDictionaryEmpty": 25, + "getArrayDictionaryItemNull": 25, + "getArrayDictionaryItemEmpty": 25, + "getArrayDictionaryValid": 25, + "putArrayDictionaryValid": 25, + "getBoolTrue": 25, + "putBoolTrue": 25, + "getBoolFalse": 25, + "putBoolFalse": 25, + "getBoolInvalid": 25, + "getBoolNull": 25, + "getByteNull": 25, + "getByteEmpty": 25, + "getByteNonAscii": 25, + "putByteNonAscii": 25, + "getByteInvalid": 25, + "getDateNull": 25, + "getDateInvalid": 25, + "getDateOverflow": 25, + "getDateUnderflow": 25, + "getDateMax": 25, + "putDateMax": 25, + "getDateMin": 25, + "putDateMin": 25, + "getDateTimeNull": 25, + "getDateTimeInvalid": 25, + "getDateTimeOverflow": 25, + "getDateTimeUnderflow": 25, + "putDateTimeMaxUtc": 25, + "getDateTimeMaxUtcLowercase": 25, + "getDateTimeMaxUtcUppercase": 25, + "getDateTimeMaxLocalPositiveOffsetLowercase": 25, + "getDateTimeMaxLocalPositiveOffsetUppercase": 25, + "getDateTimeMaxLocalNegativeOffsetLowercase": 25, + "getDateTimeMaxLocalNegativeOffsetUppercase": 25, + "getDateTimeMinUtc": 25, + "putDateTimeMinUtc": 25, + "getDateTimeMinLocalPositiveOffset": 25, + "getDateTimeMinLocalNegativeOffset": 25, + "getDateTimeRfc1123Null": 25, + "getDateTimeRfc1123Invalid": 25, + "getDateTimeRfc1123Overflow": 25, + "getDateTimeRfc1123Underflow": 25, + "getDateTimeRfc1123MinUtc": 25, + "putDateTimeRfc1123Max": 25, + "putDateTimeRfc1123Min": 25, + "getDateTimeRfc1123MaxUtcLowercase": 25, + "getDateTimeRfc1123MaxUtcUppercase": 25, + "getIntegerNull": 24, + "getIntegerInvalid": 24, + "getIntegerOverflow": 24, + "getIntegerUnderflow": 24, + "getLongOverflow": 24, + "getLongUnderflow": 24, + "putIntegerMax": 24, + "putLongMax": 24, + "putIntegerMin": 24, + "putLongMin": 24, + "getNumberNull": 24, + "getFloatInvalid": 24, + "getDoubleInvalid": 24, + "getFloatBigScientificNotation": 24, + "putFloatBigScientificNotation": 24, + "getDoubleBigScientificNotation": 24, + "putDoubleBigScientificNotation": 24, + "getDoubleBigPositiveDecimal": 24, + "putDoubleBigPositiveDecimal": 24, + "getDoubleBigNegativeDecimal": 29, + "putDoubleBigNegativeDecimal": 19, + "getFloatSmallScientificNotation": 24, + "putFloatSmallScientificNotation": 24, + "getDoubleSmallScientificNotation": 24, + "putDoubleSmallScientificNotation": 24, + "putComplexBasicValid": 50, + "getComplexBasicValid": 25, + "getComplexBasicEmpty": 25, + "getComplexBasicNotProvided": 25, + "getComplexBasicNull": 25, + "getComplexBasicInvalid": 25, + "putComplexPrimitiveInteger": 25, + "putComplexPrimitiveLong": 25, + "putComplexPrimitiveFloat": 25, + "putComplexPrimitiveDouble": 25, + "putComplexPrimitiveBool": 25, + "putComplexPrimitiveString": 25, + "putComplexPrimitiveDate": 25, + "putComplexPrimitiveDateTime": 25, + "putComplexPrimitiveDateTimeRfc1123": 25, + "putComplexPrimitiveDuration": 25, + "putComplexPrimitiveByte": 25, + "getComplexPrimitiveInteger": 25, + "getComplexPrimitiveLong": 25, + "getComplexPrimitiveFloat": 25, + "getComplexPrimitiveDouble": 25, + "getComplexPrimitiveBool": 25, + "getComplexPrimitiveString": 25, + "getComplexPrimitiveDate": 25, + "getComplexPrimitiveDateTime": 25, + "getComplexPrimitiveDateTimeRfc1123": 25, + "getComplexPrimitiveDuration": 25, + "getComplexPrimitiveByte": 25, + "putComplexArrayValid": 25, + "putComplexArrayEmpty": 25, + "getComplexArrayValid": 25, + "getComplexArrayEmpty": 25, + "getComplexArrayNotProvided": 25, + "putComplexDictionaryValid": 25, + "putComplexDictionaryEmpty": 25, + "getComplexDictionaryValid": 25, + "getComplexDictionaryEmpty": 25, + "getComplexDictionaryNull": 25, + "getComplexDictionaryNotProvided": 25, + "putComplexInheritanceValid": 68, + "getComplexInheritanceValid": 97, + "putComplexPolymorphismValid": 25, + "getComplexPolymorphismValid": 25, + "putComplexPolymorphismComplicated": 25, + "getComplexPolymorphismComplicated": 25, + "putComplexPolymorphismNoDiscriminator": 25, + "putComplexPolymorphicRecursiveValid": 25, + "getComplexPolymorphicRecursiveValid": 25, + "putComplexReadOnlyPropertyValid": 25, + "getComplexReadOnlyPropertyValid": 25, + "UrlPathsBoolFalse": 24, + "UrlPathsBoolTrue": 24, + "UrlPathsIntPositive": 24, + "UrlPathsIntNegative": 24, + "UrlPathsLongPositive": 24, + "UrlPathsLongNegative": 24, + "UrlPathsFloatPositive": 24, + "UrlPathsFloatNegative": 24, + "UrlPathsDoublePositive": 24, + "UrlPathsDoubleNegative": 24, + "UrlPathsStringUrlEncoded": 24, + "UrlPathsStringUrlNonEncoded": 24, + "UrlPathsStringEmpty": 24, + "UrlPathsStringUnicode": 24, + "UrlPathsEnumValid": 24, + "UrlPathsByteMultiByte": 24, + "UrlPathsByteEmpty": 24, + "UrlPathsDateValid": 24, + "UrlPathsDateTimeValid": 24, + "UrlQueriesBoolFalse": 24, + "UrlQueriesBoolTrue": 24, + "UrlQueriesBoolNull": 24, + "UrlQueriesIntPositive": 24, + "UrlQueriesIntNegative": 24, + "UrlQueriesIntNull": 24, + "UrlQueriesLongPositive": 24, + "UrlQueriesLongNegative": 24, + "UrlQueriesLongNull": 24, + "UrlQueriesFloatPositive": 24, + "UrlQueriesFloatNegative": 24, + "UrlQueriesFloatNull": 24, + "UrlQueriesDoublePositive": 24, + "UrlQueriesDoubleNegative": 24, + "UrlQueriesDoubleNull": 24, + "UrlQueriesStringUrlEncoded": 24, + "UrlQueriesStringEmpty": 24, + "UrlQueriesStringNull": 24, + "UrlQueriesStringUnicode": 24, + "UrlQueriesEnumValid": 24, + "UrlQueriesEnumNull": 24, + "UrlQueriesByteMultiByte": 24, + "UrlQueriesByteEmpty": 24, + "UrlQueriesByteNull": 24, + "UrlQueriesDateValid": 24, + "UrlQueriesDateNull": 24, + "UrlQueriesDateTimeValid": 24, + "UrlQueriesDateTimeNull": 24, + "UrlQueriesArrayCsvNull": 24, + "UrlQueriesArrayCsvEmpty": 24, + "UrlQueriesArrayCsvValid": 24, + "UrlQueriesArrayMultiNull": 24, + "UrlQueriesArrayMultiEmpty": 24, + "UrlQueriesArrayMultiValid": 24, + "UrlQueriesArraySsvValid": 19, + "UrlQueriesArrayPipesValid": 19, + "UrlQueriesArrayTsvValid": 13, + "UrlQueriesArrayNoCollectionFormatValid": 24, + "UrlPathItemGetAll": 24, + "UrlPathItemGetGlobalNull": 24, + "UrlPathItemGetGlobalAndLocalNull": 24, + "UrlPathItemGetPathItemAndLocalNull": 24, + "putDictionaryEmpty": 25, + "getDictionaryNull": 25, + "getDictionaryEmpty": 25, + "getDictionaryInvalid": 25, + "getDictionaryNullValue": 25, + "getDictionaryNullkey": 25, + "getDictionaryKeyEmptyString": 25, + "getDictionaryBooleanValid": 25, + "getDictionaryBooleanWithNull": 25, + "getDictionaryBooleanWithString": 25, + "getDictionaryIntegerValid": 25, + "getDictionaryIntegerWithNull": 25, + "getDictionaryIntegerWithString": 25, + "getDictionaryLongValid": 25, + "getDictionaryLongWithNull": 25, + "getDictionaryLongWithString": 25, + "getDictionaryFloatValid": 25, + "getDictionaryFloatWithNull": 25, + "getDictionaryFloatWithString": 25, + "getDictionaryDoubleValid": 25, + "getDictionaryDoubleWithNull": 25, + "getDictionaryDoubleWithString": 25, + "getDictionaryStringValid": 25, + "getDictionaryStringWithNull": 25, + "getDictionaryStringWithNumber": 25, + "getDictionaryDateValid": 25, + "getDictionaryDateWithNull": 25, + "getDictionaryDateWithInvalidChars": 25, + "getDictionaryDateTimeValid": 25, + "getDictionaryDateTimeWithNull": 25, + "getDictionaryDateTimeWithInvalidChars": 25, + "getDictionaryDateTimeRfc1123Valid": 25, + "getDictionaryDurationValid": 25, + "getDictionaryByteValid": 25, + "getDictionaryByteWithNull": 25, + "putDictionaryBooleanValid": 25, + "putDictionaryIntegerValid": 25, + "putDictionaryLongValid": 25, + "putDictionaryFloatValid": 25, + "putDictionaryDoubleValid": 25, + "putDictionaryStringValid": 25, + "putDictionaryDateValid": 25, + "putDictionaryDateTimeValid": 25, + "putDictionaryDateTimeRfc1123Valid": 25, + "putDictionaryDurationValid": 25, + "putDictionaryByteValid": 25, + "getDictionaryComplexNull": 25, + "getDictionaryComplexEmpty": 25, + "getDictionaryComplexItemNull": 25, + "getDictionaryComplexItemEmpty": 25, + "getDictionaryComplexValid": 25, + "putDictionaryComplexValid": 25, + "getDictionaryArrayNull": 25, + "getDictionaryArrayEmpty": 25, + "getDictionaryArrayItemNull": 30, + "getDictionaryArrayItemEmpty": 20, + "getDictionaryArrayValid": 25, + "putDictionaryArrayValid": 25, + "getDictionaryDictionaryNull": 25, + "getDictionaryDictionaryEmpty": 25, + "getDictionaryDictionaryItemNull": 25, + "getDictionaryDictionaryItemEmpty": 25, + "getDictionaryDictionaryValid": 25, + "putDictionaryDictionaryValid": 25, + "putDurationPositive": 43, + "getDurationNull": 43, + "getDurationInvalid": 43, + "getDurationPositive": 43, + "HeaderParameterExistingKey": 24, + "HeaderResponseExistingKey": 24, + "HeaderResponseProtectedKey": 24, + "HeaderParameterIntegerPositive": 24, + "HeaderParameterIntegerNegative": 24, + "HeaderParameterLongPositive": 24, + "HeaderParameterLongNegative": 24, + "HeaderParameterFloatPositive": 24, + "HeaderParameterFloatNegative": 24, + "HeaderParameterDoublePositive": 24, + "HeaderParameterDoubleNegative": 24, + "HeaderParameterBoolTrue": 24, + "HeaderParameterBoolFalse": 24, + "HeaderParameterStringValid": 24, + "HeaderParameterStringNull": 24, + "HeaderParameterStringEmpty": 24, + "HeaderParameterDateValid": 24, + "HeaderParameterDateMin": 24, + "HeaderParameterDateTimeValid": 24, + "HeaderParameterDateTimeMin": 24, + "HeaderParameterDateTimeRfc1123Valid": 24, + "HeaderParameterDateTimeRfc1123Min": 24, + "HeaderParameterBytesValid": 24, + "HeaderParameterDurationValid": 24, + "HeaderResponseIntegerPositive": 24, + "HeaderResponseIntegerNegative": 24, + "HeaderResponseLongPositive": 24, + "HeaderResponseLongNegative": 24, + "HeaderResponseFloatPositive": 24, + "HeaderResponseFloatNegative": 24, + "HeaderResponseDoublePositive": 24, + "HeaderResponseDoubleNegative": 24, + "HeaderResponseBoolTrue": 24, + "HeaderResponseBoolFalse": 24, + "HeaderResponseStringValid": 24, + "HeaderResponseStringNull": 24, + "HeaderResponseStringEmpty": 24, + "HeaderParameterEnumValid": 48, + "HeaderParameterEnumNull": 24, + "HeaderResponseEnumValid": 24, + "HeaderResponseEnumNull": 24, + "HeaderResponseDateValid": 24, + "HeaderResponseDateMin": 24, + "HeaderResponseDateTimeValid": 24, + "HeaderResponseDateTimeMin": 24, + "HeaderResponseDateTimeRfc1123Valid": 24, + "HeaderResponseDateTimeRfc1123Min": 24, + "HeaderResponseBytesValid": 24, + "HeaderResponseDurationValid": 24, + "ConstantsInPath": 24, + "ConstantsInBody": 24, + "CustomBaseUri": 35, + "CustomBaseUriMoreOptions": 20, + "getModelFlattenArray": 19, + "putModelFlattenArray": 19, + "getModelFlattenDictionary": 19, + "putModelFlattenDictionary": 19, + "getModelFlattenResourceCollection": 19, + "putModelFlattenResourceCollection": 19, + "putModelFlattenCustomBase": 19, + "postModelFlattenCustomParameter": 19, + "putModelFlattenCustomGroupedParameter": 19, + "getArrayBase64Url": 30, + "getDictionaryBase64Url": 25, + "UrlPathsStringBase64Url": 24, + "UrlPathsArrayCSVInPath": 24, + "getUnixTime": 24, + "getInvalidUnixTime": 24, + "getNullUnixTime": 24, + "putUnixTime": 24, + "UrlPathsIntUnixTime": 24, + "expectedEnum": 25, + "unexpectedEnum": 25, + "allowedValueEnum": 25, + "roundTripEnum": 25, + "expectedNoErrors": 36, + "expectedPetSadError": 72, + "expectedPetHungryError": 18, + "intError": 18, + "stringError": 18, + "animalNotFoundError": 18, + "linkNotFoundError": 18, + "getDateTimeMinLocalNoOffset": 25, + "getComplexPolymorphismDotSyntax": 25, + "getComposedWithDiscriminator": 25, + "getComposedWithoutDiscriminator": 25, + "FileStreamNonempty": 68, + "FileStreamVeryLarge": 25, + "FileStreamEmpty": 44, + "HttpSuccess200Head": 60, + "HttpSuccess200Get": 24, + "HttpSuccess200Put": 24, + "HttpSuccess200Post": 24, + "HttpSuccess200Patch": 24, + "HttpSuccess200Delete": 24, + "HttpSuccess201Put": 24, + "HttpSuccess201Post": 24, + "HttpSuccess202Put": 24, + "HttpSuccess202Post": 24, + "HttpSuccess202Patch": 24, + "HttpSuccess202Delete": 24, + "HttpSuccess204Head": 60, + "HttpSuccess404Head": 60, + "HttpSuccess204Put": 24, + "HttpSuccess204Post": 24, + "HttpSuccess204Patch": 24, + "HttpSuccess204Delete": 24, + "HttpRedirect300Head": 24, + "HttpRedirect300Get": 24, + "HttpRedirect301Put": 24, + "HttpRedirect301Get": 24, + "HttpRedirect302Head": 24, + "HttpRedirect302Get": 24, + "HttpRedirect302Patch": 24, + "HttpRedirect303Post": 24, + "HttpRedirect307Head": 24, + "HttpRedirect307Get": 24, + "HttpRedirect307Put": 24, + "HttpRedirect307Post": 24, + "HttpRedirect307Patch": 24, + "HttpRedirect307Delete": 24, + "HttpRetry408Head": 24, + "HttpRetry500Put": 24, + "HttpRetry500Patch": 24, + "HttpRetry502Get": 24, + "HttpRetry503Post": 24, + "HttpRetry503Delete": 24, + "HttpRetry504Put": 24, + "HttpRetry504Patch": 24, + "HttpClientFailure400Head": 24, + "HttpClientFailure400Get": 24, + "HttpClientFailure400Put": 24, + "HttpClientFailure400Post": 24, + "HttpClientFailure400Patch": 24, + "HttpClientFailure400Delete": 24, + "HttpClientFailure401Head": 24, + "HttpClientFailure402Get": 24, + "HttpClientFailure403Get": 24, + "HttpClientFailure404Put": 24, + "HttpClientFailure405Patch": 24, + "HttpClientFailure406Post": 24, + "HttpClientFailure407Delete": 24, + "HttpClientFailure409Put": 24, + "HttpClientFailure410Head": 24, + "HttpClientFailure411Get": 24, + "HttpClientFailure412Get": 24, + "HttpClientFailure413Put": 24, + "HttpClientFailure414Patch": 24, + "HttpClientFailure415Post": 24, + "HttpClientFailure416Get": 24, + "HttpClientFailure417Delete": 24, + "HttpClientFailure429Head": 96, + "HttpServerFailure501Head": 24, + "HttpServerFailure501Get": 24, + "HttpServerFailure505Post": 24, + "HttpServerFailure505Delete": 24, + "ResponsesScenarioA200MatchingModel": 24, + "ResponsesScenarioA204MatchingNoModel": 24, + "ResponsesScenarioA201DefaultNoModel": 24, + "ResponsesScenarioA202DefaultNoModel": 24, + "ResponsesScenarioA400DefaultModel": 24, + "ResponsesScenarioB200MatchingModel": 24, + "ResponsesScenarioB201MatchingModel": 24, + "ResponsesScenarioB400DefaultModel": 24, + "ResponsesScenarioC200MatchingModel": 24, + "ResponsesScenarioC201MatchingModel": 24, + "ResponsesScenarioC404MatchingModel": 24, + "ResponsesScenarioC400DefaultModel": 24, + "ResponsesScenarioD202MatchingNoModel": 24, + "ResponsesScenarioD204MatchingNoModel": 24, + "ResponsesScenarioD400DefaultModel": 24, + "ResponsesScenarioE202MatchingInvalid": 24, + "ResponsesScenarioE204MatchingNoModel": 24, + "ResponsesScenarioE400DefaultNoModel": 24, + "ResponsesScenarioE400DefaultInvalid": 24, + "ResponsesScenarioF200DefaultModel": 48, + "ResponsesScenarioF200DefaultNone": 48, + "ResponsesScenarioF400DefaultModel": 19, + "ResponsesScenarioF400DefaultNone": 19, + "ResponsesScenarioG200DefaultInvalid": 29, + "ResponsesScenarioG200DefaultNoModel": 19, + "ResponsesScenarioG400DefaultInvalid": 24, + "ResponsesScenarioG400DefaultNoModel": 24, + "ResponsesScenarioH200MatchingNone": 24, + "ResponsesScenarioH200MatchingModel": 24, + "ResponsesScenarioH200MatchingInvalid": 24, + "ResponsesScenarioH400NonMatchingNone": 24, + "ResponsesScenarioH400NonMatchingModel": 24, + "ResponsesScenarioH400NonMatchingInvalid": 24, + "ResponsesScenarioH202NonMatchingModel": 24, + "ResponsesScenarioEmptyErrorBody": 24, + "ResponsesScenarioNoModelErrorBody": 24, + "MediaTypeJson": 24, + "MediaTypePdf": 24, + "MediaTypeWithEncoding": 24, + "StorageListContainersXML": 23, + "StorageGetServicePropertiesXML": 23, + "StoragePutServicePropertiesXML": 23, + "StorageGetContainerACLXML": 23, + "StorageListBlobsXML": 23, + "StoragePutContainerACLXML": 23, + "GetSimpleXML": 24, + "PutSimpleXML": 24, + "GetWrappedXMLList": 24, + "PutWrappedXMLList": 24, + "GetEmptyXMLList": 24, + "PutEmptyXMLList": 24, + "GetEmptyWrappedXMLList": 24, + "PutEmptyWrappedXMLList": 24, + "GetXMLListAtRoot": 24, + "PutXMLListAtRoot": 24, + "GetXMLListAtRootSingle": 24, + "PutXMLListAtRootSingle": 24, + "GetEmptyXMLListAtRoot": 29, + "PutEmptyXMLListAtRoot": 24, + "GetXMLEmptyNode": 24, + "PutXMLEmptyNode": 24, + "GetRootWithRefAndNoMetaXML": 24, + "PutRootWithRefAndNoMetaXML": 24, + "GetRootWithRefAndMetaXML": 23, + "PutRootWithRefAndMetaXML": 23, + "jsonInputInXMLSwagger": 24, + "jsonOutputInXMLSwagger": 24, + "GetWithXMsText": 23, + "ObjectTypeResponse": 24, + "ObjectTypePut": 24, + "ObjectTypeErrorResponse": 24, + "NonStringEnumsPostInt": 24, + "NonStringEnumsGetInt": 24, + "NonStringEnumsPostFloat": 24, + "NonStringEnumsGetFloat": 24, + "BodyTimeGet": 24, + "BodyTimePut": 24, + "MultipleInheritancePetGet": 24, + "MultipleInheritancePetPut": 24, + "MultipleInheritanceHorseGet": 24, + "MultipleInheritanceHorsePut": 24, + "MultipleInheritanceFelineGet": 24, + "MultipleInheritanceFelinePut": 24, + "MultipleInheritanceCatGet": 24, + "MultipleInheritanceCatPut": 24, + "MultipleInheritanceKittenGet": 24, + "MultipleInheritanceKittenPut": 24, + "OptionalIntegerParameter": 24, + "OptionalIntegerProperty": 24, + "OptionalIntegerHeader": 24, + "OptionalStringParameter": 24, + "OptionalStringProperty": 24, + "OptionalStringHeader": 24, + "OptionalClassParameter": 24, + "OptionalClassProperty": 24, + "OptionalArrayParameter": 24, + "OptionalArrayProperty": 24, + "OptionalArrayHeader": 24 } \ No newline at end of file From a42d3cb2aba9c3a319d0f47cca08f01569befc8a Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 27 Sep 2021 18:53:26 -0400 Subject: [PATCH 07/16] fix decode error tests --- .../low-level/AcceptanceTests/asynctests/test_file.py | 2 +- test/vanilla/low-level/AcceptanceTests/test_array.py | 3 +-- test/vanilla/low-level/AcceptanceTests/test_bool.py | 3 ++- .../low-level/AcceptanceTests/test_dictionary.py | 5 +++-- test/vanilla/low-level/AcceptanceTests/test_file.py | 2 +- test/vanilla/low-level/AcceptanceTests/test_integer.py | 7 +++++-- test/vanilla/low-level/AcceptanceTests/test_number.py | 10 +++++++--- .../AcceptanceTests/asynctests/test_file.py | 6 +++--- .../AcceptanceTests/asynctests/test_send_request.py | 2 +- .../version-tolerant/AcceptanceTests/test_file.py | 6 +++--- .../AcceptanceTests/test_send_request.py | 2 +- 11 files changed, 28 insertions(+), 20 deletions(-) diff --git a/test/vanilla/low-level/AcceptanceTests/asynctests/test_file.py b/test/vanilla/low-level/AcceptanceTests/asynctests/test_file.py index 43ebfccd282..d27ac682a1e 100644 --- a/test/vanilla/low-level/AcceptanceTests/asynctests/test_file.py +++ b/test/vanilla/low-level/AcceptanceTests/asynctests/test_file.py @@ -93,7 +93,7 @@ async def test_files_long_running(client): request = build_get_file_large_request() async with client.send_request(request, stream=True) as response: async for data in response.iter_bytes(): - assert 0 < len(data) <= response._connection_data_block_size + assert 0 < len(data) <= response.block_size file_length += len(data) assert file_length == 3000 * 1024 * 1024 diff --git a/test/vanilla/low-level/AcceptanceTests/test_array.py b/test/vanilla/low-level/AcceptanceTests/test_array.py index 95ca5b7cb14..928e04ba477 100644 --- a/test/vanilla/low-level/AcceptanceTests/test_array.py +++ b/test/vanilla/low-level/AcceptanceTests/test_array.py @@ -31,7 +31,6 @@ from bodyarraylowlevel.rest import array from azure.core.exceptions import DecodeError import msrest -from .utils import JSON_DECODE_ERROR import pytest @pytest.fixture @@ -270,7 +269,7 @@ def test_get_dictionary_and_dictionary_item_empty(send_request_json_response, li def test_array_get_invalid(send_request_json_response): request = array.build_get_invalid_request() - with pytest.raises(JSON_DECODE_ERROR): + with pytest.raises(DecodeError): send_request_json_response(request) def test_array_get_boolean_invalid_null(send_request_json_response): diff --git a/test/vanilla/low-level/AcceptanceTests/test_bool.py b/test/vanilla/low-level/AcceptanceTests/test_bool.py index 32083da9930..7f3a6fd1d40 100644 --- a/test/vanilla/low-level/AcceptanceTests/test_bool.py +++ b/test/vanilla/low-level/AcceptanceTests/test_bool.py @@ -67,4 +67,5 @@ def test_model_put_true(send_request): def test_model_get_invalid(send_request): request = bool.build_get_invalid_request() - assert send_request(request).text() == "true1" + with pytest.raises(DecodeError): + send_request(request) diff --git a/test/vanilla/low-level/AcceptanceTests/test_dictionary.py b/test/vanilla/low-level/AcceptanceTests/test_dictionary.py index 92a84572fd0..cae63239aae 100644 --- a/test/vanilla/low-level/AcceptanceTests/test_dictionary.py +++ b/test/vanilla/low-level/AcceptanceTests/test_dictionary.py @@ -28,6 +28,7 @@ from datetime import timedelta from bodydictionarylowlevel.rest import dictionary from bodydictionarylowlevel import AutoRestSwaggerBATDictionaryService +from azure.core.exceptions import DecodeError from .utils import JSON_DECODE_ERROR import pytest @@ -279,14 +280,14 @@ def test_get_null_and_invalid(send_request, send_request_json_response): assert send_request(request).text() == '' request = dictionary.build_get_invalid_request() - with pytest.raises(JSON_DECODE_ERROR): + with pytest.raises(DecodeError): send_request_json_response(request) def test_get_null_key_and_value(send_request, send_request_json_response): # {null:"val1"} is not standard JSON format. C# might work and expects this test to pass, # but we fail and we're happy with it. request = dictionary.build_get_null_key_request() - with pytest.raises(JSON_DECODE_ERROR): + with pytest.raises(DecodeError): send_request_json_response(request) request = dictionary.build_get_null_value_request() diff --git a/test/vanilla/low-level/AcceptanceTests/test_file.py b/test/vanilla/low-level/AcceptanceTests/test_file.py index 666795b9afa..2b189a82395 100644 --- a/test/vanilla/low-level/AcceptanceTests/test_file.py +++ b/test/vanilla/low-level/AcceptanceTests/test_file.py @@ -85,7 +85,7 @@ def test_files_long_running(client): request = files.build_get_file_large_request() with client.send_request(request, stream=True) as response: for data in response.iter_bytes(): - assert 0 < len(data) <= response._connection_data_block_size + assert 0 < len(data) <= response.block_size file_length += len(data) assert file_length == 3000 * 1024 * 1024 diff --git a/test/vanilla/low-level/AcceptanceTests/test_integer.py b/test/vanilla/low-level/AcceptanceTests/test_integer.py index 586a7ccc733..5ed0d1bdd26 100644 --- a/test/vanilla/low-level/AcceptanceTests/test_integer.py +++ b/test/vanilla/low-level/AcceptanceTests/test_integer.py @@ -26,6 +26,7 @@ import datetime from bodyintegerlowlevel import AutoRestIntegerTestService from bodyintegerlowlevel.rest import int as int_rest +from azure.core.exceptions import DecodeError import pytest import calendar @@ -80,7 +81,8 @@ def test_get_null_and_invalid(send_request): send_request(request) request = int_rest.build_get_invalid_request() - assert send_request(request).text() == '123jkl' + with pytest.raises(DecodeError): + send_request(request) def test_get_overflow(send_request): # Testserver excepts these to fail, but they won't in Python and it's ok. @@ -113,4 +115,5 @@ def test_get_null_and_invalid_unix_time(send_request): assert send_request(request).text() == '' request = int_rest.build_get_invalid_unix_time_request() - assert send_request(request).text() == '123jkl' + with pytest.raises(DecodeError): + send_request(request) diff --git a/test/vanilla/low-level/AcceptanceTests/test_number.py b/test/vanilla/low-level/AcceptanceTests/test_number.py index 96887dde456..92728f83d37 100644 --- a/test/vanilla/low-level/AcceptanceTests/test_number.py +++ b/test/vanilla/low-level/AcceptanceTests/test_number.py @@ -25,6 +25,7 @@ # -------------------------------------------------------------------------- from decimal import Decimal +from azure.core.exceptions import DecodeError import pytest from bodynumberlowlevel import AutoRestNumberTestService @@ -124,12 +125,15 @@ def test_get_null(send_request): def test_get_invalid_decimal(send_request): request = number.build_get_invalid_decimal_request() - assert send_request(request).text() == '9223372036854775910.980089k' + with pytest.raises(DecodeError): + send_request(request) def test_get_invalid_double(send_request): request = number.build_get_invalid_double_request() - assert send_request(request).text() == '9223372036854775910.980089k' + with pytest.raises(DecodeError): + send_request(request) def test_get_invalid_float(send_request): request = number.build_get_invalid_float_request() - assert send_request(request).text() == '2147483656.090096789909j' + with pytest.raises(DecodeError): + send_request(request) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_file.py b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_file.py index 598e85415d5..81fbd2386bd 100644 --- a/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_file.py +++ b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_file.py @@ -59,7 +59,7 @@ async def test_get_file(client): assert not stream._internal_response._released async for data in stream.iter_bytes(): - assert 0 < len(data) <= stream._connection_data_block_size + assert 0 < len(data) <= stream.block_size file_length += len(data) file_handle.write(data) @@ -93,7 +93,7 @@ async def test_files_long_running(client): file_length = 0 stream = await client.files.get_file_large() async for data in stream.iter_raw(): - assert 0 < len(data) <= stream._connection_data_block_size + assert 0 < len(data) <= stream.block_size file_length += len(data) assert file_length == 3000 * 1024 * 1024 @@ -105,7 +105,7 @@ async def test_get_file_with_callback(client, callback): with io.BytesIO() as file_handle: stream = await client.files.get_file(cls=callback) async for data in stream.iter_raw(): - assert 0 < len(data) <= stream._connection_data_block_size + assert 0 < len(data) <= stream.block_size file_length += len(data) file_handle.write(data) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_send_request.py b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_send_request.py index b9a728a48ec..5167f064a1a 100644 --- a/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_send_request.py +++ b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_send_request.py @@ -131,7 +131,7 @@ async def test_send_request_get_stream(): assert not response._internal_response._released async for data in response.iter_bytes(): - assert 0 < len(data) <= response._connection_data_block_size + assert 0 < len(data) <= response.block_size file_length += len(data) file_handle.write(data) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/test_file.py b/test/vanilla/version-tolerant/AcceptanceTests/test_file.py index 4b8ddff38de..846458c0a1b 100644 --- a/test/vanilla/version-tolerant/AcceptanceTests/test_file.py +++ b/test/vanilla/version-tolerant/AcceptanceTests/test_file.py @@ -54,7 +54,7 @@ def test_get_file(client): assert not stream._internal_response._content_consumed for data in stream.iter_bytes(): - assert 0 < len(data) <= stream._connection_data_block_size + assert 0 < len(data) <= stream.block_size file_length += len(data) file_handle.write(data) @@ -86,7 +86,7 @@ def test_files_long_running(client): file_length = 0 stream = client.files.get_file_large() for data in stream.iter_raw(): - assert 0 < len(data) <= stream._connection_data_block_size + assert 0 < len(data) <= stream.block_size file_length += len(data) assert file_length == 3000 * 1024 * 1024 @@ -97,7 +97,7 @@ def test_get_file_with_callback(client, callback): with io.BytesIO() as file_handle: stream = client.files.get_file(cls=callback) for data in stream.iter_raw(): - assert 0 < len(data) <= stream._connection_data_block_size + assert 0 < len(data) <= stream.block_size file_length += len(data) file_handle.write(data) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/test_send_request.py b/test/vanilla/version-tolerant/AcceptanceTests/test_send_request.py index 18dd56d6e8d..4504f398c75 100644 --- a/test/vanilla/version-tolerant/AcceptanceTests/test_send_request.py +++ b/test/vanilla/version-tolerant/AcceptanceTests/test_send_request.py @@ -126,7 +126,7 @@ def test_send_request_get_stream(): assert not response._internal_response._content_consumed for data in response.iter_bytes(): - assert 0 < len(data) <= response._connection_data_block_size + assert 0 < len(data) <= response.block_size file_length += len(data) file_handle.write(data) From 62cb328e391fe427e0ce78ebbc8a71f10ee42cc6 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 27 Sep 2021 18:59:49 -0400 Subject: [PATCH 08/16] get rid of regeneration --- eng/pipelines/ci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/eng/pipelines/ci.yml b/eng/pipelines/ci.yml index d399f810672..32ccf808fa2 100644 --- a/eng/pipelines/ci.yml +++ b/eng/pipelines/ci.yml @@ -65,14 +65,6 @@ jobs: - script: | pytest test/unittests displayName: 'Unit tests' - - script: | - inv regenerate - displayName: 'Regenerate Code' - - script: | - git add -A # 'add' first so 'diff' includes untracked files - git diff --staged -w - displayName: 'Diff regeneration' - - task: UsePythonVersion@0 displayName: 'Use Python $(PythonVersion)' inputs: From 50d4f9aff528df2afb2921e3be794af49d3ec5d9 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 28 Sep 2021 11:47:12 -0400 Subject: [PATCH 09/16] regenerate and remove convert_request --- .../AcceptanceTests/asynctests/test_lro.py | 9 - .../bodycomplexpython3only/__init__.py} | 18 +- .../_auto_rest_complex_test_service.py | 126 ++ .../bodycomplexpython3only/_configuration.py | 50 + .../bodycomplexpython3only/_version.py | 9 + .../bodycomplexpython3only/aio/__init__.py | 11 + .../aio/_auto_rest_complex_test_service.py | 109 ++ .../aio/_configuration.py | 40 + .../aio/operations/__init__.py | 29 + .../aio/operations/_array_operations.py | 20 +- .../aio/operations/_basic_operations.py | 24 +- .../aio/operations/_dictionary_operations.py | 24 +- .../operations/_flattencomplex_operations.py | 4 +- .../aio/operations/_inheritance_operations.py | 8 +- .../_polymorphicrecursive_operations.py | 8 +- .../operations/_polymorphism_operations.py | 36 +- .../aio/operations/_primitive_operations.py | 88 +- .../_readonlyproperty_operations.py | 8 +- .../bodycomplexpython3only/models/__init__.py | 85 ++ .../_auto_rest_complex_test_service_enums.py | 36 + .../models/_models_py3.py | 1280 +++++++++++++++++ .../operations/__init__.py | 29 + .../operations/_array_operations_py3.py | 10 +- .../operations/_basic_operations_py3.py | 12 +- .../operations/_dictionary_operations_py3.py | 12 +- .../_flattencomplex_operations_py3.py | 2 +- .../operations/_inheritance_operations_py3.py | 4 +- .../_polymorphicrecursive_operations_py3.py | 4 +- .../_polymorphism_operations_py3.py | 18 +- .../operations/_primitive_operations_py3.py | 44 +- .../_readonlyproperty_operations_py3.py | 4 +- .../bodycomplexpython3only/py.typed | 1 + .../BodyComplexPythonThreeOnly/setup.py | 37 + 33 files changed, 1963 insertions(+), 236 deletions(-) rename test/{azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_vendor.py => vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/__init__.py} (58%) create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/py.typed create mode 100644 test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py diff --git a/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py index 98c3b844f91..b850e1cd026 100644 --- a/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py +++ b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py @@ -105,15 +105,6 @@ def _callback(pipeline_response): return None return _callback -def _convert_request(new_request): - return HttpRequest( - new_request.method, - new_request.url, - headers=new_request.headers, - files=new_request._files, - data=new_request._data - ) - @pytest.fixture def get_poller(get_long_running_output, client): diff --git a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_vendor.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/__init__.py similarity index 58% rename from test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_vendor.py rename to test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/__init__.py index 0dafe0e287f..0a4e9592113 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_vendor.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/__init__.py @@ -1,3 +1,4 @@ +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. @@ -5,12 +6,15 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest +from ._auto_rest_complex_test_service import AutoRestComplexTestService +from ._version import VERSION +__version__ = VERSION +__all__ = ["AutoRestComplexTestService"] -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request +try: + from ._patch import patch_sdk # type: ignore + + patch_sdk() +except ImportError: + pass 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 new file mode 100644 index 00000000000..be30ea16f1c --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_auto_rest_complex_test_service.py @@ -0,0 +1,126 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from copy import deepcopy +from typing import TYPE_CHECKING + +from azure.core import PipelineClient +from msrest import Deserializer, Serializer + +from . import models +from ._configuration import AutoRestComplexTestServiceConfiguration +from .operations import ( + ArrayOperations, + BasicOperations, + DictionaryOperations, + FlattencomplexOperations, + InheritanceOperations, + PolymorphicrecursiveOperations, + PolymorphismOperations, + PrimitiveOperations, + ReadonlypropertyOperations, +) + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.rest import HttpRequest, HttpResponse + + +class AutoRestComplexTestService(object): + """Test Infrastructure for AutoRest. + + :ivar basic: BasicOperations operations + :vartype basic: bodycomplexpython3only.operations.BasicOperations + :ivar primitive: PrimitiveOperations operations + :vartype primitive: bodycomplexpython3only.operations.PrimitiveOperations + :ivar array: ArrayOperations operations + :vartype array: bodycomplexpython3only.operations.ArrayOperations + :ivar dictionary: DictionaryOperations operations + :vartype dictionary: bodycomplexpython3only.operations.DictionaryOperations + :ivar inheritance: InheritanceOperations operations + :vartype inheritance: bodycomplexpython3only.operations.InheritanceOperations + :ivar polymorphism: PolymorphismOperations operations + :vartype polymorphism: bodycomplexpython3only.operations.PolymorphismOperations + :ivar polymorphicrecursive: PolymorphicrecursiveOperations operations + :vartype polymorphicrecursive: bodycomplexpython3only.operations.PolymorphicrecursiveOperations + :ivar readonlyproperty: ReadonlypropertyOperations operations + :vartype readonlyproperty: bodycomplexpython3only.operations.ReadonlypropertyOperations + :ivar flattencomplex: FlattencomplexOperations operations + :vartype flattencomplex: bodycomplexpython3only.operations.FlattencomplexOperations + :param base_url: Service URL. Default value is 'http://localhost:3000'. + :type base_url: str + """ + + def __init__( + self, + base_url="http://localhost:3000", # type: str + **kwargs # type: Any + ): + # type: (...) -> None + self._config = AutoRestComplexTestServiceConfiguration(**kwargs) + self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False + self.basic = BasicOperations(self._client, self._config, self._serialize, self._deserialize) + self.primitive = PrimitiveOperations(self._client, self._config, self._serialize, self._deserialize) + self.array = ArrayOperations(self._client, self._config, self._serialize, self._deserialize) + self.dictionary = DictionaryOperations(self._client, self._config, self._serialize, self._deserialize) + self.inheritance = InheritanceOperations(self._client, self._config, self._serialize, self._deserialize) + self.polymorphism = PolymorphismOperations(self._client, self._config, self._serialize, self._deserialize) + self.polymorphicrecursive = PolymorphicrecursiveOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.readonlyproperty = ReadonlypropertyOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.flattencomplex = FlattencomplexOperations(self._client, self._config, self._serialize, self._deserialize) + + def _send_request( + self, + request, # type: HttpRequest + **kwargs # type: Any + ): + # type: (...) -> HttpResponse + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.HttpResponse + """ + + request_copy = deepcopy(request) + request_copy.url = self._client.format_url(request_copy.url) + return self._client.send_request(request_copy, **kwargs) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> AutoRestComplexTestService + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py new file mode 100644 index 00000000000..d2d74ac5b9d --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_configuration.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + +class AutoRestComplexTestServiceConfiguration(Configuration): + """Configuration for AutoRestComplexTestService. + + Note that all parameters used to create this instance are saved as instance + attributes. + """ + + def __init__( + self, **kwargs # type: Any + ): + # type: (...) -> None + super(AutoRestComplexTestServiceConfiguration, self).__init__(**kwargs) + + self.api_version = "2016-02-29" + kwargs.setdefault("sdk_moniker", "bodycomplexpython3only/{}".format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get("http_logging_policy") or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get("authentication_policy") diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py new file mode 100644 index 00000000000..eae7c95b6fb --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/_version.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +VERSION = "0.1.0" diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py new file mode 100644 index 00000000000..6d4a74e4674 --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/__init__.py @@ -0,0 +1,11 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._auto_rest_complex_test_service import AutoRestComplexTestService + +__all__ = ["AutoRestComplexTestService"] 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 new file mode 100644 index 00000000000..fa26e3d2ad7 --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_auto_rest_complex_test_service.py @@ -0,0 +1,109 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from copy import deepcopy +from typing import Any, Awaitable, Optional + +from azure.core import AsyncPipelineClient +from azure.core.rest import AsyncHttpResponse, HttpRequest +from msrest import Deserializer, Serializer + +from .. import models +from ._configuration import AutoRestComplexTestServiceConfiguration +from .operations import ( + ArrayOperations, + BasicOperations, + DictionaryOperations, + FlattencomplexOperations, + InheritanceOperations, + PolymorphicrecursiveOperations, + PolymorphismOperations, + PrimitiveOperations, + ReadonlypropertyOperations, +) + + +class AutoRestComplexTestService: + """Test Infrastructure for AutoRest. + + :ivar basic: BasicOperations operations + :vartype basic: bodycomplexpython3only.aio.operations.BasicOperations + :ivar primitive: PrimitiveOperations operations + :vartype primitive: bodycomplexpython3only.aio.operations.PrimitiveOperations + :ivar array: ArrayOperations operations + :vartype array: bodycomplexpython3only.aio.operations.ArrayOperations + :ivar dictionary: DictionaryOperations operations + :vartype dictionary: bodycomplexpython3only.aio.operations.DictionaryOperations + :ivar inheritance: InheritanceOperations operations + :vartype inheritance: bodycomplexpython3only.aio.operations.InheritanceOperations + :ivar polymorphism: PolymorphismOperations operations + :vartype polymorphism: bodycomplexpython3only.aio.operations.PolymorphismOperations + :ivar polymorphicrecursive: PolymorphicrecursiveOperations operations + :vartype polymorphicrecursive: + bodycomplexpython3only.aio.operations.PolymorphicrecursiveOperations + :ivar readonlyproperty: ReadonlypropertyOperations operations + :vartype readonlyproperty: bodycomplexpython3only.aio.operations.ReadonlypropertyOperations + :ivar flattencomplex: FlattencomplexOperations operations + :vartype flattencomplex: bodycomplexpython3only.aio.operations.FlattencomplexOperations + :param base_url: Service URL. Default value is 'http://localhost:3000'. + :type base_url: str + """ + + def __init__(self, base_url: str = "http://localhost:3000", **kwargs: Any) -> None: + self._config = AutoRestComplexTestServiceConfiguration(**kwargs) + self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False + self.basic = BasicOperations(self._client, self._config, self._serialize, self._deserialize) + self.primitive = PrimitiveOperations(self._client, self._config, self._serialize, self._deserialize) + self.array = ArrayOperations(self._client, self._config, self._serialize, self._deserialize) + self.dictionary = DictionaryOperations(self._client, self._config, self._serialize, self._deserialize) + self.inheritance = InheritanceOperations(self._client, self._config, self._serialize, self._deserialize) + self.polymorphism = PolymorphismOperations(self._client, self._config, self._serialize, self._deserialize) + self.polymorphicrecursive = PolymorphicrecursiveOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.readonlyproperty = ReadonlypropertyOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.flattencomplex = FlattencomplexOperations(self._client, self._config, self._serialize, self._deserialize) + + def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = await client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.AsyncHttpResponse + """ + + request_copy = deepcopy(request) + request_copy.url = self._client.format_url(request_copy.url) + return self._client.send_request(request_copy, **kwargs) + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "AutoRestComplexTestService": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py new file mode 100644 index 00000000000..250912941b0 --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/_configuration.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +from .._version import VERSION + + +class AutoRestComplexTestServiceConfiguration(Configuration): + """Configuration for AutoRestComplexTestService. + + Note that all parameters used to create this instance are saved as instance + attributes. + """ + + def __init__(self, **kwargs: Any) -> None: + super(AutoRestComplexTestServiceConfiguration, self).__init__(**kwargs) + + self.api_version = "2016-02-29" + kwargs.setdefault("sdk_moniker", "bodycomplexpython3only/{}".format(VERSION)) + self._configure(**kwargs) + + def _configure(self, **kwargs: Any) -> None: + self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get("http_logging_policy") or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get("authentication_policy") diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py new file mode 100644 index 00000000000..a367b382d8d --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/aio/operations/__init__.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._basic_operations_py3 import BasicOperations +from ._primitive_operations_py3 import PrimitiveOperations +from ._array_operations_py3 import ArrayOperations +from ._dictionary_operations_py3 import DictionaryOperations +from ._inheritance_operations_py3 import InheritanceOperations +from ._polymorphism_operations_py3 import PolymorphismOperations +from ._polymorphicrecursive_operations_py3 import PolymorphicrecursiveOperations +from ._readonlyproperty_operations_py3 import ReadonlypropertyOperations +from ._flattencomplex_operations_py3 import FlattencomplexOperations + +__all__ = [ + "BasicOperations", + "PrimitiveOperations", + "ArrayOperations", + "DictionaryOperations", + "InheritanceOperations", + "PolymorphismOperations", + "PolymorphicrecursiveOperations", + "ReadonlypropertyOperations", + "FlattencomplexOperations", +] 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 db5a91bf0b1..2d39c38f440 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 @@ -76,9 +76,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -123,9 +121,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -157,9 +153,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -204,9 +198,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -238,9 +230,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 9e47d5c8973..f8bd2944c2d 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 @@ -77,9 +77,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -123,9 +121,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -157,9 +153,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -195,9 +189,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -233,9 +225,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -271,9 +261,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 cac3d69817b..9b838bf4c4c 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 @@ -77,9 +77,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -124,9 +122,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -158,9 +154,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -205,9 +199,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -239,9 +231,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -277,9 +267,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 78da8f4c817..401d9d538a8 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 @@ -70,9 +70,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 bacd5555ed3..7deb8ad455e 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 @@ -70,9 +70,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -118,9 +116,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 130deeb3b64..257a027b689 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 @@ -70,9 +70,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -168,9 +166,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 2a526e4bde3..65ceaaad9e8 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 @@ -80,9 +80,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -158,9 +156,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -192,9 +188,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -232,9 +226,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -272,9 +264,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -311,9 +301,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -358,9 +346,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -400,9 +386,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -473,9 +457,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 c0cc1869708..f80c6e1353e 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 @@ -94,9 +94,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -140,9 +138,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -174,9 +170,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -220,9 +214,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -254,9 +246,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -300,9 +290,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -334,9 +322,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -381,9 +367,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -415,9 +399,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -461,9 +443,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -495,9 +475,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -541,9 +519,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -575,9 +551,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -621,9 +595,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -655,9 +627,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -701,9 +671,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -735,9 +703,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -782,9 +748,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -816,9 +780,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -863,9 +825,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -897,9 +857,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -944,9 +902,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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 a368851fa78..e4b9374be11 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 @@ -70,9 +70,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -117,9 +115,7 @@ 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.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(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/models/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py new file mode 100644 index 00000000000..b2aada57e11 --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/__init__.py @@ -0,0 +1,85 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._models_py3 import ArrayWrapper +from ._models_py3 import Basic +from ._models_py3 import BooleanWrapper +from ._models_py3 import ByteWrapper +from ._models_py3 import Cat +from ._models_py3 import Cookiecuttershark +from ._models_py3 import DateWrapper +from ._models_py3 import DatetimeWrapper +from ._models_py3 import Datetimerfc1123Wrapper +from ._models_py3 import DictionaryWrapper +from ._models_py3 import Dog +from ._models_py3 import DotFish +from ._models_py3 import DotFishMarket +from ._models_py3 import DotSalmon +from ._models_py3 import DoubleWrapper +from ._models_py3 import DurationWrapper +from ._models_py3 import Error +from ._models_py3 import Fish +from ._models_py3 import FloatWrapper +from ._models_py3 import Goblinshark +from ._models_py3 import IntWrapper +from ._models_py3 import LongWrapper +from ._models_py3 import MyBaseType +from ._models_py3 import MyDerivedType +from ._models_py3 import Pet +from ._models_py3 import ReadonlyObj +from ._models_py3 import Salmon +from ._models_py3 import Sawshark +from ._models_py3 import Shark +from ._models_py3 import Siamese +from ._models_py3 import SmartSalmon +from ._models_py3 import StringWrapper + + +from ._auto_rest_complex_test_service_enums import ( + CMYKColors, + GoblinSharkColor, + MyKind, +) + +__all__ = [ + "ArrayWrapper", + "Basic", + "BooleanWrapper", + "ByteWrapper", + "Cat", + "Cookiecuttershark", + "DateWrapper", + "DatetimeWrapper", + "Datetimerfc1123Wrapper", + "DictionaryWrapper", + "Dog", + "DotFish", + "DotFishMarket", + "DotSalmon", + "DoubleWrapper", + "DurationWrapper", + "Error", + "Fish", + "FloatWrapper", + "Goblinshark", + "IntWrapper", + "LongWrapper", + "MyBaseType", + "MyDerivedType", + "Pet", + "ReadonlyObj", + "Salmon", + "Sawshark", + "Shark", + "Siamese", + "SmartSalmon", + "StringWrapper", + "CMYKColors", + "GoblinSharkColor", + "MyKind", +] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py new file mode 100644 index 00000000000..dd6d79768e0 --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_auto_rest_complex_test_service_enums.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum +from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta + + +class CMYKColors(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + + CYAN = "cyan" + MAGENTA = "Magenta" + YELLOW = "YELLOW" + BLAC_K = "blacK" + + +class GoblinSharkColor(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Colors possible""" + + PINK = "pink" + GRAY = "gray" + BROWN = "brown" + #: Uppercase RED. + UPPER_RED = "RED" + #: Lowercase RED. + LOWER_RED = "red" + + +class MyKind(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + + KIND1 = "Kind1" diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py new file mode 100644 index 00000000000..d30cba23c88 --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/models/_models_py3.py @@ -0,0 +1,1280 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +import datetime +from typing import Any, Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + +from ._auto_rest_complex_test_service_enums import * + + +class ArrayWrapper(msrest.serialization.Model): + """ArrayWrapper. + + :ivar array: + :vartype array: list[str] + """ + + _attribute_map = { + "array": {"key": "array", "type": "[str]"}, + } + + def __init__(self, *, array: Optional[List[str]] = None, **kwargs): + """ + :keyword array: + :paramtype array: list[str] + """ + super(ArrayWrapper, self).__init__(**kwargs) + self.array = array + + +class Basic(msrest.serialization.Model): + """Basic. + + :ivar id: Basic Id. + :vartype id: int + :ivar name: Name property with a very long description that does not fit on a single line and a + line break. + :vartype name: str + :ivar color: Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + :vartype color: str or ~bodycomplexpython3only.models.CMYKColors + """ + + _attribute_map = { + "id": {"key": "id", "type": "int"}, + "name": {"key": "name", "type": "str"}, + "color": {"key": "color", "type": "str"}, + } + + def __init__( + self, + *, + id: Optional[int] = None, + name: Optional[str] = None, + color: Optional[Union[str, "CMYKColors"]] = None, + **kwargs + ): + """ + :keyword id: Basic Id. + :paramtype id: int + :keyword name: Name property with a very long description that does not fit on a single line + and a line break. + :paramtype name: str + :keyword color: Possible values include: "cyan", "Magenta", "YELLOW", "blacK". + :paramtype color: str or ~bodycomplexpython3only.models.CMYKColors + """ + super(Basic, self).__init__(**kwargs) + self.id = id + self.name = name + self.color = color + + +class BooleanWrapper(msrest.serialization.Model): + """BooleanWrapper. + + :ivar field_true: + :vartype field_true: bool + :ivar field_false: + :vartype field_false: bool + """ + + _attribute_map = { + "field_true": {"key": "field_true", "type": "bool"}, + "field_false": {"key": "field_false", "type": "bool"}, + } + + def __init__(self, *, field_true: Optional[bool] = None, field_false: Optional[bool] = None, **kwargs): + """ + :keyword field_true: + :paramtype field_true: bool + :keyword field_false: + :paramtype field_false: bool + """ + super(BooleanWrapper, self).__init__(**kwargs) + self.field_true = field_true + self.field_false = field_false + + +class ByteWrapper(msrest.serialization.Model): + """ByteWrapper. + + :ivar field: + :vartype field: bytearray + """ + + _attribute_map = { + "field": {"key": "field", "type": "bytearray"}, + } + + def __init__(self, *, field: Optional[bytearray] = None, **kwargs): + """ + :keyword field: + :paramtype field: bytearray + """ + super(ByteWrapper, self).__init__(**kwargs) + self.field = field + + +class Pet(msrest.serialization.Model): + """Pet. + + :ivar id: + :vartype id: int + :ivar name: + :vartype name: str + """ + + _attribute_map = { + "id": {"key": "id", "type": "int"}, + "name": {"key": "name", "type": "str"}, + } + + def __init__(self, *, id: Optional[int] = None, name: Optional[str] = None, **kwargs): + """ + :keyword id: + :paramtype id: int + :keyword name: + :paramtype name: str + """ + super(Pet, self).__init__(**kwargs) + self.id = id + self.name = name + + +class Cat(Pet): + """Cat. + + :ivar id: + :vartype id: int + :ivar name: + :vartype name: str + :ivar color: + :vartype color: str + :ivar hates: + :vartype hates: list[~bodycomplexpython3only.models.Dog] + """ + + _attribute_map = { + "id": {"key": "id", "type": "int"}, + "name": {"key": "name", "type": "str"}, + "color": {"key": "color", "type": "str"}, + "hates": {"key": "hates", "type": "[Dog]"}, + } + + def __init__( + self, + *, + id: Optional[int] = None, + name: Optional[str] = None, + color: Optional[str] = None, + hates: Optional[List["Dog"]] = None, + **kwargs + ): + """ + :keyword id: + :paramtype id: int + :keyword name: + :paramtype name: str + :keyword color: + :paramtype color: str + :keyword hates: + :paramtype hates: list[~bodycomplexpython3only.models.Dog] + """ + super(Cat, self).__init__(id=id, name=name, **kwargs) + self.color = color + self.hates = hates + + +class Fish(msrest.serialization.Model): + """Fish. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Salmon, Shark. + + All required parameters must be populated in order to send to Azure. + + :ivar fishtype: Required. Constant filled by server. + :vartype fishtype: str + :ivar species: + :vartype species: str + :ivar length: Required. + :vartype length: float + :ivar siblings: + :vartype siblings: list[~bodycomplexpython3only.models.Fish] + """ + + _validation = { + "fishtype": {"required": True}, + "length": {"required": True}, + } + + _attribute_map = { + "fishtype": {"key": "fishtype", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "length": {"key": "length", "type": "float"}, + "siblings": {"key": "siblings", "type": "[Fish]"}, + } + + _subtype_map = {"fishtype": {"salmon": "Salmon", "shark": "Shark"}} + + def __init__( + self, *, length: float, species: Optional[str] = None, siblings: Optional[List["Fish"]] = None, **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword length: Required. + :paramtype length: float + :keyword siblings: + :paramtype siblings: list[~bodycomplexpython3only.models.Fish] + """ + super(Fish, self).__init__(**kwargs) + self.fishtype = None # type: Optional[str] + self.species = species + self.length = length + self.siblings = siblings + + +class Shark(Fish): + """Shark. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Cookiecuttershark, Goblinshark, Sawshark. + + All required parameters must be populated in order to send to Azure. + + :ivar fishtype: Required. Constant filled by server. + :vartype fishtype: str + :ivar species: + :vartype species: str + :ivar length: Required. + :vartype length: float + :ivar siblings: + :vartype siblings: list[~bodycomplexpython3only.models.Fish] + :ivar age: + :vartype age: int + :ivar birthday: Required. + :vartype birthday: ~datetime.datetime + """ + + _validation = { + "fishtype": {"required": True}, + "length": {"required": True}, + "birthday": {"required": True}, + } + + _attribute_map = { + "fishtype": {"key": "fishtype", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "length": {"key": "length", "type": "float"}, + "siblings": {"key": "siblings", "type": "[Fish]"}, + "age": {"key": "age", "type": "int"}, + "birthday": {"key": "birthday", "type": "iso-8601"}, + } + + _subtype_map = { + "fishtype": {"cookiecuttershark": "Cookiecuttershark", "goblin": "Goblinshark", "sawshark": "Sawshark"} + } + + def __init__( + self, + *, + length: float, + birthday: datetime.datetime, + species: Optional[str] = None, + siblings: Optional[List["Fish"]] = None, + age: Optional[int] = None, + **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword length: Required. + :paramtype length: float + :keyword siblings: + :paramtype siblings: list[~bodycomplexpython3only.models.Fish] + :keyword age: + :paramtype age: int + :keyword birthday: Required. + :paramtype birthday: ~datetime.datetime + """ + super(Shark, self).__init__(species=species, length=length, siblings=siblings, **kwargs) + self.fishtype = "shark" # type: str + self.age = age + self.birthday = birthday + + +class Cookiecuttershark(Shark): + """Cookiecuttershark. + + All required parameters must be populated in order to send to Azure. + + :ivar fishtype: Required. Constant filled by server. + :vartype fishtype: str + :ivar species: + :vartype species: str + :ivar length: Required. + :vartype length: float + :ivar siblings: + :vartype siblings: list[~bodycomplexpython3only.models.Fish] + :ivar age: + :vartype age: int + :ivar birthday: Required. + :vartype birthday: ~datetime.datetime + """ + + _validation = { + "fishtype": {"required": True}, + "length": {"required": True}, + "birthday": {"required": True}, + } + + _attribute_map = { + "fishtype": {"key": "fishtype", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "length": {"key": "length", "type": "float"}, + "siblings": {"key": "siblings", "type": "[Fish]"}, + "age": {"key": "age", "type": "int"}, + "birthday": {"key": "birthday", "type": "iso-8601"}, + } + + def __init__( + self, + *, + length: float, + birthday: datetime.datetime, + species: Optional[str] = None, + siblings: Optional[List["Fish"]] = None, + age: Optional[int] = None, + **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword length: Required. + :paramtype length: float + :keyword siblings: + :paramtype siblings: list[~bodycomplexpython3only.models.Fish] + :keyword age: + :paramtype age: int + :keyword birthday: Required. + :paramtype birthday: ~datetime.datetime + """ + super(Cookiecuttershark, self).__init__( + species=species, length=length, siblings=siblings, age=age, birthday=birthday, **kwargs + ) + self.fishtype = "cookiecuttershark" # type: str + + +class Datetimerfc1123Wrapper(msrest.serialization.Model): + """Datetimerfc1123Wrapper. + + :ivar field: + :vartype field: ~datetime.datetime + :ivar now: + :vartype now: ~datetime.datetime + """ + + _attribute_map = { + "field": {"key": "field", "type": "rfc-1123"}, + "now": {"key": "now", "type": "rfc-1123"}, + } + + def __init__(self, *, field: Optional[datetime.datetime] = None, now: Optional[datetime.datetime] = None, **kwargs): + """ + :keyword field: + :paramtype field: ~datetime.datetime + :keyword now: + :paramtype now: ~datetime.datetime + """ + super(Datetimerfc1123Wrapper, self).__init__(**kwargs) + self.field = field + self.now = now + + +class DatetimeWrapper(msrest.serialization.Model): + """DatetimeWrapper. + + :ivar field: + :vartype field: ~datetime.datetime + :ivar now: + :vartype now: ~datetime.datetime + """ + + _attribute_map = { + "field": {"key": "field", "type": "iso-8601"}, + "now": {"key": "now", "type": "iso-8601"}, + } + + def __init__(self, *, field: Optional[datetime.datetime] = None, now: Optional[datetime.datetime] = None, **kwargs): + """ + :keyword field: + :paramtype field: ~datetime.datetime + :keyword now: + :paramtype now: ~datetime.datetime + """ + super(DatetimeWrapper, self).__init__(**kwargs) + self.field = field + self.now = now + + +class DateWrapper(msrest.serialization.Model): + """DateWrapper. + + :ivar field: + :vartype field: ~datetime.date + :ivar leap: + :vartype leap: ~datetime.date + """ + + _attribute_map = { + "field": {"key": "field", "type": "date"}, + "leap": {"key": "leap", "type": "date"}, + } + + def __init__(self, *, field: Optional[datetime.date] = None, leap: Optional[datetime.date] = None, **kwargs): + """ + :keyword field: + :paramtype field: ~datetime.date + :keyword leap: + :paramtype leap: ~datetime.date + """ + super(DateWrapper, self).__init__(**kwargs) + self.field = field + self.leap = leap + + +class DictionaryWrapper(msrest.serialization.Model): + """DictionaryWrapper. + + :ivar default_program: Dictionary of :code:``. + :vartype default_program: dict[str, str] + """ + + _attribute_map = { + "default_program": {"key": "defaultProgram", "type": "{str}"}, + } + + def __init__(self, *, default_program: Optional[Dict[str, str]] = None, **kwargs): + """ + :keyword default_program: Dictionary of :code:``. + :paramtype default_program: dict[str, str] + """ + super(DictionaryWrapper, self).__init__(**kwargs) + self.default_program = default_program + + +class Dog(Pet): + """Dog. + + :ivar id: + :vartype id: int + :ivar name: + :vartype name: str + :ivar food: + :vartype food: str + """ + + _attribute_map = { + "id": {"key": "id", "type": "int"}, + "name": {"key": "name", "type": "str"}, + "food": {"key": "food", "type": "str"}, + } + + def __init__(self, *, id: Optional[int] = None, name: Optional[str] = None, food: Optional[str] = None, **kwargs): + """ + :keyword id: + :paramtype id: int + :keyword name: + :paramtype name: str + :keyword food: + :paramtype food: str + """ + super(Dog, self).__init__(id=id, name=name, **kwargs) + self.food = food + + +class DotFish(msrest.serialization.Model): + """DotFish. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: DotSalmon. + + All required parameters must be populated in order to send to Azure. + + :ivar fish_type: Required. Constant filled by server. + :vartype fish_type: str + :ivar species: + :vartype species: str + """ + + _validation = { + "fish_type": {"required": True}, + } + + _attribute_map = { + "fish_type": {"key": "fish\\.type", "type": "str"}, + "species": {"key": "species", "type": "str"}, + } + + _subtype_map = {"fish_type": {"DotSalmon": "DotSalmon"}} + + def __init__(self, *, species: Optional[str] = None, **kwargs): + """ + :keyword species: + :paramtype species: str + """ + super(DotFish, self).__init__(**kwargs) + self.fish_type = None # type: Optional[str] + self.species = species + + +class DotFishMarket(msrest.serialization.Model): + """DotFishMarket. + + :ivar sample_salmon: + :vartype sample_salmon: ~bodycomplexpython3only.models.DotSalmon + :ivar salmons: + :vartype salmons: list[~bodycomplexpython3only.models.DotSalmon] + :ivar sample_fish: + :vartype sample_fish: ~bodycomplexpython3only.models.DotFish + :ivar fishes: + :vartype fishes: list[~bodycomplexpython3only.models.DotFish] + """ + + _attribute_map = { + "sample_salmon": {"key": "sampleSalmon", "type": "DotSalmon"}, + "salmons": {"key": "salmons", "type": "[DotSalmon]"}, + "sample_fish": {"key": "sampleFish", "type": "DotFish"}, + "fishes": {"key": "fishes", "type": "[DotFish]"}, + } + + def __init__( + self, + *, + sample_salmon: Optional["DotSalmon"] = None, + salmons: Optional[List["DotSalmon"]] = None, + sample_fish: Optional["DotFish"] = None, + fishes: Optional[List["DotFish"]] = None, + **kwargs + ): + """ + :keyword sample_salmon: + :paramtype sample_salmon: ~bodycomplexpython3only.models.DotSalmon + :keyword salmons: + :paramtype salmons: list[~bodycomplexpython3only.models.DotSalmon] + :keyword sample_fish: + :paramtype sample_fish: ~bodycomplexpython3only.models.DotFish + :keyword fishes: + :paramtype fishes: list[~bodycomplexpython3only.models.DotFish] + """ + super(DotFishMarket, self).__init__(**kwargs) + self.sample_salmon = sample_salmon + self.salmons = salmons + self.sample_fish = sample_fish + self.fishes = fishes + + +class DotSalmon(DotFish): + """DotSalmon. + + All required parameters must be populated in order to send to Azure. + + :ivar fish_type: Required. Constant filled by server. + :vartype fish_type: str + :ivar species: + :vartype species: str + :ivar location: + :vartype location: str + :ivar iswild: + :vartype iswild: bool + """ + + _validation = { + "fish_type": {"required": True}, + } + + _attribute_map = { + "fish_type": {"key": "fish\\.type", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "location": {"key": "location", "type": "str"}, + "iswild": {"key": "iswild", "type": "bool"}, + } + + def __init__( + self, *, species: Optional[str] = None, location: Optional[str] = None, iswild: Optional[bool] = None, **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword location: + :paramtype location: str + :keyword iswild: + :paramtype iswild: bool + """ + super(DotSalmon, self).__init__(species=species, **kwargs) + self.fish_type = "DotSalmon" # type: str + self.location = location + self.iswild = iswild + + +class DoubleWrapper(msrest.serialization.Model): + """DoubleWrapper. + + :ivar field1: + :vartype field1: float + :ivar + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + :vartype + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + float + """ + + _attribute_map = { + "field1": {"key": "field1", "type": "float"}, + "field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": { + "key": "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose", + "type": "float", + }, + } + + def __init__( + self, + *, + field1: Optional[float] = None, + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: Optional[ + float + ] = None, + **kwargs + ): + """ + :keyword field1: + :paramtype field1: float + :keyword + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + :paramtype + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + float + """ + super(DoubleWrapper, self).__init__(**kwargs) + self.field1 = field1 + self.field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose = ( + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose + ) + + +class DurationWrapper(msrest.serialization.Model): + """DurationWrapper. + + :ivar field: + :vartype field: ~datetime.timedelta + """ + + _attribute_map = { + "field": {"key": "field", "type": "duration"}, + } + + def __init__(self, *, field: Optional[datetime.timedelta] = None, **kwargs): + """ + :keyword field: + :paramtype field: ~datetime.timedelta + """ + super(DurationWrapper, self).__init__(**kwargs) + self.field = field + + +class Error(msrest.serialization.Model): + """Error. + + :ivar status: + :vartype status: int + :ivar message: + :vartype message: str + """ + + _attribute_map = { + "status": {"key": "status", "type": "int"}, + "message": {"key": "message", "type": "str"}, + } + + def __init__(self, *, status: Optional[int] = None, message: Optional[str] = None, **kwargs): + """ + :keyword status: + :paramtype status: int + :keyword message: + :paramtype message: str + """ + super(Error, self).__init__(**kwargs) + self.status = status + self.message = message + + +class FloatWrapper(msrest.serialization.Model): + """FloatWrapper. + + :ivar field1: + :vartype field1: float + :ivar field2: + :vartype field2: float + """ + + _attribute_map = { + "field1": {"key": "field1", "type": "float"}, + "field2": {"key": "field2", "type": "float"}, + } + + def __init__(self, *, field1: Optional[float] = None, field2: Optional[float] = None, **kwargs): + """ + :keyword field1: + :paramtype field1: float + :keyword field2: + :paramtype field2: float + """ + super(FloatWrapper, self).__init__(**kwargs) + self.field1 = field1 + self.field2 = field2 + + +class Goblinshark(Shark): + """Goblinshark. + + All required parameters must be populated in order to send to Azure. + + :ivar fishtype: Required. Constant filled by server. + :vartype fishtype: str + :ivar species: + :vartype species: str + :ivar length: Required. + :vartype length: float + :ivar siblings: + :vartype siblings: list[~bodycomplexpython3only.models.Fish] + :ivar age: + :vartype age: int + :ivar birthday: Required. + :vartype birthday: ~datetime.datetime + :ivar jawsize: + :vartype jawsize: int + :ivar color: Colors possible. Possible values include: "pink", "gray", "brown", "RED", "red". + Default value: "gray". + :vartype color: str or ~bodycomplexpython3only.models.GoblinSharkColor + """ + + _validation = { + "fishtype": {"required": True}, + "length": {"required": True}, + "birthday": {"required": True}, + } + + _attribute_map = { + "fishtype": {"key": "fishtype", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "length": {"key": "length", "type": "float"}, + "siblings": {"key": "siblings", "type": "[Fish]"}, + "age": {"key": "age", "type": "int"}, + "birthday": {"key": "birthday", "type": "iso-8601"}, + "jawsize": {"key": "jawsize", "type": "int"}, + "color": {"key": "color", "type": "str"}, + } + + def __init__( + self, + *, + length: float, + birthday: datetime.datetime, + species: Optional[str] = None, + siblings: Optional[List["Fish"]] = None, + age: Optional[int] = None, + jawsize: Optional[int] = None, + color: Optional[Union[str, "GoblinSharkColor"]] = "gray", + **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword length: Required. + :paramtype length: float + :keyword siblings: + :paramtype siblings: list[~bodycomplexpython3only.models.Fish] + :keyword age: + :paramtype age: int + :keyword birthday: Required. + :paramtype birthday: ~datetime.datetime + :keyword jawsize: + :paramtype jawsize: int + :keyword color: Colors possible. Possible values include: "pink", "gray", "brown", "RED", + "red". Default value: "gray". + :paramtype color: str or ~bodycomplexpython3only.models.GoblinSharkColor + """ + super(Goblinshark, self).__init__( + species=species, length=length, siblings=siblings, age=age, birthday=birthday, **kwargs + ) + self.fishtype = "goblin" # type: str + self.jawsize = jawsize + self.color = color + + +class IntWrapper(msrest.serialization.Model): + """IntWrapper. + + :ivar field1: + :vartype field1: int + :ivar field2: + :vartype field2: int + """ + + _attribute_map = { + "field1": {"key": "field1", "type": "int"}, + "field2": {"key": "field2", "type": "int"}, + } + + def __init__(self, *, field1: Optional[int] = None, field2: Optional[int] = None, **kwargs): + """ + :keyword field1: + :paramtype field1: int + :keyword field2: + :paramtype field2: int + """ + super(IntWrapper, self).__init__(**kwargs) + self.field1 = field1 + self.field2 = field2 + + +class LongWrapper(msrest.serialization.Model): + """LongWrapper. + + :ivar field1: + :vartype field1: long + :ivar field2: + :vartype field2: long + """ + + _attribute_map = { + "field1": {"key": "field1", "type": "long"}, + "field2": {"key": "field2", "type": "long"}, + } + + def __init__(self, *, field1: Optional[int] = None, field2: Optional[int] = None, **kwargs): + """ + :keyword field1: + :paramtype field1: long + :keyword field2: + :paramtype field2: long + """ + super(LongWrapper, self).__init__(**kwargs) + self.field1 = field1 + self.field2 = field2 + + +class MyBaseType(msrest.serialization.Model): + """MyBaseType. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MyDerivedType. + + All required parameters must be populated in order to send to Azure. + + :ivar kind: Required. Constant filled by server. Possible values include: "Kind1". + :vartype kind: str or ~bodycomplexpython3only.models.MyKind + :ivar prop_b1: + :vartype prop_b1: str + :ivar prop_bh1: + :vartype prop_bh1: str + """ + + _validation = { + "kind": {"required": True}, + } + + _attribute_map = { + "kind": {"key": "kind", "type": "str"}, + "prop_b1": {"key": "propB1", "type": "str"}, + "prop_bh1": {"key": "helper.propBH1", "type": "str"}, + } + + _subtype_map = {"kind": {"Kind1": "MyDerivedType"}} + + def __init__(self, *, prop_b1: Optional[str] = None, prop_bh1: Optional[str] = None, **kwargs): + """ + :keyword prop_b1: + :paramtype prop_b1: str + :keyword prop_bh1: + :paramtype prop_bh1: str + """ + super(MyBaseType, self).__init__(**kwargs) + self.kind = None # type: Optional[str] + self.prop_b1 = prop_b1 + self.prop_bh1 = prop_bh1 + + +class MyDerivedType(MyBaseType): + """MyDerivedType. + + All required parameters must be populated in order to send to Azure. + + :ivar kind: Required. Constant filled by server. Possible values include: "Kind1". + :vartype kind: str or ~bodycomplexpython3only.models.MyKind + :ivar prop_b1: + :vartype prop_b1: str + :ivar prop_bh1: + :vartype prop_bh1: str + :ivar prop_d1: + :vartype prop_d1: str + """ + + _validation = { + "kind": {"required": True}, + } + + _attribute_map = { + "kind": {"key": "kind", "type": "str"}, + "prop_b1": {"key": "propB1", "type": "str"}, + "prop_bh1": {"key": "helper.propBH1", "type": "str"}, + "prop_d1": {"key": "propD1", "type": "str"}, + } + + def __init__( + self, *, prop_b1: Optional[str] = None, prop_bh1: Optional[str] = None, prop_d1: Optional[str] = None, **kwargs + ): + """ + :keyword prop_b1: + :paramtype prop_b1: str + :keyword prop_bh1: + :paramtype prop_bh1: str + :keyword prop_d1: + :paramtype prop_d1: str + """ + super(MyDerivedType, self).__init__(prop_b1=prop_b1, prop_bh1=prop_bh1, **kwargs) + self.kind = "Kind1" # type: str + self.prop_d1 = prop_d1 + + +class ReadonlyObj(msrest.serialization.Model): + """ReadonlyObj. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: + :vartype id: str + :ivar size: + :vartype size: int + """ + + _validation = { + "id": {"readonly": True}, + } + + _attribute_map = { + "id": {"key": "id", "type": "str"}, + "size": {"key": "size", "type": "int"}, + } + + def __init__(self, *, size: Optional[int] = None, **kwargs): + """ + :keyword size: + :paramtype size: int + """ + super(ReadonlyObj, self).__init__(**kwargs) + self.id = None + self.size = size + + +class Salmon(Fish): + """Salmon. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SmartSalmon. + + All required parameters must be populated in order to send to Azure. + + :ivar fishtype: Required. Constant filled by server. + :vartype fishtype: str + :ivar species: + :vartype species: str + :ivar length: Required. + :vartype length: float + :ivar siblings: + :vartype siblings: list[~bodycomplexpython3only.models.Fish] + :ivar location: + :vartype location: str + :ivar iswild: + :vartype iswild: bool + """ + + _validation = { + "fishtype": {"required": True}, + "length": {"required": True}, + } + + _attribute_map = { + "fishtype": {"key": "fishtype", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "length": {"key": "length", "type": "float"}, + "siblings": {"key": "siblings", "type": "[Fish]"}, + "location": {"key": "location", "type": "str"}, + "iswild": {"key": "iswild", "type": "bool"}, + } + + _subtype_map = {"fishtype": {"smart_salmon": "SmartSalmon"}} + + def __init__( + self, + *, + length: float, + species: Optional[str] = None, + siblings: Optional[List["Fish"]] = None, + location: Optional[str] = None, + iswild: Optional[bool] = None, + **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword length: Required. + :paramtype length: float + :keyword siblings: + :paramtype siblings: list[~bodycomplexpython3only.models.Fish] + :keyword location: + :paramtype location: str + :keyword iswild: + :paramtype iswild: bool + """ + super(Salmon, self).__init__(species=species, length=length, siblings=siblings, **kwargs) + self.fishtype = "salmon" # type: str + self.location = location + self.iswild = iswild + + +class Sawshark(Shark): + """Sawshark. + + All required parameters must be populated in order to send to Azure. + + :ivar fishtype: Required. Constant filled by server. + :vartype fishtype: str + :ivar species: + :vartype species: str + :ivar length: Required. + :vartype length: float + :ivar siblings: + :vartype siblings: list[~bodycomplexpython3only.models.Fish] + :ivar age: + :vartype age: int + :ivar birthday: Required. + :vartype birthday: ~datetime.datetime + :ivar picture: + :vartype picture: bytearray + """ + + _validation = { + "fishtype": {"required": True}, + "length": {"required": True}, + "birthday": {"required": True}, + } + + _attribute_map = { + "fishtype": {"key": "fishtype", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "length": {"key": "length", "type": "float"}, + "siblings": {"key": "siblings", "type": "[Fish]"}, + "age": {"key": "age", "type": "int"}, + "birthday": {"key": "birthday", "type": "iso-8601"}, + "picture": {"key": "picture", "type": "bytearray"}, + } + + def __init__( + self, + *, + length: float, + birthday: datetime.datetime, + species: Optional[str] = None, + siblings: Optional[List["Fish"]] = None, + age: Optional[int] = None, + picture: Optional[bytearray] = None, + **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword length: Required. + :paramtype length: float + :keyword siblings: + :paramtype siblings: list[~bodycomplexpython3only.models.Fish] + :keyword age: + :paramtype age: int + :keyword birthday: Required. + :paramtype birthday: ~datetime.datetime + :keyword picture: + :paramtype picture: bytearray + """ + super(Sawshark, self).__init__( + species=species, length=length, siblings=siblings, age=age, birthday=birthday, **kwargs + ) + self.fishtype = "sawshark" # type: str + self.picture = picture + + +class Siamese(Cat): + """Siamese. + + :ivar id: + :vartype id: int + :ivar name: + :vartype name: str + :ivar color: + :vartype color: str + :ivar hates: + :vartype hates: list[~bodycomplexpython3only.models.Dog] + :ivar breed: + :vartype breed: str + """ + + _attribute_map = { + "id": {"key": "id", "type": "int"}, + "name": {"key": "name", "type": "str"}, + "color": {"key": "color", "type": "str"}, + "hates": {"key": "hates", "type": "[Dog]"}, + "breed": {"key": "breed", "type": "str"}, + } + + def __init__( + self, + *, + id: Optional[int] = None, + name: Optional[str] = None, + color: Optional[str] = None, + hates: Optional[List["Dog"]] = None, + breed: Optional[str] = None, + **kwargs + ): + """ + :keyword id: + :paramtype id: int + :keyword name: + :paramtype name: str + :keyword color: + :paramtype color: str + :keyword hates: + :paramtype hates: list[~bodycomplexpython3only.models.Dog] + :keyword breed: + :paramtype breed: str + """ + super(Siamese, self).__init__(id=id, name=name, color=color, hates=hates, **kwargs) + self.breed = breed + + +class SmartSalmon(Salmon): + """SmartSalmon. + + All required parameters must be populated in order to send to Azure. + + :ivar fishtype: Required. Constant filled by server. + :vartype fishtype: str + :ivar species: + :vartype species: str + :ivar length: Required. + :vartype length: float + :ivar siblings: + :vartype siblings: list[~bodycomplexpython3only.models.Fish] + :ivar location: + :vartype location: str + :ivar iswild: + :vartype iswild: bool + :ivar additional_properties: Unmatched properties from the message are deserialized to this + collection. + :vartype additional_properties: dict[str, any] + :ivar college_degree: + :vartype college_degree: str + """ + + _validation = { + "fishtype": {"required": True}, + "length": {"required": True}, + } + + _attribute_map = { + "fishtype": {"key": "fishtype", "type": "str"}, + "species": {"key": "species", "type": "str"}, + "length": {"key": "length", "type": "float"}, + "siblings": {"key": "siblings", "type": "[Fish]"}, + "location": {"key": "location", "type": "str"}, + "iswild": {"key": "iswild", "type": "bool"}, + "additional_properties": {"key": "", "type": "{object}"}, + "college_degree": {"key": "college_degree", "type": "str"}, + } + + def __init__( + self, + *, + length: float, + species: Optional[str] = None, + siblings: Optional[List["Fish"]] = None, + location: Optional[str] = None, + iswild: Optional[bool] = None, + additional_properties: Optional[Dict[str, Any]] = None, + college_degree: Optional[str] = None, + **kwargs + ): + """ + :keyword species: + :paramtype species: str + :keyword length: Required. + :paramtype length: float + :keyword siblings: + :paramtype siblings: list[~bodycomplexpython3only.models.Fish] + :keyword location: + :paramtype location: str + :keyword iswild: + :paramtype iswild: bool + :keyword additional_properties: Unmatched properties from the message are deserialized to this + collection. + :paramtype additional_properties: dict[str, any] + :keyword college_degree: + :paramtype college_degree: str + """ + super(SmartSalmon, self).__init__( + species=species, length=length, siblings=siblings, location=location, iswild=iswild, **kwargs + ) + self.fishtype = "smart_salmon" # type: str + self.additional_properties = additional_properties + self.college_degree = college_degree + + +class StringWrapper(msrest.serialization.Model): + """StringWrapper. + + :ivar field: + :vartype field: str + :ivar empty: + :vartype empty: str + :ivar null: + :vartype null: str + """ + + _attribute_map = { + "field": {"key": "field", "type": "str"}, + "empty": {"key": "empty", "type": "str"}, + "null": {"key": "null", "type": "str"}, + } + + def __init__( + self, *, field: Optional[str] = None, empty: Optional[str] = None, null: Optional[str] = None, **kwargs + ): + """ + :keyword field: + :paramtype field: str + :keyword empty: + :paramtype empty: str + :keyword null: + :paramtype null: str + """ + super(StringWrapper, self).__init__(**kwargs) + self.field = field + self.empty = empty + self.null = null diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py new file mode 100644 index 00000000000..a367b382d8d --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/__init__.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._basic_operations_py3 import BasicOperations +from ._primitive_operations_py3 import PrimitiveOperations +from ._array_operations_py3 import ArrayOperations +from ._dictionary_operations_py3 import DictionaryOperations +from ._inheritance_operations_py3 import InheritanceOperations +from ._polymorphism_operations_py3 import PolymorphismOperations +from ._polymorphicrecursive_operations_py3 import PolymorphicrecursiveOperations +from ._readonlyproperty_operations_py3 import ReadonlypropertyOperations +from ._flattencomplex_operations_py3 import FlattencomplexOperations + +__all__ = [ + "BasicOperations", + "PrimitiveOperations", + "ArrayOperations", + "DictionaryOperations", + "InheritanceOperations", + "PolymorphismOperations", + "PolymorphicrecursiveOperations", + "ReadonlypropertyOperations", + "FlattencomplexOperations", +] diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py index 480fbcbd1d9..67c69feabe6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_array_operations_py3.py @@ -140,7 +140,7 @@ def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,7 +185,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -217,7 +217,7 @@ def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -262,7 +262,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -294,7 +294,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations_py3.py index b61d322c80d..56fca8e4d67 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_basic_operations_py3.py @@ -155,7 +155,7 @@ def get_valid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -199,7 +199,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -231,7 +231,7 @@ def get_invalid(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -267,7 +267,7 @@ def get_empty(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -303,7 +303,7 @@ def get_null(self, **kwargs: Any) -> "_models.Basic": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -339,7 +339,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations_py3.py index a7246e3004b..ec3a207f63b 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_dictionary_operations_py3.py @@ -152,7 +152,7 @@ def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -197,7 +197,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -229,7 +229,7 @@ def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -274,7 +274,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -306,7 +306,7 @@ def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -342,7 +342,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations_py3.py index 91ff08fe765..2b5fc4d9d79 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_flattencomplex_operations_py3.py @@ -84,7 +84,7 @@ def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations_py3.py index 5467211d5c6..30afe5f61e6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_inheritance_operations_py3.py @@ -100,7 +100,7 @@ def get_valid(self, **kwargs: Any) -> "_models.Siamese": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -146,7 +146,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations_py3.py index 1cd03cda1e0..c854b2edec6 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphicrecursive_operations_py3.py @@ -100,7 +100,7 @@ def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -196,7 +196,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations_py3.py index 7accc8b527b..f0d5791a97d 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_polymorphism_operations_py3.py @@ -196,7 +196,7 @@ def get_valid(self, **kwargs: Any) -> "_models.Fish": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -272,7 +272,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -304,7 +304,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -342,7 +342,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -380,7 +380,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -417,7 +417,7 @@ def get_complicated(self, **kwargs: Any) -> "_models.Salmon": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -462,7 +462,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -502,7 +502,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -573,7 +573,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations_py3.py index 092804478dd..1ac48012caf 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_primitive_operations_py3.py @@ -381,7 +381,7 @@ def get_int(self, **kwargs: Any) -> "_models.IntWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -425,7 +425,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -457,7 +457,7 @@ def get_long(self, **kwargs: Any) -> "_models.LongWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -501,7 +501,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -533,7 +533,7 @@ def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -577,7 +577,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -609,7 +609,7 @@ def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -654,7 +654,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -686,7 +686,7 @@ def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -730,7 +730,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -762,7 +762,7 @@ def get_string(self, **kwargs: Any) -> "_models.StringWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -806,7 +806,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -838,7 +838,7 @@ def get_date(self, **kwargs: Any) -> "_models.DateWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -882,7 +882,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -914,7 +914,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -958,7 +958,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -990,7 +990,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1035,7 +1035,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1067,7 +1067,7 @@ def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1112,7 +1112,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1144,7 +1144,7 @@ def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1189,7 +1189,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations_py3.py index eea8c5533d3..5c07fc8cc45 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations_py3.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/operations/_readonlyproperty_operations_py3.py @@ -100,7 +100,7 @@ def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -145,7 +145,7 @@ 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.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(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/py.typed b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/py.typed new file mode 100644 index 00000000000..e5aff4f83af --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/bodycomplexpython3only/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py new file mode 100644 index 00000000000..d4d7833bbb1 --- /dev/null +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "bodycomplexpython3only" +VERSION = "0.1.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.6.21", "azure-core<2.0.0,>=1.19.0"] + +setup( + name=NAME, + version=VERSION, + description="bodycomplexpython3only", + author_email="", + url="", + keywords=["Swagger", "AutoRestComplexTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest. + """, +) From d86a204c4c6ab1d09013ba8463c6e927cf1b136e Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 28 Sep 2021 12:16:33 -0400 Subject: [PATCH 10/16] fix test error --- test/azure/low-level/AcceptanceTests/test_paging.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/azure/low-level/AcceptanceTests/test_paging.py b/test/azure/low-level/AcceptanceTests/test_paging.py index 4473948cf9c..806e0a43a4d 100644 --- a/test/azure/low-level/AcceptanceTests/test_paging.py +++ b/test/azure/low-level/AcceptanceTests/test_paging.py @@ -57,9 +57,7 @@ def get_next_fixture(client): def _callback(prepare_request, next_link=None): request = prepare_request(next_link) - pipeline_response = client._client.pipeline.run( - request,= - ) + pipeline_response = client._client.pipeline.run(request) pipeline_response.http_response.raise_for_status() return pipeline_response From d94b07199cd76237aa2c25b506c8ef4b918090a1 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 28 Sep 2021 13:19:41 -0400 Subject: [PATCH 11/16] fix url formatting in llc tests --- .../AcceptanceTests/asynctests/test_lro.py | 1 + .../AcceptanceTests/asynctests/test_paging.py | 5 +- .../low-level/AcceptanceTests/test_lro.py | 1 + .../low-level/AcceptanceTests/test_paging.py | 4 +- .../low-level/coverage/report-azure.json | 236 ++-- .../low-level/coverage/report-optional.json | 34 +- .../low-level/coverage/report-vanilla.json | 1234 ++++++++--------- 7 files changed, 758 insertions(+), 757 deletions(-) diff --git a/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py index b850e1cd026..751929e0110 100644 --- a/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py +++ b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py @@ -109,6 +109,7 @@ def _callback(pipeline_response): def get_poller(get_long_running_output, client): async def _callback(request, **kwargs): + request.url = client._client.format_url(request.url) pipeline_response = await client._client._pipeline.run(request) pipeline_response.http_response.raise_for_status() polling = kwargs.pop("polling", True) diff --git a/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py b/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py index 4907327b054..7e40b0b86ea 100644 --- a/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py +++ b/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py @@ -65,9 +65,8 @@ def get_next_fixture(client): async def _callback(prepare_request, next_link=None): request = prepare_request(next_link) - pipeline_response = await client._client._pipeline.run( - request, - ) + request.url = client._client.format_url(request.url) + pipeline_response = await client._client._pipeline.run(request) pipeline_response.http_response.raise_for_status() return pipeline_response diff --git a/test/azure/low-level/AcceptanceTests/test_lro.py b/test/azure/low-level/AcceptanceTests/test_lro.py index 36f88dd058d..2a00f098bd0 100644 --- a/test/azure/low-level/AcceptanceTests/test_lro.py +++ b/test/azure/low-level/AcceptanceTests/test_lro.py @@ -112,6 +112,7 @@ def _callback(pipeline_response): def get_poller(get_long_running_output, client): def _callback(request, **kwargs): + request.url = client._client.format_url(request.url) pipeline_response = client._client._pipeline.run(request) pipeline_response.http_response.raise_for_status() polling = kwargs.pop("polling", True) diff --git a/test/azure/low-level/AcceptanceTests/test_paging.py b/test/azure/low-level/AcceptanceTests/test_paging.py index 806e0a43a4d..8e581836483 100644 --- a/test/azure/low-level/AcceptanceTests/test_paging.py +++ b/test/azure/low-level/AcceptanceTests/test_paging.py @@ -56,8 +56,8 @@ def _callback(pipeline_response, **kwargs): def get_next_fixture(client): def _callback(prepare_request, next_link=None): request = prepare_request(next_link) - - pipeline_response = client._client.pipeline.run(request) + request.url = client._client.format_url(request.url) + pipeline_response = client._client._pipeline.run(request) pipeline_response.http_response.raise_for_status() return pipeline_response diff --git a/test/azure/low-level/coverage/report-azure.json b/test/azure/low-level/coverage/report-azure.json index 487f1d2b49c..337f56a01ed 100644 --- a/test/azure/low-level/coverage/report-azure.json +++ b/test/azure/low-level/coverage/report-azure.json @@ -1,140 +1,140 @@ { - "LROPostDoubleHeadersFinalLocationPost": 18, - "LROPostDoubleHeadersFinalLocationAsync": 23, - "LROPostDoubleHeadersFinalLocationGet": 23, + "LROPostDoubleHeadersFinalLocationPost": 30, + "LROPostDoubleHeadersFinalLocationAsync": 39, + "LROPostDoubleHeadersFinalLocationGet": 39, "LROConstantParameterizedPost": 4, "LROConstantParameterizedGet": 4, - "PostParameterGroupingWithReservedWords": 7, - "LROPutInlineComplete": 17, - "LROPutInlineComplete201": 9, + "PostParameterGroupingWithReservedWords": 13, + "LROPutInlineComplete": 29, + "LROPutInlineComplete201": 15, "CustomHeaderPutAsyncSucceded": 4, "CustomHeaderPostAsyncSucceded": 4, "CustomHeaderPutSucceeded": 4, "CustomHeaderPostSucceeded": 4, - "LROPut200InlineCompleteNoState": 7, + "LROPut200InlineCompleteNoState": 13, "LROPatchInlineCompleteIgnoreHeaders": 0, - "LROPut202Retry200": 9, - "LROPutSucceededWithBody": 9, - "LROPutSucceededNoBody": 9, - "LROPutFailed": 9, - "LROPutCanceled": 9, - "LROPutAsyncRetrySucceeded": 9, - "LROPutAsyncNoRetrySucceeded": 9, - "LROPutAsyncRetryFailed": 9, - "LROPutAsyncNoRetryCanceled": 9, - "LROPutNoHeaderInRetry": 9, - "LROPutAsyncNoHeaderInRetry": 9, - "LRODeleteNoHeaderInRetry": 9, - "LRODeleteAsyncNoHeaderInRetry": 9, - "LROPutSubResourceInRetry": 9, - "LROPutSubResourceAsyncInRetry": 18, - "LROPutNonResourceInRetry": 9, - "LROPutNonResourceAsyncInRetry": 9, - "LRODeleteProvisioningSucceededWithBody": 9, - "LRODeleteProvisioningFailed": 9, - "LRODeleteProvisioningCanceled": 9, - "LRODeleteInlineComplete": 9, - "LRODelete200": 9, - "LRODelete204": 9, - "LRODeleteAsyncRetrySucceeded": 9, - "LRODeleteAsyncNoRetrySucceeded": 9, - "LRODeleteAsyncRetryFailed": 9, - "LRODeleteAsyncRetryCanceled": 9, - "LROPostSuccededWithBody": 9, - "LROPostSuccededNoBody": 9, - "LROPost200": 9, - "LROPostDoubleHeadersFinalAzureHeaderGet": 7, - "LROPostDoubleHeadersFinalAzureHeaderGetDefault": 35, - "LROPostAndGetList": 7, - "LROPostAsyncRetrySucceeded": 9, - "LROPostAsyncNoRetrySucceeded": 9, - "LROPostAsyncRetryFailed": 9, - "LROPostAsyncRetryCanceled": 9, - "LRORetryPutSucceededWithBody": 9, - "LRORetryErrorPutAsyncSucceeded": 9, - "LRORetryErrorPutAsyncSucceededPolling": 9, - "LRORetryErrorDelete202Accepted200Succeeded": 9, - "LRORetryErrorDelete202Retry200Succeeded": 9, - "LRORetryErrorDeleteAsyncRetrySucceeded": 9, - "LRORetryErrorPost202Retry200Succeeded": 9, - "LRORetryErrorPostAsyncRetrySucceeded": 18, - "LRONonRetryPut400": 9, - "LRONonRetryPut201Creating400": 9, - "LRONonRetryPut201Creating400InvalidJson": 9, - "LRONonRetryPutAsyncRetry400": 9, - "LRONonRetryDelete400": 9, - "LRONonRetryDelete202Retry400": 9, - "LRONonRetryDeleteAsyncRetry400": 9, - "LRONonRetryPost400": 9, - "LRONonRetryPost202Retry400": 9, - "LRONonRetryPostAsyncRetry400": 9, - "LROErrorPut201NoProvisioningStatePayload": 9, - "LROErrorPutAsyncNoPollingStatus": 9, - "LROErrorPutAsyncNoPollingStatusPayload": 9, - "LROErrorPut200InvalidJson": 9, + "LROPut202Retry200": 15, + "LROPutSucceededWithBody": 15, + "LROPutSucceededNoBody": 16, + "LROPutFailed": 15, + "LROPutCanceled": 15, + "LROPutAsyncRetrySucceeded": 15, + "LROPutAsyncNoRetrySucceeded": 15, + "LROPutAsyncRetryFailed": 15, + "LROPutAsyncNoRetryCanceled": 15, + "LROPutNoHeaderInRetry": 15, + "LROPutAsyncNoHeaderInRetry": 15, + "LRODeleteNoHeaderInRetry": 15, + "LRODeleteAsyncNoHeaderInRetry": 15, + "LROPutSubResourceInRetry": 15, + "LROPutSubResourceAsyncInRetry": 30, + "LROPutNonResourceInRetry": 15, + "LROPutNonResourceAsyncInRetry": 15, + "LRODeleteProvisioningSucceededWithBody": 15, + "LRODeleteProvisioningFailed": 15, + "LRODeleteProvisioningCanceled": 15, + "LRODeleteInlineComplete": 15, + "LRODelete200": 15, + "LRODelete204": 15, + "LRODeleteAsyncRetrySucceeded": 15, + "LRODeleteAsyncNoRetrySucceeded": 15, + "LRODeleteAsyncRetryFailed": 15, + "LRODeleteAsyncRetryCanceled": 15, + "LROPostSuccededWithBody": 15, + "LROPostSuccededNoBody": 15, + "LROPost200": 15, + "LROPostDoubleHeadersFinalAzureHeaderGet": 13, + "LROPostDoubleHeadersFinalAzureHeaderGetDefault": 53, + "LROPostAndGetList": 13, + "LROPostAsyncRetrySucceeded": 15, + "LROPostAsyncNoRetrySucceeded": 15, + "LROPostAsyncRetryFailed": 15, + "LROPostAsyncRetryCanceled": 15, + "LRORetryPutSucceededWithBody": 15, + "LRORetryErrorPutAsyncSucceeded": 15, + "LRORetryErrorPutAsyncSucceededPolling": 15, + "LRORetryErrorDelete202Accepted200Succeeded": 15, + "LRORetryErrorDelete202Retry200Succeeded": 15, + "LRORetryErrorDeleteAsyncRetrySucceeded": 15, + "LRORetryErrorPost202Retry200Succeeded": 15, + "LRORetryErrorPostAsyncRetrySucceeded": 30, + "LRONonRetryPut400": 15, + "LRONonRetryPut201Creating400": 15, + "LRONonRetryPut201Creating400InvalidJson": 15, + "LRONonRetryPutAsyncRetry400": 15, + "LRONonRetryDelete400": 15, + "LRONonRetryDelete202Retry400": 15, + "LRONonRetryDeleteAsyncRetry400": 15, + "LRONonRetryPost400": 15, + "LRONonRetryPost202Retry400": 15, + "LRONonRetryPostAsyncRetry400": 15, + "LROErrorPut201NoProvisioningStatePayload": 15, + "LROErrorPutAsyncNoPollingStatus": 15, + "LROErrorPutAsyncNoPollingStatusPayload": 15, + "LROErrorPut200InvalidJson": 15, "LROErrorPutAsyncInvalidHeader": 4, "LROErrorPutAsyncInvalidJsonPolling": 4, - "LROErrorDeleteNoLocation": 9, + "LROErrorDeleteNoLocation": 15, "LROErrorDelete202RetryInvalidHeader": 4, - "LROErrorDeleteAsyncNoPollingStatus": 9, + "LROErrorDeleteAsyncNoPollingStatus": 15, "LROErrorDeleteAsyncInvalidHeader": 4, "LROErrorDeleteAsyncInvalidJsonPolling": 4, - "LROErrorPostNoLocation": 9, + "LROErrorPostNoLocation": 15, "LROErrorPost202RetryInvalidHeader": 4, - "LROErrorPostAsyncNoPollingPayload": 9, + "LROErrorPostAsyncNoPollingPayload": 15, "LROErrorPostAsyncInvalidHeader": 4, "LROErrorPostAsyncInvalidJsonPolling": 4, "LROParameterizedEndpoint": 4, - "PagingNoItemName": 7, - "PagingNextLinkNameNull": 7, - "PagingSingle": 11, - "PagingMultiple": 11, - "PagingMultipleWithQueryParameters": 7, - "PagingOdataMultiple": 7, - "PagingMultiplePath": 7, - "PagingMultipleRetryFirst": 7, - "PagingMultipleRetrySecond": 7, - "PagingSingleFailure": 7, - "PagingMultipleFailure": 7, - "PagingMultipleFailureUri": 7, - "PagingFragment": 7, + "PagingNoItemName": 10, + "PagingNextLinkNameNull": 10, + "PagingSingle": 14, + "PagingMultiple": 14, + "PagingMultipleWithQueryParameters": 10, + "PagingOdataMultiple": 10, + "PagingMultiplePath": 10, + "PagingMultipleRetryFirst": 10, + "PagingMultipleRetrySecond": 10, + "PagingSingleFailure": 10, + "PagingMultipleFailure": 10, + "PagingMultipleFailureUri": 10, + "PagingFragment": 10, "PagingMultipleLRO": 4, "PagingCustomUrlPartialNextLink": 4, "PagingCustomUrlPartialOperationNextLink": 4, "PagingReturnModelWithXMSClientName": 4, - "PagingFirstResponseEmpty": 7, - "AzureSubscriptionMethodLocalValid": 6, - "AzureSubscriptionMethodGlobalValid": 6, - "AzureSubscriptionMethodGlobalNotProvidedValid": 6, - "AzureSubscriptionPathLocalValid": 6, - "AzureSubscriptionPathGlobalValid": 6, - "AzureSubscriptionSwaggerLocalValid": 6, - "AzureSubscriptionSwaggerGlobalValid": 6, - "AzureApiVersionMethodLocalNull": 6, - "AzureApiVersionMethodLocalValid": 6, - "AzureApiVersionMethodGlobalValid": 6, - "AzureApiVersionMethodGlobalNotProvidedValid": 6, - "AzureApiVersionPathLocalValid": 6, - "AzureApiVersionPathGlobalValid": 6, - "AzureApiVersionSwaggerLocalValid": 6, - "AzureApiVersionSwaggerGlobalValid": 6, - "AzureMethodPathUrlEncoding": 6, - "AzurePathPathUrlEncoding": 6, - "AzureSwaggerPathUrlEncoding": 6, - "AzureMethodQueryUrlEncoding": 6, - "AzurePathQueryUrlEncoding": 6, - "AzureSwaggerQueryUrlEncoding": 6, - "AzureMethodQueryUrlEncodingNull": 12, - "AzureXmsRequestClientOverwrite": 6, - "AzureXmsRequestClientOverwriteViaParameter": 6, - "AzureXmsRequestClientIdNull": 6, - "AzureXmsCustomNamedRequestId": 6, - "AzureXmsCustomNamedRequestIdParameterGroup": 6, - "AzureRequestClientIdInError": 6, - "AzureODataFilter": 6, - "SubscriptionIdAndApiVersion": 9, - "postParameterGroupingOptionalParameters": 14, - "postParameterGroupingRequiredParameters": 14, - "postParameterGroupingMultipleParameterGroups": 14, - "postParameterGroupingSharedParameterGroupObject": 7 + "PagingFirstResponseEmpty": 10, + "AzureSubscriptionMethodLocalValid": 12, + "AzureSubscriptionMethodGlobalValid": 12, + "AzureSubscriptionMethodGlobalNotProvidedValid": 12, + "AzureSubscriptionPathLocalValid": 12, + "AzureSubscriptionPathGlobalValid": 12, + "AzureSubscriptionSwaggerLocalValid": 12, + "AzureSubscriptionSwaggerGlobalValid": 12, + "AzureApiVersionMethodLocalNull": 12, + "AzureApiVersionMethodLocalValid": 12, + "AzureApiVersionMethodGlobalValid": 12, + "AzureApiVersionMethodGlobalNotProvidedValid": 12, + "AzureApiVersionPathLocalValid": 12, + "AzureApiVersionPathGlobalValid": 12, + "AzureApiVersionSwaggerLocalValid": 12, + "AzureApiVersionSwaggerGlobalValid": 12, + "AzureMethodPathUrlEncoding": 12, + "AzurePathPathUrlEncoding": 12, + "AzureSwaggerPathUrlEncoding": 12, + "AzureMethodQueryUrlEncoding": 12, + "AzurePathQueryUrlEncoding": 12, + "AzureSwaggerQueryUrlEncoding": 12, + "AzureMethodQueryUrlEncodingNull": 24, + "AzureXmsRequestClientOverwrite": 12, + "AzureXmsRequestClientOverwriteViaParameter": 12, + "AzureXmsRequestClientIdNull": 12, + "AzureXmsCustomNamedRequestId": 12, + "AzureXmsCustomNamedRequestIdParameterGroup": 12, + "AzureRequestClientIdInError": 12, + "AzureODataFilter": 12, + "SubscriptionIdAndApiVersion": 17, + "postParameterGroupingOptionalParameters": 26, + "postParameterGroupingRequiredParameters": 26, + "postParameterGroupingMultipleParameterGroups": 26, + "postParameterGroupingSharedParameterGroupObject": 13 } \ No newline at end of file diff --git a/test/azure/low-level/coverage/report-optional.json b/test/azure/low-level/coverage/report-optional.json index a94659e10df..99501c9d066 100644 --- a/test/azure/low-level/coverage/report-optional.json +++ b/test/azure/low-level/coverage/report-optional.json @@ -1,32 +1,32 @@ { - "StreamUploadFile": 10, + "StreamUploadFile": 54, "UpdatePetWithForm": 0, - "getDecimalInvalid": 2, - "getDecimalBig": 2, - "getDecimalSmall": 2, - "getDecimalBigPositiveDecimal": 2, - "getDecimalBigNegativeDecimal": 2, - "putDecimalBig": 2, - "putDecimalSmall": 2, - "putDecimalBigPositiveDecimal": 2, - "putDecimalBigNegativeDecimal": 2, + "getDecimalInvalid": 10, + "getDecimalBig": 10, + "getDecimalSmall": 10, + "getDecimalBigPositiveDecimal": 10, + "getDecimalBigNegativeDecimal": 10, + "putDecimalBig": 10, + "putDecimalSmall": 10, + "putDecimalBigPositiveDecimal": 10, + "putDecimalBigNegativeDecimal": 6, "putDateTimeMaxUtc7MS": 0, - "getDateTimeMaxUtc7MSUppercase": 2, - "putDateTimeMaxLocalPositiveOffset": 2, + "getDateTimeMaxUtc7MSUppercase": 12, + "putDateTimeMaxLocalPositiveOffset": 12, "putDateTimeMaxLocalNegativeOffset": 0, "putDateTimeMinLocalPositiveOffset": 0, - "putDateTimeMinLocalNegativeOffset": 2, + "putDateTimeMinLocalNegativeOffset": 12, "HeaderParameterProtectedKey": 1, - "CustomHeaderInRequest": 2, - "FormdataStreamUploadFile": 8, + "CustomHeaderInRequest": 11, + "FormdataStreamUploadFile": 36, "HttpSuccess200Options": 0, "HttpRedirect307Options": 0, "HttpRetry502Options": 0, "HttpClientFailure400Options": 0, "HttpClientFailure403Options": 0, "HttpClientFailure412Options": 0, - "ResponsesScenarioNoModelEmptyBody": 2, - "sendErrorWithParamNameModels": 4, + "ResponsesScenarioNoModelEmptyBody": 10, + "sendErrorWithParamNameModels": 24, "MultiapiPutTestOneApiVersionOne": 0, "MultiapiPutTestOneApiVersionTwo": 0, "MultiapiGetTestTwoApiVersionOne": 0, diff --git a/test/azure/low-level/coverage/report-vanilla.json b/test/azure/low-level/coverage/report-vanilla.json index a7cf651439c..72274caebd0 100644 --- a/test/azure/low-level/coverage/report-vanilla.json +++ b/test/azure/low-level/coverage/report-vanilla.json @@ -1,619 +1,619 @@ { - "GetStringAsAnything": 2, - "PutStringAsAnything": 2, - "GetObjectAsAnything": 2, - "PutObjectAsAnything": 2, - "GetArrayAsAnything": 2, - "PutArrayAsAnything": 2, - "ConstantClientProperties": 2, - "verifyIncorrectErrorParsing": 2, - "MediaTypesAnalyzeBodyNoAcceptHeader": 4, - "GetParameterizedHostWithNameEndpoint": 2, - "ImplicitOptionalBinaryBody": 2, - "ExplicitOptionalBinaryBody": 2, - "ExplicitRequiredBinaryBody": 2, - "OptionalImplicitBody": 2, - "GeneralOptional": 22, - "OptionalImplicitHeader": 2, - "OptionalImplicitQuery": 2, - "OptionalGlobalQuery": 2, - "reservedWordsOperationGroupImport": 2, - "getStringNull": 2, - "putStringNull": 2, - "getStringEmpty": 2, - "putStringEmpty": 2, - "getStringNotProvided": 2, - "getStringWithLeadingAndTrailingWhitespace": 2, - "putStringWithLeadingAndTrailingWhitespace": 2, - "getStringBase64UrlEncoded": 2, - "putStringBase64UrlEncoded": 2, - "getStringBase64Encoded": 2, - "getStringNullBase64UrlEncoding": 2, - "getStringMultiByteCharacters": 2, - "putStringMultiByteCharacters": 2, - "getEnumNotExpandable": 2, - "putEnumNotExpandable": 4, - "getEnumReferenced": 2, - "putEnumReferenced": 4, - "getEnumReferencedConstant": 2, - "putEnumReferencedConstant": 2, - "XmlGetBytes": 2, - "XmlPutBytes": 2, - "XmlGetUrl": 2, - "XmlPutUrl": 2, - "additionalPropertiesTrue": 2, - "additionalPropertiesSubclass": 2, - "additionalPropertiesTypeObject": 2, - "additionalPropertiesTypeString": 2, - "additionalPropertiesInProperties": 2, - "additionalPropertiesInPropertiesWithAPTypeString": 2, - "getArrayNull": 2, - "getArrayEmpty": 2, - "putArrayEmpty": 2, - "getArrayInvalid": 2, - "getArrayBooleanValid": 2, - "putArrayBooleanValid": 2, - "getArrayBooleanWithNull": 2, - "getArrayBooleanWithString": 2, - "getArrayIntegerValid": 2, - "putArrayIntegerValid": 2, - "getArrayIntegerWithNull": 2, - "getArrayIntegerWithString": 2, - "getArrayLongValid": 2, - "putArrayLongValid": 2, - "getArrayLongWithNull": 2, - "getArrayLongWithString": 2, - "getArrayFloatValid": 2, - "putArrayFloatValid": 2, - "getArrayFloatWithNull": 2, - "getArrayFloatWithString": 2, - "getArrayDoubleValid": 2, - "putArrayDoubleValid": 2, - "getArrayDoubleWithNull": 2, - "getArrayDoubleWithString": 2, - "getArrayStringValid": 2, - "putArrayStringValid": 2, - "getArrayEnumValid": 2, - "putArrayEnumValid": 2, - "getArrayStringEnumValid": 2, - "putArrayStringEnumValid": 2, - "getArrayStringWithNull": 2, - "getArrayStringWithNumber": 4, - "getArrayDateValid": 2, - "putArrayDateValid": 2, - "getArrayDateWithNull": 2, - "getArrayDateWithInvalidChars": 2, - "getArrayDateTimeValid": 2, - "putArrayDateTimeValid": 2, - "getArrayDateTimeWithNull": 2, - "getArrayDateTimeWithInvalidChars": 2, - "getArrayDateTimeRfc1123Valid": 2, - "putArrayDateTimeRfc1123Valid": 2, - "getArrayDurationValid": 2, - "putArrayDurationValid": 2, - "getArrayUuidValid": 2, - "getArrayUuidWithInvalidChars": 2, - "putArrayUuidValid": 2, - "getArrayByteValid": 2, - "putArrayByteValid": 2, - "getArrayByteWithNull": 2, - "getArrayArrayNull": 2, - "getArrayArrayEmpty": 2, - "getArrayArrayItemNull": 2, - "getArrayArrayItemEmpty": 2, - "getArrayArrayValid": 2, - "putArrayArrayValid": 2, - "getArrayComplexNull": 2, - "getArrayComplexEmpty": 2, - "getArrayComplexItemNull": 2, - "getArrayComplexItemEmpty": 2, - "getArrayComplexValid": 2, - "putArrayComplexValid": 2, - "getArrayDictionaryNull": 2, - "getArrayDictionaryEmpty": 2, - "getArrayDictionaryItemNull": 2, - "getArrayDictionaryItemEmpty": 2, - "getArrayDictionaryValid": 2, - "putArrayDictionaryValid": 2, - "getBoolTrue": 2, - "putBoolTrue": 2, - "getBoolFalse": 2, - "putBoolFalse": 2, - "getBoolInvalid": 2, - "getBoolNull": 2, - "getByteNull": 2, - "getByteEmpty": 2, - "getByteNonAscii": 2, - "putByteNonAscii": 2, - "getByteInvalid": 2, - "getDateNull": 2, - "getDateInvalid": 2, - "getDateOverflow": 2, - "getDateUnderflow": 2, - "getDateMax": 2, - "putDateMax": 2, - "getDateMin": 2, - "putDateMin": 2, - "getDateTimeNull": 2, - "getDateTimeInvalid": 2, - "getDateTimeOverflow": 2, - "getDateTimeUnderflow": 2, - "putDateTimeMaxUtc": 2, - "getDateTimeMaxUtcLowercase": 2, - "getDateTimeMaxUtcUppercase": 2, - "getDateTimeMaxLocalPositiveOffsetLowercase": 2, - "getDateTimeMaxLocalPositiveOffsetUppercase": 2, - "getDateTimeMaxLocalNegativeOffsetLowercase": 2, - "getDateTimeMaxLocalNegativeOffsetUppercase": 2, - "getDateTimeMinUtc": 2, - "putDateTimeMinUtc": 2, - "getDateTimeMinLocalPositiveOffset": 2, - "getDateTimeMinLocalNegativeOffset": 2, - "getDateTimeRfc1123Null": 2, - "getDateTimeRfc1123Invalid": 2, - "getDateTimeRfc1123Overflow": 2, - "getDateTimeRfc1123Underflow": 2, - "getDateTimeRfc1123MinUtc": 2, - "putDateTimeRfc1123Max": 2, - "putDateTimeRfc1123Min": 2, - "getDateTimeRfc1123MaxUtcLowercase": 2, - "getDateTimeRfc1123MaxUtcUppercase": 2, - "getIntegerNull": 2, - "getIntegerInvalid": 2, - "getIntegerOverflow": 2, - "getIntegerUnderflow": 2, - "getLongOverflow": 2, - "getLongUnderflow": 2, - "putIntegerMax": 2, - "putLongMax": 2, - "putIntegerMin": 2, - "putLongMin": 2, - "getNumberNull": 2, - "getFloatInvalid": 2, - "getDoubleInvalid": 2, - "getFloatBigScientificNotation": 2, - "putFloatBigScientificNotation": 2, - "getDoubleBigScientificNotation": 2, - "putDoubleBigScientificNotation": 2, - "getDoubleBigPositiveDecimal": 2, - "putDoubleBigPositiveDecimal": 2, - "getDoubleBigNegativeDecimal": 2, - "putDoubleBigNegativeDecimal": 2, - "getFloatSmallScientificNotation": 2, - "putFloatSmallScientificNotation": 2, - "getDoubleSmallScientificNotation": 2, - "putDoubleSmallScientificNotation": 2, - "putComplexBasicValid": 4, - "getComplexBasicValid": 2, - "getComplexBasicEmpty": 2, - "getComplexBasicNotProvided": 2, - "getComplexBasicNull": 2, - "getComplexBasicInvalid": 2, - "putComplexPrimitiveInteger": 2, - "putComplexPrimitiveLong": 2, - "putComplexPrimitiveFloat": 2, - "putComplexPrimitiveDouble": 2, - "putComplexPrimitiveBool": 2, - "putComplexPrimitiveString": 2, - "putComplexPrimitiveDate": 2, - "putComplexPrimitiveDateTime": 2, - "putComplexPrimitiveDateTimeRfc1123": 2, - "putComplexPrimitiveDuration": 2, - "putComplexPrimitiveByte": 2, - "getComplexPrimitiveInteger": 2, - "getComplexPrimitiveLong": 2, - "getComplexPrimitiveFloat": 2, - "getComplexPrimitiveDouble": 2, - "getComplexPrimitiveBool": 2, - "getComplexPrimitiveString": 2, - "getComplexPrimitiveDate": 2, - "getComplexPrimitiveDateTime": 2, - "getComplexPrimitiveDateTimeRfc1123": 2, - "getComplexPrimitiveDuration": 2, - "getComplexPrimitiveByte": 2, - "putComplexArrayValid": 2, - "putComplexArrayEmpty": 2, - "getComplexArrayValid": 2, - "getComplexArrayEmpty": 2, - "getComplexArrayNotProvided": 2, - "putComplexDictionaryValid": 2, - "putComplexDictionaryEmpty": 2, - "getComplexDictionaryValid": 2, - "getComplexDictionaryEmpty": 2, - "getComplexDictionaryNull": 2, - "getComplexDictionaryNotProvided": 2, - "putComplexInheritanceValid": 6, - "getComplexInheritanceValid": 8, - "putComplexPolymorphismValid": 2, - "getComplexPolymorphismValid": 2, - "putComplexPolymorphismComplicated": 2, - "getComplexPolymorphismComplicated": 2, - "putComplexPolymorphismNoDiscriminator": 2, - "putComplexPolymorphicRecursiveValid": 2, - "getComplexPolymorphicRecursiveValid": 2, - "putComplexReadOnlyPropertyValid": 2, - "getComplexReadOnlyPropertyValid": 2, - "UrlPathsBoolFalse": 2, - "UrlPathsBoolTrue": 2, - "UrlPathsIntPositive": 2, - "UrlPathsIntNegative": 2, - "UrlPathsLongPositive": 2, - "UrlPathsLongNegative": 2, - "UrlPathsFloatPositive": 2, - "UrlPathsFloatNegative": 2, - "UrlPathsDoublePositive": 2, - "UrlPathsDoubleNegative": 2, - "UrlPathsStringUrlEncoded": 2, - "UrlPathsStringUrlNonEncoded": 2, - "UrlPathsStringEmpty": 2, - "UrlPathsStringUnicode": 2, - "UrlPathsEnumValid": 2, - "UrlPathsByteMultiByte": 2, - "UrlPathsByteEmpty": 2, - "UrlPathsDateValid": 2, - "UrlPathsDateTimeValid": 2, - "UrlQueriesBoolFalse": 2, - "UrlQueriesBoolTrue": 2, - "UrlQueriesBoolNull": 2, - "UrlQueriesIntPositive": 2, - "UrlQueriesIntNegative": 2, - "UrlQueriesIntNull": 2, - "UrlQueriesLongPositive": 2, - "UrlQueriesLongNegative": 2, - "UrlQueriesLongNull": 2, - "UrlQueriesFloatPositive": 2, - "UrlQueriesFloatNegative": 2, - "UrlQueriesFloatNull": 2, - "UrlQueriesDoublePositive": 2, - "UrlQueriesDoubleNegative": 2, - "UrlQueriesDoubleNull": 2, - "UrlQueriesStringUrlEncoded": 2, - "UrlQueriesStringEmpty": 2, - "UrlQueriesStringNull": 2, - "UrlQueriesStringUnicode": 2, - "UrlQueriesEnumValid": 2, - "UrlQueriesEnumNull": 2, - "UrlQueriesByteMultiByte": 2, - "UrlQueriesByteEmpty": 2, - "UrlQueriesByteNull": 2, - "UrlQueriesDateValid": 2, - "UrlQueriesDateNull": 2, - "UrlQueriesDateTimeValid": 2, - "UrlQueriesDateTimeNull": 2, - "UrlQueriesArrayCsvNull": 2, - "UrlQueriesArrayCsvEmpty": 2, - "UrlQueriesArrayCsvValid": 2, - "UrlQueriesArrayMultiNull": 2, - "UrlQueriesArrayMultiEmpty": 2, - "UrlQueriesArrayMultiValid": 2, - "UrlQueriesArraySsvValid": 2, - "UrlQueriesArrayPipesValid": 2, - "UrlQueriesArrayTsvValid": 1, - "UrlQueriesArrayNoCollectionFormatValid": 2, - "UrlPathItemGetAll": 2, - "UrlPathItemGetGlobalNull": 2, - "UrlPathItemGetGlobalAndLocalNull": 2, - "UrlPathItemGetPathItemAndLocalNull": 2, - "putDictionaryEmpty": 2, - "getDictionaryNull": 2, - "getDictionaryEmpty": 2, - "getDictionaryInvalid": 2, - "getDictionaryNullValue": 2, - "getDictionaryNullkey": 2, - "getDictionaryKeyEmptyString": 2, - "getDictionaryBooleanValid": 2, - "getDictionaryBooleanWithNull": 2, - "getDictionaryBooleanWithString": 2, - "getDictionaryIntegerValid": 2, - "getDictionaryIntegerWithNull": 2, - "getDictionaryIntegerWithString": 2, - "getDictionaryLongValid": 2, - "getDictionaryLongWithNull": 2, - "getDictionaryLongWithString": 2, - "getDictionaryFloatValid": 2, - "getDictionaryFloatWithNull": 2, - "getDictionaryFloatWithString": 2, - "getDictionaryDoubleValid": 2, - "getDictionaryDoubleWithNull": 2, - "getDictionaryDoubleWithString": 2, - "getDictionaryStringValid": 2, - "getDictionaryStringWithNull": 2, - "getDictionaryStringWithNumber": 2, - "getDictionaryDateValid": 2, - "getDictionaryDateWithNull": 2, - "getDictionaryDateWithInvalidChars": 2, - "getDictionaryDateTimeValid": 2, - "getDictionaryDateTimeWithNull": 2, - "getDictionaryDateTimeWithInvalidChars": 2, - "getDictionaryDateTimeRfc1123Valid": 2, - "getDictionaryDurationValid": 2, - "getDictionaryByteValid": 2, - "getDictionaryByteWithNull": 2, - "putDictionaryBooleanValid": 2, - "putDictionaryIntegerValid": 2, - "putDictionaryLongValid": 2, - "putDictionaryFloatValid": 2, - "putDictionaryDoubleValid": 2, - "putDictionaryStringValid": 2, - "putDictionaryDateValid": 2, - "putDictionaryDateTimeValid": 2, - "putDictionaryDateTimeRfc1123Valid": 2, - "putDictionaryDurationValid": 2, - "putDictionaryByteValid": 2, - "getDictionaryComplexNull": 2, - "getDictionaryComplexEmpty": 2, - "getDictionaryComplexItemNull": 2, - "getDictionaryComplexItemEmpty": 2, - "getDictionaryComplexValid": 2, - "putDictionaryComplexValid": 2, - "getDictionaryArrayNull": 2, - "getDictionaryArrayEmpty": 2, - "getDictionaryArrayItemNull": 2, - "getDictionaryArrayItemEmpty": 2, - "getDictionaryArrayValid": 2, - "putDictionaryArrayValid": 2, - "getDictionaryDictionaryNull": 2, - "getDictionaryDictionaryEmpty": 2, - "getDictionaryDictionaryItemNull": 2, - "getDictionaryDictionaryItemEmpty": 2, - "getDictionaryDictionaryValid": 2, - "putDictionaryDictionaryValid": 2, - "putDurationPositive": 11, - "getDurationNull": 11, - "getDurationInvalid": 11, - "getDurationPositive": 11, - "HeaderParameterExistingKey": 2, - "HeaderResponseExistingKey": 2, - "HeaderResponseProtectedKey": 2, - "HeaderParameterIntegerPositive": 2, - "HeaderParameterIntegerNegative": 2, - "HeaderParameterLongPositive": 2, - "HeaderParameterLongNegative": 2, - "HeaderParameterFloatPositive": 2, - "HeaderParameterFloatNegative": 2, - "HeaderParameterDoublePositive": 2, - "HeaderParameterDoubleNegative": 2, - "HeaderParameterBoolTrue": 2, - "HeaderParameterBoolFalse": 2, - "HeaderParameterStringValid": 2, - "HeaderParameterStringNull": 2, - "HeaderParameterStringEmpty": 2, - "HeaderParameterDateValid": 2, - "HeaderParameterDateMin": 2, - "HeaderParameterDateTimeValid": 2, - "HeaderParameterDateTimeMin": 2, - "HeaderParameterDateTimeRfc1123Valid": 2, - "HeaderParameterDateTimeRfc1123Min": 2, - "HeaderParameterBytesValid": 2, - "HeaderParameterDurationValid": 2, - "HeaderResponseIntegerPositive": 2, - "HeaderResponseIntegerNegative": 2, - "HeaderResponseLongPositive": 2, - "HeaderResponseLongNegative": 2, - "HeaderResponseFloatPositive": 2, - "HeaderResponseFloatNegative": 2, - "HeaderResponseDoublePositive": 2, - "HeaderResponseDoubleNegative": 2, - "HeaderResponseBoolTrue": 2, - "HeaderResponseBoolFalse": 2, - "HeaderResponseStringValid": 2, - "HeaderResponseStringNull": 2, - "HeaderResponseStringEmpty": 2, - "HeaderParameterEnumValid": 4, - "HeaderParameterEnumNull": 2, - "HeaderResponseEnumValid": 2, - "HeaderResponseEnumNull": 2, - "HeaderResponseDateValid": 2, - "HeaderResponseDateMin": 2, - "HeaderResponseDateTimeValid": 2, - "HeaderResponseDateTimeMin": 2, - "HeaderResponseDateTimeRfc1123Valid": 2, - "HeaderResponseDateTimeRfc1123Min": 2, - "HeaderResponseBytesValid": 2, - "HeaderResponseDurationValid": 2, - "ConstantsInPath": 2, - "ConstantsInBody": 2, - "CustomBaseUri": 6, - "CustomBaseUriMoreOptions": 2, - "getModelFlattenArray": 2, - "putModelFlattenArray": 2, - "getModelFlattenDictionary": 2, - "putModelFlattenDictionary": 2, - "getModelFlattenResourceCollection": 2, - "putModelFlattenResourceCollection": 2, - "putModelFlattenCustomBase": 2, - "postModelFlattenCustomParameter": 2, - "putModelFlattenCustomGroupedParameter": 2, - "getArrayBase64Url": 2, - "getDictionaryBase64Url": 2, - "UrlPathsStringBase64Url": 2, - "UrlPathsArrayCSVInPath": 2, - "getUnixTime": 2, - "getInvalidUnixTime": 2, - "getNullUnixTime": 2, - "putUnixTime": 2, - "UrlPathsIntUnixTime": 2, - "expectedEnum": 2, - "unexpectedEnum": 2, - "allowedValueEnum": 2, - "roundTripEnum": 2, - "expectedNoErrors": 2, - "expectedPetSadError": 8, - "expectedPetHungryError": 1, - "intError": 1, - "stringError": 1, - "animalNotFoundError": 1, - "linkNotFoundError": 1, - "getDateTimeMinLocalNoOffset": 2, - "getComplexPolymorphismDotSyntax": 2, - "getComposedWithDiscriminator": 2, - "getComposedWithoutDiscriminator": 2, - "FileStreamNonempty": 6, - "FileStreamVeryLarge": 2, - "FileStreamEmpty": 4, - "HttpSuccess200Head": 20, - "HttpSuccess200Get": 2, - "HttpSuccess200Put": 2, - "HttpSuccess200Post": 2, - "HttpSuccess200Patch": 2, - "HttpSuccess200Delete": 2, - "HttpSuccess201Put": 2, - "HttpSuccess201Post": 2, - "HttpSuccess202Put": 2, - "HttpSuccess202Post": 2, - "HttpSuccess202Patch": 2, - "HttpSuccess202Delete": 2, - "HttpSuccess204Head": 20, - "HttpSuccess404Head": 20, - "HttpSuccess204Put": 2, - "HttpSuccess204Post": 2, - "HttpSuccess204Patch": 2, - "HttpSuccess204Delete": 2, - "HttpRedirect300Head": 2, - "HttpRedirect300Get": 2, - "HttpRedirect301Put": 2, - "HttpRedirect301Get": 2, - "HttpRedirect302Head": 2, - "HttpRedirect302Get": 2, - "HttpRedirect302Patch": 2, - "HttpRedirect303Post": 2, - "HttpRedirect307Head": 2, - "HttpRedirect307Get": 2, - "HttpRedirect307Put": 2, - "HttpRedirect307Post": 2, - "HttpRedirect307Patch": 2, - "HttpRedirect307Delete": 2, - "HttpRetry408Head": 2, - "HttpRetry500Put": 2, - "HttpRetry500Patch": 2, - "HttpRetry502Get": 2, - "HttpRetry503Post": 2, - "HttpRetry503Delete": 2, - "HttpRetry504Put": 2, - "HttpRetry504Patch": 2, - "HttpClientFailure400Head": 2, - "HttpClientFailure400Get": 2, - "HttpClientFailure400Put": 2, - "HttpClientFailure400Post": 2, - "HttpClientFailure400Patch": 2, - "HttpClientFailure400Delete": 2, - "HttpClientFailure401Head": 2, - "HttpClientFailure402Get": 2, - "HttpClientFailure403Get": 2, - "HttpClientFailure404Put": 2, - "HttpClientFailure405Patch": 2, - "HttpClientFailure406Post": 2, - "HttpClientFailure407Delete": 2, - "HttpClientFailure409Put": 2, - "HttpClientFailure410Head": 2, - "HttpClientFailure411Get": 2, - "HttpClientFailure412Get": 2, - "HttpClientFailure413Put": 2, - "HttpClientFailure414Patch": 2, - "HttpClientFailure415Post": 2, - "HttpClientFailure416Get": 2, - "HttpClientFailure417Delete": 2, - "HttpClientFailure429Head": 8, - "HttpServerFailure501Head": 2, - "HttpServerFailure501Get": 2, - "HttpServerFailure505Post": 2, - "HttpServerFailure505Delete": 2, - "ResponsesScenarioA200MatchingModel": 2, - "ResponsesScenarioA204MatchingNoModel": 2, - "ResponsesScenarioA201DefaultNoModel": 2, - "ResponsesScenarioA202DefaultNoModel": 2, - "ResponsesScenarioA400DefaultModel": 2, - "ResponsesScenarioB200MatchingModel": 2, - "ResponsesScenarioB201MatchingModel": 2, - "ResponsesScenarioB400DefaultModel": 2, - "ResponsesScenarioC200MatchingModel": 2, - "ResponsesScenarioC201MatchingModel": 2, - "ResponsesScenarioC404MatchingModel": 2, - "ResponsesScenarioC400DefaultModel": 2, - "ResponsesScenarioD202MatchingNoModel": 2, - "ResponsesScenarioD204MatchingNoModel": 2, - "ResponsesScenarioD400DefaultModel": 2, - "ResponsesScenarioE202MatchingInvalid": 2, - "ResponsesScenarioE204MatchingNoModel": 2, - "ResponsesScenarioE400DefaultNoModel": 2, - "ResponsesScenarioE400DefaultInvalid": 2, - "ResponsesScenarioF200DefaultModel": 4, - "ResponsesScenarioF200DefaultNone": 4, - "ResponsesScenarioF400DefaultModel": 2, - "ResponsesScenarioF400DefaultNone": 2, - "ResponsesScenarioG200DefaultInvalid": 2, - "ResponsesScenarioG200DefaultNoModel": 2, - "ResponsesScenarioG400DefaultInvalid": 2, - "ResponsesScenarioG400DefaultNoModel": 2, - "ResponsesScenarioH200MatchingNone": 2, - "ResponsesScenarioH200MatchingModel": 2, - "ResponsesScenarioH200MatchingInvalid": 2, - "ResponsesScenarioH400NonMatchingNone": 2, - "ResponsesScenarioH400NonMatchingModel": 2, - "ResponsesScenarioH400NonMatchingInvalid": 2, - "ResponsesScenarioH202NonMatchingModel": 2, - "ResponsesScenarioEmptyErrorBody": 2, - "ResponsesScenarioNoModelErrorBody": 2, - "MediaTypeJson": 2, - "MediaTypePdf": 2, - "MediaTypeWithEncoding": 2, - "StorageListContainersXML": 2, - "StorageGetServicePropertiesXML": 2, - "StoragePutServicePropertiesXML": 2, - "StorageGetContainerACLXML": 2, - "StorageListBlobsXML": 2, - "StoragePutContainerACLXML": 2, - "GetSimpleXML": 2, - "PutSimpleXML": 2, - "GetWrappedXMLList": 2, - "PutWrappedXMLList": 2, - "GetEmptyXMLList": 2, - "PutEmptyXMLList": 2, - "GetEmptyWrappedXMLList": 2, - "PutEmptyWrappedXMLList": 2, - "GetXMLListAtRoot": 2, - "PutXMLListAtRoot": 2, - "GetXMLListAtRootSingle": 2, - "PutXMLListAtRootSingle": 2, - "GetEmptyXMLListAtRoot": 2, - "PutEmptyXMLListAtRoot": 2, - "GetXMLEmptyNode": 2, - "PutXMLEmptyNode": 2, - "GetRootWithRefAndNoMetaXML": 2, - "PutRootWithRefAndNoMetaXML": 2, - "GetRootWithRefAndMetaXML": 2, - "PutRootWithRefAndMetaXML": 2, - "jsonInputInXMLSwagger": 2, - "jsonOutputInXMLSwagger": 2, - "GetWithXMsText": 2, - "ObjectTypeResponse": 2, - "ObjectTypePut": 2, - "ObjectTypeErrorResponse": 2, - "NonStringEnumsPostInt": 2, - "NonStringEnumsGetInt": 2, - "NonStringEnumsPostFloat": 2, - "NonStringEnumsGetFloat": 2, - "BodyTimeGet": 2, - "BodyTimePut": 2, - "MultipleInheritancePetGet": 2, - "MultipleInheritancePetPut": 2, - "MultipleInheritanceHorseGet": 2, - "MultipleInheritanceHorsePut": 2, - "MultipleInheritanceFelineGet": 2, - "MultipleInheritanceFelinePut": 2, - "MultipleInheritanceCatGet": 2, - "MultipleInheritanceCatPut": 2, - "MultipleInheritanceKittenGet": 2, - "MultipleInheritanceKittenPut": 2, - "OptionalIntegerParameter": 2, - "OptionalIntegerProperty": 2, - "OptionalIntegerHeader": 2, - "OptionalStringParameter": 2, - "OptionalStringProperty": 2, - "OptionalStringHeader": 2, - "OptionalClassParameter": 2, - "OptionalClassProperty": 2, - "OptionalArrayParameter": 2, - "OptionalArrayProperty": 2, - "OptionalArrayHeader": 2 + "GetStringAsAnything": 13, + "PutStringAsAnything": 13, + "GetObjectAsAnything": 13, + "PutObjectAsAnything": 13, + "GetArrayAsAnything": 13, + "PutArrayAsAnything": 13, + "ConstantClientProperties": 12, + "verifyIncorrectErrorParsing": 4, + "MediaTypesAnalyzeBodyNoAcceptHeader": 20, + "GetParameterizedHostWithNameEndpoint": 10, + "ImplicitOptionalBinaryBody": 6, + "ExplicitOptionalBinaryBody": 14, + "ExplicitRequiredBinaryBody": 8, + "OptionalImplicitBody": 10, + "GeneralOptional": 110, + "OptionalImplicitHeader": 10, + "OptionalImplicitQuery": 10, + "OptionalGlobalQuery": 10, + "reservedWordsOperationGroupImport": 10, + "getStringNull": 10, + "putStringNull": 10, + "getStringEmpty": 10, + "putStringEmpty": 10, + "getStringNotProvided": 10, + "getStringWithLeadingAndTrailingWhitespace": 10, + "putStringWithLeadingAndTrailingWhitespace": 10, + "getStringBase64UrlEncoded": 10, + "putStringBase64UrlEncoded": 10, + "getStringBase64Encoded": 10, + "getStringNullBase64UrlEncoding": 10, + "getStringMultiByteCharacters": 10, + "putStringMultiByteCharacters": 10, + "getEnumNotExpandable": 10, + "putEnumNotExpandable": 18, + "getEnumReferenced": 10, + "putEnumReferenced": 22, + "getEnumReferencedConstant": 10, + "putEnumReferencedConstant": 6, + "XmlGetBytes": 10, + "XmlPutBytes": 10, + "XmlGetUrl": 10, + "XmlPutUrl": 10, + "additionalPropertiesTrue": 13, + "additionalPropertiesSubclass": 13, + "additionalPropertiesTypeObject": 13, + "additionalPropertiesTypeString": 13, + "additionalPropertiesInProperties": 13, + "additionalPropertiesInPropertiesWithAPTypeString": 13, + "getArrayNull": 14, + "getArrayEmpty": 14, + "putArrayEmpty": 14, + "getArrayInvalid": 14, + "getArrayBooleanValid": 14, + "putArrayBooleanValid": 14, + "getArrayBooleanWithNull": 14, + "getArrayBooleanWithString": 14, + "getArrayIntegerValid": 14, + "putArrayIntegerValid": 14, + "getArrayIntegerWithNull": 14, + "getArrayIntegerWithString": 14, + "getArrayLongValid": 14, + "putArrayLongValid": 14, + "getArrayLongWithNull": 14, + "getArrayLongWithString": 14, + "getArrayFloatValid": 14, + "putArrayFloatValid": 14, + "getArrayFloatWithNull": 14, + "getArrayFloatWithString": 14, + "getArrayDoubleValid": 14, + "putArrayDoubleValid": 14, + "getArrayDoubleWithNull": 14, + "getArrayDoubleWithString": 14, + "getArrayStringValid": 14, + "putArrayStringValid": 14, + "getArrayEnumValid": 13, + "putArrayEnumValid": 13, + "getArrayStringEnumValid": 13, + "putArrayStringEnumValid": 13, + "getArrayStringWithNull": 14, + "getArrayStringWithNumber": 27, + "getArrayDateValid": 14, + "putArrayDateValid": 14, + "getArrayDateWithNull": 13, + "getArrayDateWithInvalidChars": 13, + "getArrayDateTimeValid": 14, + "putArrayDateTimeValid": 14, + "getArrayDateTimeWithNull": 13, + "getArrayDateTimeWithInvalidChars": 13, + "getArrayDateTimeRfc1123Valid": 14, + "putArrayDateTimeRfc1123Valid": 14, + "getArrayDurationValid": 14, + "putArrayDurationValid": 14, + "getArrayUuidValid": 14, + "getArrayUuidWithInvalidChars": 14, + "putArrayUuidValid": 14, + "getArrayByteValid": 14, + "putArrayByteValid": 14, + "getArrayByteWithNull": 14, + "getArrayArrayNull": 14, + "getArrayArrayEmpty": 14, + "getArrayArrayItemNull": 14, + "getArrayArrayItemEmpty": 14, + "getArrayArrayValid": 14, + "putArrayArrayValid": 14, + "getArrayComplexNull": 14, + "getArrayComplexEmpty": 14, + "getArrayComplexItemNull": 14, + "getArrayComplexItemEmpty": 14, + "getArrayComplexValid": 14, + "putArrayComplexValid": 14, + "getArrayDictionaryNull": 14, + "getArrayDictionaryEmpty": 14, + "getArrayDictionaryItemNull": 14, + "getArrayDictionaryItemEmpty": 14, + "getArrayDictionaryValid": 14, + "putArrayDictionaryValid": 14, + "getBoolTrue": 12, + "putBoolTrue": 12, + "getBoolFalse": 12, + "putBoolFalse": 12, + "getBoolInvalid": 12, + "getBoolNull": 12, + "getByteNull": 12, + "getByteEmpty": 12, + "getByteNonAscii": 12, + "putByteNonAscii": 12, + "getByteInvalid": 12, + "getDateNull": 12, + "getDateInvalid": 12, + "getDateOverflow": 12, + "getDateUnderflow": 12, + "getDateMax": 12, + "putDateMax": 12, + "getDateMin": 12, + "putDateMin": 12, + "getDateTimeNull": 12, + "getDateTimeInvalid": 12, + "getDateTimeOverflow": 12, + "getDateTimeUnderflow": 12, + "putDateTimeMaxUtc": 12, + "getDateTimeMaxUtcLowercase": 12, + "getDateTimeMaxUtcUppercase": 12, + "getDateTimeMaxLocalPositiveOffsetLowercase": 12, + "getDateTimeMaxLocalPositiveOffsetUppercase": 12, + "getDateTimeMaxLocalNegativeOffsetLowercase": 12, + "getDateTimeMaxLocalNegativeOffsetUppercase": 12, + "getDateTimeMinUtc": 12, + "putDateTimeMinUtc": 12, + "getDateTimeMinLocalPositiveOffset": 12, + "getDateTimeMinLocalNegativeOffset": 12, + "getDateTimeRfc1123Null": 12, + "getDateTimeRfc1123Invalid": 12, + "getDateTimeRfc1123Overflow": 12, + "getDateTimeRfc1123Underflow": 12, + "getDateTimeRfc1123MinUtc": 12, + "putDateTimeRfc1123Max": 12, + "putDateTimeRfc1123Min": 12, + "getDateTimeRfc1123MaxUtcLowercase": 12, + "getDateTimeRfc1123MaxUtcUppercase": 12, + "getIntegerNull": 12, + "getIntegerInvalid": 10, + "getIntegerOverflow": 11, + "getIntegerUnderflow": 11, + "getLongOverflow": 11, + "getLongUnderflow": 11, + "putIntegerMax": 11, + "putLongMax": 11, + "putIntegerMin": 11, + "putLongMin": 11, + "getNumberNull": 10, + "getFloatInvalid": 10, + "getDoubleInvalid": 10, + "getFloatBigScientificNotation": 10, + "putFloatBigScientificNotation": 10, + "getDoubleBigScientificNotation": 10, + "putDoubleBigScientificNotation": 10, + "getDoubleBigPositiveDecimal": 10, + "putDoubleBigPositiveDecimal": 10, + "getDoubleBigNegativeDecimal": 10, + "putDoubleBigNegativeDecimal": 10, + "getFloatSmallScientificNotation": 10, + "putFloatSmallScientificNotation": 10, + "getDoubleSmallScientificNotation": 10, + "putDoubleSmallScientificNotation": 10, + "putComplexBasicValid": 22, + "getComplexBasicValid": 12, + "getComplexBasicEmpty": 12, + "getComplexBasicNotProvided": 12, + "getComplexBasicNull": 12, + "getComplexBasicInvalid": 12, + "putComplexPrimitiveInteger": 12, + "putComplexPrimitiveLong": 12, + "putComplexPrimitiveFloat": 12, + "putComplexPrimitiveDouble": 12, + "putComplexPrimitiveBool": 12, + "putComplexPrimitiveString": 12, + "putComplexPrimitiveDate": 12, + "putComplexPrimitiveDateTime": 12, + "putComplexPrimitiveDateTimeRfc1123": 12, + "putComplexPrimitiveDuration": 12, + "putComplexPrimitiveByte": 12, + "getComplexPrimitiveInteger": 12, + "getComplexPrimitiveLong": 12, + "getComplexPrimitiveFloat": 12, + "getComplexPrimitiveDouble": 12, + "getComplexPrimitiveBool": 12, + "getComplexPrimitiveString": 12, + "getComplexPrimitiveDate": 12, + "getComplexPrimitiveDateTime": 12, + "getComplexPrimitiveDateTimeRfc1123": 12, + "getComplexPrimitiveDuration": 12, + "getComplexPrimitiveByte": 12, + "putComplexArrayValid": 12, + "putComplexArrayEmpty": 12, + "getComplexArrayValid": 12, + "getComplexArrayEmpty": 12, + "getComplexArrayNotProvided": 12, + "putComplexDictionaryValid": 12, + "putComplexDictionaryEmpty": 12, + "getComplexDictionaryValid": 12, + "getComplexDictionaryEmpty": 12, + "getComplexDictionaryNull": 12, + "getComplexDictionaryNotProvided": 12, + "putComplexInheritanceValid": 26, + "getComplexInheritanceValid": 42, + "putComplexPolymorphismValid": 12, + "getComplexPolymorphismValid": 12, + "putComplexPolymorphismComplicated": 12, + "getComplexPolymorphismComplicated": 12, + "putComplexPolymorphismNoDiscriminator": 12, + "putComplexPolymorphicRecursiveValid": 12, + "getComplexPolymorphicRecursiveValid": 12, + "putComplexReadOnlyPropertyValid": 12, + "getComplexReadOnlyPropertyValid": 12, + "UrlPathsBoolFalse": 10, + "UrlPathsBoolTrue": 10, + "UrlPathsIntPositive": 10, + "UrlPathsIntNegative": 10, + "UrlPathsLongPositive": 10, + "UrlPathsLongNegative": 10, + "UrlPathsFloatPositive": 10, + "UrlPathsFloatNegative": 10, + "UrlPathsDoublePositive": 10, + "UrlPathsDoubleNegative": 10, + "UrlPathsStringUrlEncoded": 10, + "UrlPathsStringUrlNonEncoded": 10, + "UrlPathsStringEmpty": 10, + "UrlPathsStringUnicode": 10, + "UrlPathsEnumValid": 10, + "UrlPathsByteMultiByte": 10, + "UrlPathsByteEmpty": 10, + "UrlPathsDateValid": 10, + "UrlPathsDateTimeValid": 10, + "UrlQueriesBoolFalse": 10, + "UrlQueriesBoolTrue": 10, + "UrlQueriesBoolNull": 10, + "UrlQueriesIntPositive": 10, + "UrlQueriesIntNegative": 10, + "UrlQueriesIntNull": 10, + "UrlQueriesLongPositive": 10, + "UrlQueriesLongNegative": 10, + "UrlQueriesLongNull": 10, + "UrlQueriesFloatPositive": 10, + "UrlQueriesFloatNegative": 10, + "UrlQueriesFloatNull": 10, + "UrlQueriesDoublePositive": 10, + "UrlQueriesDoubleNegative": 10, + "UrlQueriesDoubleNull": 10, + "UrlQueriesStringUrlEncoded": 10, + "UrlQueriesStringEmpty": 10, + "UrlQueriesStringNull": 10, + "UrlQueriesStringUnicode": 10, + "UrlQueriesEnumValid": 10, + "UrlQueriesEnumNull": 10, + "UrlQueriesByteMultiByte": 10, + "UrlQueriesByteEmpty": 10, + "UrlQueriesByteNull": 10, + "UrlQueriesDateValid": 10, + "UrlQueriesDateNull": 10, + "UrlQueriesDateTimeValid": 10, + "UrlQueriesDateTimeNull": 10, + "UrlQueriesArrayCsvNull": 10, + "UrlQueriesArrayCsvEmpty": 10, + "UrlQueriesArrayCsvValid": 10, + "UrlQueriesArrayMultiNull": 10, + "UrlQueriesArrayMultiEmpty": 10, + "UrlQueriesArrayMultiValid": 10, + "UrlQueriesArraySsvValid": 10, + "UrlQueriesArrayPipesValid": 10, + "UrlQueriesArrayTsvValid": 5, + "UrlQueriesArrayNoCollectionFormatValid": 10, + "UrlPathItemGetAll": 10, + "UrlPathItemGetGlobalNull": 10, + "UrlPathItemGetGlobalAndLocalNull": 10, + "UrlPathItemGetPathItemAndLocalNull": 10, + "putDictionaryEmpty": 12, + "getDictionaryNull": 12, + "getDictionaryEmpty": 12, + "getDictionaryInvalid": 12, + "getDictionaryNullValue": 11, + "getDictionaryNullkey": 12, + "getDictionaryKeyEmptyString": 12, + "getDictionaryBooleanValid": 12, + "getDictionaryBooleanWithNull": 12, + "getDictionaryBooleanWithString": 12, + "getDictionaryIntegerValid": 12, + "getDictionaryIntegerWithNull": 12, + "getDictionaryIntegerWithString": 12, + "getDictionaryLongValid": 12, + "getDictionaryLongWithNull": 12, + "getDictionaryLongWithString": 12, + "getDictionaryFloatValid": 12, + "getDictionaryFloatWithNull": 12, + "getDictionaryFloatWithString": 12, + "getDictionaryDoubleValid": 12, + "getDictionaryDoubleWithNull": 12, + "getDictionaryDoubleWithString": 12, + "getDictionaryStringValid": 12, + "getDictionaryStringWithNull": 12, + "getDictionaryStringWithNumber": 12, + "getDictionaryDateValid": 12, + "getDictionaryDateWithNull": 12, + "getDictionaryDateWithInvalidChars": 12, + "getDictionaryDateTimeValid": 12, + "getDictionaryDateTimeWithNull": 12, + "getDictionaryDateTimeWithInvalidChars": 12, + "getDictionaryDateTimeRfc1123Valid": 12, + "getDictionaryDurationValid": 12, + "getDictionaryByteValid": 12, + "getDictionaryByteWithNull": 12, + "putDictionaryBooleanValid": 12, + "putDictionaryIntegerValid": 12, + "putDictionaryLongValid": 12, + "putDictionaryFloatValid": 12, + "putDictionaryDoubleValid": 12, + "putDictionaryStringValid": 12, + "putDictionaryDateValid": 12, + "putDictionaryDateTimeValid": 12, + "putDictionaryDateTimeRfc1123Valid": 12, + "putDictionaryDurationValid": 12, + "putDictionaryByteValid": 12, + "getDictionaryComplexNull": 12, + "getDictionaryComplexEmpty": 12, + "getDictionaryComplexItemNull": 12, + "getDictionaryComplexItemEmpty": 12, + "getDictionaryComplexValid": 12, + "putDictionaryComplexValid": 12, + "getDictionaryArrayNull": 12, + "getDictionaryArrayEmpty": 12, + "getDictionaryArrayItemNull": 12, + "getDictionaryArrayItemEmpty": 12, + "getDictionaryArrayValid": 12, + "putDictionaryArrayValid": 12, + "getDictionaryDictionaryNull": 12, + "getDictionaryDictionaryEmpty": 12, + "getDictionaryDictionaryItemNull": 12, + "getDictionaryDictionaryItemEmpty": 12, + "getDictionaryDictionaryValid": 12, + "putDictionaryDictionaryValid": 12, + "putDurationPositive": 29, + "getDurationNull": 29, + "getDurationInvalid": 29, + "getDurationPositive": 29, + "HeaderParameterExistingKey": 11, + "HeaderResponseExistingKey": 11, + "HeaderResponseProtectedKey": 11, + "HeaderParameterIntegerPositive": 11, + "HeaderParameterIntegerNegative": 11, + "HeaderParameterLongPositive": 11, + "HeaderParameterLongNegative": 11, + "HeaderParameterFloatPositive": 11, + "HeaderParameterFloatNegative": 11, + "HeaderParameterDoublePositive": 11, + "HeaderParameterDoubleNegative": 11, + "HeaderParameterBoolTrue": 11, + "HeaderParameterBoolFalse": 11, + "HeaderParameterStringValid": 11, + "HeaderParameterStringNull": 11, + "HeaderParameterStringEmpty": 11, + "HeaderParameterDateValid": 11, + "HeaderParameterDateMin": 11, + "HeaderParameterDateTimeValid": 11, + "HeaderParameterDateTimeMin": 11, + "HeaderParameterDateTimeRfc1123Valid": 11, + "HeaderParameterDateTimeRfc1123Min": 11, + "HeaderParameterBytesValid": 11, + "HeaderParameterDurationValid": 11, + "HeaderResponseIntegerPositive": 11, + "HeaderResponseIntegerNegative": 11, + "HeaderResponseLongPositive": 11, + "HeaderResponseLongNegative": 11, + "HeaderResponseFloatPositive": 11, + "HeaderResponseFloatNegative": 11, + "HeaderResponseDoublePositive": 11, + "HeaderResponseDoubleNegative": 11, + "HeaderResponseBoolTrue": 11, + "HeaderResponseBoolFalse": 11, + "HeaderResponseStringValid": 11, + "HeaderResponseStringNull": 11, + "HeaderResponseStringEmpty": 11, + "HeaderParameterEnumValid": 20, + "HeaderParameterEnumNull": 11, + "HeaderResponseEnumValid": 11, + "HeaderResponseEnumNull": 11, + "HeaderResponseDateValid": 11, + "HeaderResponseDateMin": 11, + "HeaderResponseDateTimeValid": 11, + "HeaderResponseDateTimeMin": 11, + "HeaderResponseDateTimeRfc1123Valid": 11, + "HeaderResponseDateTimeRfc1123Min": 11, + "HeaderResponseBytesValid": 11, + "HeaderResponseDurationValid": 11, + "ConstantsInPath": 10, + "ConstantsInBody": 10, + "CustomBaseUri": 11, + "CustomBaseUriMoreOptions": 7, + "getModelFlattenArray": 10, + "putModelFlattenArray": 10, + "getModelFlattenDictionary": 10, + "putModelFlattenDictionary": 10, + "getModelFlattenResourceCollection": 10, + "putModelFlattenResourceCollection": 10, + "putModelFlattenCustomBase": 10, + "postModelFlattenCustomParameter": 10, + "putModelFlattenCustomGroupedParameter": 10, + "getArrayBase64Url": 19, + "getDictionaryBase64Url": 12, + "UrlPathsStringBase64Url": 10, + "UrlPathsArrayCSVInPath": 10, + "getUnixTime": 11, + "getInvalidUnixTime": 10, + "getNullUnixTime": 12, + "putUnixTime": 11, + "UrlPathsIntUnixTime": 10, + "expectedEnum": 12, + "unexpectedEnum": 12, + "allowedValueEnum": 12, + "roundTripEnum": 12, + "expectedNoErrors": 12, + "expectedPetSadError": 59, + "expectedPetHungryError": 6, + "intError": 6, + "stringError": 6, + "animalNotFoundError": 6, + "linkNotFoundError": 6, + "getDateTimeMinLocalNoOffset": 12, + "getComplexPolymorphismDotSyntax": 12, + "getComposedWithDiscriminator": 12, + "getComposedWithoutDiscriminator": 12, + "FileStreamNonempty": 30, + "FileStreamVeryLarge": 13, + "FileStreamEmpty": 20, + "HttpSuccess200Head": 44, + "HttpSuccess200Get": 10, + "HttpSuccess200Put": 10, + "HttpSuccess200Post": 10, + "HttpSuccess200Patch": 10, + "HttpSuccess200Delete": 10, + "HttpSuccess201Put": 10, + "HttpSuccess201Post": 10, + "HttpSuccess202Put": 10, + "HttpSuccess202Post": 10, + "HttpSuccess202Patch": 10, + "HttpSuccess202Delete": 10, + "HttpSuccess204Head": 44, + "HttpSuccess404Head": 44, + "HttpSuccess204Put": 10, + "HttpSuccess204Post": 10, + "HttpSuccess204Patch": 10, + "HttpSuccess204Delete": 10, + "HttpRedirect300Head": 10, + "HttpRedirect300Get": 10, + "HttpRedirect301Put": 10, + "HttpRedirect301Get": 10, + "HttpRedirect302Head": 10, + "HttpRedirect302Get": 10, + "HttpRedirect302Patch": 10, + "HttpRedirect303Post": 10, + "HttpRedirect307Head": 10, + "HttpRedirect307Get": 10, + "HttpRedirect307Put": 10, + "HttpRedirect307Post": 10, + "HttpRedirect307Patch": 10, + "HttpRedirect307Delete": 10, + "HttpRetry408Head": 11, + "HttpRetry500Put": 11, + "HttpRetry500Patch": 11, + "HttpRetry502Get": 11, + "HttpRetry503Post": 11, + "HttpRetry503Delete": 11, + "HttpRetry504Put": 11, + "HttpRetry504Patch": 11, + "HttpClientFailure400Head": 11, + "HttpClientFailure400Get": 11, + "HttpClientFailure400Put": 11, + "HttpClientFailure400Post": 11, + "HttpClientFailure400Patch": 11, + "HttpClientFailure400Delete": 11, + "HttpClientFailure401Head": 11, + "HttpClientFailure402Get": 11, + "HttpClientFailure403Get": 11, + "HttpClientFailure404Put": 11, + "HttpClientFailure405Patch": 11, + "HttpClientFailure406Post": 11, + "HttpClientFailure407Delete": 11, + "HttpClientFailure409Put": 11, + "HttpClientFailure410Head": 11, + "HttpClientFailure411Get": 11, + "HttpClientFailure412Get": 11, + "HttpClientFailure413Put": 11, + "HttpClientFailure414Patch": 11, + "HttpClientFailure415Post": 11, + "HttpClientFailure416Get": 11, + "HttpClientFailure417Delete": 11, + "HttpClientFailure429Head": 43, + "HttpServerFailure501Head": 11, + "HttpServerFailure501Get": 11, + "HttpServerFailure505Post": 11, + "HttpServerFailure505Delete": 11, + "ResponsesScenarioA200MatchingModel": 11, + "ResponsesScenarioA204MatchingNoModel": 11, + "ResponsesScenarioA201DefaultNoModel": 11, + "ResponsesScenarioA202DefaultNoModel": 11, + "ResponsesScenarioA400DefaultModel": 11, + "ResponsesScenarioB200MatchingModel": 11, + "ResponsesScenarioB201MatchingModel": 11, + "ResponsesScenarioB400DefaultModel": 11, + "ResponsesScenarioC200MatchingModel": 11, + "ResponsesScenarioC201MatchingModel": 11, + "ResponsesScenarioC404MatchingModel": 11, + "ResponsesScenarioC400DefaultModel": 11, + "ResponsesScenarioD202MatchingNoModel": 11, + "ResponsesScenarioD204MatchingNoModel": 11, + "ResponsesScenarioD400DefaultModel": 11, + "ResponsesScenarioE202MatchingInvalid": 11, + "ResponsesScenarioE204MatchingNoModel": 11, + "ResponsesScenarioE400DefaultNoModel": 11, + "ResponsesScenarioE400DefaultInvalid": 11, + "ResponsesScenarioF200DefaultModel": 22, + "ResponsesScenarioF200DefaultNone": 22, + "ResponsesScenarioF400DefaultModel": 5, + "ResponsesScenarioF400DefaultNone": 5, + "ResponsesScenarioG200DefaultInvalid": 15, + "ResponsesScenarioG200DefaultNoModel": 7, + "ResponsesScenarioG400DefaultInvalid": 11, + "ResponsesScenarioG400DefaultNoModel": 11, + "ResponsesScenarioH200MatchingNone": 11, + "ResponsesScenarioH200MatchingModel": 11, + "ResponsesScenarioH200MatchingInvalid": 11, + "ResponsesScenarioH400NonMatchingNone": 11, + "ResponsesScenarioH400NonMatchingModel": 11, + "ResponsesScenarioH400NonMatchingInvalid": 11, + "ResponsesScenarioH202NonMatchingModel": 11, + "ResponsesScenarioEmptyErrorBody": 10, + "ResponsesScenarioNoModelErrorBody": 10, + "MediaTypeJson": 10, + "MediaTypePdf": 10, + "MediaTypeWithEncoding": 10, + "StorageListContainersXML": 10, + "StorageGetServicePropertiesXML": 10, + "StoragePutServicePropertiesXML": 10, + "StorageGetContainerACLXML": 10, + "StorageListBlobsXML": 10, + "StoragePutContainerACLXML": 10, + "GetSimpleXML": 10, + "PutSimpleXML": 10, + "GetWrappedXMLList": 10, + "PutWrappedXMLList": 10, + "GetEmptyXMLList": 10, + "PutEmptyXMLList": 10, + "GetEmptyWrappedXMLList": 10, + "PutEmptyWrappedXMLList": 10, + "GetXMLListAtRoot": 10, + "PutXMLListAtRoot": 10, + "GetXMLListAtRootSingle": 10, + "PutXMLListAtRootSingle": 10, + "GetEmptyXMLListAtRoot": 14, + "PutEmptyXMLListAtRoot": 10, + "GetXMLEmptyNode": 10, + "PutXMLEmptyNode": 10, + "GetRootWithRefAndNoMetaXML": 10, + "PutRootWithRefAndNoMetaXML": 10, + "GetRootWithRefAndMetaXML": 10, + "PutRootWithRefAndMetaXML": 10, + "jsonInputInXMLSwagger": 10, + "jsonOutputInXMLSwagger": 10, + "GetWithXMsText": 10, + "ObjectTypeResponse": 10, + "ObjectTypePut": 10, + "ObjectTypeErrorResponse": 10, + "NonStringEnumsPostInt": 10, + "NonStringEnumsGetInt": 10, + "NonStringEnumsPostFloat": 10, + "NonStringEnumsGetFloat": 10, + "BodyTimeGet": 10, + "BodyTimePut": 10, + "MultipleInheritancePetGet": 10, + "MultipleInheritancePetPut": 10, + "MultipleInheritanceHorseGet": 10, + "MultipleInheritanceHorsePut": 10, + "MultipleInheritanceFelineGet": 10, + "MultipleInheritanceFelinePut": 10, + "MultipleInheritanceCatGet": 10, + "MultipleInheritanceCatPut": 10, + "MultipleInheritanceKittenGet": 10, + "MultipleInheritanceKittenPut": 10, + "OptionalIntegerParameter": 10, + "OptionalIntegerProperty": 10, + "OptionalIntegerHeader": 10, + "OptionalStringParameter": 10, + "OptionalStringProperty": 10, + "OptionalStringHeader": 10, + "OptionalClassParameter": 10, + "OptionalClassProperty": 10, + "OptionalArrayParameter": 10, + "OptionalArrayProperty": 10, + "OptionalArrayHeader": 10 } \ No newline at end of file From 9cfa463728ad5929b87569a68f244013e7847cfb Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 28 Sep 2021 13:34:29 -0400 Subject: [PATCH 12/16] format request url in test_failsafe_deserialize --- test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py | 1 + test/vanilla/legacy/AcceptanceTests/test_xms_error.py | 1 + 2 files changed, 2 insertions(+) diff --git a/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py index a223873f6bb..d513be75f70 100644 --- a/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py @@ -109,6 +109,7 @@ async def test_error_deserialization_with_param_name_models(self, client): async def test_failsafe_deserialize(self, client): from xmserrorresponse.operations._pet_operations import build_do_something_request request = build_do_something_request(what_action="jump") + request.url = client._client.format_url(request.url) pipeline_response = await client._client._pipeline.run(request) class MyPetSadError(PetSadError): def read(self): diff --git a/test/vanilla/legacy/AcceptanceTests/test_xms_error.py b/test/vanilla/legacy/AcceptanceTests/test_xms_error.py index e8badad3e07..9892515b696 100644 --- a/test/vanilla/legacy/AcceptanceTests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/test_xms_error.py @@ -101,6 +101,7 @@ def test_error_deserialization_with_param_name_models(self, client): def test_failsafe_deserialize(self, client): from xmserrorresponse.operations._pet_operations import build_do_something_request request = build_do_something_request(what_action="jump") + request.url = client._client.format_url(request.url) pipeline_response = client._client._pipeline.run(request) class MyPetSadError(PetSadError): def read(self): From c53039ca8990342202afb1f4f0de2a1414bcec75 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 28 Sep 2021 14:56:48 -0400 Subject: [PATCH 13/16] add raw hook tests --- .../AcceptanceTests/asynctests/test_hooks.py | 55 ++++++++++++++ .../legacy/AcceptanceTests/test_hooks.py | 53 +++++++++++++ .../AcceptanceTests/asynctests/test_hooks.py | 56 ++++++++++++++ .../low-level/AcceptanceTests/test_hooks.py | 54 +++++++++++++ .../AcceptanceTests/asynctests/test_hooks.py | 75 +++++++++++++++++++ .../AcceptanceTests/test_hooks.py | 71 ++++++++++++++++++ 6 files changed, 364 insertions(+) create mode 100644 test/vanilla/legacy/AcceptanceTests/asynctests/test_hooks.py create mode 100644 test/vanilla/legacy/AcceptanceTests/test_hooks.py create mode 100644 test/vanilla/low-level/AcceptanceTests/asynctests/test_hooks.py create mode 100644 test/vanilla/low-level/AcceptanceTests/test_hooks.py create mode 100644 test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_hooks.py create mode 100644 test/vanilla/version-tolerant/AcceptanceTests/test_hooks.py diff --git a/test/vanilla/legacy/AcceptanceTests/asynctests/test_hooks.py b/test/vanilla/legacy/AcceptanceTests/asynctests/test_hooks.py new file mode 100644 index 00000000000..25b16f52e90 --- /dev/null +++ b/test/vanilla/legacy/AcceptanceTests/asynctests/test_hooks.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.policies import CustomHookPolicy +from bodyarray.aio import AutoRestSwaggerBATArrayService + +def is_rest(obj): + return hasattr(obj, "content") + +@pytest.mark.asyncio +async def test_raw_request_hook(): + def _callback(request): + assert not is_rest(request.http_request) + assert hasattr(request.http_request, "set_multipart_mixed") + raise ValueError("I entered the callback!") + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) + +@pytest.mark.asyncio +async def test_raw_response_hook(): + def _callback(response): + assert not is_rest(response.http_response) + assert hasattr(response.http_response, "parts") + raise ValueError("I entered the callback!") + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) diff --git a/test/vanilla/legacy/AcceptanceTests/test_hooks.py b/test/vanilla/legacy/AcceptanceTests/test_hooks.py new file mode 100644 index 00000000000..bb127eadfb3 --- /dev/null +++ b/test/vanilla/legacy/AcceptanceTests/test_hooks.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.policies import CustomHookPolicy +from bodyarray import AutoRestSwaggerBATArrayService + +def is_rest(obj): + return hasattr(obj, "content") + +def test_raw_request_hook(): + def _callback(request): + assert not is_rest(request.http_request) + assert hasattr(request.http_request, "set_multipart_mixed") + raise ValueError("I entered the callback!") + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) + with pytest.raises(ValueError) as ex: + client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) + +def test_raw_response_hook(): + def _callback(response): + assert not is_rest(response.http_response) + assert hasattr(response.http_response, "parts") + raise ValueError("I entered the callback!") + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) + with pytest.raises(ValueError) as ex: + client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) diff --git a/test/vanilla/low-level/AcceptanceTests/asynctests/test_hooks.py b/test/vanilla/low-level/AcceptanceTests/asynctests/test_hooks.py new file mode 100644 index 00000000000..545b22cb1c9 --- /dev/null +++ b/test/vanilla/low-level/AcceptanceTests/asynctests/test_hooks.py @@ -0,0 +1,56 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.policies import CustomHookPolicy +from bodyarraylowlevel.aio import AutoRestSwaggerBATArrayService +from bodyarraylowlevel.rest import array + +def is_rest(obj): + return hasattr(obj, "content") + +@pytest.mark.asyncio +async def test_raw_request_hook_send_request(): + def _callback(request): + assert is_rest(request.http_request) + assert hasattr(request.http_request, "set_multipart_mixed") + raise ValueError("I entered the callback!") + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.send_request(array.build_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) + +@pytest.mark.asyncio +async def test_raw_response_hook_send_request(): + def _callback(response): + assert is_rest(response.http_response) + assert hasattr(response.http_response, "parts") + raise ValueError("I entered the callback!") + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.send_request(array.build_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) diff --git a/test/vanilla/low-level/AcceptanceTests/test_hooks.py b/test/vanilla/low-level/AcceptanceTests/test_hooks.py new file mode 100644 index 00000000000..fdb092672d2 --- /dev/null +++ b/test/vanilla/low-level/AcceptanceTests/test_hooks.py @@ -0,0 +1,54 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.policies import CustomHookPolicy +from bodyarraylowlevel import AutoRestSwaggerBATArrayService +from bodyarraylowlevel.rest import array + +def is_rest(obj): + return hasattr(obj, "content") + +def test_raw_request_hook_send_request(): + def _callback(request): + assert is_rest(request.http_request) + assert hasattr(request.http_request, "set_multipart_mixed") + raise ValueError("I entered the callback!") + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) + with pytest.raises(ValueError) as ex: + client.send_request(array.build_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) + +def test_raw_response_hook_send_request(): + def _callback(response): + assert is_rest(response.http_response) + assert hasattr(response.http_response, "parts") + raise ValueError("I entered the callback!") + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) + with pytest.raises(ValueError) as ex: + client.send_request(array.build_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_hooks.py b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_hooks.py new file mode 100644 index 00000000000..20323e8b110 --- /dev/null +++ b/test/vanilla/version-tolerant/AcceptanceTests/asynctests/test_hooks.py @@ -0,0 +1,75 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.policies import CustomHookPolicy +from bodyarrayversiontolerant.aio import AutoRestSwaggerBATArrayService + +def is_rest(obj): + return hasattr(obj, "content") + +def raw_request_callback(request): + assert is_rest(request.http_request) + assert hasattr(request.http_request, "set_multipart_mixed") + raise ValueError("I entered the callback!") + +@pytest.mark.asyncio +async def test_raw_request_hook(): + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=raw_request_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) + +@pytest.mark.asyncio +async def test_raw_request_hook_send_request(): + from bodyarrayversiontolerant.operations._operations import build_array_get_array_empty_request + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=raw_request_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.send_request(build_array_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) + +def raw_response_callback(response): + assert is_rest(response.http_response) + assert hasattr(response.http_response, "parts") + raise ValueError("I entered the callback!") + +@pytest.mark.asyncio +async def test_raw_response_hook(): + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=raw_response_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) + +@pytest.mark.asyncio +async def test_raw_response_hook_send_request(): + from bodyarrayversiontolerant.operations._operations import build_array_get_array_empty_request + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=raw_response_callback) + async with AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) as client: + with pytest.raises(ValueError) as ex: + await client.send_request(build_array_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) diff --git a/test/vanilla/version-tolerant/AcceptanceTests/test_hooks.py b/test/vanilla/version-tolerant/AcceptanceTests/test_hooks.py new file mode 100644 index 00000000000..ec3cef1aa02 --- /dev/null +++ b/test/vanilla/version-tolerant/AcceptanceTests/test_hooks.py @@ -0,0 +1,71 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.policies import CustomHookPolicy +from bodyarrayversiontolerant import AutoRestSwaggerBATArrayService + +def is_rest(obj): + return hasattr(obj, "content") + +def raw_request_callback(request): + assert is_rest(request.http_request) + assert hasattr(request.http_request, "set_multipart_mixed") + raise ValueError("I entered the callback!") + +def test_raw_request_hook(): + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=raw_request_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) + with pytest.raises(ValueError) as ex: + client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) + +def test_raw_request_hook_send_request(): + raw_request_hook_policy = CustomHookPolicy(raw_request_hook=raw_request_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_request_hook_policy]) + from bodyarrayversiontolerant.operations._operations import build_array_get_array_empty_request + with pytest.raises(ValueError) as ex: + client.send_request(build_array_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) + +def raw_response_callback(response): + assert is_rest(response.http_response) + assert hasattr(response.http_response, "parts") + raise ValueError("I entered the callback!") + +def test_raw_response_hook(): + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=raw_response_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) + with pytest.raises(ValueError) as ex: + client.array.get_array_empty() + assert "I entered the callback!" in str(ex.value) + +def test_raw_response_hook_send_request(): + raw_response_hook_policy = CustomHookPolicy(raw_response_hook=raw_response_callback) + client = AutoRestSwaggerBATArrayService(policies=[raw_response_hook_policy]) + from bodyarrayversiontolerant.operations._operations import build_array_get_array_empty_request + with pytest.raises(ValueError) as ex: + client.send_request(build_array_get_array_empty_request()) + assert "I entered the callback!" in str(ex.value) From e8111ab76acf1ac54933f02a2b4bce8222156527 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 28 Sep 2021 15:25:00 -0400 Subject: [PATCH 14/16] add back regeneration --- eng/pipelines/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eng/pipelines/ci.yml b/eng/pipelines/ci.yml index 32ccf808fa2..d399f810672 100644 --- a/eng/pipelines/ci.yml +++ b/eng/pipelines/ci.yml @@ -65,6 +65,14 @@ jobs: - script: | pytest test/unittests displayName: 'Unit tests' + - script: | + inv regenerate + displayName: 'Regenerate Code' + - script: | + git add -A # 'add' first so 'diff' includes untracked files + git diff --staged -w + displayName: 'Diff regeneration' + - task: UsePythonVersion@0 displayName: 'Use Python $(PythonVersion)' inputs: From 31fc891a9524dcde97decd61e50299005254d1fe Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 28 Sep 2021 19:55:04 -0400 Subject: [PATCH 15/16] rerun with latest in main --- test/azure/legacy/requirements.txt | 2 +- test/azure/low-level/requirements.txt | 2 +- test/azure/version-tolerant/requirements.txt | 2 +- test/multiapi/requirements.txt | 2 +- test/vanilla/legacy/requirements.txt | 2 +- test/vanilla/low-level/initial_requirements.txt | 2 +- test/vanilla/low-level/requirements.txt | 2 +- test/vanilla/low-level/update_requirements.txt | 2 +- test/vanilla/version-tolerant/initial_requirements.txt | 2 +- test/vanilla/version-tolerant/requirements.txt | 2 +- test/vanilla/version-tolerant/update_requirements.txt | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/azure/legacy/requirements.txt b/test/azure/legacy/requirements.txt index ae01ba115ed..ec39e25a623 100644 --- a/test/azure/legacy/requirements.txt +++ b/test/azure/legacy/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDuration diff --git a/test/azure/low-level/requirements.txt b/test/azure/low-level/requirements.txt index d476dc52cce..3ebcfdaf15e 100644 --- a/test/azure/low-level/requirements.txt +++ b/test/azure/low-level/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationLowLevel diff --git a/test/azure/version-tolerant/requirements.txt b/test/azure/version-tolerant/requirements.txt index bdbc2625d82..6d60460f4c3 100644 --- a/test/azure/version-tolerant/requirements.txt +++ b/test/azure/version-tolerant/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationVersionTolerant diff --git a/test/multiapi/requirements.txt b/test/multiapi/requirements.txt index bd81400e179..326f408b9a8 100644 --- a/test/multiapi/requirements.txt +++ b/test/multiapi/requirements.txt @@ -1,7 +1,7 @@ aiohttp; python_full_version >= '3.5.2' azure-common msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core azure-mgmt-core==1.3.0 pytest pytest-cov diff --git a/test/vanilla/legacy/requirements.txt b/test/vanilla/legacy/requirements.txt index fbb579d3960..8bb1a0cc403 100644 --- a/test/vanilla/legacy/requirements.txt +++ b/test/vanilla/legacy/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core -e ./Expected/AcceptanceTests/AdditionalProperties -e ./Expected/AcceptanceTests/Anything -e ./Expected/AcceptanceTests/BodyArray diff --git a/test/vanilla/low-level/initial_requirements.txt b/test/vanilla/low-level/initial_requirements.txt index a66ab2bba48..0e1aad79b15 100644 --- a/test/vanilla/low-level/initial_requirements.txt +++ b/test/vanilla/low-level/initial_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core -e ./Expected/AcceptanceTests/LLCInitialLowLevel/ \ No newline at end of file diff --git a/test/vanilla/low-level/requirements.txt b/test/vanilla/low-level/requirements.txt index 9b280670da5..aac7a416db8 100644 --- a/test/vanilla/low-level/requirements.txt +++ b/test/vanilla/low-level/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core -e ./Expected/AcceptanceTests/AdditionalPropertiesLowLevel -e ./Expected/AcceptanceTests/AnythingLowLevel -e ./Expected/AcceptanceTests/BodyArrayLowLevel diff --git a/test/vanilla/low-level/update_requirements.txt b/test/vanilla/low-level/update_requirements.txt index cf0a7053fb8..c53073fae25 100644 --- a/test/vanilla/low-level/update_requirements.txt +++ b/test/vanilla/low-level/update_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core -e ./Expected/AcceptanceTests/LLCUpdateOneLowLevel \ No newline at end of file diff --git a/test/vanilla/version-tolerant/initial_requirements.txt b/test/vanilla/version-tolerant/initial_requirements.txt index 9c21b1d25ff..c9721e14615 100644 --- a/test/vanilla/version-tolerant/initial_requirements.txt +++ b/test/vanilla/version-tolerant/initial_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core -e ./Expected/AcceptanceTests/LLCInitialVersionTolerant/ \ No newline at end of file diff --git a/test/vanilla/version-tolerant/requirements.txt b/test/vanilla/version-tolerant/requirements.txt index 6260cf25a92..c6d517a0ced 100644 --- a/test/vanilla/version-tolerant/requirements.txt +++ b/test/vanilla/version-tolerant/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core -e ./Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant -e ./Expected/AcceptanceTests/AnythingVersionTolerant -e ./Expected/AcceptanceTests/BodyArrayVersionTolerant diff --git a/test/vanilla/version-tolerant/update_requirements.txt b/test/vanilla/version-tolerant/update_requirements.txt index 7995440a713..486d46f09be 100644 --- a/test/vanilla/version-tolerant/update_requirements.txt +++ b/test/vanilla/version-tolerant/update_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/iscai-msft/azure-sdk-for-python@add_response_backcompat#subdirectory=sdk/core/azure-core&egg=azure-core +git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core -e ./Expected/AcceptanceTests/LLCUpdateOneVersionTolerant \ No newline at end of file From b10434fbf3277203f84fd1b726f0d516513c8716 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Thu, 30 Sep 2021 21:12:05 -0400 Subject: [PATCH 16/16] change dev requirements to 1.19.0 for azure-core --- test/azure/legacy/requirements.txt | 2 +- test/azure/low-level/requirements.txt | 2 +- test/azure/version-tolerant/requirements.txt | 2 +- test/multiapi/requirements.txt | 2 +- test/vanilla/legacy/requirements.txt | 2 +- test/vanilla/low-level/initial_requirements.txt | 2 +- test/vanilla/low-level/requirements.txt | 2 +- test/vanilla/low-level/update_requirements.txt | 2 +- test/vanilla/version-tolerant/initial_requirements.txt | 2 +- test/vanilla/version-tolerant/requirements.txt | 2 +- test/vanilla/version-tolerant/update_requirements.txt | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/azure/legacy/requirements.txt b/test/azure/legacy/requirements.txt index ec39e25a623..cae432178db 100644 --- a/test/azure/legacy/requirements.txt +++ b/test/azure/legacy/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDuration diff --git a/test/azure/low-level/requirements.txt b/test/azure/low-level/requirements.txt index 3ebcfdaf15e..cd0163fc47c 100644 --- a/test/azure/low-level/requirements.txt +++ b/test/azure/low-level/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationLowLevel diff --git a/test/azure/version-tolerant/requirements.txt b/test/azure/version-tolerant/requirements.txt index 6d60460f4c3..4ecacc0ba28 100644 --- a/test/azure/version-tolerant/requirements.txt +++ b/test/azure/version-tolerant/requirements.txt @@ -4,7 +4,7 @@ pytest pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationVersionTolerant diff --git a/test/multiapi/requirements.txt b/test/multiapi/requirements.txt index 326f408b9a8..416375657b1 100644 --- a/test/multiapi/requirements.txt +++ b/test/multiapi/requirements.txt @@ -1,7 +1,7 @@ aiohttp; python_full_version >= '3.5.2' azure-common msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 azure-mgmt-core==1.3.0 pytest pytest-cov diff --git a/test/vanilla/legacy/requirements.txt b/test/vanilla/legacy/requirements.txt index 8bb1a0cc403..a4dd4450ef6 100644 --- a/test/vanilla/legacy/requirements.txt +++ b/test/vanilla/legacy/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 -e ./Expected/AcceptanceTests/AdditionalProperties -e ./Expected/AcceptanceTests/Anything -e ./Expected/AcceptanceTests/BodyArray diff --git a/test/vanilla/low-level/initial_requirements.txt b/test/vanilla/low-level/initial_requirements.txt index 0e1aad79b15..47d00edc2ff 100644 --- a/test/vanilla/low-level/initial_requirements.txt +++ b/test/vanilla/low-level/initial_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 -e ./Expected/AcceptanceTests/LLCInitialLowLevel/ \ No newline at end of file diff --git a/test/vanilla/low-level/requirements.txt b/test/vanilla/low-level/requirements.txt index aac7a416db8..9cac26cf298 100644 --- a/test/vanilla/low-level/requirements.txt +++ b/test/vanilla/low-level/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 -e ./Expected/AcceptanceTests/AdditionalPropertiesLowLevel -e ./Expected/AcceptanceTests/AnythingLowLevel -e ./Expected/AcceptanceTests/BodyArrayLowLevel diff --git a/test/vanilla/low-level/update_requirements.txt b/test/vanilla/low-level/update_requirements.txt index c53073fae25..6a95f90166d 100644 --- a/test/vanilla/low-level/update_requirements.txt +++ b/test/vanilla/low-level/update_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 -e ./Expected/AcceptanceTests/LLCUpdateOneLowLevel \ No newline at end of file diff --git a/test/vanilla/version-tolerant/initial_requirements.txt b/test/vanilla/version-tolerant/initial_requirements.txt index c9721e14615..9af5846ec2e 100644 --- a/test/vanilla/version-tolerant/initial_requirements.txt +++ b/test/vanilla/version-tolerant/initial_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 -e ./Expected/AcceptanceTests/LLCInitialVersionTolerant/ \ No newline at end of file diff --git a/test/vanilla/version-tolerant/requirements.txt b/test/vanilla/version-tolerant/requirements.txt index c6d517a0ced..e1ff2e48f88 100644 --- a/test/vanilla/version-tolerant/requirements.txt +++ b/test/vanilla/version-tolerant/requirements.txt @@ -5,7 +5,7 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 -e ./Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant -e ./Expected/AcceptanceTests/AnythingVersionTolerant -e ./Expected/AcceptanceTests/BodyArrayVersionTolerant diff --git a/test/vanilla/version-tolerant/update_requirements.txt b/test/vanilla/version-tolerant/update_requirements.txt index 486d46f09be..d21e78a6940 100644 --- a/test/vanilla/version-tolerant/update_requirements.txt +++ b/test/vanilla/version-tolerant/update_requirements.txt @@ -5,5 +5,5 @@ pytest-cov pytest-asyncio==0.14.0;python_full_version>="3.5.2" async_generator;python_full_version>="3.5.2" msrest==0.6.21 -git+https://github.com/Azure/azure-sdk-for-python#subdirectory=sdk/core/azure-core +azure-core==1.19.0 -e ./Expected/AcceptanceTests/LLCUpdateOneVersionTolerant \ No newline at end of file