diff --git a/ChangeLog.md b/ChangeLog.md index f76d914b81d..25e2e8b94cd 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/code_model.py b/autorest/codegen/models/code_model.py index 8113831b3ad..845d22c125d 100644 --- a/autorest/codegen/models/code_model.py +++ b/autorest/codegen/models/code_model.py @@ -349,14 +349,7 @@ def need_vendored_code(self) -> bool: @property def need_request_converter(self) -> bool: - if not self.options["show_operations"]: - return False - if not self.options["version_tolerant"]: - return True - for og in self.operation_groups: - if any(o for o in og.operations if o.use_pipeline_transport): - return True - return False + return self.options["show_operations"] and not self.options["version_tolerant"] @property def need_format_url(self) -> bool: 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 9016c137fb9..bcff23471a5 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 051c301c8af..4f752d90385 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 2f8215d92b7..06cf5c621bd 100644 --- a/autorest/codegen/serializers/builder_serializer.py +++ b/autorest/codegen/serializers/builder_serializer.py @@ -776,7 +776,7 @@ def _call_request_builder_helper( template_url = template_url or f"self.{builder.name}.metadata['url']" retval.append(f" template_url={template_url},") retval.append(f")") - if not self.code_model.options["version_tolerant"] or builder.use_pipeline_transport: + if not self.code_model.options["version_tolerant"]: pass_files = "" if "files" in builder.body_kwargs_to_pass_to_request_builder: pass_files = ", files" @@ -795,7 +795,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] = [ @@ -820,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") @@ -870,12 +863,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:") @@ -1258,7 +1251,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( 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/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/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 9746c4b6b1e..2e11aeafaa7 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 @@ -64,7 +64,7 @@ async def head200( 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, 404]: @@ -102,7 +102,7 @@ async def head204( 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 [204, 404]: @@ -140,7 +140,7 @@ async def head404( 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 [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 87ebb5c64cb..64167f4d77c 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 @@ -114,7 +114,7 @@ def head200( 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, 404]: @@ -153,7 +153,7 @@ def head204( 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 [204, 404]: @@ -192,7 +192,7 @@ def head404( 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 [204, 404]: 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/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 9746c4b6b1e..2e11aeafaa7 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 @@ -64,7 +64,7 @@ async def head200( 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, 404]: @@ -102,7 +102,7 @@ async def head204( 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 [204, 404]: @@ -140,7 +140,7 @@ async def head404( 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 [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 87ebb5c64cb..64167f4d77c 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 @@ -114,7 +114,7 @@ def head200( 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, 404]: @@ -153,7 +153,7 @@ def head204( 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 [204, 404]: @@ -192,7 +192,7 @@ def head404( 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 [204, 404]: 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/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 db3ef176b0f..c8a8dc34bac 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 @@ -54,7 +54,7 @@ async def _basic_polling_initial( 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]: 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 6bf1209856d..c046eb86add 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 @@ -104,7 +104,7 @@ def _basic_polling_initial( 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, 204]: 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/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 1b690715526..3e0618edaa0 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 @@ -65,7 +65,7 @@ async def head200( 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, 404]: @@ -104,7 +104,7 @@ async def head204( 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 [204, 404]: @@ -143,7 +143,7 @@ async def head404( 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 [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 da075233e7c..44cdafd663c 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 @@ -115,7 +115,7 @@ def head200( 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, 404]: @@ -155,7 +155,7 @@ def head204( 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 [204, 404]: @@ -195,7 +195,7 @@ def head404( 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 [204, 404]: 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/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 378e6686f06..e14bac1721f 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 @@ -62,7 +62,7 @@ async def test_one( 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]: @@ -102,7 +102,7 @@ async def _test_lro_initial( 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]: @@ -211,7 +211,7 @@ async def _test_lro_and_paging_initial( 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]: @@ -388,7 +388,7 @@ async def test_different_calls( 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/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 765be3ea284..7495786ae54 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 @@ -70,7 +70,7 @@ async def test_two( 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/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 bbb66be4fda..39d69ce02db 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 @@ -184,7 +184,7 @@ def test_one( 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]: @@ -225,7 +225,7 @@ def _test_lro_initial( 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, 204]: @@ -335,7 +335,7 @@ def _test_lro_and_paging_initial( 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]: @@ -514,7 +514,7 @@ def test_different_calls( 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/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 aac0d5e2d32..f17c75c02cf 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 @@ -104,7 +104,7 @@ def test_two( 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/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 b16cab89120..8a3d87f63be 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 @@ -58,7 +58,7 @@ async def test_one( 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]: @@ -109,7 +109,7 @@ async def test_different_calls( 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/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 4e1ba0e67d4..19ec618d7c2 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 @@ -81,7 +81,7 @@ async def test_two( 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,7 +124,7 @@ async def test_three( 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/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 c028eac5369..11c39049891 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 @@ -74,7 +74,7 @@ async def test_four( 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/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 5eb44534a99..ce21e100c27 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 @@ -130,7 +130,7 @@ def test_one( 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]: @@ -182,7 +182,7 @@ def test_different_calls( 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/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 7d136275b21..2f12b36f49d 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 @@ -145,7 +145,7 @@ def test_two( 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]: @@ -189,7 +189,7 @@ def test_three( 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/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 3537c2bb470..87d1d6f71d7 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 @@ -111,7 +111,7 @@ def test_four( 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/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 4831ae6db6f..b08d34d4d75 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 @@ -125,7 +125,7 @@ async def test_different_calls( 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/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 3ec6485805a..441c69f4e16 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 @@ -81,7 +81,7 @@ async def test_two( 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/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 3edd156b9b5..6e30162b5bf 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 @@ -93,7 +93,7 @@ async def test_four( 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]: @@ -132,7 +132,7 @@ async def test_five( 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/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 2592c0cfd85..7400713e211 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 @@ -188,7 +188,7 @@ def test_different_calls( 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/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 df6c395e910..142c1c7152b 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 @@ -119,7 +119,7 @@ def test_two( 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/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 b2749f8e1ca..6bc7c2cbf6a 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 @@ -157,7 +157,7 @@ def test_four( 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 test_five( 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/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 35f7ddbbcab..84cb82dce95 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 @@ -76,9 +76,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_positive_duration(self, duration_body: datetime.timedelta, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -156,9 +152,7 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,9 +188,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 91e6d28decf..136778fe4e8 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 @@ -164,7 +164,7 @@ def get_null( 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]: @@ -213,7 +213,7 @@ def put_positive_duration( 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]: @@ -248,7 +248,7 @@ def get_positive_duration( 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]: @@ -287,7 +287,7 @@ def get_invalid( 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/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/azureparametergrouping/aio/operations/_parameter_grouping_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py index 542c634c94c..99b09d72f29 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 @@ -101,9 +101,7 @@ async def post_required( 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]: @@ -150,9 +148,7 @@ async def post_optional( 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]: @@ -201,9 +197,7 @@ async def post_reserved_words( 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]: @@ -262,9 +256,7 @@ async def post_multi_param_groups( 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]: @@ -308,9 +300,7 @@ async def post_shared_parameter_group_object( 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/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 5d1d5a6a106..c6b95f78324 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 @@ -272,7 +272,7 @@ def post_required( 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]: @@ -320,7 +320,7 @@ def post_optional( 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]: @@ -368,7 +368,7 @@ def post_reserved_words( 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]: @@ -426,7 +426,7 @@ def post_multi_param_groups( 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]: @@ -473,7 +473,7 @@ def post_shared_parameter_group_object( 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/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/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 430b90b5c76..e0b7fba1dd2 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 @@ -54,9 +54,7 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Di request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 4b5968ac0fe..f9cff1649b0 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 @@ -93,7 +93,7 @@ def get_report( 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/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/azurespecialproperties/aio/operations/_api_version_default_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py index 9510df6dbe8..d4bbfee4f23 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 @@ -76,9 +76,7 @@ async def get_method_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_method_global_not_provided_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_global_valid(self, **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]: @@ -178,9 +172,7 @@ async def get_swagger_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 9b2568a3d37..07be8030636 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 @@ -76,9 +76,7 @@ async def get_method_local_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_method_local_null(self, api_version: Optional[str] = None, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_path_local_valid(self, **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]: @@ -182,9 +176,7 @@ async def get_swagger_local_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 484dc228be1..9406c19a746 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 @@ -78,9 +78,7 @@ async def custom_named_request_id(self, foo_client_request_id: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 custom_named_request_id_param_grouping( 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 +164,7 @@ async def custom_named_request_id_head(self, foo_client_request_id: str, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 103cb677c92..7a6a20af769 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 @@ -82,9 +82,7 @@ async def get_with_filter( 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/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 58d024e0056..192cf34bff5 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 @@ -82,9 +82,7 @@ async def get_method_path_valid(self, unencoded_path_param: str, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_path_valid(self, unencoded_path_param: str, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_swagger_path_valid(self, **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]: @@ -190,9 +184,7 @@ async def get_method_query_valid(self, q1: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_method_query_null(self, q1: Optional[str] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_path_query_valid(self, q1: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -298,9 +286,7 @@ async def get_swagger_query_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 96a1e987f88..a34d08bb021 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 @@ -79,9 +79,7 @@ async def post_method_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_method_global_null(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -151,9 +147,7 @@ async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_path_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +215,7 @@ async def post_swagger_global_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 65db33b7716..ffaf8cc4fad 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 @@ -81,9 +81,7 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_method_local_null(self, subscription_id: str, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +191,7 @@ async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 3529973b4b9..5174ddc0bd0 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 @@ -72,9 +72,7 @@ async def get(self, **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]: @@ -110,9 +108,7 @@ async def param_get(self, x_ms_client_request_id: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 91952056b04..673e50a7fdd 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 @@ -184,7 +184,7 @@ def get_method_global_valid( 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]: @@ -219,7 +219,7 @@ def get_method_global_not_provided_valid( 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]: @@ -254,7 +254,7 @@ def get_path_global_valid( 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]: @@ -289,7 +289,7 @@ def get_swagger_global_valid( 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/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 ad88b9b73a0..791dfb0106d 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 @@ -186,7 +186,7 @@ def get_method_local_valid( 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]: @@ -227,7 +227,7 @@ def get_method_local_null( 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 get_path_local_valid( 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]: @@ -297,7 +297,7 @@ def get_swagger_local_valid( 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/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py b/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py index 38f9abd5311..e947764075e 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 @@ -154,7 +154,7 @@ def custom_named_request_id( 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]: @@ -203,7 +203,7 @@ def custom_named_request_id_param_grouping( 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]: @@ -246,7 +246,7 @@ def custom_named_request_id_head( 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, 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 0b4e7795d23..a4a847619f0 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 @@ -127,7 +127,7 @@ def get_with_filter( 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/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 294fc82a403..b7243b5bb35 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 @@ -271,7 +271,7 @@ def get_method_path_valid( 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]: @@ -311,7 +311,7 @@ def get_path_valid( 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]: @@ -346,7 +346,7 @@ def get_swagger_path_valid( 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]: @@ -386,7 +386,7 @@ def get_method_query_valid( 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]: @@ -426,7 +426,7 @@ def get_method_query_null( 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]: @@ -466,7 +466,7 @@ def get_path_query_valid( 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 get_swagger_query_valid( 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/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 c8e5e9fcf87..2ed8fd500e0 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 @@ -218,7 +218,7 @@ def post_method_global_valid( 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]: @@ -255,7 +255,7 @@ def post_method_global_null( 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]: @@ -292,7 +292,7 @@ def post_method_global_not_provided_valid( 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]: @@ -329,7 +329,7 @@ def post_path_global_valid( 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]: @@ -366,7 +366,7 @@ def post_swagger_global_valid( 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/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 6bfe4199f22..681af1166d8 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 @@ -191,7 +191,7 @@ def post_method_local_valid( 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]: @@ -233,7 +233,7 @@ def post_method_local_null( 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 post_path_local_valid( 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]: @@ -316,7 +316,7 @@ def post_swagger_local_valid( 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/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 754a1143c27..dbc05f10c50 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 @@ -118,7 +118,7 @@ def get( 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]: @@ -159,7 +159,7 @@ def param_get( 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/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/custombaseurl/aio/operations/_paths_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index 2d7ef81e107..14c724b05ec 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 @@ -76,9 +76,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 1eb1d22735d..05f2bebe9bf 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 @@ -107,7 +107,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/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/custompollerpager/aio/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py index d34ab1a09d3..8d50a737d66 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 @@ -1106,7 +1106,7 @@ async def _get_multiple_pages_lro_initial( 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 [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 a8034d505d2..d1047233384 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 @@ -1644,7 +1644,7 @@ def _get_multiple_pages_lro_initial( 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 [202]: 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/head/aio/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py index 610d078fc16..27ead7e5918 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 @@ -66,9 +66,7 @@ async def head200(self, **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, 404]: @@ -100,9 +98,7 @@ async def head204(self, **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 [204, 404]: @@ -134,9 +130,7 @@ async def head404(self, **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 [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 7ed2bf0e1ef..44cfa29ff5a 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 @@ -117,7 +117,7 @@ def head200( 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, 404]: @@ -152,7 +152,7 @@ def head204( 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 [204, 404]: @@ -187,7 +187,7 @@ def head404( 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 [204, 404]: 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/headexceptions/aio/operations/_head_exception_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py index a3d5f713494..ae1521b65f7 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 @@ -66,9 +66,7 @@ async def head200(self, **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]: @@ -100,9 +98,7 @@ async def head204(self, **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 [204]: @@ -134,9 +130,7 @@ async def head404(self, **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 [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 fa4d511645e..556cd330451 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 @@ -117,7 +117,7 @@ def head200( 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]: @@ -152,7 +152,7 @@ def head204( 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 [204]: @@ -187,7 +187,7 @@ def head404( 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 [204]: 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/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py b/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py index 610d078fc16..27ead7e5918 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 @@ -66,9 +66,7 @@ async def head200(self, **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, 404]: @@ -100,9 +98,7 @@ async def head204(self, **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 [204, 404]: @@ -134,9 +130,7 @@ async def head404(self, **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 [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 7ed2bf0e1ef..44cfa29ff5a 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 @@ -117,7 +117,7 @@ def head200( 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, 404]: @@ -152,7 +152,7 @@ def head204( 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 [204, 404]: @@ -187,7 +187,7 @@ def head404( 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 [204, 404]: 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/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 88a381f7ba8..b23c821908f 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 @@ -81,9 +81,7 @@ async def _put_async_retry_succeeded_initial( 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 +193,7 @@ async def _put201_creating_succeeded200_initial( 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, 201]: @@ -297,9 +293,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -392,9 +386,7 @@ async def _post_async_retry_succeeded_initial( 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 [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 188442411c5..12ab9d4e5b1 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 @@ -84,9 +84,7 @@ async def _put201_creating_succeeded200_initial( 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, 201]: @@ -187,9 +185,7 @@ async def _put_async_relative_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -289,9 +285,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -382,9 +376,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -458,9 +450,7 @@ async def _delete_async_relative_retry_succeeded_initial(self, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -546,9 +536,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -640,9 +628,7 @@ async def _post_async_relative_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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 82e2cbc0814..cd3d3049bf8 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 @@ -119,9 +119,7 @@ async def _put200_succeeded_initial( 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]: @@ -219,9 +217,7 @@ async def _patch200_succeeded_ignore_headers_initial( 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]: @@ -327,9 +323,7 @@ async def _put201_succeeded_initial( 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 [201]: @@ -414,9 +408,7 @@ async def _post202_list_initial(self, **kwargs: Any) -> Optional[List["_models.P request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -514,9 +506,7 @@ async def _put200_succeeded_no_state_initial( 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]: @@ -612,9 +602,7 @@ async def _put202_retry200_initial( 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 [202]: @@ -711,9 +699,7 @@ async def _put201_creating_succeeded200_initial( 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, 201]: @@ -814,9 +800,7 @@ async def _put200_updating_succeeded204_initial( 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]: @@ -913,9 +897,7 @@ async def _put201_creating_failed200_initial( 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, 201]: @@ -1016,9 +998,7 @@ async def _put200_acceptedcanceled200_initial( 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]: @@ -1115,9 +1095,7 @@ async def _put_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1219,9 +1197,7 @@ async def _put_async_retry_succeeded_initial( 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]: @@ -1332,9 +1308,7 @@ async def _put_async_no_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1443,9 +1417,7 @@ async def _put_async_retry_failed_initial( 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]: @@ -1556,9 +1528,7 @@ async def _put_async_no_retrycanceled_initial( 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]: @@ -1667,9 +1637,7 @@ async def _put_async_no_header_in_retry_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1774,9 +1742,7 @@ async def _put_non_resource_initial(self, sku: Optional["_models.Sku"] = None, * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1870,9 +1836,7 @@ async def _put_async_non_resource_initial( 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 [202]: @@ -1967,9 +1931,7 @@ async def _put_sub_resource_initial( 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 [202]: @@ -2065,9 +2027,7 @@ async def _put_async_sub_resource_initial( 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 [202]: @@ -2151,9 +2111,7 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -2244,9 +2202,7 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -2333,9 +2289,7 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -2424,9 +2378,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2495,9 +2447,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> Optional["_models. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -2582,9 +2532,7 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> Optional["_mode request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -2669,9 +2617,7 @@ async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2745,9 +2691,7 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2821,9 +2765,7 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2900,9 +2842,7 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2979,9 +2919,7 @@ async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -3058,9 +2996,7 @@ async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -3137,9 +3073,7 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> "_models.Sku": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -3229,9 +3163,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -3323,9 +3255,7 @@ async def _post202_no_retry204_initial( 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 [202]: @@ -3418,9 +3348,7 @@ async def _post_double_headers_final_location_get_initial(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -3499,9 +3427,7 @@ async def _post_double_headers_final_azure_header_get_initial(self, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -3584,9 +3510,7 @@ async def _post_double_headers_final_azure_header_get_default_initial(self, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -3680,9 +3604,7 @@ async def _post_async_retry_succeeded_initial( 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, 202]: @@ -3789,9 +3711,7 @@ async def _post_async_no_retry_succeeded_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -3898,9 +3818,7 @@ async def _post_async_retry_failed_initial( 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 [202]: @@ -3996,9 +3914,7 @@ async def _post_async_retrycanceled_initial( 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 [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 ec551fc1d9f..2a34fa5d20c 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 @@ -103,9 +103,7 @@ async def _put_non_retry400_initial( 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, 201]: @@ -204,9 +202,7 @@ async def _put_non_retry201_creating400_initial( 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, 201]: @@ -306,9 +302,7 @@ async def _put_non_retry201_creating400_invalid_json_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -408,9 +402,7 @@ async def _put_async_relative_retry400_initial( 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]: @@ -509,9 +501,7 @@ async def _delete_non_retry400_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -584,9 +574,7 @@ async def _delete202_non_retry400_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -659,9 +647,7 @@ async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -747,9 +733,7 @@ async def _post_non_retry400_initial(self, product: Optional["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -838,9 +822,7 @@ async def _post202_non_retry400_initial(self, product: Optional["_models.Product request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -931,9 +913,7 @@ async def _post_async_relative_retry400_initial( 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 [202]: @@ -1028,9 +1008,7 @@ async def _put_error201_no_provisioning_state_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -1129,9 +1107,7 @@ async def _put_async_relative_retry_no_status_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1242,9 +1218,7 @@ async def _put_async_relative_retry_no_status_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1318,7 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1415,9 +1387,7 @@ async def _delete_async_relative_retry_no_status_initial(self, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1503,9 +1473,7 @@ async def _post202_no_location_initial(self, product: Optional["_models.Product" request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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 +1565,7 @@ async def _post_async_relative_retry_no_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1695,9 +1661,7 @@ async def _put200_invalid_json_initial( 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]: @@ -1795,9 +1759,7 @@ async def _put_async_relative_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1908,9 +1870,7 @@ async def _put_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2010,9 +1970,7 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2086,9 +2044,7 @@ async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2165,9 +2121,7 @@ async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2257,9 +2211,7 @@ async def _post202_retry_invalid_header_initial( 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 [202]: @@ -2351,9 +2303,7 @@ async def _post_async_relative_retry_invalid_header_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -2449,9 +2399,7 @@ async def _post_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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 042300fac97..4e1680098d6 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 @@ -181,7 +181,7 @@ def _put_async_retry_succeeded_initial( 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]: @@ -298,7 +298,7 @@ def _put201_creating_succeeded200_initial( 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, 201]: @@ -405,7 +405,7 @@ def _post202_retry200_initial( 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 [202]: @@ -504,7 +504,7 @@ def _post_async_retry_succeeded_initial( 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 [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 3d290446288..11e3b3cec31 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 @@ -241,7 +241,7 @@ def _put201_creating_succeeded200_initial( 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, 201]: @@ -347,7 +347,7 @@ def _put_async_relative_retry_succeeded_initial( 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]: @@ -452,7 +452,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( 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, 202]: @@ -544,7 +544,7 @@ def _delete202_retry200_initial( 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 [202]: @@ -624,7 +624,7 @@ def _delete_async_relative_retry_succeeded_initial( 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 [202]: @@ -718,7 +718,7 @@ def _post202_retry200_initial( 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 [202]: @@ -816,7 +816,7 @@ def _post_async_relative_retry_succeeded_initial( 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 [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 ba91e182ae2..41f962e9094 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 @@ -1025,7 +1025,7 @@ def _put200_succeeded_initial( 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, 204]: @@ -1128,7 +1128,7 @@ def _patch200_succeeded_ignore_headers_initial( 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]: @@ -1239,7 +1239,7 @@ def _put201_succeeded_initial( 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 [201]: @@ -1329,7 +1329,7 @@ def _post202_list_initial( 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, 202]: @@ -1433,7 +1433,7 @@ def _put200_succeeded_no_state_initial( 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]: @@ -1534,7 +1534,7 @@ def _put202_retry200_initial( 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 [202]: @@ -1636,7 +1636,7 @@ def _put201_creating_succeeded200_initial( 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, 201]: @@ -1742,7 +1742,7 @@ def _put200_updating_succeeded204_initial( 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]: @@ -1844,7 +1844,7 @@ def _put201_creating_failed200_initial( 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, 201]: @@ -1950,7 +1950,7 @@ def _put200_acceptedcanceled200_initial( 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]: @@ -2052,7 +2052,7 @@ def _put_no_header_in_retry_initial( 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 [202]: @@ -2159,7 +2159,7 @@ def _put_async_retry_succeeded_initial( 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]: @@ -2275,7 +2275,7 @@ def _put_async_no_retry_succeeded_initial( 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]: @@ -2389,7 +2389,7 @@ def _put_async_retry_failed_initial( 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]: @@ -2505,7 +2505,7 @@ def _put_async_no_retrycanceled_initial( 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]: @@ -2619,7 +2619,7 @@ def _put_async_no_header_in_retry_initial( 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 [201]: @@ -2731,7 +2731,7 @@ def _put_non_resource_initial( 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 [202]: @@ -2831,7 +2831,7 @@ def _put_async_non_resource_initial( 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 [202]: @@ -2932,7 +2932,7 @@ def _put_sub_resource_initial( 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 [202]: @@ -3033,7 +3033,7 @@ def _put_async_sub_resource_initial( 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 [202]: @@ -3122,7 +3122,7 @@ def _delete_provisioning202_accepted200_succeeded_initial( 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, 202]: @@ -3214,7 +3214,7 @@ def _delete_provisioning202_deleting_failed200_initial( 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, 202]: @@ -3306,7 +3306,7 @@ def _delete_provisioning202_deletingcanceled200_initial( 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, 202]: @@ -3398,7 +3398,7 @@ def _delete204_succeeded_initial( 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 [204]: @@ -3473,7 +3473,7 @@ def _delete202_retry200_initial( 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, 202]: @@ -3563,7 +3563,7 @@ def _delete202_no_retry204_initial( 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, 202]: @@ -3653,7 +3653,7 @@ def _delete_no_header_in_retry_initial( 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 [202, 204]: @@ -3733,7 +3733,7 @@ def _delete_async_no_header_in_retry_initial( 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 [202, 204]: @@ -3813,7 +3813,7 @@ def _delete_async_retry_succeeded_initial( 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 [202]: @@ -3896,7 +3896,7 @@ def _delete_async_no_retry_succeeded_initial( 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 [202]: @@ -3979,7 +3979,7 @@ def _delete_async_retry_failed_initial( 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 [202]: @@ -4062,7 +4062,7 @@ def _delete_async_retrycanceled_initial( 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 [202]: @@ -4145,7 +4145,7 @@ def _post200_with_payload_initial( 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, 202]: @@ -4243,7 +4243,7 @@ def _post202_retry200_initial( 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 [202]: @@ -4341,7 +4341,7 @@ def _post202_no_retry204_initial( 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 [202]: @@ -4439,7 +4439,7 @@ def _post_double_headers_final_location_get_initial( 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 [202]: @@ -4523,7 +4523,7 @@ def _post_double_headers_final_azure_header_get_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -4607,7 +4607,7 @@ def _post_double_headers_final_azure_header_get_default_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -4704,7 +4704,7 @@ def _post_async_retry_succeeded_initial( 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, 202]: @@ -4816,7 +4816,7 @@ def _post_async_no_retry_succeeded_initial( 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, 202]: @@ -4928,7 +4928,7 @@ def _post_async_retry_failed_initial( 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 [202]: @@ -5030,7 +5030,7 @@ def _post_async_retrycanceled_initial( 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 [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 c131db51750..b1c1db82b04 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 @@ -677,7 +677,7 @@ def _put_non_retry400_initial( 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, 201]: @@ -781,7 +781,7 @@ def _put_non_retry201_creating400_initial( 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, 201]: @@ -886,7 +886,7 @@ def _put_non_retry201_creating400_invalid_json_initial( 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, 201]: @@ -991,7 +991,7 @@ def _put_async_relative_retry400_initial( 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]: @@ -1095,7 +1095,7 @@ def _delete_non_retry400_initial( 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 [202]: @@ -1174,7 +1174,7 @@ def _delete202_non_retry400_initial( 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 [202]: @@ -1253,7 +1253,7 @@ def _delete_async_relative_retry400_initial( 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 [202]: @@ -1347,7 +1347,7 @@ def _post_non_retry400_initial( 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 [202]: @@ -1444,7 +1444,7 @@ def _post202_non_retry400_initial( 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 [202]: @@ -1541,7 +1541,7 @@ def _post_async_relative_retry400_initial( 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 [202]: @@ -1642,7 +1642,7 @@ def _put_error201_no_provisioning_state_payload_initial( 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, 201]: @@ -1746,7 +1746,7 @@ def _put_async_relative_retry_no_status_initial( 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]: @@ -1862,7 +1862,7 @@ def _put_async_relative_retry_no_status_payload_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1967,7 +1967,7 @@ def _delete204_succeeded_initial( 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 [204]: @@ -2042,7 +2042,7 @@ def _delete_async_relative_retry_no_status_initial( 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 [202]: @@ -2136,7 +2136,7 @@ def _post202_no_location_initial( 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 [202]: @@ -2234,7 +2234,7 @@ def _post_async_relative_retry_no_payload_initial( 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 [202]: @@ -2336,7 +2336,7 @@ def _put200_invalid_json_initial( 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, 204]: @@ -2439,7 +2439,7 @@ def _put_async_relative_retry_invalid_header_initial( 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]: @@ -2555,7 +2555,7 @@ def _put_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2660,7 +2660,7 @@ def _delete202_retry_invalid_header_initial( 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 [202]: @@ -2740,7 +2740,7 @@ def _delete_async_relative_retry_invalid_header_initial( 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 [202]: @@ -2823,7 +2823,7 @@ def _delete_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -2917,7 +2917,7 @@ def _post202_retry_invalid_header_initial( 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 [202]: @@ -3015,7 +3015,7 @@ def _post_async_relative_retry_invalid_header_initial( 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 [202]: @@ -3117,7 +3117,7 @@ def _post_async_relative_retry_invalid_json_polling_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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/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/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 94de8adf1b6..a3269a6d394 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 @@ -50,9 +50,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]: @@ -154,9 +152,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 842c40514c6..353644ef235 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 @@ -104,7 +104,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]: @@ -214,7 +214,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/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/paging/aio/operations/_paging_operations.py b/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py index 34aef6b7dee..43f5e58e7c5 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 @@ -1049,9 +1049,7 @@ async def _get_multiple_pages_lro_initial( 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 [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 16c0f81cd4d..30ecc6aa2ad 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 @@ -1591,7 +1591,7 @@ def _get_multiple_pages_lro_initial( 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 [202]: 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/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py index eac0ea1cd80..67278e3d2c6 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 @@ -98,9 +98,7 @@ async def check_name_availability( 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]: @@ -142,9 +140,7 @@ async def _create_initial( 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, 202]: @@ -265,9 +261,7 @@ async def delete(self, resource_group_name: str, account_name: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -311,9 +305,7 @@ async def get_properties( 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]: @@ -378,9 +370,7 @@ async def update( 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]: @@ -424,9 +414,7 @@ async def list_keys( 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]: @@ -609,9 +597,7 @@ async def regenerate_key( 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/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 777c8974262..2f577e8f285 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 @@ -72,9 +72,7 @@ async def list(self, **kwargs: Any) -> "_models.UsageListResult": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 2e16f71f2fe..d12237df99c 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 @@ -420,7 +420,7 @@ def check_name_availability( 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]: @@ -463,7 +463,7 @@ def _create_initial( 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, 202]: @@ -591,7 +591,7 @@ def delete( 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, 204]: @@ -639,7 +639,7 @@ def get_properties( 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]: @@ -705,7 +705,7 @@ def update( 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]: @@ -753,7 +753,7 @@ def list_keys( 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]: @@ -943,7 +943,7 @@ def regenerate_key( 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/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py b/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_usage_operations.py index ce3c5f0a632..0939a48baa2 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 @@ -113,7 +113,7 @@ def list( 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/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/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py b/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py index 0f1a35bd2cb..d7b10dedfba 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 @@ -75,9 +75,7 @@ async def get_sample_resource_group(self, resource_group_name: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 2e18f336f6b..76c6fdee8f1 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 @@ -120,7 +120,7 @@ def get_sample_resource_group( 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/azure/legacy/requirements.txt b/test/azure/legacy/requirements.txt index d429073c2de..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" -azure-core==1.18.0 +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/AcceptanceTests/asynctests/test_lro.py b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py index 233bdc23174..751929e0110 100644 --- a/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py +++ b/test/azure/low-level/AcceptanceTests/asynctests/test_lro.py @@ -105,23 +105,12 @@ 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): async def _callback(request, **kwargs): - pipeline_response = await client.send_request( - _convert_request(request), - _return_pipeline_response=True - ) + 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) deserializer = kwargs.pop("get_long_running_output", get_long_running_output) diff --git a/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py b/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py index 995519a1bb4..7e40b0b86ea 100644 --- a/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py +++ b/test/azure/low-level/AcceptanceTests/asynctests/test_paging.py @@ -65,10 +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( - request, - _return_pipeline_response=True - ) + 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 @@ -289,9 +287,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 5c43144d275..2a00f098bd0 100644 --- a/test/azure/low-level/AcceptanceTests/test_lro.py +++ b/test/azure/low-level/AcceptanceTests/test_lro.py @@ -108,23 +108,12 @@ 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): def _callback(request, **kwargs): - pipeline_response = client.send_request( - _convert_request(request), - _return_pipeline_response=True - ) + 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) deserializer = kwargs.pop("get_long_running_output", get_long_running_output) diff --git a/test/azure/low-level/AcceptanceTests/test_paging.py b/test/azure/low-level/AcceptanceTests/test_paging.py index b179a4626c8..8e581836483 100644 --- a/test/azure/low-level/AcceptanceTests/test_paging.py +++ b/test/azure/low-level/AcceptanceTests/test_paging.py @@ -56,11 +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.send_request( - request, - _return_pipeline_response=True - ) + 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 @@ -244,9 +241,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/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/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 8d46c893031..99501c9d066 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": 54, "UpdatePetWithForm": 0, - "getDecimalInvalid": 24, - "getDecimalBig": 24, - "getDecimalSmall": 24, - "getDecimalBigPositiveDecimal": 24, - "getDecimalBigNegativeDecimal": 24, - "putDecimalBig": 24, - "putDecimalSmall": 24, - "putDecimalBigPositiveDecimal": 24, - "putDecimalBigNegativeDecimal": 19, + "getDecimalInvalid": 10, + "getDecimalBig": 10, + "getDecimalSmall": 10, + "getDecimalBigPositiveDecimal": 10, + "getDecimalBigNegativeDecimal": 10, + "putDecimalBig": 10, + "putDecimalSmall": 10, + "putDecimalBigPositiveDecimal": 10, + "putDecimalBigNegativeDecimal": 6, "putDateTimeMaxUtc7MS": 0, - "getDateTimeMaxUtc7MSUppercase": 25, - "putDateTimeMaxLocalPositiveOffset": 25, + "getDateTimeMaxUtc7MSUppercase": 12, + "putDateTimeMaxLocalPositiveOffset": 12, "putDateTimeMaxLocalNegativeOffset": 0, "putDateTimeMinLocalPositiveOffset": 0, - "putDateTimeMinLocalNegativeOffset": 25, + "putDateTimeMinLocalNegativeOffset": 12, "HeaderParameterProtectedKey": 1, - "CustomHeaderInRequest": 19, - "FormdataStreamUploadFile": 86, + "CustomHeaderInRequest": 11, + "FormdataStreamUploadFile": 36, "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": 10, + "sendErrorWithParamNameModels": 24, + "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..72274caebd0 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": 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 diff --git a/test/azure/low-level/requirements.txt b/test/azure/low-level/requirements.txt index f2077bf44df..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" -azure-core==1.18.0 +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/AcceptanceTests/asynctests/test_lro.py b/test/azure/version-tolerant/AcceptanceTests/asynctests/test_lro.py index 14644651bc2..a4caec18026 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,7 +60,8 @@ 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() diff --git a/test/azure/version-tolerant/AcceptanceTests/test_lro.py b/test/azure/version-tolerant/AcceptanceTests/test_lro.py index 22a2f1c19a2..3ec531b21bb 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,7 +58,7 @@ 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() 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/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/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 98c1069a60a..2b0d5270048 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 @@ -264,7 +264,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]: @@ -305,7 +305,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]: @@ -346,7 +346,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]: @@ -395,7 +395,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]: @@ -436,7 +436,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/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/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/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/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 205bbfd1fab..5aba8c35b29 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 @@ -850,7 +850,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]: @@ -889,7 +889,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]: @@ -942,7 +942,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]: @@ -976,7 +976,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]: @@ -1010,7 +1010,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]: @@ -1044,7 +1044,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]: @@ -1078,7 +1078,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]: @@ -1136,7 +1136,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]: @@ -1175,7 +1175,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]: @@ -1213,7 +1213,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]: @@ -1252,7 +1252,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]: @@ -1303,7 +1303,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]: @@ -1335,7 +1335,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]: @@ -1367,7 +1367,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]: @@ -1399,7 +1399,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]: @@ -1450,7 +1450,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]: @@ -1488,7 +1488,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]: @@ -1520,7 +1520,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]: @@ -1552,7 +1552,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]: @@ -1608,7 +1608,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]: @@ -1645,7 +1645,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]: @@ -1677,7 +1677,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]: @@ -1714,7 +1714,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]: @@ -1751,7 +1751,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]: @@ -1788,7 +1788,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]: @@ -1820,7 +1820,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]: @@ -1884,7 +1884,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]: @@ -1940,7 +1940,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]: @@ -1981,7 +1981,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]: @@ -2021,7 +2021,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/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/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/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/_vendor.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_vendor.py index 138f663c53a..e12b61dea67 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_vendor.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_vendor.py @@ -5,14 +5,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest -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 + def _format_url_section(template, **kwargs): components = template.split("/") 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 2a157f173e6..236efc8af51 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 @@ -22,7 +22,6 @@ from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from custompollerpagerdefinitions.aio import AsyncCustomPager, AsyncCustomPoller -from ..._vendor import _convert_request from ...operations._operations import build_paging_first_response_empty_request, build_paging_get_multiple_pages_failure_request, build_paging_get_multiple_pages_failure_uri_request, build_paging_get_multiple_pages_fragment_next_link_request, build_paging_get_multiple_pages_fragment_with_grouping_next_link_request, build_paging_get_multiple_pages_lro_request_initial, build_paging_get_multiple_pages_request, build_paging_get_multiple_pages_retry_first_request, build_paging_get_multiple_pages_retry_second_request, build_paging_get_multiple_pages_with_offset_request, build_paging_get_no_item_name_pages_request, build_paging_get_null_next_link_name_pages_request, build_paging_get_odata_multiple_pages_request, build_paging_get_paging_model_with_item_name_with_xms_client_name_request, build_paging_get_single_pages_failure_request, build_paging_get_single_pages_request, build_paging_get_with_query_params_request, build_paging_next_fragment_request, build_paging_next_fragment_with_grouping_request, build_paging_next_operation_with_query_params_request T = TypeVar('T') @@ -84,7 +83,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -92,7 +90,6 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -160,7 +157,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -168,7 +164,6 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -236,7 +231,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -244,7 +238,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -313,7 +306,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -321,7 +313,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -403,7 +394,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -414,7 +404,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -489,7 +478,6 @@ def prepare_request(next_link=None): required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -497,7 +485,6 @@ def prepare_request(next_link=None): request = build_paging_next_operation_with_query_params_request( template_url='/paging/multiple/nextOperationWithQueryParams', ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -579,7 +566,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_odata_multiple_pages.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -590,7 +576,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -676,7 +661,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -688,7 +672,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -757,7 +740,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -765,7 +747,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -834,7 +815,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -842,7 +822,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -910,7 +889,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -918,7 +896,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -986,7 +963,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -994,7 +970,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1062,7 +1037,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1070,7 +1044,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1147,7 +1120,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1158,7 +1130,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url='/paging/multiple/fragment/{tenant}/{nextLink}', ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1235,7 +1206,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1246,7 +1216,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url='/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}', ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1297,18 +1266,17 @@ async def _get_multiple_pages_lro_initial( timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata['url'], ) - 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 [202]: 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 @@ -1365,7 +1333,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1376,7 +1343,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1484,7 +1450,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1492,7 +1457,6 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, ) - request = _convert_request(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 06719547617..9578a316655 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 @@ -22,7 +22,7 @@ from custompollerpagerdefinitions import CustomPager, CustomPoller from msrest import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -608,7 +608,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -616,7 +615,6 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -685,7 +683,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -693,7 +690,6 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -762,7 +758,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -770,7 +765,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -840,7 +834,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -848,7 +841,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -931,7 +923,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -942,7 +933,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1018,7 +1008,6 @@ def prepare_request(next_link=None): required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1026,7 +1015,6 @@ def prepare_request(next_link=None): request = build_paging_next_operation_with_query_params_request( template_url='/paging/multiple/nextOperationWithQueryParams', ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1109,7 +1097,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_odata_multiple_pages.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1120,7 +1107,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1207,7 +1193,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1219,7 +1204,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1289,7 +1273,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1297,7 +1280,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1367,7 +1349,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1375,7 +1356,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1444,7 +1424,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1452,7 +1431,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1521,7 +1499,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1529,7 +1506,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1598,7 +1574,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1606,7 +1581,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1684,7 +1658,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1695,7 +1668,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url='/paging/multiple/fragment/{tenant}/{nextLink}', ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1773,7 +1745,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1784,7 +1755,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url='/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}', ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1836,18 +1806,17 @@ def _get_multiple_pages_lro_initial( timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata['url'], ) - 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 [202]: 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 @@ -1904,7 +1873,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata['url'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1915,7 +1883,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -2024,7 +1991,6 @@ 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'], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -2032,7 +1998,6 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, ) - request = _convert_request(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/_vendor.py b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_vendor.py index 9aad73fc743..54f238858ed 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_vendor.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_vendor.py @@ -5,16 +5,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest - - -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 - def _format_url_section(template, **kwargs): components = template.split("/") 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 9b011b5e1bb..494fcd01cec 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 @@ -24,7 +24,6 @@ from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async -from ..._vendor import _convert_request from ...operations._operations import ( build_paging_get_pages_partial_url_operation_next_request, build_paging_get_pages_partial_url_operation_request, @@ -90,7 +89,6 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=self.get_pages_partial_url.metadata["url"], ) - request = _convert_request(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), @@ -102,7 +100,6 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=next_link, ) - request = _convert_request(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), @@ -175,7 +172,6 @@ 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"], ) - request = _convert_request(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), @@ -188,7 +184,6 @@ def prepare_request(next_link=None): next_link=next_link, template_url="/paging/customurl/{nextLink}", ) - request = _convert_request(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 a5bf46318b9..20685dd56af 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 @@ -24,7 +24,7 @@ from azure.core.tracing.decorator import distributed_trace from msrest import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -162,7 +162,6 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=self.get_pages_partial_url.metadata["url"], ) - request = _convert_request(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), @@ -174,7 +173,6 @@ def prepare_request(next_link=None): request = build_paging_get_pages_partial_url_request( template_url=next_link, ) - request = _convert_request(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), @@ -252,7 +250,6 @@ 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"], ) - request = _convert_request(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), @@ -265,7 +262,6 @@ def prepare_request(next_link=None): next_link=next_link, template_url="/paging/customurl/{nextLink}", ) - request = _convert_request(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/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/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/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/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/_vendor.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -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 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 c8dd7878c05..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 @@ -25,7 +25,6 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ..._vendor import _convert_request from ...operations._operations import ( build_lr_os_custom_header_post202_retry200_request_initial, build_lr_os_custom_header_post_async_retry_succeeded_request_initial, @@ -147,12 +146,9 @@ async def _put200_succeeded_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._put200_succeeded_initial.metadata["url"], ) - 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]: @@ -161,8 +157,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 @@ -237,8 +233,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: @@ -280,12 +276,9 @@ async def _patch200_succeeded_ignore_headers_initial(self, product: Any = None, json=json, template_url=self._patch200_succeeded_ignore_headers_initial.metadata["url"], ) - 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]: @@ -297,8 +290,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 @@ -378,8 +371,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: @@ -421,20 +414,17 @@ async def _put201_succeeded_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._put201_succeeded_initial.metadata["url"], ) - 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 [201]: 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 @@ -509,8 +499,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: @@ -543,12 +533,9 @@ 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"], ) - 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, 202]: @@ -558,8 +545,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 @@ -622,8 +609,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: @@ -665,20 +652,17 @@ async def _put200_succeeded_no_state_initial(self, product: Any = None, **kwargs json=json, template_url=self._put200_succeeded_no_state_initial.metadata["url"], ) - 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]: 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 @@ -753,8 +737,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: @@ -796,20 +780,17 @@ async def _put202_retry200_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._put202_retry200_initial.metadata["url"], ) - 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 [202]: 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 @@ -885,8 +866,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: @@ -928,12 +909,9 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], ) - 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, 201]: @@ -941,14 +919,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 @@ -1024,8 +1002,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: @@ -1067,20 +1045,17 @@ async def _put200_updating_succeeded204_initial(self, product: Any = None, **kwa json=json, template_url=self._put200_updating_succeeded204_initial.metadata["url"], ) - 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]: 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 @@ -1156,8 +1131,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: @@ -1199,12 +1174,9 @@ async def _put201_creating_failed200_initial(self, product: Any = None, **kwargs json=json, template_url=self._put201_creating_failed200_initial.metadata["url"], ) - 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, 201]: @@ -1212,14 +1184,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 @@ -1295,8 +1267,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: @@ -1338,20 +1310,17 @@ async def _put200_acceptedcanceled200_initial(self, product: Any = None, **kwarg json=json, template_url=self._put200_acceptedcanceled200_initial.metadata["url"], ) - 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]: 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 @@ -1427,8 +1396,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: @@ -1470,12 +1439,9 @@ async def _put_no_header_in_retry_initial(self, product: Any = None, **kwargs: A json=json, template_url=self._put_no_header_in_retry_initial.metadata["url"], ) - 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 [202]: @@ -1485,8 +1451,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 @@ -1564,8 +1530,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: @@ -1607,12 +1573,9 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -1626,8 +1589,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 @@ -1710,8 +1673,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: @@ -1753,12 +1716,9 @@ async def _put_async_no_retry_succeeded_initial(self, product: Any = None, **kwa json=json, template_url=self._put_async_no_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -1771,8 +1731,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 @@ -1854,8 +1814,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: @@ -1897,12 +1857,9 @@ async def _put_async_retry_failed_initial(self, product: Any = None, **kwargs: A json=json, template_url=self._put_async_retry_failed_initial.metadata["url"], ) - 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]: @@ -1916,8 +1873,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 @@ -2000,8 +1957,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: @@ -2043,12 +2000,9 @@ async def _put_async_no_retrycanceled_initial(self, product: Any = None, **kwarg json=json, template_url=self._put_async_no_retrycanceled_initial.metadata["url"], ) - 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]: @@ -2061,8 +2015,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 @@ -2144,8 +2098,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: @@ -2187,12 +2141,9 @@ async def _put_async_no_header_in_retry_initial(self, product: Any = None, **kwa json=json, template_url=self._put_async_no_header_in_retry_initial.metadata["url"], ) - 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 [201]: @@ -2204,8 +2155,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 @@ -2286,8 +2237,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: @@ -2329,20 +2280,17 @@ async def _put_non_resource_initial(self, sku: Any = None, **kwargs: Any) -> Any json=json, template_url=self._put_non_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -2398,8 +2346,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: @@ -2441,20 +2389,17 @@ async def _put_async_non_resource_initial(self, sku: Any = None, **kwargs: Any) json=json, template_url=self._put_async_non_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -2510,8 +2455,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: @@ -2553,20 +2498,17 @@ async def _put_sub_resource_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._put_sub_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -2628,8 +2570,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: @@ -2671,20 +2613,17 @@ async def _put_async_sub_resource_initial(self, product: Any = None, **kwargs: A json=json, template_url=self._put_async_sub_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -2746,8 +2685,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: @@ -2780,12 +2719,9 @@ 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"], ) - 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, 202]: @@ -2794,8 +2730,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 @@ -2803,8 +2739,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 @@ -2862,8 +2798,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: @@ -2896,12 +2832,9 @@ 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"], ) - 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, 202]: @@ -2910,8 +2843,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 @@ -2919,8 +2852,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 @@ -2976,8 +2909,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: @@ -3010,12 +2943,9 @@ 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"], ) - 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, 202]: @@ -3024,8 +2954,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 @@ -3033,8 +2963,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 @@ -3090,8 +3020,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: @@ -3124,12 +3054,9 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = build_lros_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], ) - 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 [204]: @@ -3194,12 +3121,9 @@ 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"], ) - 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, 202]: @@ -3209,8 +3133,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 @@ -3269,8 +3193,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: @@ -3303,12 +3227,9 @@ 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"], ) - 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, 202]: @@ -3318,8 +3239,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 @@ -3378,8 +3299,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: @@ -3412,12 +3333,9 @@ 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"], ) - 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 [202, 204]: @@ -3487,12 +3405,9 @@ 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"], ) - 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 [202, 204]: @@ -3562,12 +3477,9 @@ 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"], ) - 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 [202]: @@ -3640,12 +3552,9 @@ 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"], ) - 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 [202]: @@ -3718,12 +3627,9 @@ 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"], ) - 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 [202]: @@ -3796,12 +3702,9 @@ 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"], ) - 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 [202]: @@ -3874,12 +3777,9 @@ 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"], ) - 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, 202]: @@ -3887,14 +3787,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 @@ -3940,8 +3840,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: @@ -3983,12 +3883,9 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._post202_retry200_initial.metadata["url"], ) - 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 [202]: @@ -4090,12 +3987,9 @@ async def _post202_no_retry204_initial(self, product: Any = None, **kwargs: Any) json=json, template_url=self._post202_no_retry204_initial.metadata["url"], ) - 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 [202]: @@ -4106,8 +4000,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 @@ -4186,8 +4080,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: @@ -4220,20 +4114,17 @@ 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"], ) - 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 [202]: 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 @@ -4289,8 +4180,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: @@ -4323,20 +4214,17 @@ 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"], ) - 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 [202]: 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 @@ -4392,8 +4280,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: @@ -4428,20 +4316,17 @@ 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"], ) - 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 [202]: 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 @@ -4499,8 +4384,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: @@ -4542,12 +4427,9 @@ async def _post_async_retry_succeeded_initial(self, product: Any = None, **kwarg json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], ) - 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, 202]: @@ -4557,8 +4439,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 @@ -4641,8 +4523,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: @@ -4684,12 +4566,9 @@ async def _post_async_no_retry_succeeded_initial(self, product: Any = None, **kw json=json, template_url=self._post_async_no_retry_succeeded_initial.metadata["url"], ) - 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, 202]: @@ -4699,8 +4578,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 @@ -4783,8 +4662,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: @@ -4826,12 +4705,9 @@ async def _post_async_retry_failed_initial(self, product: Any = None, **kwargs: json=json, template_url=self._post_async_retry_failed_initial.metadata["url"], ) - 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 [202]: @@ -4937,12 +4813,9 @@ async def _post_async_retrycanceled_initial(self, product: Any = None, **kwargs: json=json, template_url=self._post_async_retrycanceled_initial.metadata["url"], ) - 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 [202]: @@ -5067,12 +4940,9 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], ) - 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, 201]: @@ -5080,14 +4950,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 @@ -5163,8 +5033,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: @@ -5206,12 +5076,9 @@ async def _put_async_relative_retry_succeeded_initial(self, product: Any = None, json=json, template_url=self._put_async_relative_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -5225,8 +5092,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 @@ -5309,8 +5176,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: @@ -5343,12 +5210,9 @@ 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"], ) - 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, 202]: @@ -5357,8 +5221,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 @@ -5366,8 +5230,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 @@ -5425,8 +5289,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: @@ -5459,12 +5323,9 @@ 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"], ) - 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 [202]: @@ -5534,12 +5395,9 @@ 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"], ) - 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 [202]: @@ -5621,12 +5479,9 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._post202_retry200_initial.metadata["url"], ) - 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 [202]: @@ -5728,12 +5583,9 @@ async def _post_async_relative_retry_succeeded_initial(self, product: Any = None json=json, template_url=self._post_async_relative_retry_succeeded_initial.metadata["url"], ) - 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 [202]: @@ -5860,12 +5712,9 @@ async def _put_non_retry400_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._put_non_retry400_initial.metadata["url"], ) - 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, 201]: @@ -5873,14 +5722,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 @@ -5954,8 +5803,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: @@ -5997,12 +5846,9 @@ async def _put_non_retry201_creating400_initial(self, product: Any = None, **kwa json=json, template_url=self._put_non_retry201_creating400_initial.metadata["url"], ) - 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, 201]: @@ -6010,14 +5856,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 @@ -6092,8 +5938,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: @@ -6135,12 +5981,9 @@ async def _put_non_retry201_creating400_invalid_json_initial(self, product: Any json=json, template_url=self._put_non_retry201_creating400_invalid_json_initial.metadata["url"], ) - 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, 201]: @@ -6148,14 +5991,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 @@ -6232,8 +6075,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: @@ -6275,12 +6118,9 @@ async def _put_async_relative_retry400_initial(self, product: Any = None, **kwar json=json, template_url=self._put_async_relative_retry400_initial.metadata["url"], ) - 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]: @@ -6294,8 +6134,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 @@ -6377,8 +6217,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: @@ -6411,12 +6251,9 @@ 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"], ) - 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 [202]: @@ -6485,12 +6322,9 @@ 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"], ) - 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 [202]: @@ -6559,12 +6393,9 @@ 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"], ) - 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 [202]: @@ -6646,12 +6477,9 @@ async def _post_non_retry400_initial(self, product: Any = None, **kwargs: Any) - json=json, template_url=self._post_non_retry400_initial.metadata["url"], ) - 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 [202]: @@ -6752,12 +6580,9 @@ async def _post202_non_retry400_initial(self, product: Any = None, **kwargs: Any json=json, template_url=self._post202_non_retry400_initial.metadata["url"], ) - 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 [202]: @@ -6858,12 +6683,9 @@ async def _post_async_relative_retry400_initial(self, product: Any = None, **kwa json=json, template_url=self._post_async_relative_retry400_initial.metadata["url"], ) - 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 [202]: @@ -6968,12 +6790,9 @@ async def _put_error201_no_provisioning_state_payload_initial(self, product: Any json=json, template_url=self._put_error201_no_provisioning_state_payload_initial.metadata["url"], ) - 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, 201]: @@ -6981,14 +6800,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 @@ -7064,8 +6883,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: @@ -7107,12 +6926,9 @@ async def _put_async_relative_retry_no_status_initial(self, product: Any = None, json=json, template_url=self._put_async_relative_retry_no_status_initial.metadata["url"], ) - 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]: @@ -7126,8 +6942,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 @@ -7210,8 +7026,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: @@ -7253,12 +7069,9 @@ async def _put_async_relative_retry_no_status_payload_initial(self, product: Any json=json, template_url=self._put_async_relative_retry_no_status_payload_initial.metadata["url"], ) - 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]: @@ -7272,8 +7085,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 @@ -7358,8 +7171,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: @@ -7392,12 +7205,9 @@ async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: request = build_lrosads_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], ) - 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 [204]: @@ -7462,12 +7272,9 @@ 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"], ) - 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 [202]: @@ -7549,12 +7356,9 @@ async def _post202_no_location_initial(self, product: Any = None, **kwargs: Any) json=json, template_url=self._post202_no_location_initial.metadata["url"], ) - 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 [202]: @@ -7656,12 +7460,9 @@ async def _post_async_relative_retry_no_payload_initial(self, product: Any = Non json=json, template_url=self._post_async_relative_retry_no_payload_initial.metadata["url"], ) - 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 [202]: @@ -7769,12 +7570,9 @@ async def _put200_invalid_json_initial(self, product: Any = None, **kwargs: Any) json=json, template_url=self._put200_invalid_json_initial.metadata["url"], ) - 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]: @@ -7783,8 +7581,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 @@ -7859,8 +7657,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: @@ -7902,12 +7700,9 @@ async def _put_async_relative_retry_invalid_header_initial(self, product: Any = json=json, template_url=self._put_async_relative_retry_invalid_header_initial.metadata["url"], ) - 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]: @@ -7921,8 +7716,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 @@ -8007,8 +7802,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: @@ -8050,12 +7845,9 @@ async def _put_async_relative_retry_invalid_json_polling_initial(self, product: json=json, template_url=self._put_async_relative_retry_invalid_json_polling_initial.metadata["url"], ) - 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]: @@ -8069,8 +7861,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 @@ -8155,8 +7947,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: @@ -8189,12 +7981,9 @@ 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"], ) - 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 [202]: @@ -8264,12 +8053,9 @@ 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"], ) - 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 [202]: @@ -8342,12 +8128,9 @@ 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"], ) - 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 [202]: @@ -8431,12 +8214,9 @@ async def _post202_retry_invalid_header_initial(self, product: Any = None, **kwa json=json, template_url=self._post202_retry_invalid_header_initial.metadata["url"], ) - 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 [202]: @@ -8538,12 +8318,9 @@ async def _post_async_relative_retry_invalid_header_initial(self, product: Any = json=json, template_url=self._post_async_relative_retry_invalid_header_initial.metadata["url"], ) - 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 [202]: @@ -8651,12 +8428,9 @@ async def _post_async_relative_retry_invalid_json_polling_initial(self, product: json=json, template_url=self._post_async_relative_retry_invalid_json_polling_initial.metadata["url"], ) - 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 [202]: @@ -8783,12 +8557,9 @@ async def _put_async_retry_succeeded_initial(self, product: Any = None, **kwargs json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -8802,8 +8573,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 @@ -8887,8 +8658,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: @@ -8930,12 +8701,9 @@ async def _put201_creating_succeeded200_initial(self, product: Any = None, **kwa json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], ) - 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, 201]: @@ -8943,14 +8711,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 @@ -9027,8 +8795,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: @@ -9070,12 +8838,9 @@ async def _post202_retry200_initial(self, product: Any = None, **kwargs: Any) -> json=json, template_url=self._post202_retry200_initial.metadata["url"], ) - 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 [202]: @@ -9178,12 +8943,9 @@ async def _post_async_retry_succeeded_initial(self, product: Any = None, **kwarg json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], ) - 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 [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 aa1a7bc562a..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 @@ -26,8 +26,6 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling from msrest import Serializer -from .._vendor import _convert_request - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union @@ -1862,10 +1860,9 @@ def _put200_succeeded_initial( json=json, template_url=self._put200_succeeded_initial.metadata["url"], ) - 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, 204]: @@ -1874,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 @@ -1955,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: @@ -2003,10 +2000,9 @@ def _patch200_succeeded_ignore_headers_initial( json=json, template_url=self._patch200_succeeded_ignore_headers_initial.metadata["url"], ) - 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]: @@ -2018,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 @@ -2104,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: @@ -2152,18 +2148,17 @@ def _put201_succeeded_initial( json=json, template_url=self._put201_succeeded_initial.metadata["url"], ) - 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 [201]: 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 @@ -2243,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: @@ -2280,10 +2275,9 @@ def _post202_list_initial( request = build_lros_post202_list_request_initial( template_url=self._post202_list_initial.metadata["url"], ) - 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, 202]: @@ -2293,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 @@ -2360,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: @@ -2408,18 +2402,17 @@ def _put200_succeeded_no_state_initial( json=json, template_url=self._put200_succeeded_no_state_initial.metadata["url"], ) - 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]: 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 @@ -2499,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: @@ -2547,18 +2540,17 @@ def _put202_retry200_initial( json=json, template_url=self._put202_retry200_initial.metadata["url"], ) - 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 [202]: 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 @@ -2639,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: @@ -2687,10 +2679,9 @@ def _put201_creating_succeeded200_initial( json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], ) - 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, 201]: @@ -2698,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 @@ -2786,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: @@ -2834,18 +2825,17 @@ def _put200_updating_succeeded204_initial( json=json, template_url=self._put200_updating_succeeded204_initial.metadata["url"], ) - 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]: 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 @@ -2926,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: @@ -2974,10 +2964,9 @@ def _put201_creating_failed200_initial( json=json, template_url=self._put201_creating_failed200_initial.metadata["url"], ) - 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, 201]: @@ -2985,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 @@ -3073,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: @@ -3121,18 +3110,17 @@ def _put200_acceptedcanceled200_initial( json=json, template_url=self._put200_acceptedcanceled200_initial.metadata["url"], ) - 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]: 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 @@ -3213,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: @@ -3261,10 +3249,9 @@ def _put_no_header_in_retry_initial( json=json, template_url=self._put_no_header_in_retry_initial.metadata["url"], ) - 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 [202]: @@ -3274,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 @@ -3358,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: @@ -3406,10 +3393,9 @@ def _put_async_retry_succeeded_initial( json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -3423,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 @@ -3512,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: @@ -3560,10 +3546,9 @@ def _put_async_no_retry_succeeded_initial( json=json, template_url=self._put_async_no_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -3576,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 @@ -3664,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: @@ -3712,10 +3697,9 @@ def _put_async_retry_failed_initial( json=json, template_url=self._put_async_retry_failed_initial.metadata["url"], ) - 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]: @@ -3729,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 @@ -3818,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: @@ -3866,10 +3850,9 @@ def _put_async_no_retrycanceled_initial( json=json, template_url=self._put_async_no_retrycanceled_initial.metadata["url"], ) - 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]: @@ -3882,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 @@ -3970,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: @@ -4018,10 +4001,9 @@ def _put_async_no_header_in_retry_initial( json=json, template_url=self._put_async_no_header_in_retry_initial.metadata["url"], ) - 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 [201]: @@ -4033,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 @@ -4120,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: @@ -4168,18 +4150,17 @@ def _put_non_resource_initial( json=json, template_url=self._put_non_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -4240,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: @@ -4288,18 +4269,17 @@ def _put_async_non_resource_initial( json=json, template_url=self._put_async_non_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -4360,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: @@ -4408,18 +4388,17 @@ def _put_sub_resource_initial( json=json, template_url=self._put_sub_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -4486,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: @@ -4534,18 +4513,17 @@ def _put_async_sub_resource_initial( json=json, template_url=self._put_async_sub_resource_initial.metadata["url"], ) - 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 [202]: 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 @@ -4612,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: @@ -4649,10 +4627,9 @@ 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"], ) - 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, 202]: @@ -4661,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 @@ -4670,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 @@ -4730,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: @@ -4767,10 +4744,9 @@ 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"], ) - 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, 202]: @@ -4779,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 @@ -4788,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 @@ -4848,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: @@ -4885,10 +4861,9 @@ def _delete_provisioning202_deletingcanceled200_initial( request = build_lros_delete_provisioning202_deletingcanceled200_request_initial( template_url=self._delete_provisioning202_deletingcanceled200_initial.metadata["url"], ) - 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, 202]: @@ -4897,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 @@ -4906,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 @@ -4966,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: @@ -5003,10 +4978,9 @@ def _delete204_succeeded_initial( request = build_lros_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], ) - 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 [204]: @@ -5077,10 +5051,9 @@ def _delete202_retry200_initial( request = build_lros_delete202_retry200_request_initial( template_url=self._delete202_retry200_initial.metadata["url"], ) - 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, 202]: @@ -5090,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 @@ -5153,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: @@ -5190,10 +5163,9 @@ def _delete202_no_retry204_initial( request = build_lros_delete202_no_retry204_request_initial( template_url=self._delete202_no_retry204_initial.metadata["url"], ) - 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, 202]: @@ -5203,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 @@ -5266,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: @@ -5303,10 +5275,9 @@ 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"], ) - 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 [202, 204]: @@ -5382,10 +5353,9 @@ 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"], ) - 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 [202, 204]: @@ -5461,10 +5431,9 @@ 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"], ) - 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 [202]: @@ -5543,10 +5512,9 @@ 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"], ) - 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 [202]: @@ -5625,10 +5593,9 @@ 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"], ) - 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 [202]: @@ -5707,10 +5674,9 @@ def _delete_async_retrycanceled_initial( request = build_lros_delete_async_retrycanceled_request_initial( template_url=self._delete_async_retrycanceled_initial.metadata["url"], ) - 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 [202]: @@ -5789,10 +5755,9 @@ def _post200_with_payload_initial( request = build_lros_post200_with_payload_request_initial( template_url=self._post200_with_payload_initial.metadata["url"], ) - 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, 202]: @@ -5800,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 @@ -5856,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: @@ -5904,10 +5869,9 @@ def _post202_retry200_initial( json=json, template_url=self._post202_retry200_initial.metadata["url"], ) - 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 [202]: @@ -6019,10 +5983,9 @@ def _post202_no_retry204_initial( json=json, template_url=self._post202_no_retry204_initial.metadata["url"], ) - 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 [202]: @@ -6033,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 @@ -6118,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: @@ -6155,18 +6118,17 @@ 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"], ) - 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 [202]: 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 @@ -6225,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: @@ -6262,18 +6224,17 @@ 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"], ) - 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 [202]: 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 @@ -6332,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: @@ -6369,18 +6330,17 @@ 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"], ) - 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 [202]: 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 @@ -6441,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: @@ -6489,10 +6449,9 @@ def _post_async_retry_succeeded_initial( json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], ) - 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, 202]: @@ -6502,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 @@ -6591,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: @@ -6639,10 +6598,9 @@ def _post_async_no_retry_succeeded_initial( json=json, template_url=self._post_async_no_retry_succeeded_initial.metadata["url"], ) - 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, 202]: @@ -6652,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 @@ -6741,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: @@ -6789,10 +6747,9 @@ def _post_async_retry_failed_initial( json=json, template_url=self._post_async_retry_failed_initial.metadata["url"], ) - 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 [202]: @@ -6908,10 +6865,9 @@ def _post_async_retrycanceled_initial( json=json, template_url=self._post_async_retrycanceled_initial.metadata["url"], ) - 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 [202]: @@ -7046,10 +7002,9 @@ def _put201_creating_succeeded200_initial( json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], ) - 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, 201]: @@ -7057,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 @@ -7145,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: @@ -7193,10 +7148,9 @@ def _put_async_relative_retry_succeeded_initial( json=json, template_url=self._put_async_relative_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -7210,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 @@ -7299,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: @@ -7336,10 +7290,9 @@ 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"], ) - 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, 202]: @@ -7348,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 @@ -7357,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 @@ -7417,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: @@ -7454,10 +7407,9 @@ def _delete202_retry200_initial( request = build_lro_retrys_delete202_retry200_request_initial( template_url=self._delete202_retry200_initial.metadata["url"], ) - 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 [202]: @@ -7533,10 +7485,9 @@ 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"], ) - 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 [202]: @@ -7626,10 +7577,9 @@ def _post202_retry200_initial( json=json, template_url=self._post202_retry200_initial.metadata["url"], ) - 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 [202]: @@ -7741,10 +7691,9 @@ def _post_async_relative_retry_succeeded_initial( json=json, template_url=self._post_async_relative_retry_succeeded_initial.metadata["url"], ) - 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 [202]: @@ -7879,10 +7828,9 @@ def _put_non_retry400_initial( json=json, template_url=self._put_non_retry400_initial.metadata["url"], ) - 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, 201]: @@ -7890,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 @@ -7976,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: @@ -8024,10 +7972,9 @@ def _put_non_retry201_creating400_initial( json=json, template_url=self._put_non_retry201_creating400_initial.metadata["url"], ) - 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, 201]: @@ -8035,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 @@ -8122,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: @@ -8170,10 +8117,9 @@ def _put_non_retry201_creating400_invalid_json_initial( json=json, template_url=self._put_non_retry201_creating400_invalid_json_initial.metadata["url"], ) - 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, 201]: @@ -8181,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 @@ -8268,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: @@ -8316,10 +8262,9 @@ def _put_async_relative_retry400_initial( json=json, template_url=self._put_async_relative_retry400_initial.metadata["url"], ) - 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]: @@ -8333,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 @@ -8421,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: @@ -8458,10 +8403,9 @@ def _delete_non_retry400_initial( request = build_lrosads_delete_non_retry400_request_initial( template_url=self._delete_non_retry400_initial.metadata["url"], ) - 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 [202]: @@ -8536,10 +8480,9 @@ def _delete202_non_retry400_initial( request = build_lrosads_delete202_non_retry400_request_initial( template_url=self._delete202_non_retry400_initial.metadata["url"], ) - 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 [202]: @@ -8614,10 +8557,9 @@ 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"], ) - 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 [202]: @@ -8707,10 +8649,9 @@ def _post_non_retry400_initial( json=json, template_url=self._post_non_retry400_initial.metadata["url"], ) - 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 [202]: @@ -8821,10 +8762,9 @@ def _post202_non_retry400_initial( json=json, template_url=self._post202_non_retry400_initial.metadata["url"], ) - 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 [202]: @@ -8935,10 +8875,9 @@ def _post_async_relative_retry400_initial( json=json, template_url=self._post_async_relative_retry400_initial.metadata["url"], ) - 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 [202]: @@ -9053,10 +8992,9 @@ def _put_error201_no_provisioning_state_payload_initial( json=json, template_url=self._put_error201_no_provisioning_state_payload_initial.metadata["url"], ) - 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, 201]: @@ -9064,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 @@ -9150,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: @@ -9198,10 +9136,9 @@ def _put_async_relative_retry_no_status_initial( json=json, template_url=self._put_async_relative_retry_no_status_initial.metadata["url"], ) - 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]: @@ -9215,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 @@ -9304,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: @@ -9352,10 +9289,9 @@ def _put_async_relative_retry_no_status_payload_initial( json=json, template_url=self._put_async_relative_retry_no_status_payload_initial.metadata["url"], ) - 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]: @@ -9369,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 @@ -9458,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: @@ -9495,10 +9431,9 @@ def _delete204_succeeded_initial( request = build_lrosads_delete204_succeeded_request_initial( template_url=self._delete204_succeeded_initial.metadata["url"], ) - 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 [204]: @@ -9569,10 +9504,9 @@ 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"], ) - 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 [202]: @@ -9662,10 +9596,9 @@ def _post202_no_location_initial( json=json, template_url=self._post202_no_location_initial.metadata["url"], ) - 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 [202]: @@ -9777,10 +9710,9 @@ def _post_async_relative_retry_no_payload_initial( json=json, template_url=self._post_async_relative_retry_no_payload_initial.metadata["url"], ) - 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 [202]: @@ -9896,10 +9828,9 @@ def _put200_invalid_json_initial( json=json, template_url=self._put200_invalid_json_initial.metadata["url"], ) - 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, 204]: @@ -9908,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 @@ -9989,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: @@ -10037,10 +9968,9 @@ def _put_async_relative_retry_invalid_header_initial( json=json, template_url=self._put_async_relative_retry_invalid_header_initial.metadata["url"], ) - 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]: @@ -10054,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 @@ -10143,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: @@ -10191,10 +10121,9 @@ def _put_async_relative_retry_invalid_json_polling_initial( json=json, template_url=self._put_async_relative_retry_invalid_json_polling_initial.metadata["url"], ) - 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]: @@ -10208,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 @@ -10297,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: @@ -10334,10 +10263,9 @@ 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"], ) - 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 [202]: @@ -10413,10 +10341,9 @@ 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"], ) - 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 [202]: @@ -10495,10 +10422,9 @@ 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"], ) - 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 [202]: @@ -10588,10 +10514,9 @@ def _post202_retry_invalid_header_initial( json=json, template_url=self._post202_retry_invalid_header_initial.metadata["url"], ) - 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 [202]: @@ -10703,10 +10628,9 @@ def _post_async_relative_retry_invalid_header_initial( json=json, template_url=self._post_async_relative_retry_invalid_header_initial.metadata["url"], ) - 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 [202]: @@ -10822,10 +10746,9 @@ def _post_async_relative_retry_invalid_json_polling_initial( json=json, template_url=self._post_async_relative_retry_invalid_json_polling_initial.metadata["url"], ) - 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 [202]: @@ -10960,10 +10883,9 @@ def _put_async_retry_succeeded_initial( json=json, template_url=self._put_async_retry_succeeded_initial.metadata["url"], ) - 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]: @@ -10977,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 @@ -11067,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: @@ -11115,10 +11037,9 @@ def _put201_creating_succeeded200_initial( json=json, template_url=self._put201_creating_succeeded200_initial.metadata["url"], ) - 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, 201]: @@ -11126,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 @@ -11215,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: @@ -11263,10 +11184,9 @@ def _post202_retry200_initial( json=json, template_url=self._post202_retry200_initial.metadata["url"], ) - 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 [202]: @@ -11379,10 +11299,9 @@ def _post_async_retry_succeeded_initial( json=json, template_url=self._post_async_retry_succeeded_initial.metadata["url"], ) - 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 [202]: 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/_vendor.py b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_vendor.py index 9aad73fc743..54f238858ed 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_vendor.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_vendor.py @@ -5,16 +5,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest - - -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 - def _format_url_section(template, **kwargs): components = template.split("/") 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 fad71281856..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 @@ -24,7 +24,6 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator_async import distributed_trace_async -from ..._vendor import _convert_request from ...operations._operations import ( build_poll_with_constant_parameterized_endpoints_request_initial, build_poll_with_parameterized_endpoints_request_initial, @@ -43,16 +42,13 @@ 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"], ) - request = _convert_request(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), } 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]: @@ -62,8 +58,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 @@ -106,8 +102,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: @@ -152,16 +148,13 @@ 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"], ) - request = _convert_request(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), } 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]: @@ -171,8 +164,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 @@ -217,8 +210,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 469b159e008..ca77621af49 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 @@ -25,7 +25,7 @@ from azure.core.tracing.decorator import distributed_trace from msrest import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -97,14 +97,13 @@ def _poll_with_parameterized_endpoints_initial( request = build_poll_with_parameterized_endpoints_request_initial( template_url=self._poll_with_parameterized_endpoints_initial.metadata["url"], ) - request = _convert_request(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), } 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]: @@ -114,8 +113,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 @@ -163,8 +162,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: @@ -212,14 +211,13 @@ 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"], ) - request = _convert_request(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), } 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]: @@ -229,8 +227,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 @@ -278,8 +276,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/_vendor.py b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_vendor.py index 9aad73fc743..54f238858ed 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_vendor.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_vendor.py @@ -5,16 +5,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest - - -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 - def _format_url_section(template, **kwargs): components = template.split("/") 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 13d6ef03a9b..3e0756c696f 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 @@ -26,7 +26,6 @@ from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async -from ..._vendor import _convert_request from ...operations._operations import ( build_paging_first_response_empty_request, build_paging_get_multiple_pages_failure_request, @@ -106,7 +105,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -114,7 +112,6 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -176,7 +173,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -184,7 +180,6 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -246,7 +241,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -254,7 +248,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -317,7 +310,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -325,7 +317,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -404,7 +395,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -415,7 +405,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -482,7 +471,6 @@ def prepare_request(next_link=None): required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -490,7 +478,6 @@ def prepare_request(next_link=None): request = build_paging_next_operation_with_query_params_request( template_url="/paging/multiple/nextOperationWithQueryParams", ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -569,7 +556,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_odata_multiple_pages.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -580,7 +566,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -663,7 +648,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -675,7 +659,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -738,7 +721,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -746,7 +728,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -809,7 +790,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -817,7 +797,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -879,7 +858,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -887,7 +865,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -949,7 +926,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -957,7 +933,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1019,7 +994,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1027,7 +1001,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1097,7 +1070,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1108,7 +1080,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url="/paging/multiple/fragment/{tenant}/{nextLink}", ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1178,7 +1149,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1189,7 +1159,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url="/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}", ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1235,20 +1204,17 @@ async def _get_multiple_pages_lro_initial( timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata["url"], ) - 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 [202]: 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 @@ -1302,7 +1268,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1313,7 +1278,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1413,7 +1377,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1421,7 +1384,6 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, ) - request = _convert_request(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 aa5c6e30879..13dedffb891 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 @@ -26,7 +26,7 @@ from azure.core.tracing.decorator import distributed_trace from msrest import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -610,7 +610,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -618,7 +617,6 @@ def prepare_request(next_link=None): request = build_paging_get_no_item_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -683,7 +681,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -691,7 +688,6 @@ def prepare_request(next_link=None): request = build_paging_get_null_next_link_name_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -756,7 +752,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=self.get_single_pages.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -764,7 +759,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -830,7 +824,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=self.first_response_empty.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -838,7 +831,6 @@ def prepare_request(next_link=None): request = build_paging_first_response_empty_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -917,7 +909,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -928,7 +919,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1000,7 +990,6 @@ def prepare_request(next_link=None): required_query_parameter=required_query_parameter, template_url=self.get_with_query_params.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1008,7 +997,6 @@ def prepare_request(next_link=None): request = build_paging_next_operation_with_query_params_request( template_url="/paging/multiple/nextOperationWithQueryParams", ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1087,7 +1075,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_odata_multiple_pages.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1098,7 +1085,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1182,7 +1168,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.get_multiple_pages_with_offset.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1194,7 +1179,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1260,7 +1244,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1268,7 +1251,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_first_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1334,7 +1316,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1342,7 +1323,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_retry_second_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1407,7 +1387,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=self.get_single_pages_failure.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1415,7 +1394,6 @@ def prepare_request(next_link=None): request = build_paging_get_single_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1480,7 +1458,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=self.get_multiple_pages_failure.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1488,7 +1465,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1553,7 +1529,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1561,7 +1536,6 @@ def prepare_request(next_link=None): request = build_paging_get_multiple_pages_failure_uri_request( template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1636,7 +1610,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_next_link.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1647,7 +1620,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url="/paging/multiple/fragment/{tenant}/{nextLink}", ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1722,7 +1694,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url=self.get_multiple_pages_fragment_with_grouping_next_link.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1733,7 +1704,6 @@ def prepare_request(next_link=None): api_version=api_version, template_url="/paging/multiple/fragmentwithgrouping/{tenant}/{nextLink}", ) - request = _convert_request(request) request.url = self._client.format_url(request.url) return request @@ -1779,18 +1749,17 @@ def _get_multiple_pages_lro_initial( timeout=timeout, template_url=self._get_multiple_pages_lro_initial.metadata["url"], ) - 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 [202]: 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 @@ -1844,7 +1813,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=self.begin_get_multiple_pages_lro.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1855,7 +1823,6 @@ def prepare_request(next_link=None): timeout=timeout, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1958,7 +1925,6 @@ 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"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1966,7 +1932,6 @@ def prepare_request(next_link=None): request = build_paging_get_paging_model_with_item_name_with_xms_client_name_request( template_url=next_link, ) - request = _convert_request(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/_vendor.py b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_vendor.py index 9aad73fc743..54f238858ed 100644 --- a/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_vendor.py +++ b/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_vendor.py @@ -5,16 +5,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest - - -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 - def _format_url_section(template, **kwargs): components = template.split("/") 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 49de62f92f7..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 @@ -27,7 +27,6 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ..._vendor import _convert_request from ...operations._operations import ( build_storage_accounts_check_name_availability_request, build_storage_accounts_create_request_initial, @@ -107,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]: @@ -147,12 +144,9 @@ async def _create_initial( json=json, template_url=self._create_initial.metadata["url"], ) - 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, 202]: @@ -161,8 +155,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 @@ -283,8 +277,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: @@ -335,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]: @@ -427,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]: @@ -557,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]: @@ -611,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]: @@ -707,7 +693,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=self.list.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -716,7 +701,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -822,7 +806,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=self.list_by_resource_group.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -832,7 +815,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -910,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]: @@ -986,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 8c92e5b2785..e6d9a2e6f5c 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 @@ -27,7 +27,7 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling from msrest import Serializer -from .._vendor import _convert_request, _format_url_section +from .._vendor import _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -462,7 +462,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]: @@ -505,10 +505,9 @@ def _create_initial( json=json, template_url=self._create_initial.metadata["url"], ) - 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, 202]: @@ -517,8 +516,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 @@ -644,8 +643,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: @@ -702,7 +701,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]: @@ -798,7 +797,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]: @@ -933,7 +932,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]: @@ -991,7 +990,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]: @@ -1088,7 +1087,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=self.list.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1097,7 +1095,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1208,7 +1205,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=self.list_by_resource_group.metadata["url"], ) - request = _convert_request(request) request.url = self._client.format_url(request.url) else: @@ -1218,7 +1214,6 @@ def prepare_request(next_link=None): subscription_id=self._config.subscription_id, template_url=next_link, ) - request = _convert_request(request) request.url = self._client.format_url(request.url) request.method = "GET" return request @@ -1301,7 +1296,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]: @@ -1378,7 +1373,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/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/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 f9567fd1d8e..94b2272517b 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 @@ -122,7 +122,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/azure/version-tolerant/requirements.txt b/test/azure/version-tolerant/requirements.txt index 76e82a9a8ad..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" -azure-core==1.18.0 +azure-core==1.19.0 azure-mgmt-core==1.3.0 msrest==0.6.21 -e ./Expected/AcceptanceTests/AzureBodyDurationVersionTolerant 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 f1ba1586930..ebf0d6002b6 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 @@ -70,7 +70,7 @@ async def test_two( 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/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 0d08f458c03..1ff1b51be15 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 @@ -104,7 +104,7 @@ def test_two( 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/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 cf2b931cfe9..3a6fbc8970a 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 @@ -62,7 +62,7 @@ async def test_one( 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]: @@ -102,7 +102,7 @@ async def _test_lro_initial( 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]: @@ -211,7 +211,7 @@ async def _test_lro_and_paging_initial( 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]: @@ -388,7 +388,7 @@ async def test_different_calls( 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/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 dd1c160d9ed..037611663d6 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 @@ -70,7 +70,7 @@ async def test_two( 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/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 b7402473cef..0a39dd20071 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 @@ -184,7 +184,7 @@ def test_one( 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]: @@ -225,7 +225,7 @@ def _test_lro_initial( 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, 204]: @@ -335,7 +335,7 @@ def _test_lro_and_paging_initial( 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]: @@ -514,7 +514,7 @@ def test_different_calls( 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/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 b06c6d3ff11..67a50529b4f 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 @@ -104,7 +104,7 @@ def test_two( 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/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 e65ef3e8637..fb05ec5ad3f 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 @@ -58,7 +58,7 @@ async def test_one( 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]: @@ -109,7 +109,7 @@ async def test_different_calls( 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/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 a12c49cf52b..446d3e10e52 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 @@ -81,7 +81,7 @@ async def test_two( 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,7 +124,7 @@ async def test_three( 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/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 0df3032493b..1ab6deac8df 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 @@ -74,7 +74,7 @@ async def test_four( 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/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 9e818144bbf..4c447bb9966 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 @@ -130,7 +130,7 @@ def test_one( 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]: @@ -182,7 +182,7 @@ def test_different_calls( 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/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 aa6f255f3b4..c176632ed6c 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 @@ -145,7 +145,7 @@ def test_two( 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]: @@ -189,7 +189,7 @@ def test_three( 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/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 9ecf3a5f37a..b2261b35a35 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 @@ -111,7 +111,7 @@ def test_four( 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/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 4c33d6ae482..f619f9a71bb 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 @@ -125,7 +125,7 @@ async def test_different_calls( 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/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 bdfbb5ae7f7..eda158b5561 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 @@ -81,7 +81,7 @@ async def test_two( 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/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 46c433189a4..cf5a2d760c5 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 @@ -93,7 +93,7 @@ async def test_four( 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]: @@ -132,7 +132,7 @@ async def test_five( 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/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 21e6dc7838f..80368cc726d 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 @@ -188,7 +188,7 @@ def test_different_calls( 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/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 49f856efaaa..4644582cda3 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 @@ -119,7 +119,7 @@ def test_two( 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/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 ccd1897899b..a7b88df077e 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 @@ -157,7 +157,7 @@ def test_four( 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 test_five( 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/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 411bf68a6d5..54dc422c51f 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 @@ -62,7 +62,7 @@ async def test_one( 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]: @@ -102,7 +102,7 @@ async def _test_lro_initial( 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]: @@ -211,7 +211,7 @@ async def _test_lro_and_paging_initial( 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]: @@ -389,7 +389,7 @@ async def test_different_calls( 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/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 ec830ecb5cb..fb1af89d1b1 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 @@ -70,7 +70,7 @@ async def test_two( 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/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 d30116066ed..874baa08b00 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 @@ -184,7 +184,7 @@ def test_one( 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]: @@ -225,7 +225,7 @@ def _test_lro_initial( 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, 204]: @@ -335,7 +335,7 @@ def _test_lro_and_paging_initial( 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]: @@ -515,7 +515,7 @@ def test_different_calls( 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/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 40287460c9d..cfd7cacfea6 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 @@ -104,7 +104,7 @@ def test_two( 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/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 4e55a241644..455ab6e95fb 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 @@ -58,7 +58,7 @@ async def test_one( 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]: @@ -109,7 +109,7 @@ async def test_different_calls( 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/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 6e5ee49ae4e..6d08382c915 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 @@ -81,7 +81,7 @@ async def test_two( 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,7 +124,7 @@ async def test_three( 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/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 3f1e5bff3fd..59e10fb86d6 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 @@ -74,7 +74,7 @@ async def test_four( 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/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 88d494542ab..518b9c30215 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 @@ -130,7 +130,7 @@ def test_one( 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]: @@ -182,7 +182,7 @@ def test_different_calls( 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/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 9e7a69065ce..264330b5b5f 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 @@ -145,7 +145,7 @@ def test_two( 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]: @@ -189,7 +189,7 @@ def test_three( 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/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 1edd7cc15a7..1449873c7b7 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 @@ -111,7 +111,7 @@ def test_four( 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/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 c038619b5f5..ac7d46209b4 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 @@ -126,7 +126,7 @@ async def test_different_calls( 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/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 ff451417f31..dc3ef4e908d 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 @@ -81,7 +81,7 @@ async def test_two( 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/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 31d96849cde..7ce54720ed6 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 @@ -93,7 +93,7 @@ async def test_four( 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]: @@ -132,7 +132,7 @@ async def test_five( 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/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 854a6cf8a19..08d13ada6ed 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 @@ -188,7 +188,7 @@ def test_different_calls( 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/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 22ec257af5d..4f0d3b1a438 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 @@ -119,7 +119,7 @@ def test_two( 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/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 7d5cc490ca0..cc302cccfd5 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 @@ -157,7 +157,7 @@ def test_four( 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 test_five( 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/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 c3a8ab49d87..186b0f5cf5a 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 @@ -57,7 +57,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 682e9d9edab..054f777a956 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 @@ -94,7 +94,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 17ca015f36a..5a8964f24b9 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 @@ -57,7 +57,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 454fb9d8867..4ac26125229 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 @@ -94,7 +94,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 d7ed5bd8581..3caeadc5b45 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 @@ -61,7 +61,7 @@ async def test_one( 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]: @@ -101,7 +101,7 @@ async def _test_lro_initial( 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]: @@ -210,7 +210,7 @@ async def _test_lro_and_paging_initial( 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]: @@ -387,7 +387,7 @@ async def test_different_calls( 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/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 4e0a7ebc8d1..7eeb64ed239 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 @@ -69,7 +69,7 @@ async def test_two( 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/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 c13ab6e18c4..3b99331cd2f 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 @@ -183,7 +183,7 @@ def test_one( 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]: @@ -224,7 +224,7 @@ def _test_lro_initial( 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, 204]: @@ -334,7 +334,7 @@ def _test_lro_and_paging_initial( 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]: @@ -513,7 +513,7 @@ def test_different_calls( 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/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 2f664a818d3..d68a7e1ccb5 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 @@ -103,7 +103,7 @@ def test_two( 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/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 237442e734f..0a166d785bd 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 @@ -57,7 +57,7 @@ async def test_one( 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]: @@ -108,7 +108,7 @@ async def test_different_calls( 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/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 76ba56c9df4..fef87ce85b8 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 @@ -80,7 +80,7 @@ async def test_two( 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,7 +123,7 @@ async def test_three( 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/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 332e0b7af16..319c56112ab 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 @@ -73,7 +73,7 @@ async def test_four( 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/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 7efbab0fbe8..c675f480d0e 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 @@ -129,7 +129,7 @@ def test_one( 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]: @@ -181,7 +181,7 @@ def test_different_calls( 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/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 31895e89a23..5e8b0601de0 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 @@ -144,7 +144,7 @@ def test_two( 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]: @@ -188,7 +188,7 @@ def test_three( 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/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 019fe2a11f5..4b66e2c5639 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 @@ -110,7 +110,7 @@ def test_four( 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/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 1a72e8aac01..dd077b9e6fe 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 @@ -124,7 +124,7 @@ async def test_different_calls( 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/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 bd55b5c8678..ce0cbd3686b 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 @@ -80,7 +80,7 @@ async def test_two( 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/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 29e85d0fc68..bde57567c00 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 @@ -92,7 +92,7 @@ async def test_four( 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]: @@ -131,7 +131,7 @@ async def test_five( 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/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 c1883f669a8..c5fe2c34567 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 @@ -187,7 +187,7 @@ def test_different_calls( 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/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 247911b2b8d..b16ac05b751 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 @@ -118,7 +118,7 @@ def test_two( 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/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 69d00f974ca..5d7fd4aed21 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 @@ -156,7 +156,7 @@ def test_four( 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 test_five( 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/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 22e0619381e..3b19267bc25 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 @@ -184,7 +184,7 @@ def test_one( 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]: @@ -225,7 +225,7 @@ def _test_lro_initial( 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, 204]: @@ -335,7 +335,7 @@ def _test_lro_and_paging_initial( 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]: @@ -514,7 +514,7 @@ def test_different_calls( 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/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 68d42d10046..bb19e5146c5 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 @@ -104,7 +104,7 @@ def test_two( 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/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 678c19b2eb8..01a887f1339 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 @@ -130,7 +130,7 @@ def test_one( 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]: @@ -182,7 +182,7 @@ def test_different_calls( 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/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 22908b7e063..e0d6b1d0952 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 @@ -145,7 +145,7 @@ def test_two( 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]: @@ -189,7 +189,7 @@ def test_three( 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/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 05a75ef3ab4..376be7cf42c 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 @@ -111,7 +111,7 @@ def test_four( 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/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 330c40830de..b49aab3099b 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 @@ -188,7 +188,7 @@ def test_different_calls( 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/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 d233b93555a..1f9e6a9ef3b 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 @@ -119,7 +119,7 @@ def test_two( 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/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 6a2971e3a1f..6ecbe743a34 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 @@ -157,7 +157,7 @@ def test_four( 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 test_five( 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/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 ef57a3bcdab..939dfc64c49 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 @@ -62,7 +62,7 @@ async def test_one( 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]: @@ -102,7 +102,7 @@ async def _test_lro_initial( 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]: @@ -211,7 +211,7 @@ async def _test_lro_and_paging_initial( 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]: @@ -389,7 +389,7 @@ async def test_different_calls( 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/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 021c50936f1..696f6be2bdf 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 @@ -70,7 +70,7 @@ async def test_two( 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/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 575f4106798..839ea854063 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 @@ -184,7 +184,7 @@ def test_one( 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]: @@ -225,7 +225,7 @@ def _test_lro_initial( 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, 204]: @@ -335,7 +335,7 @@ def _test_lro_and_paging_initial( 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]: @@ -515,7 +515,7 @@ def test_different_calls( 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/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 5241320052f..c4f6da5a9b6 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 @@ -104,7 +104,7 @@ def test_two( 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/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 28a8b460161..371ca57fdaf 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 @@ -58,7 +58,7 @@ async def test_one( 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]: @@ -109,7 +109,7 @@ async def test_different_calls( 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/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 8b430de370b..6832776015e 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 @@ -81,7 +81,7 @@ async def test_two( 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,7 +124,7 @@ async def test_three( 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/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 88ce2d07e29..ff9cdc950ad 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 @@ -74,7 +74,7 @@ async def test_four( 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/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 a30fc991095..0c0da0a939d 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 @@ -130,7 +130,7 @@ def test_one( 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]: @@ -182,7 +182,7 @@ def test_different_calls( 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/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 60f39327f1e..ffc277db284 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 @@ -145,7 +145,7 @@ def test_two( 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]: @@ -189,7 +189,7 @@ def test_three( 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/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 90628013e13..de2f4bb700d 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 @@ -111,7 +111,7 @@ def test_four( 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/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 e036d59d2e5..2865f4b508b 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 @@ -126,7 +126,7 @@ async def test_different_calls( 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/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 2354bacdc1a..b6094499070 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 @@ -81,7 +81,7 @@ async def test_two( 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/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 3558addc120..4d5bee7ed87 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 @@ -93,7 +93,7 @@ async def test_four( 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]: @@ -132,7 +132,7 @@ async def test_five( 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/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 d46b07e84a0..2d9dc4a2e0a 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 @@ -188,7 +188,7 @@ def test_different_calls( 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/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 b52d16bbad4..77e051a44fd 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 @@ -119,7 +119,7 @@ def test_two( 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/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 ef809d1a5a1..2fd77a130eb 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 @@ -157,7 +157,7 @@ def test_four( 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 test_five( 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/multiapi/requirements.txt b/test/multiapi/requirements.txt index c3641769888..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 -azure-core==1.18.0 +azure-core==1.19.0 azure-mgmt-core==1.3.0 pytest pytest-cov 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/asynctests/test_xms_error.py b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py index 99c2d6cb61a..d513be75f70 100644 --- a/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/asynctests/test_xms_error.py @@ -109,7 +109,8 @@ 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) + request.url = client._client.format_url(request.url) + pipeline_response = await client._client._pipeline.run(request) class MyPetSadError(PetSadError): def read(self): return b"ignore me" @@ -121,13 +122,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_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/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..9892515b696 100644 --- a/test/vanilla/legacy/AcceptanceTests/test_xms_error.py +++ b/test/vanilla/legacy/AcceptanceTests/test_xms_error.py @@ -101,10 +101,12 @@ 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) + request.url = client._client.format_url(request.url) + pipeline_response = client._client._pipeline.run(request) 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 +114,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/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py index e75fed41b93..590198b5048 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 @@ -85,9 +85,7 @@ async def create_ap_true(self, create_parameters: "_models.PetAPTrue", **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 create_cat_ap_true(self, create_parameters: "_models.CatAPTrue", **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +173,7 @@ async def create_ap_object(self, create_parameters: "_models.PetAPObject", **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 create_ap_string(self, create_parameters: "_models.PetAPString", **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 create_ap_in_properties( 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]: @@ -319,9 +309,7 @@ async def create_ap_in_properties_with_ap_string( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 40064b8831a..898853237b2 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 @@ -233,7 +233,7 @@ def create_ap_true( 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]: @@ -282,7 +282,7 @@ def create_cat_ap_true( 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]: @@ -331,7 +331,7 @@ def create_ap_object( 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 create_ap_string( 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]: @@ -429,7 +429,7 @@ def create_ap_in_properties( 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]: @@ -478,7 +478,7 @@ def create_ap_in_properties_with_ap_string( 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/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/anything/aio/operations/_anything_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py index 67b7ba4c1a7..85ffa9c47d7 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 @@ -56,9 +56,7 @@ async def get_object(self, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -102,9 +100,7 @@ async def put_object(self, input: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +131,7 @@ async def get_string(self, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -181,9 +175,7 @@ async def put_string(self, input: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -214,9 +206,7 @@ async def get_array(self, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -260,9 +250,7 @@ async def put_array(self, input: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 14be0b9163c..ba9773b6a87 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 @@ -184,7 +184,7 @@ def get_object( 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]: @@ -233,7 +233,7 @@ def put_object( 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_string( 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]: @@ -316,7 +316,7 @@ def put_string( 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]: @@ -350,7 +350,7 @@ def get_array( 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]: @@ -399,7 +399,7 @@ def put_array( 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/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/bodyarray/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py index 3e91231c26b..5917a4d332b 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 @@ -141,9 +141,7 @@ async def get_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_invalid(self, **kwargs: Any) -> List[int]: 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]: @@ -217,9 +213,7 @@ async def get_empty(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +257,7 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -297,9 +289,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +333,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +365,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +401,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -453,9 +437,7 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +481,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -533,9 +513,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -571,9 +549,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +585,7 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +629,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +661,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +697,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +733,7 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +777,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -845,9 +809,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -883,9 +845,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +881,7 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -967,9 +925,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1001,9 +957,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1039,9 +993,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1077,9 +1029,7 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1123,9 +1073,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1157,9 +1105,7 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1149,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1237,9 +1181,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1283,9 +1225,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1317,9 +1257,7 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1293,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1394,9 +1330,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1441,9 +1375,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1475,9 +1407,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1513,9 +1443,7 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1559,9 +1487,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1593,9 +1519,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1631,9 +1555,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1670,9 +1592,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1637,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1751,9 +1669,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1789,9 +1705,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1828,9 +1742,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1875,9 +1787,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1909,9 +1819,7 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1955,9 +1863,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1990,9 +1896,7 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1941,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2071,9 +1973,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2110,9 +2010,7 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2148,9 +2046,7 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2082,7 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2225,9 +2119,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2264,9 +2156,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2303,9 +2193,7 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2350,9 +2238,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2384,9 +2270,7 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2422,9 +2306,7 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2460,9 +2342,7 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2498,9 +2378,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2536,9 +2414,7 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2582,9 +2458,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2490,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2654,9 +2526,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2693,9 +2563,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2732,9 +2600,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2637,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2818,9 +2682,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 cd0e4ab630b..67713330e9c 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 @@ -1532,7 +1532,7 @@ def get_null( 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]: @@ -1571,7 +1571,7 @@ def get_invalid( 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]: @@ -1610,7 +1610,7 @@ def get_empty( 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]: @@ -1659,7 +1659,7 @@ def put_empty( 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]: @@ -1694,7 +1694,7 @@ def get_boolean_tfft( 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]: @@ -1743,7 +1743,7 @@ def put_boolean_tfft( 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]: @@ -1778,7 +1778,7 @@ def get_boolean_invalid_null( 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]: @@ -1817,7 +1817,7 @@ def get_boolean_invalid_string( 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]: @@ -1856,7 +1856,7 @@ def get_integer_valid( 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]: @@ -1905,7 +1905,7 @@ def put_integer_valid( 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]: @@ -1940,7 +1940,7 @@ def get_int_invalid_null( 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]: @@ -1979,7 +1979,7 @@ def get_int_invalid_string( 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]: @@ -2018,7 +2018,7 @@ def get_long_valid( 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]: @@ -2067,7 +2067,7 @@ def put_long_valid( 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]: @@ -2102,7 +2102,7 @@ def get_long_invalid_null( 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]: @@ -2141,7 +2141,7 @@ def get_long_invalid_string( 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]: @@ -2180,7 +2180,7 @@ def get_float_valid( 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]: @@ -2229,7 +2229,7 @@ def put_float_valid( 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]: @@ -2264,7 +2264,7 @@ def get_float_invalid_null( 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]: @@ -2303,7 +2303,7 @@ def get_float_invalid_string( 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]: @@ -2342,7 +2342,7 @@ def get_double_valid( 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]: @@ -2391,7 +2391,7 @@ def put_double_valid( 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]: @@ -2426,7 +2426,7 @@ def get_double_invalid_null( 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]: @@ -2465,7 +2465,7 @@ def get_double_invalid_string( 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]: @@ -2504,7 +2504,7 @@ def get_string_valid( 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]: @@ -2553,7 +2553,7 @@ def put_string_valid( 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]: @@ -2588,7 +2588,7 @@ def get_enum_valid( 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]: @@ -2637,7 +2637,7 @@ def put_enum_valid( 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]: @@ -2672,7 +2672,7 @@ def get_string_enum_valid( 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]: @@ -2721,7 +2721,7 @@ def put_string_enum_valid( 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]: @@ -2756,7 +2756,7 @@ def get_string_with_null( 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]: @@ -2795,7 +2795,7 @@ def get_string_with_invalid( 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]: @@ -2835,7 +2835,7 @@ def get_uuid_valid( 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]: @@ -2885,7 +2885,7 @@ def put_uuid_valid( 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]: @@ -2920,7 +2920,7 @@ def get_uuid_invalid_chars( 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]: @@ -2959,7 +2959,7 @@ def get_date_valid( 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]: @@ -3008,7 +3008,7 @@ def put_date_valid( 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]: @@ -3043,7 +3043,7 @@ def get_date_invalid_null( 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]: @@ -3082,7 +3082,7 @@ def get_date_invalid_chars( 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]: @@ -3122,7 +3122,7 @@ def get_date_time_valid( 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]: @@ -3172,7 +3172,7 @@ def put_date_time_valid( 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]: @@ -3207,7 +3207,7 @@ def get_date_time_invalid_null( 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]: @@ -3246,7 +3246,7 @@ def get_date_time_invalid_chars( 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]: @@ -3286,7 +3286,7 @@ def get_date_time_rfc1123_valid( 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]: @@ -3336,7 +3336,7 @@ def put_date_time_rfc1123_valid( 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]: @@ -3371,7 +3371,7 @@ def get_duration_valid( 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]: @@ -3420,7 +3420,7 @@ def put_duration_valid( 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]: @@ -3456,7 +3456,7 @@ def get_byte_valid( 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]: @@ -3506,7 +3506,7 @@ def put_byte_valid( 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]: @@ -3541,7 +3541,7 @@ def get_byte_invalid_null( 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]: @@ -3581,7 +3581,7 @@ def get_base64_url( 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]: @@ -3620,7 +3620,7 @@ def get_complex_null( 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]: @@ -3659,7 +3659,7 @@ def get_complex_empty( 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]: @@ -3699,7 +3699,7 @@ def get_complex_item_null( 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]: @@ -3739,7 +3739,7 @@ def get_complex_item_empty( 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]: @@ -3779,7 +3779,7 @@ def get_complex_valid( 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]: @@ -3829,7 +3829,7 @@ def put_complex_valid( 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]: @@ -3864,7 +3864,7 @@ def get_array_null( 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]: @@ -3903,7 +3903,7 @@ def get_array_empty( 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]: @@ -3942,7 +3942,7 @@ def get_array_item_null( 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]: @@ -3981,7 +3981,7 @@ def get_array_item_empty( 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]: @@ -4020,7 +4020,7 @@ def get_array_valid( 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]: @@ -4069,7 +4069,7 @@ def put_array_valid( 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]: @@ -4104,7 +4104,7 @@ def get_dictionary_null( 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]: @@ -4143,7 +4143,7 @@ def get_dictionary_empty( 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]: @@ -4183,7 +4183,7 @@ def get_dictionary_item_null( 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]: @@ -4223,7 +4223,7 @@ def get_dictionary_item_empty( 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]: @@ -4263,7 +4263,7 @@ def get_dictionary_valid( 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]: @@ -4313,7 +4313,7 @@ def put_dictionary_valid( 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/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/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 35219426a00..896c8a5ce8a 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 @@ -141,9 +141,7 @@ async def get_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_invalid(self, **kwargs: Any) -> List[int]: 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]: @@ -217,9 +213,7 @@ async def get_empty(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +257,7 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -297,9 +289,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +333,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +365,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +401,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -453,9 +437,7 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +481,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -533,9 +513,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -571,9 +549,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +585,7 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +629,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +661,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +697,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +733,7 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +777,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -845,9 +809,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -883,9 +845,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +881,7 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -967,9 +925,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1001,9 +957,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1039,9 +993,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1077,9 +1029,7 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1123,9 +1073,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1157,9 +1105,7 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1149,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1237,9 +1181,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1283,9 +1225,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1317,9 +1257,7 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1293,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1394,9 +1330,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1441,9 +1375,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1475,9 +1407,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1513,9 +1443,7 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1559,9 +1487,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1593,9 +1519,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1631,9 +1555,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1670,9 +1592,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1637,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1751,9 +1669,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1789,9 +1705,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1828,9 +1742,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1875,9 +1787,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1909,9 +1819,7 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1955,9 +1863,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1990,9 +1896,7 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1941,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2071,9 +1973,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2110,9 +2010,7 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2148,9 +2046,7 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2082,7 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2225,9 +2119,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2264,9 +2156,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2303,9 +2193,7 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2350,9 +2238,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2384,9 +2270,7 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2422,9 +2306,7 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2460,9 +2342,7 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2498,9 +2378,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2536,9 +2414,7 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2582,9 +2458,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2490,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2654,9 +2526,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2693,9 +2563,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2732,9 +2600,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2637,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2818,9 +2682,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 d98d93d6332..625fa3a8296 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 @@ -1532,7 +1532,7 @@ def get_null( 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]: @@ -1571,7 +1571,7 @@ def get_invalid( 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]: @@ -1610,7 +1610,7 @@ def get_empty( 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]: @@ -1659,7 +1659,7 @@ def put_empty( 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]: @@ -1694,7 +1694,7 @@ def get_boolean_tfft( 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]: @@ -1743,7 +1743,7 @@ def put_boolean_tfft( 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]: @@ -1778,7 +1778,7 @@ def get_boolean_invalid_null( 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]: @@ -1817,7 +1817,7 @@ def get_boolean_invalid_string( 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]: @@ -1856,7 +1856,7 @@ def get_integer_valid( 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]: @@ -1905,7 +1905,7 @@ def put_integer_valid( 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]: @@ -1940,7 +1940,7 @@ def get_int_invalid_null( 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]: @@ -1979,7 +1979,7 @@ def get_int_invalid_string( 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]: @@ -2018,7 +2018,7 @@ def get_long_valid( 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]: @@ -2067,7 +2067,7 @@ def put_long_valid( 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]: @@ -2102,7 +2102,7 @@ def get_long_invalid_null( 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]: @@ -2141,7 +2141,7 @@ def get_long_invalid_string( 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]: @@ -2180,7 +2180,7 @@ def get_float_valid( 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]: @@ -2229,7 +2229,7 @@ def put_float_valid( 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]: @@ -2264,7 +2264,7 @@ def get_float_invalid_null( 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]: @@ -2303,7 +2303,7 @@ def get_float_invalid_string( 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]: @@ -2342,7 +2342,7 @@ def get_double_valid( 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]: @@ -2391,7 +2391,7 @@ def put_double_valid( 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]: @@ -2426,7 +2426,7 @@ def get_double_invalid_null( 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]: @@ -2465,7 +2465,7 @@ def get_double_invalid_string( 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]: @@ -2504,7 +2504,7 @@ def get_string_valid( 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]: @@ -2553,7 +2553,7 @@ def put_string_valid( 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]: @@ -2588,7 +2588,7 @@ def get_enum_valid( 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]: @@ -2637,7 +2637,7 @@ def put_enum_valid( 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]: @@ -2672,7 +2672,7 @@ def get_string_enum_valid( 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]: @@ -2721,7 +2721,7 @@ def put_string_enum_valid( 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]: @@ -2756,7 +2756,7 @@ def get_string_with_null( 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]: @@ -2795,7 +2795,7 @@ def get_string_with_invalid( 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]: @@ -2835,7 +2835,7 @@ def get_uuid_valid( 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]: @@ -2885,7 +2885,7 @@ def put_uuid_valid( 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]: @@ -2920,7 +2920,7 @@ def get_uuid_invalid_chars( 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]: @@ -2959,7 +2959,7 @@ def get_date_valid( 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]: @@ -3008,7 +3008,7 @@ def put_date_valid( 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]: @@ -3043,7 +3043,7 @@ def get_date_invalid_null( 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]: @@ -3082,7 +3082,7 @@ def get_date_invalid_chars( 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]: @@ -3122,7 +3122,7 @@ def get_date_time_valid( 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]: @@ -3172,7 +3172,7 @@ def put_date_time_valid( 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]: @@ -3207,7 +3207,7 @@ def get_date_time_invalid_null( 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]: @@ -3246,7 +3246,7 @@ def get_date_time_invalid_chars( 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]: @@ -3286,7 +3286,7 @@ def get_date_time_rfc1123_valid( 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]: @@ -3336,7 +3336,7 @@ def put_date_time_rfc1123_valid( 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]: @@ -3371,7 +3371,7 @@ def get_duration_valid( 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]: @@ -3420,7 +3420,7 @@ def put_duration_valid( 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]: @@ -3456,7 +3456,7 @@ def get_byte_valid( 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]: @@ -3506,7 +3506,7 @@ def put_byte_valid( 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]: @@ -3541,7 +3541,7 @@ def get_byte_invalid_null( 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]: @@ -3581,7 +3581,7 @@ def get_base64_url( 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]: @@ -3620,7 +3620,7 @@ def get_complex_null( 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]: @@ -3659,7 +3659,7 @@ def get_complex_empty( 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]: @@ -3699,7 +3699,7 @@ def get_complex_item_null( 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]: @@ -3739,7 +3739,7 @@ def get_complex_item_empty( 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]: @@ -3779,7 +3779,7 @@ def get_complex_valid( 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]: @@ -3829,7 +3829,7 @@ def put_complex_valid( 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]: @@ -3864,7 +3864,7 @@ def get_array_null( 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]: @@ -3903,7 +3903,7 @@ def get_array_empty( 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]: @@ -3942,7 +3942,7 @@ def get_array_item_null( 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]: @@ -3981,7 +3981,7 @@ def get_array_item_empty( 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]: @@ -4020,7 +4020,7 @@ def get_array_valid( 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]: @@ -4069,7 +4069,7 @@ def put_array_valid( 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]: @@ -4104,7 +4104,7 @@ def get_dictionary_null( 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]: @@ -4143,7 +4143,7 @@ def get_dictionary_empty( 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]: @@ -4183,7 +4183,7 @@ def get_dictionary_item_null( 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]: @@ -4223,7 +4223,7 @@ def get_dictionary_item_empty( 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]: @@ -4263,7 +4263,7 @@ def get_dictionary_valid( 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]: @@ -4313,7 +4313,7 @@ def put_dictionary_valid( 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/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/aio/operations/_array_operations.py index 632aa18d3e3..447fff72ad7 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 @@ -141,9 +141,7 @@ async def get_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_invalid(self, **kwargs: Any) -> List[int]: 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]: @@ -217,9 +213,7 @@ async def get_empty(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +257,7 @@ async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -297,9 +289,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +333,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +365,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +401,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -453,9 +437,7 @@ async def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +481,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -533,9 +513,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -571,9 +549,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +585,7 @@ async def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +629,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +661,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +697,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +733,7 @@ async def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +777,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -845,9 +809,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -883,9 +845,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +881,7 @@ async def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -967,9 +925,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1001,9 +957,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1039,9 +993,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1077,9 +1029,7 @@ async def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1123,9 +1073,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1157,9 +1105,7 @@ async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnu request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1149,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1237,9 +1181,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1283,9 +1225,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1317,9 +1257,7 @@ async def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1293,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1394,9 +1330,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1441,9 +1375,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1475,9 +1407,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1513,9 +1443,7 @@ async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1559,9 +1487,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1593,9 +1519,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1631,9 +1555,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1670,9 +1592,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1637,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1751,9 +1669,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1789,9 +1705,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1828,9 +1742,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1875,9 +1787,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1909,9 +1819,7 @@ async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1955,9 +1863,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1990,9 +1896,7 @@ async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1941,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2071,9 +1973,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2110,9 +2010,7 @@ async def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2148,9 +2046,7 @@ async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2082,7 @@ async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2225,9 +2119,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2264,9 +2156,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2303,9 +2193,7 @@ async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2350,9 +2238,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2384,9 +2270,7 @@ async def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2422,9 +2306,7 @@ async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2460,9 +2342,7 @@ async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2498,9 +2378,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2536,9 +2414,7 @@ async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2582,9 +2458,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2490,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2654,9 +2526,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2693,9 +2563,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2732,9 +2600,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +2637,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2818,9 +2682,7 @@ async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_py3.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithPythonThreeOperationFiles/bodyarraywithpythonthreeoperationfiles/operations/_array_operations_py3.py index cd3aa118f7b..d3bb14023c6 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 @@ -973,7 +973,7 @@ def get_null(self, **kwargs: Any) -> List[int]: 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]: @@ -1009,7 +1009,7 @@ def get_invalid(self, **kwargs: Any) -> List[int]: 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]: @@ -1045,7 +1045,7 @@ def get_empty(self, **kwargs: Any) -> List[int]: 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]: @@ -1089,7 +1089,7 @@ def put_empty(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 get_boolean_tfft(self, **kwargs: Any) -> List[bool]: 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]: @@ -1165,7 +1165,7 @@ def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1197,7 +1197,7 @@ def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1269,7 +1269,7 @@ def get_integer_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1345,7 +1345,7 @@ def get_int_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 get_int_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1417,7 +1417,7 @@ def get_long_valid(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1461,7 +1461,7 @@ def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1493,7 +1493,7 @@ def get_long_invalid_null(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 get_long_invalid_string(self, **kwargs: Any) -> List[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1565,7 +1565,7 @@ def get_float_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1609,7 +1609,7 @@ def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1641,7 +1641,7 @@ def get_float_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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_float_invalid_string(self, **kwargs: Any) -> List[float]: 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]: @@ -1713,7 +1713,7 @@ def get_double_valid(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1757,7 +1757,7 @@ def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1789,7 +1789,7 @@ def get_double_invalid_null(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1825,7 +1825,7 @@ def get_double_invalid_string(self, **kwargs: Any) -> List[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1861,7 +1861,7 @@ def get_string_valid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1905,7 +1905,7 @@ def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1937,7 +1937,7 @@ def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnum"]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1981,7 +1981,7 @@ def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2013,7 +2013,7 @@ def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.Enum0 request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1"]], * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2089,7 +2089,7 @@ def get_string_with_null(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2125,7 +2125,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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_uuid_valid(self, **kwargs: Any) -> List[str]: 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]: @@ -2207,7 +2207,7 @@ def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2239,7 +2239,7 @@ def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2275,7 +2275,7 @@ def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2319,7 +2319,7 @@ def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2351,7 +2351,7 @@ def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2387,7 +2387,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2469,7 +2469,7 @@ def put_date_time_valid(self, array_body: List[datetime.datetime], **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2501,7 +2501,7 @@ def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2537,7 +2537,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2574,7 +2574,7 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2619,7 +2619,7 @@ def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2651,7 +2651,7 @@ def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2695,7 +2695,7 @@ def put_duration_valid(self, array_body: List[datetime.timedelta], **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2728,7 +2728,7 @@ def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2773,7 +2773,7 @@ def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2805,7 +2805,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2842,7 +2842,7 @@ def get_base64_url(self, **kwargs: Any) -> List[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2878,7 +2878,7 @@ def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2914,7 +2914,7 @@ def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2951,7 +2951,7 @@ def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2988,7 +2988,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3025,7 +3025,7 @@ def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3070,7 +3070,7 @@ def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3102,7 +3102,7 @@ def get_array_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3138,7 +3138,7 @@ def get_array_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3174,7 +3174,7 @@ def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3246,7 +3246,7 @@ def get_array_valid(self, **kwargs: Any) -> List[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3322,7 +3322,7 @@ def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3358,7 +3358,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3395,7 +3395,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3432,7 +3432,7 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3469,7 +3469,7 @@ def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -3514,7 +3514,7 @@ def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 6f06245da8f..ba8f2a84d53 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 @@ -77,9 +77,7 @@ async def get_true(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_true(self, **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]: @@ -152,9 +148,7 @@ async def get_false(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_false(self, **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]: @@ -227,9 +219,7 @@ async def get_null(self, **kwargs: Any) -> Optional[bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +255,7 @@ async def get_invalid(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 8aaadf4f80d..2050a3dfc41 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 @@ -211,7 +211,7 @@ def get_true( 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]: @@ -253,7 +253,7 @@ def put_true( 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]: @@ -288,7 +288,7 @@ def get_false( 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]: @@ -330,7 +330,7 @@ def put_false( 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]: @@ -365,7 +365,7 @@ def get_null( 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]: @@ -404,7 +404,7 @@ def get_invalid( 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/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/bodybyte/aio/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py index c69a20798a3..3909adb7a99 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 @@ -76,9 +76,7 @@ async def get_null(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_empty(self, **kwargs: Any) -> bytearray: 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]: @@ -152,9 +148,7 @@ async def get_non_ascii(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_invalid(self, **kwargs: Any) -> bytearray: 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/BodyByte/bodybyte/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByte/bodybyte/operations/_byte_operations.py index 3ffb8f5bcb1..80c10bcf872 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 @@ -183,7 +183,7 @@ def get_null( 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]: @@ -222,7 +222,7 @@ def get_empty( 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]: @@ -261,7 +261,7 @@ def get_non_ascii( 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]: @@ -310,7 +310,7 @@ def put_non_ascii( 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]: @@ -345,7 +345,7 @@ def get_invalid( 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/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/bodybytewithpackagename/aio/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py index a15c02f7134..bf291e1d18f 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 @@ -76,9 +76,7 @@ async def get_null(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_empty(self, **kwargs: Any) -> bytearray: 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]: @@ -152,9 +148,7 @@ async def get_non_ascii(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_invalid(self, **kwargs: Any) -> bytearray: 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/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/operations/_byte_operations.py index 44c86d9ed76..75533328880 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 @@ -183,7 +183,7 @@ def get_null( 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]: @@ -222,7 +222,7 @@ def get_empty( 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]: @@ -261,7 +261,7 @@ def get_non_ascii( 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]: @@ -310,7 +310,7 @@ def put_non_ascii( 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]: @@ -345,7 +345,7 @@ def get_invalid( 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/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/bodycomplex/aio/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py index 1c86b52a6c2..34fa77822cf 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_basic_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py index 9e4d18228d9..fe84289fd58 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py index 4f1b3ee146c..89a333ecac8 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py index c3a1e19a1d8..b3e679fcea7 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py index 80f876f22e7..cada0f23589 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py index 6d9b259178f..b0749dbccb4 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py index 55ac8b58472..93c3f86384e 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py index 3e219f92ee7..cc5261977b0 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 @@ -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/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py index f798f85b60a..1246cfbe0d1 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 @@ -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/BodyComplex/bodycomplex/operations/_array_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_array_operations.py index e097252dff5..0fac85d384f 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 @@ -187,7 +187,7 @@ def get_valid( 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]: @@ -237,7 +237,7 @@ def put_valid( 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 get_empty( 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]: @@ -322,7 +322,7 @@ def put_empty( 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]: @@ -357,7 +357,7 @@ def get_not_provided( 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/BodyComplex/bodycomplex/operations/_basic_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_basic_operations.py index 2d055206f55..79515c155a3 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 @@ -209,7 +209,7 @@ def get_valid( 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]: @@ -258,7 +258,7 @@ def put_valid( 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]: @@ -293,7 +293,7 @@ def get_invalid( 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]: @@ -332,7 +332,7 @@ def get_empty( 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]: @@ -371,7 +371,7 @@ def get_null( 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]: @@ -410,7 +410,7 @@ def get_not_provided( 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/BodyComplex/bodycomplex/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_dictionary_operations.py index b6edffd2141..0080c42d76c 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 @@ -207,7 +207,7 @@ def get_valid( 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]: @@ -257,7 +257,7 @@ def put_valid( 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]: @@ -292,7 +292,7 @@ def get_empty( 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 put_empty( 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]: @@ -377,7 +377,7 @@ def get_null( 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]: @@ -416,7 +416,7 @@ def get_not_provided( 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/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_flattencomplex_operations.py index 8f8957ccfff..eda82add5c7 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 @@ -99,7 +99,7 @@ def get_valid( 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/BodyComplex/bodycomplex/operations/_inheritance_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_inheritance_operations.py index 9420a6e626a..8abf8b75710 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 @@ -123,7 +123,7 @@ def get_valid( 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]: @@ -174,7 +174,7 @@ def put_valid( 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/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py index 9c172fa571d..e5e65a95e93 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 @@ -123,7 +123,7 @@ def get_valid( 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]: @@ -224,7 +224,7 @@ def put_valid( 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/BodyComplex/bodycomplex/operations/_polymorphism_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py index 775d04a0a0c..8f7bc0c737c 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 @@ -275,7 +275,7 @@ def get_valid( 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]: @@ -356,7 +356,7 @@ def put_valid( 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]: @@ -391,7 +391,7 @@ def get_dot_syntax( 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]: @@ -432,7 +432,7 @@ def get_composed_with_discriminator( 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]: @@ -473,7 +473,7 @@ def get_composed_without_discriminator( 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]: @@ -513,7 +513,7 @@ def get_complicated( 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]: @@ -563,7 +563,7 @@ def put_complicated( 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]: @@ -608,7 +608,7 @@ def put_missing_discriminator( 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]: @@ -684,7 +684,7 @@ def put_valid_missing_required( 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/BodyComplex/bodycomplex/operations/_primitive_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_primitive_operations.py index e99a75a226b..026e76f27f9 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 @@ -564,7 +564,7 @@ def get_int( 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]: @@ -613,7 +613,7 @@ def put_int( 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]: @@ -648,7 +648,7 @@ def get_long( 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]: @@ -697,7 +697,7 @@ def put_long( 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]: @@ -732,7 +732,7 @@ def get_float( 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]: @@ -781,7 +781,7 @@ def put_float( 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]: @@ -816,7 +816,7 @@ def get_double( 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]: @@ -866,7 +866,7 @@ def put_double( 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]: @@ -901,7 +901,7 @@ def get_bool( 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]: @@ -950,7 +950,7 @@ def put_bool( 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]: @@ -985,7 +985,7 @@ def get_string( 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]: @@ -1034,7 +1034,7 @@ def put_string( 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]: @@ -1069,7 +1069,7 @@ def get_date( 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]: @@ -1118,7 +1118,7 @@ def put_date( 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]: @@ -1153,7 +1153,7 @@ def get_date_time( 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]: @@ -1202,7 +1202,7 @@ def put_date_time( 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]: @@ -1237,7 +1237,7 @@ def get_date_time_rfc1123( 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]: @@ -1287,7 +1287,7 @@ def put_date_time_rfc1123( 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]: @@ -1322,7 +1322,7 @@ def get_duration( 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]: @@ -1372,7 +1372,7 @@ def put_duration( 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]: @@ -1407,7 +1407,7 @@ def get_byte( 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]: @@ -1457,7 +1457,7 @@ def put_byte( 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/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_readonlyproperty_operations.py index c086bd4c877..6c59684524e 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 @@ -123,7 +123,7 @@ def get_valid( 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]: @@ -173,7 +173,7 @@ def put_valid( 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/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/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/_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 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/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/_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 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/setup.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py index cf36063f353..d4d7833bbb1 100644 --- a/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/setup.py +++ b/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplexPythonThreeOnly/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/bodydate/aio/operations/_date_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py index 234c79e8af9..27cae896938 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 @@ -80,9 +80,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_invalid_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -156,9 +152,7 @@ async def get_overflow_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,9 +188,7 @@ async def get_underflow_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_max_date(self, date_body: datetime.date, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -274,9 +264,7 @@ async def get_max_date(self, **kwargs: Any) -> datetime.date: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -320,9 +308,7 @@ async def put_min_date(self, date_body: datetime.date, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_min_date(self, **kwargs: Any) -> datetime.date: 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/BodyDate/bodydate/operations/_date_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDate/bodydate/operations/_date_operations.py index f48a4b8dbcf..0c08aefa83d 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 @@ -248,7 +248,7 @@ def get_null( 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]: @@ -287,7 +287,7 @@ def get_invalid_date( 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]: @@ -326,7 +326,7 @@ def get_overflow_date( 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]: @@ -365,7 +365,7 @@ def get_underflow_date( 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]: @@ -414,7 +414,7 @@ def put_max_date( 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]: @@ -449,7 +449,7 @@ def get_max_date( 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]: @@ -498,7 +498,7 @@ def put_min_date( 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_min_date( 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/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/bodydatetime/aio/operations/_datetime_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py index 33a039421ae..8464bacd458 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 @@ -94,9 +94,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_invalid(self, **kwargs: Any) -> datetime.datetime: 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]: @@ -170,9 +166,7 @@ async def get_overflow(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_underflow(self, **kwargs: Any) -> datetime.datetime: 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 put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -299,9 +289,7 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -333,9 +321,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +357,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> dateti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +440,7 @@ async def put_local_positive_offset_max_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -492,9 +472,7 @@ async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +508,7 @@ async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +552,7 @@ async def put_local_negative_offset_max_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -610,9 +584,7 @@ async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +620,7 @@ async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -694,9 +664,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -728,9 +696,7 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -774,9 +740,7 @@ async def put_local_positive_offset_min_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +772,7 @@ async def get_local_positive_offset_min_date_time(self, **kwargs: Any) -> dateti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_local_negative_offset_min_date_time(self, datetime_body: datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -888,9 +848,7 @@ async def get_local_negative_offset_min_date_time(self, **kwargs: Any) -> dateti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_local_no_offset_min_date_time(self, **kwargs: Any) -> datetime.dat request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 10d88ef7d33..bd0afed7672 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 @@ -548,7 +548,7 @@ def get_null( 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]: @@ -587,7 +587,7 @@ def get_invalid( 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]: @@ -626,7 +626,7 @@ def get_overflow( 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]: @@ -665,7 +665,7 @@ def get_underflow( 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]: @@ -714,7 +714,7 @@ def put_utc_max_date_time( 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 put_utc_max_date_time7_digits( 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]: @@ -797,7 +797,7 @@ def get_utc_lowercase_max_date_time( 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]: @@ -836,7 +836,7 @@ def get_utc_uppercase_max_date_time( 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]: @@ -878,7 +878,7 @@ def get_utc_uppercase_max_date_time7_digits( 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]: @@ -927,7 +927,7 @@ def put_local_positive_offset_max_date_time( 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]: @@ -962,7 +962,7 @@ def get_local_positive_offset_lowercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1001,7 +1001,7 @@ def get_local_positive_offset_uppercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 put_local_negative_offset_max_date_time( 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]: @@ -1085,7 +1085,7 @@ def get_local_negative_offset_uppercase_max_date_time( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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 get_local_negative_offset_lowercase_max_date_time( 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]: @@ -1173,7 +1173,7 @@ def put_utc_min_date_time( 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]: @@ -1208,7 +1208,7 @@ def get_utc_min_date_time( 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]: @@ -1257,7 +1257,7 @@ def put_local_positive_offset_min_date_time( 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]: @@ -1292,7 +1292,7 @@ def get_local_positive_offset_min_date_time( 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]: @@ -1341,7 +1341,7 @@ def put_local_negative_offset_min_date_time( 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]: @@ -1376,7 +1376,7 @@ def get_local_negative_offset_min_date_time( 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]: @@ -1415,7 +1415,7 @@ def get_local_no_offset_min_date_time( 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/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/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py index f03e7e95e2d..92a38d1cf37 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 @@ -81,9 +81,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_invalid(self, **kwargs: Any) -> datetime.datetime: 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_overflow(self, **kwargs: Any) -> datetime.datetime: 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_underflow(self, **kwargs: Any) -> datetime.datetime: 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]: @@ -241,9 +233,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -313,9 +301,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -359,9 +345,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -393,9 +377,7 @@ async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 6b72e49a8e8..38ca15b8e4b 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 @@ -268,7 +268,7 @@ def get_null( 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]: @@ -307,7 +307,7 @@ def get_invalid( 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]: @@ -346,7 +346,7 @@ def get_overflow( 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]: @@ -385,7 +385,7 @@ def get_underflow( 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]: @@ -434,7 +434,7 @@ def put_utc_max_date_time( 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]: @@ -469,7 +469,7 @@ def get_utc_lowercase_max_date_time( 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]: @@ -508,7 +508,7 @@ def get_utc_uppercase_max_date_time( 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]: @@ -557,7 +557,7 @@ def put_utc_min_date_time( 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]: @@ -592,7 +592,7 @@ def get_utc_min_date_time( 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/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/bodydictionary/aio/operations/_dictionary_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py index 521ad80aebd..963dd3e2929 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 @@ -137,9 +137,7 @@ async def get_null(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -175,9 +173,7 @@ async def get_empty(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +217,7 @@ async def put_empty(self, array_body: Dict[str, str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +249,7 @@ async def get_null_value(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +285,7 @@ async def get_null_key(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -331,9 +321,7 @@ async def get_empty_string_key(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_invalid(self, **kwargs: Any) -> Dict[str, str]: 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]: @@ -407,9 +393,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> Dict[str, bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -453,9 +437,7 @@ async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +469,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> Dict[str, bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -525,9 +505,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> Dict[str, bool]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_integer_valid(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +585,7 @@ async def put_integer_valid(self, array_body: Dict[str, int], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -643,9 +617,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +653,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +689,7 @@ async def get_long_valid(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +733,7 @@ async def put_long_valid(self, array_body: Dict[str, int], **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +765,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +801,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> Dict[str, int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +837,7 @@ async def get_float_valid(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +881,7 @@ async def put_float_valid(self, array_body: Dict[str, float], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -955,9 +913,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -993,9 +949,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1031,9 +985,7 @@ async def get_double_valid(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1077,9 +1029,7 @@ async def put_double_valid(self, array_body: Dict[str, float], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1111,9 +1061,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1149,9 +1097,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> Dict[str, float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1187,9 +1133,7 @@ async def get_string_valid(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1233,9 +1177,7 @@ async def put_string_valid(self, array_body: Dict[str, str], **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1267,9 +1209,7 @@ async def get_string_with_null(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1245,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> Dict[str, str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1343,9 +1281,7 @@ async def get_date_valid(self, **kwargs: Any) -> Dict[str, datetime.date]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1389,9 +1325,7 @@ async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1423,9 +1357,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> Dict[str, datetime.date] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1393,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime.date request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1430,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> Dict[str, datetime.datetim request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1547,9 +1475,7 @@ async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1581,9 +1507,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> Dict[str, datetime. request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1619,9 +1543,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1658,9 +1580,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> Dict[str, datetime request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1705,9 +1625,7 @@ async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1739,9 +1657,7 @@ async def get_duration_valid(self, **kwargs: Any) -> Dict[str, datetime.timedelt request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1785,9 +1701,7 @@ async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1820,9 +1734,7 @@ async def get_byte_valid(self, **kwargs: Any) -> Dict[str, bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1867,9 +1779,7 @@ async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1812,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> Dict[str, bytearray]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1849,7 @@ async def get_base64_url(self, **kwargs: Any) -> Dict[str, bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1979,9 +1885,7 @@ async def get_complex_null(self, **kwargs: Any) -> Optional[Dict[str, "_models.W request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2017,9 +1921,7 @@ async def get_complex_empty(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2056,9 +1958,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> Dict[str, "_models.Widge request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1995,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> Dict[str, "_models.Widg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2134,9 +2032,7 @@ async def get_complex_valid(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2181,9 +2077,7 @@ async def put_complex_valid(self, array_body: Dict[str, "_models.Widget"], **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2215,9 +2109,7 @@ async def get_array_null(self, **kwargs: Any) -> Optional[Dict[str, List[str]]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2253,9 +2145,7 @@ async def get_array_empty(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2291,9 +2181,7 @@ async def get_array_item_null(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2329,9 +2217,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2368,9 +2254,7 @@ async def get_array_valid(self, **kwargs: Any) -> Dict[str, List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2415,9 +2299,7 @@ async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2449,9 +2331,7 @@ async def get_dictionary_null(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2487,9 +2367,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> Dict[str, Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2526,9 +2404,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> Dict[str, Dict[str, s request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2565,9 +2441,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> Dict[str, Dict[str, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2605,9 +2479,7 @@ async def get_dictionary_valid(self, **kwargs: Any) -> Dict[str, Dict[str, str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -2653,9 +2525,7 @@ async def put_dictionary_valid(self, array_body: Dict[str, Dict[str, str]], **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 af6420ca963..62ae8d3b4a3 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 @@ -1440,7 +1440,7 @@ def get_null( 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]: @@ -1479,7 +1479,7 @@ def get_empty( 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]: @@ -1528,7 +1528,7 @@ def put_empty( 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]: @@ -1563,7 +1563,7 @@ def get_null_value( 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]: @@ -1602,7 +1602,7 @@ def get_null_key( 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]: @@ -1641,7 +1641,7 @@ def get_empty_string_key( 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]: @@ -1680,7 +1680,7 @@ def get_invalid( 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]: @@ -1719,7 +1719,7 @@ def get_boolean_tfft( 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]: @@ -1768,7 +1768,7 @@ def put_boolean_tfft( 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]: @@ -1803,7 +1803,7 @@ def get_boolean_invalid_null( 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]: @@ -1842,7 +1842,7 @@ def get_boolean_invalid_string( 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]: @@ -1881,7 +1881,7 @@ def get_integer_valid( 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]: @@ -1930,7 +1930,7 @@ def put_integer_valid( 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]: @@ -1965,7 +1965,7 @@ def get_int_invalid_null( 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]: @@ -2004,7 +2004,7 @@ def get_int_invalid_string( 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]: @@ -2043,7 +2043,7 @@ def get_long_valid( 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]: @@ -2092,7 +2092,7 @@ def put_long_valid( 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]: @@ -2127,7 +2127,7 @@ def get_long_invalid_null( 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]: @@ -2166,7 +2166,7 @@ def get_long_invalid_string( 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]: @@ -2205,7 +2205,7 @@ def get_float_valid( 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]: @@ -2254,7 +2254,7 @@ def put_float_valid( 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]: @@ -2289,7 +2289,7 @@ def get_float_invalid_null( 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]: @@ -2328,7 +2328,7 @@ def get_float_invalid_string( 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]: @@ -2367,7 +2367,7 @@ def get_double_valid( 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]: @@ -2416,7 +2416,7 @@ def put_double_valid( 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]: @@ -2451,7 +2451,7 @@ def get_double_invalid_null( 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]: @@ -2490,7 +2490,7 @@ def get_double_invalid_string( 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]: @@ -2529,7 +2529,7 @@ def get_string_valid( 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]: @@ -2578,7 +2578,7 @@ def put_string_valid( 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]: @@ -2613,7 +2613,7 @@ def get_string_with_null( 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]: @@ -2652,7 +2652,7 @@ def get_string_with_invalid( 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]: @@ -2691,7 +2691,7 @@ def get_date_valid( 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]: @@ -2740,7 +2740,7 @@ def put_date_valid( 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]: @@ -2775,7 +2775,7 @@ def get_date_invalid_null( 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]: @@ -2814,7 +2814,7 @@ def get_date_invalid_chars( 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]: @@ -2854,7 +2854,7 @@ def get_date_time_valid( 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]: @@ -2904,7 +2904,7 @@ def put_date_time_valid( 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]: @@ -2939,7 +2939,7 @@ def get_date_time_invalid_null( 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]: @@ -2978,7 +2978,7 @@ def get_date_time_invalid_chars( 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]: @@ -3018,7 +3018,7 @@ def get_date_time_rfc1123_valid( 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]: @@ -3068,7 +3068,7 @@ def put_date_time_rfc1123_valid( 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]: @@ -3103,7 +3103,7 @@ def get_duration_valid( 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]: @@ -3152,7 +3152,7 @@ def put_duration_valid( 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]: @@ -3188,7 +3188,7 @@ def get_byte_valid( 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]: @@ -3238,7 +3238,7 @@ def put_byte_valid( 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]: @@ -3274,7 +3274,7 @@ def get_byte_invalid_null( 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]: @@ -3314,7 +3314,7 @@ def get_base64_url( 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]: @@ -3353,7 +3353,7 @@ def get_complex_null( 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]: @@ -3392,7 +3392,7 @@ def get_complex_empty( 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]: @@ -3432,7 +3432,7 @@ def get_complex_item_null( 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]: @@ -3472,7 +3472,7 @@ def get_complex_item_empty( 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]: @@ -3512,7 +3512,7 @@ def get_complex_valid( 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]: @@ -3562,7 +3562,7 @@ def put_complex_valid( 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]: @@ -3597,7 +3597,7 @@ def get_array_null( 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]: @@ -3636,7 +3636,7 @@ def get_array_empty( 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]: @@ -3675,7 +3675,7 @@ def get_array_item_null( 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]: @@ -3714,7 +3714,7 @@ def get_array_item_empty( 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]: @@ -3754,7 +3754,7 @@ def get_array_valid( 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]: @@ -3804,7 +3804,7 @@ def put_array_valid( 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]: @@ -3839,7 +3839,7 @@ def get_dictionary_null( 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]: @@ -3878,7 +3878,7 @@ def get_dictionary_empty( 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]: @@ -3918,7 +3918,7 @@ def get_dictionary_item_null( 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]: @@ -3958,7 +3958,7 @@ def get_dictionary_item_empty( 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]: @@ -3999,7 +3999,7 @@ def get_dictionary_valid( 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]: @@ -4050,7 +4050,7 @@ def put_dictionary_valid( 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/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/bodyduration/aio/operations/_duration_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py index 35f7ddbbcab..84cb82dce95 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 @@ -76,9 +76,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_positive_duration(self, duration_body: datetime.timedelta, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -156,9 +152,7 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -194,9 +188,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 91e6d28decf..136778fe4e8 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 @@ -164,7 +164,7 @@ def get_null( 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]: @@ -213,7 +213,7 @@ def put_positive_duration( 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]: @@ -248,7 +248,7 @@ def get_positive_duration( 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]: @@ -287,7 +287,7 @@ def get_invalid( 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/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/bodyfile/aio/operations/_files_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py index c1c04368c86..caa76d0a848 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 @@ -74,9 +74,7 @@ async def get_file(self, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.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]: @@ -112,9 +110,7 @@ async def get_file_large(self, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.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]: @@ -150,9 +146,7 @@ async def get_empty_file(self, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.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 93a134e332c..9e8184ddd63 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 @@ -139,7 +139,7 @@ def get_file( request = _convert_request(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]: @@ -178,7 +178,7 @@ def get_file_large( request = _convert_request(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 get_empty_file( request = _convert_request(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/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/bodyformdata/aio/operations/_formdata_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py index 6c534b4443c..4acbd5621a4 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 @@ -91,9 +91,7 @@ async def upload_file(self, file_content: IO, file_name: str, **kwargs: Any) -> request = _convert_request(request, files) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.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]: @@ -137,9 +135,7 @@ async def upload_file_via_body(self, file_content: IO, **kwargs: Any) -> IO: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.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]: @@ -189,9 +185,7 @@ async def upload_files(self, file_content: List[IO], **kwargs: Any) -> IO: request = _convert_request(request, files) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.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 88ec269a2f6..e56d8a702ff 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 @@ -171,7 +171,7 @@ def upload_file( request = _convert_request(request, 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]: @@ -220,7 +220,7 @@ def upload_file_via_body( request = _convert_request(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]: @@ -275,7 +275,7 @@ def upload_files( request = _convert_request(request, 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/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/bodyinteger/aio/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py index 0224462b103..cd0a8ca1a7f 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 @@ -86,9 +86,7 @@ async def get_null(self, **kwargs: Any) -> Optional[int]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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) -> int: 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]: @@ -162,9 +158,7 @@ async def get_overflow_int32(self, **kwargs: Any) -> int: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_int32(self, **kwargs: Any) -> int: 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_overflow_int64(self, **kwargs: Any) -> int: 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]: @@ -276,9 +266,7 @@ async def get_underflow_int64(self, **kwargs: Any) -> int: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +310,7 @@ async def put_max32(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -364,9 +350,7 @@ async def put_max64(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_min32(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -448,9 +430,7 @@ async def put_min64(self, int_body: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -482,9 +462,7 @@ async def get_unix_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_unix_time_date(self, int_body: datetime.datetime, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_invalid_unix_time(self, **kwargs: Any) -> datetime.datetime: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +574,7 @@ async def get_null_unix_time(self, **kwargs: Any) -> Optional[datetime.datetime] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 37775f5dc3c..41a8b4b9ca4 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 @@ -380,7 +380,7 @@ def get_null( 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]: @@ -419,7 +419,7 @@ def get_invalid( 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]: @@ -458,7 +458,7 @@ def get_overflow_int32( 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]: @@ -497,7 +497,7 @@ def get_underflow_int32( 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]: @@ -536,7 +536,7 @@ def get_overflow_int64( 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]: @@ -575,7 +575,7 @@ def get_underflow_int64( 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]: @@ -624,7 +624,7 @@ def put_max32( 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]: @@ -669,7 +669,7 @@ def put_max64( 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]: @@ -714,7 +714,7 @@ def put_min32( 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]: @@ -759,7 +759,7 @@ def put_min64( 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]: @@ -794,7 +794,7 @@ def get_unix_time( 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]: @@ -843,7 +843,7 @@ def put_unix_time_date( 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]: @@ -878,7 +878,7 @@ def get_invalid_unix_time( 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]: @@ -917,7 +917,7 @@ def get_null_unix_time( 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/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/bodynumber/aio/operations/_number_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py index a3da0c25d8f..fd407450854 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 @@ -95,9 +95,7 @@ async def get_null(self, **kwargs: Any) -> Optional[float]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -133,9 +131,7 @@ async def get_invalid_float(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -171,9 +167,7 @@ async def get_invalid_double(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +203,7 @@ async def get_invalid_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_big_float(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -289,9 +279,7 @@ async def get_big_float(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -335,9 +323,7 @@ async def put_big_double(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +355,7 @@ async def get_big_double(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -410,9 +394,7 @@ async def put_big_double_positive_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_big_double_positive_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -485,9 +465,7 @@ async def put_big_double_negative_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -519,9 +497,7 @@ async def get_big_double_negative_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_big_decimal(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +573,7 @@ async def get_big_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +612,7 @@ async def put_big_decimal_positive_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_big_decimal_positive_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -715,9 +683,7 @@ async def put_big_decimal_negative_decimal(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -749,9 +715,7 @@ async def get_big_decimal_negative_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -795,9 +759,7 @@ async def put_small_float(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -829,9 +791,7 @@ async def get_small_float(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_small_double(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -909,9 +867,7 @@ async def get_small_double(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -955,9 +911,7 @@ async def put_small_decimal(self, number_body: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -989,9 +943,7 @@ async def get_small_decimal(self, **kwargs: Any) -> float: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 a73371cc1b9..f60d56de5ba 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 @@ -607,7 +607,7 @@ def get_null( 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]: @@ -646,7 +646,7 @@ def get_invalid_float( 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]: @@ -685,7 +685,7 @@ def get_invalid_double( 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]: @@ -724,7 +724,7 @@ def get_invalid_decimal( 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]: @@ -773,7 +773,7 @@ def put_big_float( 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]: @@ -808,7 +808,7 @@ def get_big_float( 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]: @@ -857,7 +857,7 @@ def put_big_double( 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]: @@ -892,7 +892,7 @@ def get_big_double( 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]: @@ -934,7 +934,7 @@ def put_big_double_positive_decimal( 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]: @@ -969,7 +969,7 @@ def get_big_double_positive_decimal( 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]: @@ -1011,7 +1011,7 @@ def put_big_double_negative_decimal( 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]: @@ -1046,7 +1046,7 @@ def get_big_double_negative_decimal( 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]: @@ -1095,7 +1095,7 @@ def put_big_decimal( 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]: @@ -1130,7 +1130,7 @@ def get_big_decimal( 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]: @@ -1172,7 +1172,7 @@ def put_big_decimal_positive_decimal( 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]: @@ -1207,7 +1207,7 @@ def get_big_decimal_positive_decimal( 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]: @@ -1249,7 +1249,7 @@ def put_big_decimal_negative_decimal( 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]: @@ -1284,7 +1284,7 @@ def get_big_decimal_negative_decimal( 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]: @@ -1333,7 +1333,7 @@ def put_small_float( 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]: @@ -1368,7 +1368,7 @@ def get_small_float( 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]: @@ -1417,7 +1417,7 @@ def put_small_double( 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]: @@ -1452,7 +1452,7 @@ def get_small_double( 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]: @@ -1501,7 +1501,7 @@ def put_small_decimal( 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]: @@ -1536,7 +1536,7 @@ def get_small_decimal( 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/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/bodystring/aio/operations/_enum_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py index 0ab4a8e2e86..576fc76f029 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 @@ -77,9 +77,7 @@ async def get_not_expandable(self, **kwargs: Any) -> Union[str, "_models.Colors" request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_not_expandable(self, string_body: Union[str, "_models.Colors"], ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_referenced(self, **kwargs: Any) -> Union[str, "_models.Colors"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_referenced(self, enum_string_body: Union[str, "_models.Colors"], * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_referenced_constant(self, **kwargs: Any) -> "_models.RefColorConst request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_referenced_constant(self, field1: Optional[str] = None, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 68712dc72e8..acddb31ea23 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 @@ -84,9 +84,7 @@ async def get_null(self, **kwargs: Any) -> Optional[str]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -133,9 +131,7 @@ async def put_null(self, string_body: Optional[str] = None, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_empty(self, **kwargs: Any) -> str: 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]: @@ -208,9 +202,7 @@ async def put_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -242,9 +234,7 @@ async def get_mbcs(self, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -283,9 +273,7 @@ async def put_mbcs(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_whitespace(self, **kwargs: Any) -> str: 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]: @@ -362,9 +348,7 @@ async def put_whitespace(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_not_provided(self, **kwargs: Any) -> str: 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]: @@ -434,9 +416,7 @@ async def get_base64_encoded(self, **kwargs: Any) -> bytearray: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -472,9 +452,7 @@ async def get_base64_url_encoded(self, **kwargs: Any) -> bytes: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +496,7 @@ async def put_base64_url_encoded(self, string_body: bytes, **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -552,9 +528,7 @@ async def get_null_base64_url_encoded(self, **kwargs: Any) -> Optional[bytes]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 34e279a9dc4..3e938a784a4 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 @@ -211,7 +211,7 @@ def get_not_expandable( 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]: @@ -260,7 +260,7 @@ def put_not_expandable( 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]: @@ -295,7 +295,7 @@ def get_referenced( 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]: @@ -344,7 +344,7 @@ def put_referenced( 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]: @@ -379,7 +379,7 @@ def get_referenced_constant( 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]: @@ -430,7 +430,7 @@ def put_referenced_constant( 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/BodyString/bodystring/operations/_string_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py index ce4a8b1e9c5..04989fdc850 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 @@ -365,7 +365,7 @@ def get_null( 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 put_null( 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]: @@ -452,7 +452,7 @@ def get_empty( 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]: @@ -494,7 +494,7 @@ def put_empty( 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]: @@ -529,7 +529,7 @@ def get_mbcs( 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]: @@ -571,7 +571,7 @@ def put_mbcs( 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]: @@ -608,7 +608,7 @@ def get_whitespace( 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]: @@ -652,7 +652,7 @@ def put_whitespace( 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]: @@ -687,7 +687,7 @@ def get_not_provided( 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]: @@ -726,7 +726,7 @@ def get_base64_encoded( 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]: @@ -765,7 +765,7 @@ def get_base64_url_encoded( 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]: @@ -814,7 +814,7 @@ def put_base64_url_encoded( 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]: @@ -849,7 +849,7 @@ def get_null_base64_url_encoded( 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/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/bodytime/aio/operations/_time_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py index ae4536d5b5a..7182fbc7dd9 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 @@ -71,9 +71,7 @@ async def get(self, **kwargs: Any) -> datetime.time: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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(self, time_body: datetime.time, **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 33b6108c1b4..2ab0934b571 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 @@ -124,7 +124,7 @@ def get( 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]: @@ -173,7 +173,7 @@ def put( 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/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/constants/aio/operations/_contants_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py index bda58eeb5a8..cb113942d68 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 @@ -97,9 +97,7 @@ async def put_no_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -139,9 +137,7 @@ async def put_no_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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 put_no_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -219,9 +213,7 @@ async def put_no_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -259,9 +251,7 @@ async def put_no_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -299,9 +289,7 @@ async def put_no_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -334,9 +322,7 @@ async def put_no_model_as_string_required_one_value_no_default(self, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -369,9 +355,7 @@ async def put_no_model_as_string_required_one_value_default(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -411,9 +395,7 @@ async def put_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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 +435,7 @@ async def put_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -495,9 +475,7 @@ async def put_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -537,9 +515,7 @@ async def put_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -577,9 +553,7 @@ async def put_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -617,9 +591,7 @@ async def put_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -657,9 +629,7 @@ async def put_model_as_string_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -697,9 +667,7 @@ async def put_model_as_string_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -731,9 +699,7 @@ async def put_client_constants(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 99c07bd58af..47bf8e11976 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 @@ -460,7 +460,7 @@ def put_no_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -501,7 +501,7 @@ def put_no_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -542,7 +542,7 @@ def put_no_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -583,7 +583,7 @@ def put_no_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -624,7 +624,7 @@ def put_no_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -665,7 +665,7 @@ def put_no_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -701,7 +701,7 @@ def put_no_model_as_string_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -737,7 +737,7 @@ def put_no_model_as_string_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -778,7 +778,7 @@ def put_model_as_string_no_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -819,7 +819,7 @@ def put_model_as_string_no_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -860,7 +860,7 @@ def put_model_as_string_no_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -901,7 +901,7 @@ def put_model_as_string_no_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -942,7 +942,7 @@ def put_model_as_string_required_two_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -983,7 +983,7 @@ def put_model_as_string_required_two_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -1024,7 +1024,7 @@ def put_model_as_string_required_one_value_no_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -1065,7 +1065,7 @@ def put_model_as_string_required_one_value_default( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_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]: @@ -1100,7 +1100,7 @@ def put_client_constants( 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/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/custombaseurl/aio/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index 2d7ef81e107..14c724b05ec 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 @@ -76,9 +76,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 1eb1d22735d..05f2bebe9bf 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 @@ -107,7 +107,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/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/custombaseurlmoreoptions/aio/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py index 7131da136cd..1f9e1739dcb 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 @@ -90,9 +90,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 e204551a3df..8877e7a5b66 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 @@ -138,7 +138,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/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/extensibleenumsswagger/aio/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py index 676eec3e767..a4a8c67ee59 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 @@ -73,9 +73,7 @@ async def get_by_pet_id(self, pet_id: str, **kwargs: Any) -> "_models.Pet": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 add_pet(self, pet_param: Optional["_models.Pet"] = None, **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 5352f7c9d59..f1e8e5bc95f 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 @@ -134,7 +134,7 @@ def get_by_pet_id( 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 add_pet( 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/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/header/aio/operations/_header_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py index 03b65ac5e98..82c8bf5bfbf 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 @@ -104,9 +104,7 @@ async def param_existing_key(self, user_agent_parameter: str, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 response_existing_key(self, **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]: @@ -178,9 +174,7 @@ async def param_protected_key(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +206,7 @@ async def response_protected_key(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +248,7 @@ async def param_integer(self, scenario: str, value: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 response_integer(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -337,9 +325,7 @@ async def param_long(self, scenario: str, value: int, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -374,9 +360,7 @@ async def response_long(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -418,9 +402,7 @@ async def param_float(self, scenario: str, value: float, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -455,9 +437,7 @@ async def response_float(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +479,7 @@ async def param_double(self, scenario: str, value: float, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +514,7 @@ async def response_double(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -580,9 +556,7 @@ async def param_bool(self, scenario: str, value: bool, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +591,7 @@ async def response_bool(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -663,9 +635,7 @@ async def param_string(self, scenario: str, value: Optional[str] = None, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 response_string(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -745,9 +713,7 @@ async def param_date(self, scenario: str, value: datetime.date, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 response_date(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -827,9 +791,7 @@ async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -864,9 +826,7 @@ async def response_datetime(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -911,9 +871,7 @@ async def param_datetime_rfc1123( 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]: @@ -949,9 +907,7 @@ async def response_datetime_rfc1123(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +948,7 @@ async def param_duration(self, scenario: str, value: datetime.timedelta, **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1029,9 +983,7 @@ async def response_duration(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1072,9 +1024,7 @@ async def param_byte(self, scenario: str, value: bytearray, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1059,7 @@ async def response_byte(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1156,9 +1104,7 @@ async def param_enum( 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]: @@ -1194,9 +1140,7 @@ async def response_enum(self, scenario: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1232,9 +1176,7 @@ async def custom_request_id(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 f0693b410b9..8013c23047e 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 @@ -770,7 +770,7 @@ def param_existing_key( 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]: @@ -805,7 +805,7 @@ def response_existing_key( 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]: @@ -846,7 +846,7 @@ def param_protected_key( 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]: @@ -881,7 +881,7 @@ def response_protected_key( 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]: @@ -929,7 +929,7 @@ def param_integer( 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]: @@ -969,7 +969,7 @@ def response_integer( 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]: @@ -1017,7 +1017,7 @@ def param_long( 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]: @@ -1057,7 +1057,7 @@ def response_long( 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]: @@ -1105,7 +1105,7 @@ def param_float( 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]: @@ -1145,7 +1145,7 @@ def response_float( 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]: @@ -1193,7 +1193,7 @@ def param_double( 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]: @@ -1233,7 +1233,7 @@ def response_double( 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]: @@ -1281,7 +1281,7 @@ def param_bool( 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]: @@ -1321,7 +1321,7 @@ def response_bool( 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]: @@ -1371,7 +1371,7 @@ def param_string( 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]: @@ -1412,7 +1412,7 @@ def response_string( 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]: @@ -1460,7 +1460,7 @@ def param_date( 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]: @@ -1500,7 +1500,7 @@ def response_date( 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]: @@ -1549,7 +1549,7 @@ def param_datetime( 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]: @@ -1589,7 +1589,7 @@ def response_datetime( 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]: @@ -1638,7 +1638,7 @@ def param_datetime_rfc1123( 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]: @@ -1679,7 +1679,7 @@ def response_datetime_rfc1123( 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]: @@ -1726,7 +1726,7 @@ def param_duration( 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]: @@ -1766,7 +1766,7 @@ def response_duration( 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]: @@ -1813,7 +1813,7 @@ def param_byte( 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]: @@ -1853,7 +1853,7 @@ def response_byte( 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]: @@ -1902,7 +1902,7 @@ def param_enum( 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]: @@ -1943,7 +1943,7 @@ def response_enum( 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]: @@ -1982,7 +1982,7 @@ def custom_request_id( 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/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/httpinfrastructure/aio/operations/_http_client_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py index 6ce2eff8a94..5248695e5d2 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 @@ -97,9 +97,7 @@ async def head400(self, **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 []: @@ -131,9 +129,7 @@ async def get400(self, **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 []: @@ -165,9 +161,7 @@ async def options400(self, **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 []: @@ -210,9 +204,7 @@ async def put400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -255,9 +247,7 @@ async def patch400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -300,9 +290,7 @@ async def post400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -345,9 +333,7 @@ async def delete400(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -379,9 +365,7 @@ async def head401(self, **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 []: @@ -413,9 +397,7 @@ async def get402(self, **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 []: @@ -447,9 +429,7 @@ async def options403(self, **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 []: @@ -481,9 +461,7 @@ async def get403(self, **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 []: @@ -526,9 +504,7 @@ async def put404(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -571,9 +547,7 @@ async def patch405(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -616,9 +590,7 @@ async def post406(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -661,9 +633,7 @@ async def delete407(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -706,9 +676,7 @@ async def put409(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -740,9 +708,7 @@ async def head410(self, **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 []: @@ -774,9 +740,7 @@ async def get411(self, **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 []: @@ -808,9 +772,7 @@ async def options412(self, **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 []: @@ -842,9 +804,7 @@ async def get412(self, **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 []: @@ -887,9 +847,7 @@ async def put413(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -932,9 +890,7 @@ async def patch414(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -977,9 +933,7 @@ async def post415(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1011,9 +965,7 @@ async def get416(self, **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 []: @@ -1056,9 +1008,7 @@ async def delete417(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -1090,9 +1040,7 @@ async def head429(self, **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 []: 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 4308bf5feb9..937f80fea77 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 @@ -74,9 +74,7 @@ async def get_empty_error(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_no_model_error(self, **kwargs: Any) -> bool: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_no_model_empty(self, **kwargs: Any) -> bool: 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/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py index 373ca914a10..0ab9e8f7ea0 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 @@ -87,9 +87,7 @@ async def head300(self, **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, 300]: @@ -125,9 +123,7 @@ async def get300(self, **kwargs: Any) -> Optional[List[str]]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -168,9 +164,7 @@ async def head301(self, **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, 301]: @@ -206,9 +200,7 @@ async def get301(self, **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, 301]: @@ -256,9 +248,7 @@ async def put301(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -293,9 +283,7 @@ async def head302(self, **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, 302]: @@ -331,9 +319,7 @@ async def get302(self, **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, 302]: @@ -381,9 +367,7 @@ async def patch302(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -430,9 +414,7 @@ async def post303(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -468,9 +450,7 @@ async def head307(self, **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, 307]: @@ -506,9 +486,7 @@ async def get307(self, **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, 307]: @@ -544,9 +522,7 @@ async def options307(self, **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, 307]: @@ -593,9 +569,7 @@ async def put307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -642,9 +616,7 @@ async def patch307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -691,9 +663,7 @@ async def post307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -740,9 +710,7 @@ async def delete307(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 33492062a01..f69dad38bf1 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 @@ -80,9 +80,7 @@ async def head408(self, **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]: @@ -125,9 +123,7 @@ async def put500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 patch500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get502(self, **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]: @@ -238,9 +230,7 @@ async def options502(self, **kwargs: Any) -> bool: 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]: @@ -287,9 +277,7 @@ async def post503(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -332,9 +320,7 @@ async def delete503(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -422,9 +406,7 @@ async def patch504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 4d59e3aa9dd..e4627c46713 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 @@ -75,9 +75,7 @@ async def head501(self, **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 []: @@ -109,9 +107,7 @@ async def get501(self, **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 []: @@ -154,9 +150,7 @@ async def post505(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in []: @@ -199,9 +193,7 @@ async def delete505(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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 6ffbf58e6f0..e6840d77600 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 @@ -90,9 +90,7 @@ async def head200(self, **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]: @@ -124,9 +122,7 @@ async def get200(self, **kwargs: Any) -> bool: 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]: @@ -162,9 +158,7 @@ async def options200(self, **kwargs: Any) -> bool: 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]: @@ -211,9 +205,7 @@ async def put200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +248,7 @@ async def patch200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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,9 +291,7 @@ async def post200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -346,9 +334,7 @@ async def delete200(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -436,9 +420,7 @@ async def post201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -481,9 +463,7 @@ async def put202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -526,9 +506,7 @@ async def patch202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -571,9 +549,7 @@ async def post202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -616,9 +592,7 @@ async def delete202(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -650,9 +624,7 @@ async def head204(self, **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 [204]: @@ -695,9 +667,7 @@ async def put204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -740,9 +710,7 @@ async def patch204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -785,9 +753,7 @@ async def post204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -830,9 +796,7 @@ async def delete204(self, boolean_value: Optional[bool] = True, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -864,9 +828,7 @@ async def head404(self, **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 [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 f1c57fff542..ba3194b5c4b 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 @@ -105,9 +105,7 @@ async def get200_model204_no_model_default_error200_valid(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -145,9 +143,7 @@ async def get200_model204_no_model_default_error204_valid(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -185,9 +181,7 @@ async def get200_model204_no_model_default_error201_invalid(self, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -225,9 +219,7 @@ async def get200_model204_no_model_default_error202_none(self, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -265,9 +257,7 @@ async def get200_model204_no_model_default_error400_valid(self, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -307,9 +297,7 @@ async def get200_model201_model_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -351,9 +339,7 @@ async def get200_model201_model_default_error201_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -395,9 +381,7 @@ async def get200_model201_model_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -440,9 +424,7 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -488,9 +470,7 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -536,9 +516,7 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -584,9 +562,7 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -629,9 +605,7 @@ async def get202_none204_none_default_error202_none(self, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -663,9 +637,7 @@ async def get202_none204_none_default_error204_none(self, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -697,9 +669,7 @@ async def get202_none204_none_default_error400_valid(self, **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -731,9 +701,7 @@ async def get202_none204_none_default_none202_invalid(self, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -764,9 +732,7 @@ async def get202_none204_none_default_none204_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -797,9 +763,7 @@ async def get202_none204_none_default_none400_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -830,9 +794,7 @@ async def get202_none204_none_default_none400_invalid(self, **kwargs: Any) -> No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -863,9 +825,7 @@ async def get_default_model_a200_valid(self, **kwargs: Any) -> "_models.MyExcept request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -900,9 +860,7 @@ async def get_default_model_a200_none(self, **kwargs: Any) -> "_models.MyExcepti request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -937,9 +895,7 @@ async def get_default_model_a400_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -971,9 +927,7 @@ async def get_default_model_a400_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1005,9 +959,7 @@ async def get_default_none200_invalid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +990,7 @@ async def get_default_none200_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1071,9 +1021,7 @@ async def get_default_none400_invalid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1052,7 @@ async def get_default_none400_none(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1084,7 @@ async def get200_model_a200_none(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1175,9 +1119,7 @@ async def get200_model_a200_valid(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1212,9 +1154,7 @@ async def get200_model_a200_invalid(self, **kwargs: Any) -> "_models.MyException request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1249,9 +1189,7 @@ async def get200_model_a400_none(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1286,9 +1224,7 @@ async def get200_model_a400_valid(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1323,9 +1259,7 @@ async def get200_model_a400_invalid(self, **kwargs: Any) -> "_models.MyException request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1294,7 @@ async def get200_model_a202_valid(self, **kwargs: Any) -> "_models.MyException": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 dce65f3916e..cda64f73f9f 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 @@ -651,7 +651,7 @@ def head400( 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 []: @@ -686,7 +686,7 @@ def get400( 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 []: @@ -721,7 +721,7 @@ def options400( 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 []: @@ -769,7 +769,7 @@ def put400( 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 []: @@ -817,7 +817,7 @@ def patch400( 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 []: @@ -865,7 +865,7 @@ def post400( 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 []: @@ -913,7 +913,7 @@ def delete400( 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 []: @@ -948,7 +948,7 @@ def head401( 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 []: @@ -983,7 +983,7 @@ def get402( 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 []: @@ -1018,7 +1018,7 @@ def options403( 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 []: @@ -1053,7 +1053,7 @@ def get403( 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 []: @@ -1101,7 +1101,7 @@ def put404( 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 []: @@ -1149,7 +1149,7 @@ def patch405( 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 []: @@ -1197,7 +1197,7 @@ def post406( 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 []: @@ -1245,7 +1245,7 @@ def delete407( 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 []: @@ -1293,7 +1293,7 @@ def put409( 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 []: @@ -1328,7 +1328,7 @@ def head410( 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 []: @@ -1363,7 +1363,7 @@ def get411( 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 []: @@ -1398,7 +1398,7 @@ def options412( 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 []: @@ -1433,7 +1433,7 @@ def get412( 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 []: @@ -1481,7 +1481,7 @@ def put413( 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 []: @@ -1529,7 +1529,7 @@ def patch414( 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 []: @@ -1577,7 +1577,7 @@ def post415( 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 []: @@ -1612,7 +1612,7 @@ def get416( 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 []: @@ -1660,7 +1660,7 @@ def delete417( 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 []: @@ -1695,7 +1695,7 @@ def head429( 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 []: 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 c679980ea4c..397c4641130 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 @@ -139,7 +139,7 @@ def get_empty_error( 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]: @@ -178,7 +178,7 @@ def get_no_model_error( 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]: @@ -216,7 +216,7 @@ def get_no_model_empty( 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/Http/httpinfrastructure/operations/_http_redirects_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py index dbcbcec770f..5f2ce2cb178 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 @@ -427,7 +427,7 @@ def head300( 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, 300]: @@ -466,7 +466,7 @@ def get300( 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, 300]: @@ -510,7 +510,7 @@ def head301( 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, 301]: @@ -549,7 +549,7 @@ def get301( 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, 301]: @@ -602,7 +602,7 @@ def put301( 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 [301]: @@ -640,7 +640,7 @@ def head302( 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, 302]: @@ -679,7 +679,7 @@ def get302( 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, 302]: @@ -732,7 +732,7 @@ def patch302( 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 [302]: @@ -784,7 +784,7 @@ def post303( 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]: @@ -823,7 +823,7 @@ def head307( 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, 307]: @@ -862,7 +862,7 @@ def get307( 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, 307]: @@ -901,7 +901,7 @@ def options307( 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, 307]: @@ -953,7 +953,7 @@ def put307( 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, 307]: @@ -1005,7 +1005,7 @@ def patch307( 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, 307]: @@ -1057,7 +1057,7 @@ def post307( 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, 307]: @@ -1109,7 +1109,7 @@ def delete307( 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, 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 34fa9084db8..38a5627dbc9 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 @@ -283,7 +283,7 @@ def head408( 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]: @@ -331,7 +331,7 @@ def put500( 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]: @@ -379,7 +379,7 @@ def patch500( 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]: @@ -414,7 +414,7 @@ def get502( 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]: @@ -449,7 +449,7 @@ def options502( 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 post503( 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]: @@ -549,7 +549,7 @@ def delete503( 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]: @@ -597,7 +597,7 @@ def put504( 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]: @@ -645,7 +645,7 @@ def patch504( 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/Http/httpinfrastructure/operations/_http_server_failure_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_server_failure_operations.py index 8fd36fdf70a..5c447af501f 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 @@ -167,7 +167,7 @@ def head501( 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 []: @@ -202,7 +202,7 @@ def get501( 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 []: @@ -250,7 +250,7 @@ def post505( 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 []: @@ -298,7 +298,7 @@ def delete505( 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 []: 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 85b5f5c0f32..43063c845f6 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 @@ -515,7 +515,7 @@ def head200( 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]: @@ -550,7 +550,7 @@ def get200( 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]: @@ -589,7 +589,7 @@ def options200( 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]: @@ -641,7 +641,7 @@ def put200( 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]: @@ -689,7 +689,7 @@ def patch200( 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]: @@ -737,7 +737,7 @@ def post200( 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]: @@ -785,7 +785,7 @@ def delete200( 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]: @@ -833,7 +833,7 @@ def put201( 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 [201]: @@ -881,7 +881,7 @@ def post201( 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 [201]: @@ -929,7 +929,7 @@ def put202( 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 [202]: @@ -977,7 +977,7 @@ def patch202( 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 [202]: @@ -1025,7 +1025,7 @@ def post202( 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 [202]: @@ -1073,7 +1073,7 @@ def delete202( 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 [202]: @@ -1108,7 +1108,7 @@ def head204( 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 [204]: @@ -1156,7 +1156,7 @@ def put204( 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 [204]: @@ -1204,7 +1204,7 @@ def patch204( 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 [204]: @@ -1252,7 +1252,7 @@ def post204( 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 [204]: @@ -1300,7 +1300,7 @@ def delete204( 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 [204]: @@ -1335,7 +1335,7 @@ def head404( 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 [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 a7196b68b34..d14df3b7e20 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 @@ -711,7 +711,7 @@ def get200_model204_no_model_default_error200_valid( 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, 204]: @@ -752,7 +752,7 @@ def get200_model204_no_model_default_error204_valid( 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, 204]: @@ -793,7 +793,7 @@ def get200_model204_no_model_default_error201_invalid( 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, 204]: @@ -834,7 +834,7 @@ def get200_model204_no_model_default_error202_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, 204]: @@ -875,7 +875,7 @@ def get200_model204_no_model_default_error400_valid( 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, 204]: @@ -916,7 +916,7 @@ def get200_model201_model_default_error200_valid( 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, 201]: @@ -959,7 +959,7 @@ def get200_model201_model_default_error201_valid( 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, 201]: @@ -1002,7 +1002,7 @@ def get200_model201_model_default_error400_valid( 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, 201]: @@ -1046,7 +1046,7 @@ def get200_model_a201_model_c404_model_d_default_error200_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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]: @@ -1093,7 +1093,7 @@ def get200_model_a201_model_c404_model_d_default_error201_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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]: @@ -1140,7 +1140,7 @@ def get200_model_a201_model_c404_model_d_default_error404_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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]: @@ -1187,7 +1187,7 @@ def get200_model_a201_model_c404_model_d_default_error400_valid( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = self._client.send_request(request, stream=False, _return_pipeline_response=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]: @@ -1233,7 +1233,7 @@ def get202_none204_none_default_error202_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 [202, 204]: @@ -1268,7 +1268,7 @@ def get202_none204_none_default_error204_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 [202, 204]: @@ -1303,7 +1303,7 @@ def get202_none204_none_default_error400_valid( 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 [202, 204]: @@ -1338,7 +1338,7 @@ def get202_none204_none_default_none202_invalid( 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 [202, 204]: @@ -1372,7 +1372,7 @@ def get202_none204_none_default_none204_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 [202, 204]: @@ -1406,7 +1406,7 @@ def get202_none204_none_default_none400_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 [202, 204]: @@ -1440,7 +1440,7 @@ def get202_none204_none_default_none400_invalid( 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 [202, 204]: @@ -1474,7 +1474,7 @@ def get_default_model_a200_valid( 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]: @@ -1512,7 +1512,7 @@ def get_default_model_a200_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]: @@ -1550,7 +1550,7 @@ def get_default_model_a400_valid( 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]: @@ -1585,7 +1585,7 @@ def get_default_model_a400_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]: @@ -1620,7 +1620,7 @@ def get_default_none200_invalid( 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]: @@ -1654,7 +1654,7 @@ def get_default_none200_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]: @@ -1688,7 +1688,7 @@ def get_default_none400_invalid( 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]: @@ -1722,7 +1722,7 @@ def get_default_none400_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]: @@ -1757,7 +1757,7 @@ def get200_model_a200_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]: @@ -1795,7 +1795,7 @@ def get200_model_a200_valid( 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]: @@ -1833,7 +1833,7 @@ def get200_model_a200_invalid( 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]: @@ -1871,7 +1871,7 @@ def get200_model_a400_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]: @@ -1909,7 +1909,7 @@ def get200_model_a400_valid( 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]: @@ -1947,7 +1947,7 @@ def get200_model_a400_invalid( 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]: @@ -1985,7 +1985,7 @@ def get200_model_a202_valid( 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/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/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 cd673316ed3..874139ff006 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 @@ -50,9 +50,7 @@ async def get_incorrect_error_from_server(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 6e2e8c7a62f..8a068054c3d 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 @@ -73,7 +73,7 @@ def get_incorrect_error_from_server( 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/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/mediatypes/aio/operations/_media_types_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py index 63e252b653b..ce9cebb33b3 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 @@ -78,9 +78,7 @@ async def analyze_body(self, input: Optional[Union[IO, "_models.SourcePath"]] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -143,9 +141,7 @@ async def analyze_body_no_accept_header( 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 [202]: @@ -187,9 +183,7 @@ async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 1a4d3517bfb..b115ad1a837 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 @@ -155,7 +155,7 @@ def analyze_body( 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]: @@ -221,7 +221,7 @@ def analyze_body_no_accept_header( 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 [202]: @@ -268,7 +268,7 @@ def content_type_with_encoding( 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/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/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 d398fe5cd43..e9a249965c9 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 @@ -72,9 +72,7 @@ async def put_array(self, resource_array: Optional[List["_models.Resource"]] = N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_array(self, **kwargs: Any) -> List["_models.FlattenedProduct"]: 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 put_wrapped_array( 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]: @@ -193,9 +187,7 @@ async def get_wrapped_array(self, **kwargs: Any) -> List["_models.ProductWrapper request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -244,9 +236,7 @@ async def put_dictionary( 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]: @@ -278,9 +268,7 @@ async def get_dictionary(self, **kwargs: Any) -> Dict[str, "_models.FlattenedPro request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_resource_collection( 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]: @@ -363,9 +349,7 @@ async def get_resource_collection(self, **kwargs: Any) -> "_models.ResourceColle request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +398,7 @@ async def put_simple_product( 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]: @@ -492,9 +474,7 @@ async def post_flattened_simple_product( 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]: @@ -569,9 +549,7 @@ async def put_simple_product_with_grouping( 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/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 5e227c40b2a..8bed56043e3 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 @@ -325,7 +325,7 @@ def put_array( 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]: @@ -360,7 +360,7 @@ def get_array( 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]: @@ -413,7 +413,7 @@ def put_wrapped_array( 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]: @@ -449,7 +449,7 @@ def get_wrapped_array( 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_dictionary( 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]: @@ -536,7 +536,7 @@ def get_dictionary( 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]: @@ -588,7 +588,7 @@ def put_resource_collection( 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]: @@ -623,7 +623,7 @@ def get_resource_collection( 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]: @@ -675,7 +675,7 @@ def put_simple_product( 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]: @@ -752,7 +752,7 @@ def post_flattened_simple_product( 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]: @@ -830,7 +830,7 @@ def put_simple_product_with_grouping( 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/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/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 39ffefcde36..dda6da0a673 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 @@ -60,9 +60,7 @@ async def get_horse(self, **kwargs: Any) -> "_models.Horse": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_horse(self, horse: "_models.Horse", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -143,9 +139,7 @@ async def get_pet(self, **kwargs: Any) -> "_models.Pet": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_pet(self, name: str, **kwargs: Any) -> str: 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]: @@ -227,9 +219,7 @@ async def get_feline(self, **kwargs: Any) -> "_models.Feline": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +263,7 @@ async def put_feline(self, feline: "_models.Feline", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -310,9 +298,7 @@ async def get_cat(self, **kwargs: Any) -> "_models.Cat": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -356,9 +342,7 @@ async def put_cat(self, cat: "_models.Cat", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +378,7 @@ async def get_kitten(self, **kwargs: Any) -> "_models.Kitten": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -442,9 +424,7 @@ async def put_kitten(self, kitten: "_models.Kitten", **kwargs: Any) -> str: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 42af0bf52cf..7c03aae6f63 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 @@ -278,7 +278,7 @@ def get_horse( 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]: @@ -327,7 +327,7 @@ def put_horse( 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]: @@ -365,7 +365,7 @@ def get_pet( 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]: @@ -415,7 +415,7 @@ def put_pet( 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]: @@ -453,7 +453,7 @@ def get_feline( 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_feline( 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]: @@ -540,7 +540,7 @@ def get_cat( 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]: @@ -589,7 +589,7 @@ def put_cat( 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]: @@ -628,7 +628,7 @@ def get_kitten( 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]: @@ -679,7 +679,7 @@ def put_kitten( 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/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/nonstringenums/aio/operations/_float_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py index d51a001fef7..c92eef5a842 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 @@ -77,9 +77,7 @@ async def put(self, input: Optional[Union[float, "_models.FloatEnum"]] = None, * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get(self, **kwargs: Any) -> Union[float, "_models.FloatEnum"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 ff5559265d5..a80163746ce 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 @@ -77,9 +77,7 @@ async def put(self, input: Optional[Union[int, "_models.IntEnum"]] = None, **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get(self, **kwargs: Any) -> Union[int, "_models.IntEnum"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 8cba9d31db1..9eefe33032e 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 @@ -132,7 +132,7 @@ def put( 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]: @@ -170,7 +170,7 @@ def get( 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/NonStringEnums/nonstringenums/operations/_int_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/NonStringEnums/nonstringenums/operations/_int_operations.py index 3625071a8ac..c1c8e3fe1ea 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 @@ -132,7 +132,7 @@ def put( 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]: @@ -170,7 +170,7 @@ def get( 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/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/objecttype/aio/operations/_object_type_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py index 0eff719d9b7..73429cba0e8 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 @@ -49,9 +49,7 @@ async def get(self, **kwargs: Any) -> 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]: @@ -96,9 +94,7 @@ async def put(self, put_object: Any, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 57ea1d114c7..1e45250189f 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 @@ -102,7 +102,7 @@ def get( 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]: @@ -152,7 +152,7 @@ def put( 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/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/parameterflattening/aio/operations/_availability_sets_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py index 0ee81e302e0..9ce3c8da3b9 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 @@ -85,9 +85,7 @@ async def update(self, resource_group_name: str, avset: str, tags: Dict[str, str request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 e55b71bcb3c..98bd95efa16 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 @@ -128,7 +128,7 @@ def update( 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/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/parameterizedendpoint/aio/operations/_parmaterized_endpoint_client_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ParameterizedEndpoint/parameterizedendpoint/aio/operations/_parmaterized_endpoint_client_operations.py index d014bf99c74..ddb3797a3cc 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 @@ -51,9 +51,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 4d5402e96ad..e67f52e0df4 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 @@ -74,7 +74,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/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/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 8ea8ddb45dd..9872b83ad3b 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 @@ -57,9 +57,7 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Di request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_optional_report(self, qualifier: Optional[str] = None, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 a44eee4bfde..d6590b446e0 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 @@ -121,7 +121,7 @@ def get_report( 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]: @@ -167,7 +167,7 @@ def get_optional_report( 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/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/requiredoptional/aio/operations/_explicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py index 508241cc937..7dcd571ce13 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 @@ -103,9 +103,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +143,7 @@ async def put_required_binary_body(self, body_parameter: IO, **kwargs: Any) -> N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_required_integer_parameter(self, body_parameter: int, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +227,7 @@ async def post_optional_integer_parameter(self, body_parameter: Optional[int] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +269,7 @@ async def post_required_integer_property(self, value: int, **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +313,7 @@ async def post_optional_integer_property(self, value: Optional[int] = None, **kw request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_required_integer_header(self, header_parameter: int, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_optional_integer_header(self, header_parameter: Optional[int] = N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +425,7 @@ async def post_required_string_parameter(self, body_parameter: str, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -486,9 +468,7 @@ async def post_optional_string_parameter(self, body_parameter: Optional[str] = N request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +510,7 @@ async def post_required_string_property(self, value: str, **kwargs: Any) -> None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +554,7 @@ async def post_optional_string_property(self, value: Optional[str] = None, **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -614,9 +590,7 @@ async def post_required_string_header(self, header_parameter: str, **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -651,9 +625,7 @@ async def post_optional_string_header(self, body_parameter: Optional[str] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -694,9 +666,7 @@ async def post_required_class_parameter(self, body_parameter: "_models.Product", request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +711,7 @@ async def post_optional_class_parameter( 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]: @@ -785,9 +753,7 @@ async def post_required_class_property(self, value: "_models.Product", **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -831,9 +797,7 @@ async def post_optional_class_property(self, value: Optional["_models.Product"] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +838,7 @@ async def post_required_array_parameter(self, body_parameter: List[str], **kwarg request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +881,7 @@ async def post_optional_array_parameter(self, body_parameter: Optional[List[str] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +923,7 @@ async def post_required_array_property(self, value: List[str], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1009,9 +967,7 @@ async def post_optional_array_property(self, value: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1047,9 +1003,7 @@ async def post_required_array_header(self, header_parameter: List[str], **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1038,7 @@ async def post_optional_array_header(self, header_parameter: Optional[List[str]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 aa5f4a34c04..e1596f5cfca 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 @@ -82,9 +82,7 @@ async def get_required_path(self, path_parameter: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_optional_query(self, query_parameter: Optional[str] = None, **kwar request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -156,9 +152,7 @@ async def put_optional_header(self, query_parameter: Optional[str] = None, **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_optional_body(self, body_parameter: Optional[str] = None, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -243,9 +235,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_required_global_path(self, **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]: @@ -313,9 +301,7 @@ async def get_required_global_query(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_optional_global_query(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 d31e387255d..00962361cbc 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 @@ -662,7 +662,7 @@ def put_optional_binary_body( 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]: @@ -707,7 +707,7 @@ def put_required_binary_body( 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]: @@ -753,7 +753,7 @@ def post_required_integer_parameter( 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]: @@ -801,7 +801,7 @@ def post_optional_integer_parameter( 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]: @@ -848,7 +848,7 @@ def post_required_integer_property( 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]: @@ -897,7 +897,7 @@ def post_optional_integer_property( 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]: @@ -938,7 +938,7 @@ def post_required_integer_header( 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]: @@ -978,7 +978,7 @@ def post_optional_integer_header( 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]: @@ -1024,7 +1024,7 @@ def post_required_string_parameter( 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]: @@ -1072,7 +1072,7 @@ def post_optional_string_parameter( 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]: @@ -1119,7 +1119,7 @@ def post_required_string_property( 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]: @@ -1168,7 +1168,7 @@ def post_optional_string_property( 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]: @@ -1209,7 +1209,7 @@ def post_required_string_header( 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]: @@ -1249,7 +1249,7 @@ def post_optional_string_header( 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]: @@ -1295,7 +1295,7 @@ def post_required_class_parameter( 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]: @@ -1343,7 +1343,7 @@ def post_optional_class_parameter( 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]: @@ -1390,7 +1390,7 @@ def post_required_class_property( 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]: @@ -1439,7 +1439,7 @@ def post_optional_class_property( 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]: @@ -1485,7 +1485,7 @@ def post_required_array_parameter( 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]: @@ -1533,7 +1533,7 @@ def post_optional_array_parameter( 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]: @@ -1580,7 +1580,7 @@ def post_required_array_property( 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]: @@ -1629,7 +1629,7 @@ def post_optional_array_property( 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]: @@ -1670,7 +1670,7 @@ def post_required_array_header( 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]: @@ -1710,7 +1710,7 @@ def post_optional_array_header( 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/RequiredOptional/requiredoptional/operations/_implicit_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_implicit_operations.py index 2ac8ff275f6..207372f24b0 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 @@ -291,7 +291,7 @@ def get_required_path( 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]: @@ -331,7 +331,7 @@ def put_optional_query( 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]: @@ -371,7 +371,7 @@ def put_optional_header( 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]: @@ -419,7 +419,7 @@ def put_optional_body( 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]: @@ -464,7 +464,7 @@ def put_optional_binary_body( 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]: @@ -500,7 +500,7 @@ def get_required_global_path( 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]: @@ -536,7 +536,7 @@ def get_required_global_query( 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]: @@ -572,7 +572,7 @@ def get_optional_global_query( 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/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/reservedwords/aio/operations/_import_operations_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_import_operations_operations.py index 88d0c891595..87fec696618 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 @@ -68,9 +68,7 @@ async def operation_one(self, parameter1: str, **kwargs: Any) -> Any: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 a21dffa1ea8..a7ec28bbb93 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 @@ -106,7 +106,7 @@ def operation_one( 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/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/Url/url/aio/operations/_path_items_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py index cc563089d40..65711910f38 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 @@ -99,9 +99,7 @@ async def get_all_with_values( 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 +155,7 @@ async def get_global_query_null( 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]: @@ -215,9 +211,7 @@ async def get_global_and_local_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +266,7 @@ async def get_local_path_item_query_null( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 b6b64ae8d55..ae51542d66b 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 @@ -99,9 +99,7 @@ async def get_boolean_true(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -133,9 +131,7 @@ async def get_boolean_false(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_int_one_million(self, **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]: @@ -201,9 +195,7 @@ async def get_int_negative_one_million(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_ten_billion(self, **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]: @@ -269,9 +259,7 @@ async def get_negative_ten_billion(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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,9 +291,7 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -337,9 +323,7 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +355,7 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +387,7 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -439,9 +419,7 @@ async def string_unicode(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +451,7 @@ async def string_url_encoded(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +485,7 @@ async def string_url_non_encoded(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -543,9 +517,7 @@ async def string_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -580,9 +552,7 @@ async def string_null(self, string_path: str, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -617,9 +587,7 @@ async def enum_valid(self, enum_path: Union[str, "_models.UriColor"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -654,9 +622,7 @@ async def enum_null(self, enum_path: Union[str, "_models.UriColor"], **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -691,9 +657,7 @@ async def byte_multi_byte(self, byte_path: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -725,9 +689,7 @@ async def byte_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -762,9 +724,7 @@ async def byte_null(self, byte_path: bytearray, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -796,9 +756,7 @@ async def date_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -834,9 +792,7 @@ async def date_null(self, date_path: datetime.date, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -868,9 +824,7 @@ async def date_time_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -905,9 +859,7 @@ async def date_time_null(self, date_time_path: datetime.datetime, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -942,9 +894,7 @@ async def base64_url(self, base64_url_path: bytes, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -981,9 +931,7 @@ async def array_csv_in_path(self, array_path: List[str], **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +966,7 @@ async def unix_time_url(self, unix_time_url_path: datetime.datetime, **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 58d8a3a8003..e42d8b097b8 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 @@ -107,9 +107,7 @@ async def get_boolean_true(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_boolean_false(self, **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]: @@ -178,9 +174,7 @@ async def get_boolean_null(self, bool_query: Optional[bool] = None, **kwargs: An request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +206,7 @@ async def get_int_one_million(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_int_negative_one_million(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -283,9 +273,7 @@ async def get_int_null(self, int_query: Optional[int] = None, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -317,9 +305,7 @@ async def get_ten_billion(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 get_negative_ten_billion(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -388,9 +372,7 @@ async def get_long_null(self, long_query: Optional[int] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -422,9 +404,7 @@ async def float_scientific_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -456,9 +436,7 @@ async def float_scientific_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -493,9 +471,7 @@ async def float_null(self, float_query: Optional[float] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +503,7 @@ async def double_decimal_positive(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +535,7 @@ async def double_decimal_negative(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +570,7 @@ async def double_null(self, double_query: Optional[float] = None, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +602,7 @@ async def string_unicode(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -666,9 +634,7 @@ async def string_url_encoded(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -700,9 +666,7 @@ async def string_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -737,9 +701,7 @@ async def string_null(self, string_query: Optional[str] = None, **kwargs: Any) - request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -774,9 +736,7 @@ async def enum_valid(self, enum_query: Optional[Union[str, "_models.UriColor"]] request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +771,7 @@ async def enum_null(self, enum_query: Optional[Union[str, "_models.UriColor"]] = request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -848,9 +806,7 @@ async def byte_multi_byte(self, byte_query: Optional[bytearray] = None, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -882,9 +838,7 @@ async def byte_empty(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +873,7 @@ async def byte_null(self, byte_query: Optional[bytearray] = None, **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +905,7 @@ async def date_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +940,7 @@ async def date_null(self, date_query: Optional[datetime.date] = None, **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1024,9 +972,7 @@ async def date_time_valid(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1061,9 +1007,7 @@ async def date_time_null(self, date_time_query: Optional[datetime.datetime] = No request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1100,9 +1044,7 @@ async def array_string_csv_valid(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1137,9 +1079,7 @@ async def array_string_csv_null(self, array_query: Optional[List[str]] = None, * request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1114,7 @@ async def array_string_csv_empty(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1214,9 +1152,7 @@ async def array_string_no_collection_format_empty( request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1189,7 @@ async def array_string_ssv_valid(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1226,7 @@ async def array_string_tsv_valid(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1331,9 +1263,7 @@ async def array_string_pipes_valid(self, array_query: Optional[List[str]] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 8555bc56c2d..1194ab13d99 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 @@ -277,7 +277,7 @@ def get_all_with_values( 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]: @@ -334,7 +334,7 @@ def get_global_query_null( 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]: @@ -391,7 +391,7 @@ def get_global_and_local_query_null( 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]: @@ -447,7 +447,7 @@ def get_local_path_item_query_null( 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/Url/url/operations/_paths_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py index c3e1a06bc91..16a39d37705 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 @@ -782,7 +782,7 @@ def get_boolean_true( 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]: @@ -817,7 +817,7 @@ def get_boolean_false( 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]: @@ -852,7 +852,7 @@ def get_int_one_million( 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]: @@ -887,7 +887,7 @@ def get_int_negative_one_million( 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]: @@ -922,7 +922,7 @@ def get_ten_billion( 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]: @@ -957,7 +957,7 @@ def get_negative_ten_billion( 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]: @@ -992,7 +992,7 @@ def float_scientific_positive( 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]: @@ -1027,7 +1027,7 @@ def float_scientific_negative( 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]: @@ -1062,7 +1062,7 @@ def double_decimal_positive( 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]: @@ -1097,7 +1097,7 @@ def double_decimal_negative( 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]: @@ -1132,7 +1132,7 @@ def string_unicode( 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]: @@ -1167,7 +1167,7 @@ def string_url_encoded( 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]: @@ -1204,7 +1204,7 @@ def string_url_non_encoded( 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]: @@ -1239,7 +1239,7 @@ def string_empty( 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]: @@ -1279,7 +1279,7 @@ def string_null( 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 [400]: @@ -1319,7 +1319,7 @@ def enum_valid( 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]: @@ -1359,7 +1359,7 @@ def enum_null( 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 [400]: @@ -1399,7 +1399,7 @@ def byte_multi_byte( 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]: @@ -1434,7 +1434,7 @@ def byte_empty( 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]: @@ -1474,7 +1474,7 @@ def byte_null( 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 [400]: @@ -1509,7 +1509,7 @@ def date_valid( 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]: @@ -1550,7 +1550,7 @@ def date_null( 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 [400]: @@ -1585,7 +1585,7 @@ def date_time_valid( 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]: @@ -1625,7 +1625,7 @@ def date_time_null( 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 [400]: @@ -1665,7 +1665,7 @@ def base64_url( 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]: @@ -1707,7 +1707,7 @@ def array_csv_in_path( 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]: @@ -1747,7 +1747,7 @@ def unix_time_url( 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/Url/url/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py index 23f8be28019..8be858d104a 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 @@ -1028,7 +1028,7 @@ def get_boolean_true( 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]: @@ -1063,7 +1063,7 @@ def get_boolean_false( 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]: @@ -1103,7 +1103,7 @@ def get_boolean_null( 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]: @@ -1138,7 +1138,7 @@ def get_int_one_million( 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]: @@ -1173,7 +1173,7 @@ def get_int_negative_one_million( 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]: @@ -1213,7 +1213,7 @@ def get_int_null( 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]: @@ -1248,7 +1248,7 @@ def get_ten_billion( 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]: @@ -1283,7 +1283,7 @@ def get_negative_ten_billion( 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]: @@ -1323,7 +1323,7 @@ def get_long_null( 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]: @@ -1358,7 +1358,7 @@ def float_scientific_positive( 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]: @@ -1393,7 +1393,7 @@ def float_scientific_negative( 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]: @@ -1433,7 +1433,7 @@ def float_null( 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]: @@ -1468,7 +1468,7 @@ def double_decimal_positive( 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]: @@ -1503,7 +1503,7 @@ def double_decimal_negative( 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]: @@ -1543,7 +1543,7 @@ def double_null( 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]: @@ -1578,7 +1578,7 @@ def string_unicode( 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]: @@ -1613,7 +1613,7 @@ def string_url_encoded( 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]: @@ -1648,7 +1648,7 @@ def string_empty( 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]: @@ -1688,7 +1688,7 @@ def string_null( 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]: @@ -1728,7 +1728,7 @@ def enum_valid( 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]: @@ -1768,7 +1768,7 @@ def enum_null( 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]: @@ -1808,7 +1808,7 @@ def byte_multi_byte( 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]: @@ -1843,7 +1843,7 @@ def byte_empty( 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]: @@ -1883,7 +1883,7 @@ def byte_null( 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]: @@ -1918,7 +1918,7 @@ def date_valid( 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]: @@ -1958,7 +1958,7 @@ def date_null( 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]: @@ -1993,7 +1993,7 @@ def date_time_valid( 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]: @@ -2033,7 +2033,7 @@ def date_time_null( 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]: @@ -2075,7 +2075,7 @@ def array_string_csv_valid( 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]: @@ -2115,7 +2115,7 @@ def array_string_csv_null( 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]: @@ -2155,7 +2155,7 @@ def array_string_csv_empty( 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]: @@ -2196,7 +2196,7 @@ def array_string_no_collection_format_empty( 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]: @@ -2238,7 +2238,7 @@ def array_string_ssv_valid( 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]: @@ -2280,7 +2280,7 @@ def array_string_tsv_valid( 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]: @@ -2322,7 +2322,7 @@ def array_string_pipes_valid( 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/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/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py index 3d4684d7e53..8605f3803ea 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 @@ -77,9 +77,7 @@ async def array_string_multi_null(self, array_query: Optional[List[str]] = None, request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 array_string_multi_empty(self, array_query: Optional[List[str]] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 array_string_multi_valid(self, array_query: Optional[List[str]] = None request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 0185ce55154..b508d769b6d 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 @@ -168,7 +168,7 @@ def array_string_multi_null( 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]: @@ -208,7 +208,7 @@ def array_string_multi_empty( 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]: @@ -250,7 +250,7 @@ def array_string_multi_valid( 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/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/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 7bd20ebd5b0..bb9d0b7a278 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 @@ -63,9 +63,7 @@ async def validation_of_method_parameters( 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]: @@ -121,9 +119,7 @@ async def validation_of_body( 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]: @@ -159,9 +155,7 @@ async def get_with_constant_in_path(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 post_with_constant_in_body( 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/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 905011cf325..02efb5c4f4f 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 @@ -194,7 +194,7 @@ def validation_of_method_parameters( 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]: @@ -255,7 +255,7 @@ def validation_of_body( 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_with_constant_in_path( 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]: @@ -341,7 +341,7 @@ def post_with_constant_in_body( 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/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/Xml/xmlservice/aio/operations/_xml_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py index 46e0b574bfb..a283950cdbe 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 @@ -105,9 +105,7 @@ async def get_complex_type_ref_no_meta(self, **kwargs: Any) -> "_models.RootWith request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_complex_type_ref_no_meta(self, model: "_models.RootWithRefAndNoMet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -183,9 +179,7 @@ async def get_complex_type_ref_with_meta(self, **kwargs: Any) -> "_models.RootWi request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_complex_type_ref_with_meta(self, model: "_models.RootWithRefAndMet request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -261,9 +253,7 @@ async def get_simple(self, **kwargs: Any) -> "_models.Slideshow": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +297,7 @@ async def put_simple(self, slideshow: "_models.Slideshow", **kwargs: Any) -> Non request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -341,9 +329,7 @@ async def get_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +372,7 @@ async def put_wrapped_lists(self, wrapped_lists: "_models.AppleBarrel", **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -420,9 +404,7 @@ async def get_headers(self, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -456,9 +438,7 @@ async def get_empty_list(self, **kwargs: Any) -> "_models.Slideshow": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -501,9 +481,7 @@ async def put_empty_list(self, slideshow: "_models.Slideshow", **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -534,9 +512,7 @@ async def get_empty_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -579,9 +555,7 @@ async def put_empty_wrapped_lists(self, apple_barrel: "_models.AppleBarrel", **k request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -612,9 +586,7 @@ async def get_root_list(self, **kwargs: Any) -> List["_models.Banana"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -658,9 +630,7 @@ async def put_root_list(self, bananas: List["_models.Banana"], **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -691,9 +661,7 @@ async def get_root_list_single_item(self, **kwargs: Any) -> List["_models.Banana request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -737,9 +705,7 @@ async def put_root_list_single_item(self, bananas: List["_models.Banana"], **kwa request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -770,9 +736,7 @@ async def get_empty_root_list(self, **kwargs: Any) -> List["_models.Banana"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 put_empty_root_list(self, bananas: List["_models.Banana"], **kwargs: A request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -849,9 +811,7 @@ async def get_empty_child_element(self, **kwargs: Any) -> "_models.Banana": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +854,7 @@ async def put_empty_child_element(self, banana: "_models.Banana", **kwargs: Any) request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -927,9 +885,7 @@ async def list_containers(self, **kwargs: Any) -> "_models.ListContainersRespons request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +920,7 @@ async def get_service_properties(self, **kwargs: Any) -> "_models.StorageService request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1009,9 +963,7 @@ async def put_service_properties(self, properties: "_models.StorageServiceProper request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1042,9 +994,7 @@ async def get_acls(self, **kwargs: Any) -> List["_models.SignedIdentifier"]: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1090,9 +1040,7 @@ async def put_acls(self, properties: List["_models.SignedIdentifier"], **kwargs: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1123,9 +1071,7 @@ async def list_blobs(self, **kwargs: Any) -> "_models.ListBlobsResponse": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1116,7 @@ async def json_input(self, id: Optional[int] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 json_output(self, **kwargs: Any) -> "_models.JSONOutput": 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]: @@ -1241,9 +1183,7 @@ async def get_xms_text(self, **kwargs: Any) -> "_models.ObjectWithXMsTextPropert request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **kwargs - ) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1278,9 +1218,7 @@ async def get_bytes(self, **kwargs: Any) -> "_models.ModelWithByteProperty": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 +1263,7 @@ async def put_binary(self, bytes: Optional[bytearray] = None, **kwargs: Any) -> request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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]: @@ -1359,9 +1295,7 @@ async def get_uri(self, **kwargs: Any) -> "_models.ModelWithUrlProperty": request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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_uri(self, url: Optional[str] = None, **kwargs: Any) -> None: request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=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 045c26cde68..21aa5314b9c 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 @@ -837,7 +837,7 @@ def get_complex_type_ref_no_meta( 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]: @@ -885,7 +885,7 @@ def put_complex_type_ref_no_meta( 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 [201]: @@ -919,7 +919,7 @@ def get_complex_type_ref_with_meta( 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]: @@ -967,7 +967,7 @@ def put_complex_type_ref_with_meta( 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 [201]: @@ -1001,7 +1001,7 @@ def get_simple( 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]: @@ -1050,7 +1050,7 @@ def put_simple( 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 [201]: @@ -1085,7 +1085,7 @@ def get_wrapped_lists( 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]: @@ -1133,7 +1133,7 @@ def put_wrapped_lists( 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 [201]: @@ -1168,7 +1168,7 @@ def get_headers( 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]: @@ -1205,7 +1205,7 @@ def get_empty_list( 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]: @@ -1253,7 +1253,7 @@ def put_empty_list( 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 [201]: @@ -1287,7 +1287,7 @@ def get_empty_wrapped_lists( 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]: @@ -1335,7 +1335,7 @@ def put_empty_wrapped_lists( 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 [201]: @@ -1369,7 +1369,7 @@ def get_root_list( 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]: @@ -1418,7 +1418,7 @@ def put_root_list( 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 [201]: @@ -1452,7 +1452,7 @@ def get_root_list_single_item( 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]: @@ -1501,7 +1501,7 @@ def put_root_list_single_item( 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 [201]: @@ -1535,7 +1535,7 @@ def get_empty_root_list( 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]: @@ -1584,7 +1584,7 @@ def put_empty_root_list( 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 [201]: @@ -1618,7 +1618,7 @@ def get_empty_child_element( 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]: @@ -1666,7 +1666,7 @@ def put_empty_child_element( 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 [201]: @@ -1700,7 +1700,7 @@ def list_containers( 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]: @@ -1738,7 +1738,7 @@ def get_service_properties( 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]: @@ -1786,7 +1786,7 @@ def put_service_properties( 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 [201]: @@ -1820,7 +1820,7 @@ def get_acls( 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]: @@ -1871,7 +1871,7 @@ def put_acls( 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 [201]: @@ -1905,7 +1905,7 @@ def list_blobs( 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]: @@ -1955,7 +1955,7 @@ def json_input( 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]: @@ -1989,7 +1989,7 @@ def json_output( 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]: @@ -2028,7 +2028,7 @@ def get_xms_text( 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]: @@ -2066,7 +2066,7 @@ def get_bytes( 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]: @@ -2116,7 +2116,7 @@ def put_binary( 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 [201]: @@ -2151,7 +2151,7 @@ def get_uri( 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]: @@ -2201,7 +2201,7 @@ def put_uri( 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 [201]: 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/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py b/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py index 4a660dbb454..52ff6713396 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 @@ -85,9 +85,7 @@ async def get_pet_by_id(self, pet_id: str, **kwargs: Any) -> Optional["_models.P request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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]: @@ -134,9 +132,7 @@ async def do_something(self, what_action: str, **kwargs: Any) -> "_models.PetAct request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 has_models_param(self, models: Optional[str] = "value1", **kwargs: Any request = _convert_request(request) request.url = self._client.format_url(request.url) - pipeline_response = await self._client.send_request( - request, stream=False, _return_pipeline_response=True, **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 3b80e8c3f71..56c63dba25d 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 @@ -172,7 +172,7 @@ def get_pet_by_id( 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, 202]: @@ -224,7 +224,7 @@ def do_something( 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]: @@ -277,7 +277,7 @@ def has_models_param( 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/requirements.txt b/test/vanilla/legacy/requirements.txt index 7d0454da3b9..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 -azure-core==1.18.0 +azure-core==1.19.0 -e ./Expected/AcceptanceTests/AdditionalProperties -e ./Expected/AcceptanceTests/Anything -e ./Expected/AcceptanceTests/BodyArray 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/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_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_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/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/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/low-level/initial_requirements.txt b/test/vanilla/low-level/initial_requirements.txt index 4d3df42e696..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 -azure-core==1.18.0 +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 0e2dc38247a..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 -azure-core==1.18.0 +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 df63195cd9d..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 -azure-core==1.18.0 +azure-core==1.19.0 -e ./Expected/AcceptanceTests/LLCUpdateOneLowLevel \ No newline at end of file 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_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/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_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) 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) 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 bfd2dbb8788..2575ad62596 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 @@ -453,7 +453,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]: @@ -492,7 +492,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]: @@ -531,7 +531,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]: @@ -570,7 +570,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]: @@ -609,7 +609,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]: @@ -648,7 +648,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]: @@ -682,7 +682,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]: @@ -716,7 +716,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]: @@ -755,7 +755,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]: @@ -794,7 +794,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]: @@ -833,7 +833,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]: @@ -872,7 +872,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]: @@ -911,7 +911,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]: @@ -950,7 +950,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]: @@ -989,7 +989,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]: @@ -1028,7 +1028,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]: @@ -1061,7 +1061,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/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/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 48c8d09089c..c6f469bd6da 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 @@ -132,7 +132,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/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/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/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/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 b8a7062beb4..44d3003fdb1 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 @@ -137,7 +137,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]: @@ -206,7 +206,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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 a53a8625804..c36748d74d9 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 @@ -338,7 +338,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]: @@ -392,7 +392,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]: @@ -455,7 +455,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]: @@ -500,7 +500,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]: @@ -574,7 +574,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]: @@ -628,7 +628,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]: @@ -736,7 +736,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]: @@ -824,7 +824,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]: @@ -907,7 +907,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]: @@ -990,7 +990,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]: @@ -1077,7 +1077,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/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/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/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/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/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/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/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/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 ddbea7bcc12..27ee1794e9c 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 @@ -130,7 +130,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/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/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/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/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/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/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 36478ac2f6a..9da8c8c53a6 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 @@ -857,7 +857,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]: @@ -894,7 +894,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]: @@ -931,7 +931,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]: @@ -976,7 +976,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]: @@ -1018,7 +1018,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]: @@ -1051,7 +1051,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]: @@ -1084,7 +1084,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]: @@ -1117,7 +1117,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]: @@ -1178,7 +1178,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]: @@ -1220,7 +1220,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]: @@ -1263,7 +1263,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]: @@ -1308,7 +1308,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]: @@ -1359,7 +1359,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]: @@ -1412,7 +1412,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]: @@ -1450,7 +1450,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]: @@ -1487,7 +1487,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]: @@ -1530,7 +1530,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]: @@ -1575,7 +1575,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]: @@ -1626,7 +1626,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]: @@ -1679,7 +1679,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]: @@ -1717,7 +1717,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]: @@ -1754,7 +1754,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]: @@ -1806,7 +1806,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]: @@ -1860,7 +1860,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]: @@ -1914,7 +1914,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]: @@ -1970,7 +1970,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]: @@ -2021,7 +2021,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]: @@ -2074,7 +2074,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]: @@ -2127,7 +2127,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]: @@ -2182,7 +2182,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]: @@ -2220,7 +2220,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]: @@ -2257,7 +2257,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/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/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/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/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/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/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 90e9b0d311c..0233091ae5c 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 @@ -1899,7 +1899,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]: @@ -1931,7 +1931,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]: @@ -1963,7 +1963,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]: @@ -1995,7 +1995,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]: @@ -2027,7 +2027,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]: @@ -2059,7 +2059,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]: @@ -2091,7 +2091,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]: @@ -2123,7 +2123,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]: @@ -2155,7 +2155,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]: @@ -2187,7 +2187,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]: @@ -2219,7 +2219,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]: @@ -2251,7 +2251,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]: @@ -2285,7 +2285,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]: @@ -2317,7 +2317,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]: @@ -2354,7 +2354,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]: @@ -2392,7 +2392,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]: @@ -2430,7 +2430,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]: @@ -2467,7 +2467,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]: @@ -2499,7 +2499,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]: @@ -2536,7 +2536,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]: @@ -2568,7 +2568,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]: @@ -2606,7 +2606,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]: @@ -2638,7 +2638,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]: @@ -2675,7 +2675,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]: @@ -2712,7 +2712,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]: @@ -2751,7 +2751,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]: @@ -2788,7 +2788,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]: @@ -2839,7 +2839,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]: @@ -2871,7 +2871,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]: @@ -2908,7 +2908,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]: @@ -2940,7 +2940,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]: @@ -2972,7 +2972,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]: @@ -3009,7 +3009,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]: @@ -3041,7 +3041,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]: @@ -3073,7 +3073,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]: @@ -3110,7 +3110,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]: @@ -3142,7 +3142,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]: @@ -3174,7 +3174,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]: @@ -3211,7 +3211,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]: @@ -3243,7 +3243,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]: @@ -3275,7 +3275,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]: @@ -3312,7 +3312,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]: @@ -3344,7 +3344,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]: @@ -3376,7 +3376,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]: @@ -3408,7 +3408,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]: @@ -3445,7 +3445,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]: @@ -3483,7 +3483,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]: @@ -3521,7 +3521,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]: @@ -3558,7 +3558,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]: @@ -3590,7 +3590,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]: @@ -3627,7 +3627,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]: @@ -3659,7 +3659,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]: @@ -3696,7 +3696,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]: @@ -3728,7 +3728,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]: @@ -3765,7 +3765,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]: @@ -3804,7 +3804,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]: @@ -3841,7 +3841,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]: @@ -3878,7 +3878,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]: @@ -3916,7 +3916,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]: @@ -3955,7 +3955,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]: @@ -3994,7 +3994,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]: @@ -4033,7 +4033,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]: @@ -4107,7 +4107,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]: @@ -4162,7 +4162,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]: @@ -4217,7 +4217,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]: @@ -4271,7 +4271,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/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/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 06053d53e9e..0a00852e0ed 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 @@ -214,7 +214,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]: @@ -318,7 +318,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]: @@ -357,7 +357,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]: @@ -445,7 +445,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/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/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/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, 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 e5f5f5dd6e1..2cfb24466fe 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 @@ -172,7 +172,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]: @@ -231,7 +231,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]: @@ -282,7 +282,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]: diff --git a/test/vanilla/version-tolerant/initial_requirements.txt b/test/vanilla/version-tolerant/initial_requirements.txt index e492fed7546..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 -azure-core==1.18.0 +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 35442a86573..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 -azure-core==1.18.0 +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 e097f5b81ba..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 -azure-core==1.18.0 +azure-core==1.19.0 -e ./Expected/AcceptanceTests/LLCUpdateOneVersionTolerant \ No newline at end of file