text: # coding=utf-8
  # --------------------------------------------------------------------------
  # Copyright (c) Microsoft Corporation. All rights reserved.
  # Licensed under the MIT License. See License.txt in the project root for license information.
  # Code generated by Microsoft (R) AutoRest Code Generator.
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
  # --------------------------------------------------------------------------
  from typing import TYPE_CHECKING
  import warnings
  
  from azure.core.exceptions import (
      ClientAuthenticationError,
      HttpResponseError,
      ResourceExistsError,
      ResourceNotFoundError,
      map_error,
  )
  from azure.core.pipeline import PipelineResponse
  from azure.core.pipeline.transport import HttpRequest, HttpResponse
  from azure.core.tracing.decorator import distributed_trace
  
  from .. import models as _models
  
  if TYPE_CHECKING:
      # pylint: disable=unused-import,ungrouped-imports
      from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union
  
      T = TypeVar("T")
      ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
  
  
  class MultipleResponsesOperations(object):
      """MultipleResponsesOperations operations.
  
      You should not instantiate this class directly. Instead, you should create a Client instance that
      instantiates it for you and attaches it as an attribute.
  
      :ivar models: Alias to model classes used in this operation group.
      :type models: ~httpinfrastructure.models
      :param client: Client for service requests.
      :param config: Configuration of service client.
      :param serializer: An object model serializer.
      :param deserializer: An object model deserializer.
      """
  
      models = _models
  
      def __init__(self, client, config, serializer, deserializer):
          self._client = client
          self._serialize = serializer
          self._deserialize = deserializer
          self._config = config
  
      @distributed_trace
      def get200_model204_no_model_default_error200_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Optional["_models.MyException"]
          """Send a 200 response with valid payload: {'statusCode': '200'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Optional["_models.MyException"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model204_no_model_default_error200_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          deserialized = None
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model204_no_model_default_error200_valid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/200/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model204_no_model_default_error204_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Optional["_models.MyException"]
          """Send a 204 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Optional["_models.MyException"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model204_no_model_default_error204_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          deserialized = None
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model204_no_model_default_error204_valid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/204/none"}  # type: ignore
  
      @distributed_trace
      def get200_model204_no_model_default_error201_invalid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Optional["_models.MyException"]
          """Send a 201 response with valid payload: {'statusCode': '201'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Optional["_models.MyException"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model204_no_model_default_error201_invalid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          deserialized = None
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model204_no_model_default_error201_invalid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/201/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model204_no_model_default_error202_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Optional["_models.MyException"]
          """Send a 202 response with no payload:.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Optional["_models.MyException"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model204_no_model_default_error202_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          deserialized = None
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model204_no_model_default_error202_none.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/202/none"}  # type: ignore
  
      @distributed_trace
      def get200_model204_no_model_default_error400_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Optional["_models.MyException"]
          """Send a 400 response with valid error payload: {'status': 400, 'message': 'client error'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Optional["_models.MyException"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model204_no_model_default_error400_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          deserialized = None
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model204_no_model_default_error400_valid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/400/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model201_model_default_error200_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Union["_models.MyException", "_models.B"]
          """Send a 200 response with valid payload: {'statusCode': '200'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException or B, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or ~httpinfrastructure.models.B
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Union["_models.MyException", "_models.B"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model201_model_default_error200_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if response.status_code == 201:
              deserialized = self._deserialize("B", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model201_model_default_error200_valid.metadata = {"url": "/http/payloads/200/A/201/B/default/Error/response/200/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model201_model_default_error201_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Union["_models.MyException", "_models.B"]
          """Send a 201 response with valid payload: {'statusCode': '201', 'textStatusCode': 'Created'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException or B, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or ~httpinfrastructure.models.B
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Union["_models.MyException", "_models.B"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model201_model_default_error201_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if response.status_code == 201:
              deserialized = self._deserialize("B", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model201_model_default_error201_valid.metadata = {"url": "/http/payloads/200/A/201/B/default/Error/response/201/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model201_model_default_error400_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Union["_models.MyException", "_models.B"]
          """Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException or B, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or ~httpinfrastructure.models.B
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Union["_models.MyException", "_models.B"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model201_model_default_error400_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 201]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if response.status_code == 201:
              deserialized = self._deserialize("B", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model201_model_default_error400_valid.metadata = {"url": "/http/payloads/200/A/201/B/default/Error/response/400/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a201_model_c404_model_d_default_error200_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Union["_models.MyException", "_models.C", "_models.D"]
          """Send a 200 response with valid payload: {'statusCode': '200'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException or C or D, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or ~httpinfrastructure.models.C or ~httpinfrastructure.models.D
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Union["_models.MyException", "_models.C", "_models.D"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a201_model_c404_model_d_default_error200_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 201, 404]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if response.status_code == 201:
              deserialized = self._deserialize("C", pipeline_response)
  
          if response.status_code == 404:
              deserialized = self._deserialize("D", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a201_model_c404_model_d_default_error200_valid.metadata = {"url": "/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a201_model_c404_model_d_default_error201_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Union["_models.MyException", "_models.C", "_models.D"]
          """Send a 200 response with valid payload: {'httpCode': '201'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException or C or D, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or ~httpinfrastructure.models.C or ~httpinfrastructure.models.D
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Union["_models.MyException", "_models.C", "_models.D"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a201_model_c404_model_d_default_error201_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 201, 404]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if response.status_code == 201:
              deserialized = self._deserialize("C", pipeline_response)
  
          if response.status_code == 404:
              deserialized = self._deserialize("D", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a201_model_c404_model_d_default_error201_valid.metadata = {"url": "/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a201_model_c404_model_d_default_error404_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Union["_models.MyException", "_models.C", "_models.D"]
          """Send a 200 response with valid payload: {'httpStatusCode': '404'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException or C or D, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or ~httpinfrastructure.models.C or ~httpinfrastructure.models.D
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Union["_models.MyException", "_models.C", "_models.D"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a201_model_c404_model_d_default_error404_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 201, 404]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if response.status_code == 201:
              deserialized = self._deserialize("C", pipeline_response)
  
          if response.status_code == 404:
              deserialized = self._deserialize("D", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a201_model_c404_model_d_default_error404_valid.metadata = {"url": "/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a201_model_c404_model_d_default_error400_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> Union["_models.MyException", "_models.C", "_models.D"]
          """Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException or C or D, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException or ~httpinfrastructure.models.C or ~httpinfrastructure.models.D
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[Union["_models.MyException", "_models.C", "_models.D"]]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a201_model_c404_model_d_default_error400_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200, 201, 404]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if response.status_code == 200:
              deserialized = self._deserialize("MyException", pipeline_response)
  
          if response.status_code == 201:
              deserialized = self._deserialize("C", pipeline_response)
  
          if response.status_code == 404:
              deserialized = self._deserialize("D", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a201_model_c404_model_d_default_error400_valid.metadata = {"url": "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid"}  # type: ignore
  
      @distributed_trace
      def get202_none204_none_default_error202_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 202 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get202_none204_none_default_error202_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [202, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get202_none204_none_default_error202_none.metadata = {"url": "/http/payloads/202/none/204/none/default/Error/response/202/none"}  # type: ignore
  
      @distributed_trace
      def get202_none204_none_default_error204_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 204 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get202_none204_none_default_error204_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [202, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get202_none204_none_default_error204_none.metadata = {"url": "/http/payloads/202/none/204/none/default/Error/response/204/none"}  # type: ignore
  
      @distributed_trace
      def get202_none204_none_default_error400_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get202_none204_none_default_error400_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [202, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.Error, response)
              raise HttpResponseError(response=response, model=error)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get202_none204_none_default_error400_valid.metadata = {"url": "/http/payloads/202/none/204/none/default/Error/response/400/valid"}  # type: ignore
  
      @distributed_trace
      def get202_none204_none_default_none202_invalid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 202 response with an unexpected payload {'property': 'value'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get202_none204_none_default_none202_invalid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [202, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get202_none204_none_default_none202_invalid.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/202/invalid"}  # type: ignore
  
      @distributed_trace
      def get202_none204_none_default_none204_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 204 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get202_none204_none_default_none204_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [202, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get202_none204_none_default_none204_none.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/204/none"}  # type: ignore
  
      @distributed_trace
      def get202_none204_none_default_none400_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 400 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get202_none204_none_default_none400_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [202, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get202_none204_none_default_none400_none.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/400/none"}  # type: ignore
  
      @distributed_trace
      def get202_none204_none_default_none400_invalid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 400 response with an unexpected payload {'property': 'value'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get202_none204_none_default_none400_invalid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [202, 204]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get202_none204_none_default_none400_invalid.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/400/invalid"}  # type: ignore
  
      @distributed_trace
      def get_default_model_a200_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 200 response with valid payload: {'statusCode': '200'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_default_model_a200_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get_default_model_a200_valid.metadata = {"url": "/http/payloads/default/A/response/200/valid"}  # type: ignore
  
      @distributed_trace
      def get_default_model_a200_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 200 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_default_model_a200_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get_default_model_a200_none.metadata = {"url": "/http/payloads/default/A/response/200/none"}  # type: ignore
  
      @distributed_trace
      def get_default_model_a400_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 400 response with valid payload: {'statusCode': '400'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_default_model_a400_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.MyException, response)
              raise HttpResponseError(response=response, model=error)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get_default_model_a400_valid.metadata = {"url": "/http/payloads/default/A/response/400/valid"}  # type: ignore
  
      @distributed_trace
      def get_default_model_a400_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 400 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get_default_model_a400_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              error = self._deserialize(_models.MyException, response)
              raise HttpResponseError(response=response, model=error)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get_default_model_a400_none.metadata = {"url": "/http/payloads/default/A/response/400/none"}  # type: ignore
  
      @distributed_trace
      def get_default_none200_invalid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 200 response with invalid payload: {'statusCode': '200'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get_default_none200_invalid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get_default_none200_invalid.metadata = {"url": "/http/payloads/default/none/response/200/invalid"}  # type: ignore
  
      @distributed_trace
      def get_default_none200_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 200 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get_default_none200_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get_default_none200_none.metadata = {"url": "/http/payloads/default/none/response/200/none"}  # type: ignore
  
      @distributed_trace
      def get_default_none400_invalid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 400 response with valid payload: {'statusCode': '400'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get_default_none400_invalid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get_default_none400_invalid.metadata = {"url": "/http/payloads/default/none/response/400/invalid"}  # type: ignore
  
      @distributed_trace
      def get_default_none400_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> None
          """Send a 400 response with no payload.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: None, or the result of cls(response)
          :rtype: None
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType[None]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
  
          # Construct URL
          url = self.get_default_none400_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          if cls:
              return cls(pipeline_response, None, {})
  
      get_default_none400_none.metadata = {"url": "/http/payloads/default/none/response/400/none"}  # type: ignore
  
      @distributed_trace
      def get200_model_a200_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 200 response with no payload, when a payload is expected - client should return a null
          object of thde type for model A.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a200_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a200_none.metadata = {"url": "/http/payloads/200/A/response/200/none"}  # type: ignore
  
      @distributed_trace
      def get200_model_a200_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 200 response with payload {'statusCode': '200'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a200_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a200_valid.metadata = {"url": "/http/payloads/200/A/response/200/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a200_invalid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 200 response with invalid payload {'statusCodeInvalid': '200'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a200_invalid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a200_invalid.metadata = {"url": "/http/payloads/200/A/response/200/invalid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a400_none(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 400 response with no payload client should treat as an http error with no error model.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a400_none.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a400_none.metadata = {"url": "/http/payloads/200/A/response/400/none"}  # type: ignore
  
      @distributed_trace
      def get200_model_a400_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 200 response with payload {'statusCode': '400'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a400_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a400_valid.metadata = {"url": "/http/payloads/200/A/response/400/valid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a400_invalid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 200 response with invalid payload {'statusCodeInvalid': '400'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a400_invalid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a400_invalid.metadata = {"url": "/http/payloads/200/A/response/400/invalid"}  # type: ignore
  
      @distributed_trace
      def get200_model_a202_valid(
          self, **kwargs  # type: Any
      ):
          # type: (...) -> "_models.MyException"
          """Send a 202 response with payload {'statusCode': '202'}.
  
          :keyword callable cls: A custom type or function that will be passed the direct response
          :return: MyException, or the result of cls(response)
          :rtype: ~httpinfrastructure.models.MyException
          :raises: ~azure.core.exceptions.HttpResponseError
          """
          cls = kwargs.pop("cls", None)  # type: ClsType["_models.MyException"]
          error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
          error_map.update(kwargs.pop("error_map", {}))
          accept = "application/json"
  
          # Construct URL
          url = self.get200_model_a202_valid.metadata["url"]  # type: ignore
  
          # Construct parameters
          query_parameters = {}  # type: Dict[str, Any]
  
          # Construct headers
          header_parameters = {}  # type: Dict[str, Any]
          header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
  
          request = self._client.get(url, query_parameters, header_parameters)
          pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
          response = pipeline_response.http_response
  
          if response.status_code not in [200]:
              map_error(status_code=response.status_code, response=response, error_map=error_map)
              raise HttpResponseError(response=response)
  
          deserialized = self._deserialize("MyException", pipeline_response)
  
          if cls:
              return cls(pipeline_response, deserialized, {})
  
          return deserialized
  
      get200_model_a202_valid.metadata = {"url": "/http/payloads/200/A/response/202/valid"}  # type: ignore
  