Server Test Python

Server Test Python

rev. 1d902e1fdfff69f8aafe42b2306fa317ef96d562

Files changed:

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/aws_lambda/__init__.pyi

@@ -1,0 +143,0 @@
    1         -
import typing
    2         -
    3         -
class ClientApplication:
    4         -
    """
    5         -
    AWS Mobile SDK client fields.
    6         -
    """
    7         -
    8         -
    app_package_name: str
    9         -
    """
   10         -
    The package name for the mobile application invoking the function
   11         -
    """
   12         -
   13         -
    app_title: str
   14         -
    """
   15         -
    The app title for the mobile app as registered with AWS' mobile services.
   16         -
    """
   17         -
   18         -
    app_version_code: str
   19         -
    """
   20         -
    The app version code.
   21         -
    """
   22         -
   23         -
    app_version_name: str
   24         -
    """
   25         -
    The version name of the application as registered with AWS' mobile services.
   26         -
    """
   27         -
   28         -
    installation_id: str
   29         -
    """
   30         -
    The mobile app installation id
   31         -
    """
   32         -
   33         -
class ClientContext:
   34         -
    """
   35         -
    Client context sent by the AWS Mobile SDK.
   36         -
    """
   37         -
   38         -
    client: ClientApplication
   39         -
    """
   40         -
    Information about the mobile application invoking the function.
   41         -
    """
   42         -
   43         -
    custom: typing.Dict[str, str]
   44         -
    """
   45         -
    Custom properties attached to the mobile event context.
   46         -
    """
   47         -
   48         -
    environment: typing.Dict[str, str]
   49         -
    """
   50         -
    Environment settings from the mobile client.
   51         -
    """
   52         -
   53         -
class CognitoIdentity:
   54         -
    """
   55         -
    Cognito identity information sent with the event
   56         -
    """
   57         -
   58         -
    identity_id: str
   59         -
    """
   60         -
    The unique identity id for the Cognito credentials invoking the function.
   61         -
    """
   62         -
   63         -
    identity_pool_id: str
   64         -
    """
   65         -
    The identity pool id the caller is "registered" with.
   66         -
    """
   67         -
   68         -
class Config:
   69         -
    """
   70         -
    Configuration derived from environment variables.
   71         -
    """
   72         -
   73         -
    function_name: str
   74         -
    """
   75         -
    The name of the function.
   76         -
    """
   77         -
   78         -
    log_group: str
   79         -
    """
   80         -
    The name of the Amazon CloudWatch Logs group for the function.
   81         -
    """
   82         -
   83         -
    log_stream: str
   84         -
    """
   85         -
    The name of the Amazon CloudWatch Logs stream for the function.
   86         -
    """
   87         -
   88         -
    memory: int
   89         -
    """
   90         -
    The amount of memory available to the function in MB.
   91         -
    """
   92         -
   93         -
    version: str
   94         -
    """
   95         -
    The version of the function being executed.
   96         -
    """
   97         -
   98         -
class LambdaContext:
   99         -
    """
  100         -
    The Lambda function execution context. The values in this struct
  101         -
    are populated using the [Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html)
  102         -
    and the headers returned by the poll request to the Runtime APIs.
  103         -
    """
  104         -
  105         -
    client_context: typing.Optional[ClientContext]
  106         -
    """
  107         -
    The client context object sent by the AWS mobile SDK. This field is
  108         -
    empty unless the function is invoked using an AWS mobile SDK.
  109         -
    """
  110         -
  111         -
    deadline: int
  112         -
    """
  113         -
    The execution deadline for the current invocation in milliseconds.
  114         -
    """
  115         -
  116         -
    env_config: Config
  117         -
    """
  118         -
    Lambda function configuration from the local environment variables.
  119         -
    Includes information such as the function name, memory allocation,
  120         -
    version, and log streams.
  121         -
    """
  122         -
  123         -
    identity: typing.Optional[CognitoIdentity]
  124         -
    """
  125         -
    The Cognito identity that invoked the function. This field is empty
  126         -
    unless the invocation request to the Lambda APIs was made using AWS
  127         -
    credentials issues by Amazon Cognito Identity Pools.
  128         -
    """
  129         -
  130         -
    invoked_function_arn: str
  131         -
    """
  132         -
    The ARN of the Lambda function being invoked.
  133         -
    """
  134         -
  135         -
    request_id: str
  136         -
    """
  137         -
    The AWS request ID generated by the Lambda service.
  138         -
    """
  139         -
  140         -
    xray_trace_id: typing.Optional[str]
  141         -
    """
  142         -
    The X-Ray trace ID for the current invocation.
  143         -
    """

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/error/__init__.pyi

@@ -1,0 +70,0 @@
    1         -
import pokemon_service_server_sdk.model
    2         -
import typing
    3         -
    4         -
class InternalServerError(Exception):
    5         -
    message: str
    6         -
    7         -
    def __init__(self, message: str) -> None:
    8         -
        ...
    9         -
   10         -
   11         -
class InvalidPokeballError(Exception):
   12         -
    pokeball: str
   13         -
   14         -
    def __init__(self, pokeball: str) -> None:
   15         -
        ...
   16         -
   17         -
   18         -
class MasterBallUnsuccessful(Exception):
   19         -
    message: typing.Optional[str]
   20         -
   21         -
    def __init__(self, message: typing.Optional[str] = ...) -> None:
   22         -
        ...
   23         -
   24         -
   25         -
class ResourceNotFoundException(Exception):
   26         -
    message: str
   27         -
   28         -
    def __init__(self, message: str) -> None:
   29         -
        ...
   30         -
   31         -
   32         -
class StorageAccessNotAuthorized(Exception):
   33         -
    """
   34         -
    Not authorized to access Pokémon storage.
   35         -
    """
   36         -
   37         -
    def __init__(self) -> None:
   38         -
        ...
   39         -
   40         -
   41         -
class ThrottlingError(Exception):
   42         -
    def __init__(self) -> None:
   43         -
        ...
   44         -
   45         -
   46         -
class UnsupportedRegionError(Exception):
   47         -
    region: str
   48         -
   49         -
    def __init__(self, region: str) -> None:
   50         -
        ...
   51         -
   52         -
   53         -
class ValidationException(Exception):
   54         -
    """
   55         -
    A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
   56         -
    """
   57         -
   58         -
    field_list: typing.Optional[typing.List[pokemon_service_server_sdk.model.ValidationExceptionField]]
   59         -
    """
   60         -
    A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
   61         -
    """
   62         -
   63         -
    message: str
   64         -
    """
   65         -
    A summary of the validation failure.
   66         -
    """
   67         -
   68         -
    def __init__(self, message: str, field_list: typing.Optional[typing.List[pokemon_service_server_sdk.model.ValidationExceptionField]] = ...) -> None:
   69         -
        ...
   70         -

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/input/__init__.pyi

@@ -1,0 +51,0 @@
    1         -
import pokemon_service_server_sdk.model
    2         -
import typing
    3         -
    4         -
class CapturePokemonInput:
    5         -
    events: typing.AsyncIterator[pokemon_service_server_sdk.model.AttemptCapturingPokemonEvent]
    6         -
    7         -
    region: str
    8         -
    9         -
    def __init__(self, events: typing.AsyncIterator[pokemon_service_server_sdk.model.AttemptCapturingPokemonEvent], region: str) -> None:
   10         -
        ...
   11         -
   12         -
   13         -
class CheckHealthInput:
   14         -
    def __init__(self) -> None:
   15         -
        ...
   16         -
   17         -
   18         -
class DoNothingInput:
   19         -
    def __init__(self) -> None:
   20         -
        ...
   21         -
   22         -
   23         -
class GetPokemonSpeciesInput:
   24         -
    name: str
   25         -
   26         -
    def __init__(self, name: str) -> None:
   27         -
        ...
   28         -
   29         -
   30         -
class GetServerStatisticsInput:
   31         -
    def __init__(self) -> None:
   32         -
        ...
   33         -
   34         -
   35         -
class GetStorageInput:
   36         -
    """
   37         -
    A request to access Pokémon storage.
   38         -
    """
   39         -
   40         -
    passcode: str
   41         -
   42         -
    user: str
   43         -
   44         -
    def __init__(self, user: str, passcode: str) -> None:
   45         -
        ...
   46         -
   47         -
   48         -
class StreamPokemonRadioInput:
   49         -
    def __init__(self) -> None:
   50         -
        ...
   51         -

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/logging/__init__.pyi

@@ -1,0 +26,0 @@
    1         -
import pathlib
    2         -
import typing
    3         -
    4         -
class TracingHandler:
    5         -
    """
    6         -
    Modifies the Python `logging` module to deliver its log messages using [tracing::Subscriber] events.
    7         -
    8         -
    To achieve this goal, the following changes are made to the module:
    9         -
    - A new builtin function `logging.py_tracing_event` transcodes `logging.LogRecord`s to `tracing::Event`s. This function
   10         -
      is not exported in `logging.__all__`, as it is not intended to be called directly.
   11         -
    - A new class `logging.TracingHandler` provides a `logging.Handler` that delivers all records to `python_tracing`.
   12         -
    """
   13         -
   14         -
    def handler(self) -> typing.Any:
   15         -
        ...
   16         -
   17         -
   18         -
    def __init__(self, level: typing.Optional[int] = ..., logfile: typing.Optional[pathlib.Path] = ..., format: typing.Optional[typing.Literal['compact', 'pretty', 'json']] = ...) -> None:
   19         -
        ...
   20         -
   21         -
   22         -
def py_tracing_event() -> None:
   23         -
    """
   24         -
    Consumes a Python `logging.LogRecord` and emits a Rust [tracing::Event] instead.
   25         -
    """
   26         -
    ...

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/middleware/__init__.pyi

@@ -1,0 +78,0 @@
    1         -
import typing
    2         -
    3         -
class MiddlewareException(Exception):
    4         -
    """
    5         -
    Exception that can be thrown from a Python middleware.
    6         -
    7         -
    It allows to specify a message and HTTP status code and implementing protocol specific capabilities
    8         -
    to build a [aws_smithy_http_server::response::Response] from it.
    9         -
    """
   10         -
   11         -
    message: str
   12         -
   13         -
    status_code: int
   14         -
   15         -
    def __init__(self, message: str, status_code: typing.Optional[int] = ...) -> None:
   16         -
        ...
   17         -
   18         -
   19         -
class Request:
   20         -
    """
   21         -
    Python-compatible [Request] object.
   22         -
    """
   23         -
   24         -
    body: typing.Awaitable[bytes]
   25         -
    """
   26         -
    Return the HTTP body of this request.
   27         -
    Note that this is a costly operation because the whole request body is cloned.
   28         -
    """
   29         -
   30         -
    headers: typing.MutableMapping[str, str]
   31         -
    """
   32         -
    Return the HTTP headers of this request.
   33         -
    """
   34         -
   35         -
    method: str
   36         -
    """
   37         -
    Return the HTTP method of this request.
   38         -
    """
   39         -
   40         -
    uri: str
   41         -
    """
   42         -
    Return the URI of this request.
   43         -
    """
   44         -
   45         -
    version: str
   46         -
    """
   47         -
    Return the HTTP version of this request.
   48         -
    """
   49         -
   50         -
class Response:
   51         -
    """
   52         -
    Python-compatible [Response] object.
   53         -
    """
   54         -
   55         -
    body: typing.Awaitable[bytes]
   56         -
    """
   57         -
    Return the HTTP body of this response.
   58         -
    Note that this is a costly operation because the whole response body is cloned.
   59         -
    """
   60         -
   61         -
    headers: typing.MutableMapping[str, str]
   62         -
    """
   63         -
    Return the HTTP headers of this response.
   64         -
    """
   65         -
   66         -
    status: int
   67         -
    """
   68         -
    Return the HTTP status of this response.
   69         -
    """
   70         -
   71         -
    version: str
   72         -
    """
   73         -
    Return the HTTP version of this response.
   74         -
    """
   75         -
   76         -
    def __init__(self, status: int, headers: typing.Optional[typing.Dict[str, str]] = ..., body: typing.Optional[bytes] = ...) -> None:
   77         -
        ...
   78         -

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/model/__init__.pyi

@@ -1,0 +141,0 @@
    1         -
import pokemon_service_server_sdk.model
    2         -
import pokemon_service_server_sdk.types
    3         -
import typing
    4         -
    5         -
class AttemptCapturingPokemonEvent:
    6         -
    def as_event(self) -> pokemon_service_server_sdk.model.CapturingEvent:
    7         -
        """
    8         -
        Tries to convert the enum instance into [`Event`](crate::model::AttemptCapturingPokemonEvent::Event), extracting the inner [`CapturingEvent`](crate::model::CapturingEvent).
    9         -
        """
   10         -
        ...
   11         -
   12         -
   13         -
    @staticmethod
   14         -
    def event(data: pokemon_service_server_sdk.model.CapturingEvent) -> AttemptCapturingPokemonEvent:
   15         -
        """
   16         -
        Creates a new union instance of [`Event`](crate::model::AttemptCapturingPokemonEvent::Event)
   17         -
        """
   18         -
        ...
   19         -
   20         -
   21         -
    def is_event(self) -> bool:
   22         -
        """
   23         -
        Returns true if this is a [`Event`](crate::model::AttemptCapturingPokemonEvent::Event).
   24         -
        """
   25         -
        ...
   26         -
   27         -
   28         -
class CaptureEvent:
   29         -
    captured: typing.Optional[bool]
   30         -
   31         -
    name: typing.Optional[str]
   32         -
   33         -
    pokedex_update: typing.Optional[pokemon_service_server_sdk.types.Blob]
   34         -
   35         -
    shiny: typing.Optional[bool]
   36         -
   37         -
    def __init__(self, name: typing.Optional[str] = ..., captured: typing.Optional[bool] = ..., shiny: typing.Optional[bool] = ..., pokedex_update: typing.Optional[pokemon_service_server_sdk.types.Blob] = ...) -> None:
   38         -
        ...
   39         -
   40         -
   41         -
class CapturePokemonEvents:
   42         -
    def as_event(self) -> pokemon_service_server_sdk.model.CaptureEvent:
   43         -
        """
   44         -
        Tries to convert the enum instance into [`Event`](crate::model::CapturePokemonEvents::Event), extracting the inner [`CaptureEvent`](crate::model::CaptureEvent).
   45         -
        """
   46         -
        ...
   47         -
   48         -
   49         -
    @staticmethod
   50         -
    def event(data: pokemon_service_server_sdk.model.CaptureEvent) -> CapturePokemonEvents:
   51         -
        """
   52         -
        Creates a new union instance of [`Event`](crate::model::CapturePokemonEvents::Event)
   53         -
        """
   54         -
        ...
   55         -
   56         -
   57         -
    def is_event(self) -> bool:
   58         -
        """
   59         -
        Returns true if this is a [`Event`](crate::model::CapturePokemonEvents::Event).
   60         -
        """
   61         -
        ...
   62         -
   63         -
   64         -
class CapturingEvent:
   65         -
    payload: typing.Optional[pokemon_service_server_sdk.model.CapturingPayload]
   66         -
   67         -
    def __init__(self, payload: typing.Optional[pokemon_service_server_sdk.model.CapturingPayload] = ...) -> None:
   68         -
        ...
   69         -
   70         -
   71         -
class CapturingPayload:
   72         -
    name: typing.Optional[str]
   73         -
   74         -
    pokeball: typing.Optional[str]
   75         -
   76         -
    def __init__(self, name: typing.Optional[str] = ..., pokeball: typing.Optional[str] = ...) -> None:
   77         -
        ...
   78         -
   79         -
   80         -
class FlavorText:
   81         -
    flavor_text: str
   82         -
    """
   83         -
    The localized flavor text for an API resource in a specific language.
   84         -
    """
   85         -
   86         -
    language: pokemon_service_server_sdk.model.Language
   87         -
    """
   88         -
    The language this name is in.
   89         -
    """
   90         -
   91         -
    def __init__(self, flavor_text: str, language: pokemon_service_server_sdk.model.Language) -> None:
   92         -
        ...
   93         -
   94         -
   95         -
class Language:
   96         -
    """
   97         -
    Supported languages for FlavorText entries.
   98         -
    """
   99         -
  100         -
    English: Language
  101         -
    """
  102         -
    Supported languages for FlavorText entries.
  103         -
    """
  104         -
  105         -
    Italian: Language
  106         -
    """
  107         -
    Supported languages for FlavorText entries.
  108         -
    """
  109         -
  110         -
    Japanese: Language
  111         -
    """
  112         -
    Supported languages for FlavorText entries.
  113         -
    """
  114         -
  115         -
    Spanish: Language
  116         -
    """
  117         -
    Supported languages for FlavorText entries.
  118         -
    """
  119         -
  120         -
    name: typing.Any
  121         -
  122         -
    value: typing.Any
  123         -
  124         -
class ValidationExceptionField:
  125         -
    """
  126         -
    Describes one specific validation failure for an input member.
  127         -
    """
  128         -
  129         -
    message: str
  130         -
    """
  131         -
    A detailed description of the validation failure.
  132         -
    """
  133         -
  134         -
    path: str
  135         -
    """
  136         -
    A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
  137         -
    """
  138         -
  139         -
    def __init__(self, path: str, message: str) -> None:
  140         -
        ...
  141         -

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/output/__init__.pyi

@@ -1,0 +66,0 @@
    1         -
import pokemon_service_server_sdk.model
    2         -
import pokemon_service_server_sdk.types
    3         -
import typing
    4         -
    5         -
class CapturePokemonOutput:
    6         -
    events: typing.AsyncIterator[pokemon_service_server_sdk.model.CapturePokemonEvents]
    7         -
    8         -
    def __init__(self, events: typing.AsyncIterator[pokemon_service_server_sdk.model.CapturePokemonEvents]) -> None:
    9         -
        ...
   10         -
   11         -
   12         -
class CheckHealthOutput:
   13         -
    def __init__(self) -> None:
   14         -
        ...
   15         -
   16         -
   17         -
class DoNothingOutput:
   18         -
    def __init__(self) -> None:
   19         -
        ...
   20         -
   21         -
   22         -
class GetPokemonSpeciesOutput:
   23         -
    flavor_text_entries: typing.List[pokemon_service_server_sdk.model.FlavorText]
   24         -
    """
   25         -
    A list of flavor text entries for this Pokémon species.
   26         -
    """
   27         -
   28         -
    name: str
   29         -
    """
   30         -
    The name for this resource.
   31         -
    """
   32         -
   33         -
    def __init__(self, name: str, flavor_text_entries: typing.List[pokemon_service_server_sdk.model.FlavorText]) -> None:
   34         -
        ...
   35         -
   36         -
   37         -
class GetServerStatisticsOutput:
   38         -
    calls_count: int
   39         -
    """
   40         -
    The number of calls executed by the server.
   41         -
    """
   42         -
   43         -
    def __init__(self, calls_count: int) -> None:
   44         -
        ...
   45         -
   46         -
   47         -
class GetStorageOutput:
   48         -
    """
   49         -
    Contents of the Pokémon storage.
   50         -
    """
   51         -
   52         -
    collection: typing.List[str]
   53         -
    """
   54         -
    A list of Pokémon species.
   55         -
    """
   56         -
   57         -
    def __init__(self, collection: typing.List[str]) -> None:
   58         -
        ...
   59         -
   60         -
   61         -
class StreamPokemonRadioOutput:
   62         -
    data: pokemon_service_server_sdk.types.ByteStream
   63         -
   64         -
    def __init__(self, data: pokemon_service_server_sdk.types.ByteStream) -> None:
   65         -
        ...
   66         -

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/socket/__init__.pyi

@@ -1,0 +27,0 @@
    1         -
import typing
    2         -
    3         -
class PySocket:
    4         -
    """
    5         -
    Socket implementation that can be shared between multiple Python processes.
    6         -
    7         -
    Python cannot handle true multi-threaded applications due to the [GIL],
    8         -
    often resulting in reduced performance and only one core used by the application.
    9         -
    To work around this, Python web applications usually create a socket with
   10         -
    SO_REUSEADDR and SO_REUSEPORT enabled that can be shared between multiple
   11         -
    Python processes, allowing you to maximize performance and use all available
   12         -
    computing capacity of the host.
   13         -
   14         -
    [GIL]: https://wiki.python.org/moin/GlobalInterpreterLock
   15         -
    """
   16         -
   17         -
    def try_clone(self) -> PySocket:
   18         -
        """
   19         -
        Clone the inner socket allowing it to be shared between multiple
   20         -
        Python processes.
   21         -
        """
   22         -
        ...
   23         -
   24         -
   25         -
    def __init__(self, address: str, port: int, backlog: typing.Optional[int] = ...) -> None:
   26         -
        ...
   27         -

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/tls/__init__.pyi

@@ -1,0 +10,0 @@
    1         -
import pathlib
    2         -
    3         -
class TlsConfig:
    4         -
    """
    5         -
    PyTlsConfig represents TLS configuration created from Python.
    6         -
    """
    7         -
    8         -
    def __init__(self, key_path: pathlib.Path, cert_path: pathlib.Path, reload_secs: int = ...) -> None:
    9         -
        ...
   10         -

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/python/pokemon_service_server_sdk/types/__init__.pyi

@@ -1,0 +209,0 @@
    1         -
import typing
    2         -
    3         -
class Blob:
    4         -
    """
    5         -
    Python Wrapper for [aws_smithy_types::Blob].
    6         -
    """
    7         -
    8         -
    data: bytes
    9         -
    """
   10         -
    Python getter for the `Blob` byte array.
   11         -
    """
   12         -
   13         -
    def __init__(self, input: bytes) -> None:
   14         -
        ...
   15         -
   16         -
   17         -
class ByteStream:
   18         -
    """
   19         -
    Python Wrapper for [aws_smithy_types::byte_stream::ByteStream].
   20         -
   21         -
    ByteStream provides misuse-resistant primitives to make it easier to handle common patterns with streaming data.
   22         -
   23         -
    On the Rust side, The Python implementation wraps the original [ByteStream](aws_smithy_types::byte_stream::ByteStream)
   24         -
    in a clonable structure and implements the [Stream](futures::stream::Stream) trait for it to
   25         -
    allow Rust to handle the type transparently.
   26         -
   27         -
    On the Python side both sync and async iterators are exposed by implementing `__iter__()` and `__aiter__()` magic methods,
   28         -
    which allows to just loop over the stream chunks.
   29         -
   30         -
    ### Example of async streaming:
   31         -
   32         -
    ```python
   33         -
        stream = await ByteStream.from_path("/tmp/music.mp3")
   34         -
        async for chunk in stream:
   35         -
            print(chunk)
   36         -
    ```
   37         -
   38         -
    ### Example of sync streaming:
   39         -
   40         -
    ```python
   41         -
        stream = ByteStream.from_stream_blocking("/tmp/music.mp3")
   42         -
        for chunk in stream:
   43         -
            print(chunk)
   44         -
    ```
   45         -
   46         -
    The main difference between the two implementations is that the async one is scheduling the Python coroutines as Rust futures,
   47         -
    effectively maintaining the asyncronous behavior that Rust exposes, while the sync one is blocking the Tokio runtime to be able
   48         -
    to await one chunk at a time.
   49         -
   50         -
    The original Rust [ByteStream](aws_smithy_types::byte_stream::ByteStream) is wrapped inside a `Arc<Mutex>` to allow the type to be
   51         -
    [Clone] (required by PyO3) and to allow internal mutability, required to fetch the next chunk of data.
   52         -
    """
   53         -
   54         -
    @staticmethod
   55         -
    def from_path(path: str) -> typing.Awaitable[ByteStream]:
   56         -
        """
   57         -
        Create a new [ByteStream](aws_smithy_types::byte_stream::ByteStream) from a path, forcing
   58         -
        Python to await this coroutine.
   59         -
        """
   60         -
        ...
   61         -
   62         -
   63         -
    @staticmethod
   64         -
    def from_path_blocking(path: str) -> ByteStream:
   65         -
        """
   66         -
        Create a new [ByteStream](aws_smithy_types::byte_stream::ByteStream) from a path, without
   67         -
        requiring Python to await this method.
   68         -
   69         -
        **NOTE:** This method will block the Rust event loop when it is running.
   70         -
        """
   71         -
        ...
   72         -
   73         -
   74         -
    def __init__(self, input: bytes) -> None:
   75         -
        ...
   76         -
   77         -
   78         -
class DateTime:
   79         -
    """
   80         -
    Python Wrapper for [aws_smithy_types::date_time::DateTime].
   81         -
    """
   82         -
   83         -
    def as_nanos(self) -> int:
   84         -
        """
   85         -
        Returns the number of nanoseconds since the Unix epoch that this `DateTime` represents.
   86         -
        """
   87         -
        ...
   88         -
   89         -
   90         -
    def as_secs_f64(self) -> float:
   91         -
        """
   92         -
        Returns the `DateTime` value as an `f64` representing the seconds since the Unix epoch.
   93         -
        """
   94         -
        ...
   95         -
   96         -
   97         -
    @staticmethod
   98         -
    def from_fractional_secs(epoch_seconds: int, fraction: float) -> DateTime:
   99         -
        """
  100         -
        Creates a `DateTime` from a number of seconds and a fractional second since the Unix epoch.
  101         -
        """
  102         -
        ...
  103         -
  104         -
  105         -
    @staticmethod
  106         -
    def from_millis(epoch_millis: int) -> DateTime:
  107         -
        """
  108         -
        Creates a `DateTime` from a number of milliseconds since the Unix epoch.
  109         -
        """
  110         -
        ...
  111         -
  112         -
  113         -
    @staticmethod
  114         -
    def from_nanos(epoch_nanos: int) -> DateTime:
  115         -
        """
  116         -
        Creates a `DateTime` from a number of nanoseconds since the Unix epoch.
  117         -
        """
  118         -
        ...
  119         -
  120         -
  121         -
    @staticmethod
  122         -
    def from_secs(epoch_seconds: int) -> DateTime:
  123         -
        """
  124         -
        Creates a `DateTime` from a number of seconds since the Unix epoch.
  125         -
        """
  126         -
        ...
  127         -
  128         -
  129         -
    @staticmethod
  130         -
    def from_secs_and_nanos(seconds: int, subsecond_nanos: int) -> DateTime:
  131         -
        """
  132         -
        Creates a `DateTime` from a number of seconds and sub-second nanos since the Unix epoch.
  133         -
        """
  134         -
        ...
  135         -
  136         -
  137         -
    @staticmethod
  138         -
    def from_secs_f64(epoch_seconds: float) -> DateTime:
  139         -
        """
  140         -
        Creates a `DateTime` from an `f64` representing the number of seconds since the Unix epoch.
  141         -
        """
  142         -
        ...
  143         -
  144         -
  145         -
    @staticmethod
  146         -
    def from_str(s: str, format: Format) -> DateTime:
  147         -
        """
  148         -
        Parses a `DateTime` from a string using the given `format`.
  149         -
        """
  150         -
        ...
  151         -
  152         -
  153         -
    def has_subsec_nanos(self) -> bool:
  154         -
        """
  155         -
        Returns true if sub-second nanos is greater than zero.
  156         -
        """
  157         -
        ...
  158         -
  159         -
  160         -
    @staticmethod
  161         -
    def read(format: Format, delim: str) -> typing.Tuple[DateTime, str]:
  162         -
        """
  163         -
        Read 1 date of `format` from `s`, expecting either `delim` or EOF.
  164         -
  165         -
        TODO(PythonTyping): How do we represent `char` in Python?
  166         -
        """
  167         -
        ...
  168         -
  169         -
  170         -
    def secs(self) -> int:
  171         -
        """
  172         -
        Returns the epoch seconds component of the `DateTime`.
  173         -
        """
  174         -
        ...
  175         -
  176         -
  177         -
    def subsec_nanos(self) -> int:
  178         -
        """
  179         -
        Returns the sub-second nanos component of the `DateTime`.
  180         -
        """
  181         -
        ...
  182         -
  183         -
  184         -
    def to_millis(self) -> int:
  185         -
        """
  186         -
        Converts the `DateTime` to the number of milliseconds since the Unix epoch.
  187         -
        """
  188         -
        ...
  189         -
  190         -
  191         -
class Format:
  192         -
    """
  193         -
    Formats for representing a `DateTime` in the Smithy protocols.
  194         -
    """
  195         -
  196         -
    DateTime: Format
  197         -
    """
  198         -
    Formats for representing a `DateTime` in the Smithy protocols.
  199         -
    """
  200         -
  201         -
    EpochSeconds: Format
  202         -
    """
  203         -
    Formats for representing a `DateTime` in the Smithy protocols.
  204         -
    """
  205         -
  206         -
    HttpDate: Format
  207         -
    """
  208         -
    Formats for representing a `DateTime` in the Smithy protocols.
  209         -
    """

tmp-codegen-diff/codegen-server-test-python/rest_json/rust-server-codegen-python/python/rest_json/__init__.pyi

@@ -1,0 +1435,0 @@
    1         -
import rest_json.input
    2         -
import rest_json.middleware
    3         -
import rest_json.output
    4         -
import rest_json.tls
    5         -
import typing
    6         -
    7         -
Ctx = typing.TypeVar('Ctx')
    8         -
    9         -
class App(typing.Generic[Ctx]):
   10         -
    """
   11         -
    Main Python application, used to register operations and context and start multiple
   12         -
    workers on the same shared socket.
   13         -
   14         -
    Operations can be registered using the application object as a decorator (`@app.operation_name`).
   15         -
   16         -
    Here's a full example to get you started:
   17         -
   18         -
    ```python
   19         -
    from rest_json import input
   20         -
    from rest_json import output
   21         -
    from rest_json import error
   22         -
    from rest_json import middleware
   23         -
    from rest_json import App
   24         -
   25         -
    @dataclass
   26         -
    class Context:
   27         -
        counter: int = 0
   28         -
   29         -
    app = App()
   30         -
    app.context(Context())
   31         -
   32         -
    @app.request_middleware
   33         -
    def request_middleware(request: middleware::Request):
   34         -
        if request.get_header("x-amzn-id") != "secret":
   35         -
            raise middleware.MiddlewareException("Unsupported `x-amz-id` header", 401)
   36         -
   37         -
    # This example uses all query string types.
   38         -
    @app.all_query_string_types
   39         -
    def all_query_string_types(input: input::AllQueryStringTypesInput, ctx: Context) -> output::AllQueryStringTypesOutput:
   40         -
        raise NotImplementedError
   41         -
   42         -
    # This example uses fixed query string params and variable query string params.
   43         -
    # The fixed query string parameters and variable parameters must both be
   44         -
    # serialized (implementations may need to merge them together).
   45         -
    @app.constant_and_variable_query_string
   46         -
    def constant_and_variable_query_string(input: input::ConstantAndVariableQueryStringInput, ctx: Context) -> output::ConstantAndVariableQueryStringOutput:
   47         -
        raise NotImplementedError
   48         -
   49         -
    # This example uses a constant query string parameters and a label.
   50         -
    # This simply tests that labels and query string parameters are
   51         -
    # compatible. The fixed query string parameter named "hello" should
   52         -
    # in no way conflict with the label, `{hello}`.
   53         -
    @app.constant_query_string
   54         -
    def constant_query_string(input: input::ConstantQueryStringInput, ctx: Context) -> output::ConstantQueryStringOutput:
   55         -
        raise NotImplementedError
   56         -
   57         -
    # The example tests how servers must support requests
   58         -
    # containing a `Content-Type` header with parameters.
   59         -
    @app.content_type_parameters
   60         -
    def content_type_parameters(input: input::ContentTypeParametersInput, ctx: Context) -> output::ContentTypeParametersOutput:
   61         -
        raise NotImplementedError
   62         -
   63         -
    @app.datetime_offsets
   64         -
    def datetime_offsets(input: input::DatetimeOffsetsInput, ctx: Context) -> output::DatetimeOffsetsOutput:
   65         -
        raise NotImplementedError
   66         -
   67         -
    # This example serializes a document as part of the payload.
   68         -
    @app.document_type
   69         -
    def document_type(input: input::DocumentTypeInput, ctx: Context) -> output::DocumentTypeOutput:
   70         -
        raise NotImplementedError
   71         -
   72         -
    # This example serializes documents as the value of maps.
   73         -
    @app.document_type_as_map_value
   74         -
    def document_type_as_map_value(input: input::DocumentTypeAsMapValueInput, ctx: Context) -> output::DocumentTypeAsMapValueOutput:
   75         -
        raise NotImplementedError
   76         -
   77         -
    # This example serializes a document as the entire HTTP payload.
   78         -
    @app.document_type_as_payload
   79         -
    def document_type_as_payload(input: input::DocumentTypeAsPayloadInput, ctx: Context) -> output::DocumentTypeAsPayloadOutput:
   80         -
        raise NotImplementedError
   81         -
   82         -
    # The example tests how requests and responses are serialized when there's
   83         -
    # no request or response payload because the operation has an empty input
   84         -
    # and empty output structure that reuses the same shape. While this should
   85         -
    # be rare, code generators must support this.
   86         -
    @app.empty_input_and_empty_output
   87         -
    def empty_input_and_empty_output(input: input::EmptyInputAndEmptyOutputInput, ctx: Context) -> output::EmptyInputAndEmptyOutputOutput:
   88         -
        raise NotImplementedError
   89         -
   90         -
    @app.endpoint_operation
   91         -
    def endpoint_operation(input: input::EndpointOperationInput, ctx: Context) -> output::EndpointOperationOutput:
   92         -
        raise NotImplementedError
   93         -
   94         -
    @app.endpoint_with_host_label_operation
   95         -
    def endpoint_with_host_label_operation(input: input::EndpointWithHostLabelOperationInput, ctx: Context) -> output::EndpointWithHostLabelOperationOutput:
   96         -
        raise NotImplementedError
   97         -
   98         -
    @app.fractional_seconds
   99         -
    def fractional_seconds(input: input::FractionalSecondsInput, ctx: Context) -> output::FractionalSecondsOutput:
  100         -
        raise NotImplementedError
  101         -
  102         -
    # This operation has four possible return values:
  103         -
    #
  104         -
    # 1. A successful response in the form of GreetingWithErrorsOutput
  105         -
    # 2. An InvalidGreeting error.
  106         -
    # 3. A BadRequest error.
  107         -
    # 4. A FooError.
  108         -
    #
  109         -
    # Implementations must be able to successfully take a response and
  110         -
    # properly (de)serialize successful and error responses based on the
  111         -
    # the presence of the
  112         -
    @app.greeting_with_errors
  113         -
    def greeting_with_errors(input: input::GreetingWithErrorsInput, ctx: Context) -> output::GreetingWithErrorsOutput:
  114         -
        raise NotImplementedError
  115         -
  116         -
    @app.host_with_path_operation
  117         -
    def host_with_path_operation(input: input::HostWithPathOperationInput, ctx: Context) -> output::HostWithPathOperationOutput:
  118         -
        raise NotImplementedError
  119         -
  120         -
    # This example tests httpChecksumRequired trait
  121         -
    @app.http_checksum_required
  122         -
    def http_checksum_required(input: input::HttpChecksumRequiredInput, ctx: Context) -> output::HttpChecksumRequiredOutput:
  123         -
        raise NotImplementedError
  124         -
  125         -
    @app.http_enum_payload
  126         -
    def http_enum_payload(input: input::HttpEnumPayloadInput, ctx: Context) -> output::HttpEnumPayloadOutput:
  127         -
        raise NotImplementedError
  128         -
  129         -
    # This example serializes a blob shape in the payload.
  130         -
    #
  131         -
    # In this example, no JSON document is synthesized because the payload is
  132         -
    # not a structure or a union type.
  133         -
    @app.http_payload_traits
  134         -
    def http_payload_traits(input: input::HttpPayloadTraitsInput, ctx: Context) -> output::HttpPayloadTraitsOutput:
  135         -
        raise NotImplementedError
  136         -
  137         -
    # This example uses a `@mediaType` trait on the payload to force a custom
  138         -
    # content-type to be serialized.
  139         -
    @app.http_payload_traits_with_media_type
  140         -
    def http_payload_traits_with_media_type(input: input::HttpPayloadTraitsWithMediaTypeInput, ctx: Context) -> output::HttpPayloadTraitsWithMediaTypeOutput:
  141         -
        raise NotImplementedError
  142         -
  143         -
    # This example serializes a structure in the payload.
  144         -
    #
  145         -
    # Note that serializing a structure changes the wrapper element name
  146         -
    # to match the targeted structure.
  147         -
    @app.http_payload_with_structure
  148         -
    def http_payload_with_structure(input: input::HttpPayloadWithStructureInput, ctx: Context) -> output::HttpPayloadWithStructureOutput:
  149         -
        raise NotImplementedError
  150         -
  151         -
    # This example serializes a union in the payload.
  152         -
    @app.http_payload_with_union
  153         -
    def http_payload_with_union(input: input::HttpPayloadWithUnionInput, ctx: Context) -> output::HttpPayloadWithUnionOutput:
  154         -
        raise NotImplementedError
  155         -
  156         -
    # This examples adds headers to the input of a request and response by prefix.
  157         -
    @app.http_prefix_headers
  158         -
    def http_prefix_headers(input: input::HttpPrefixHeadersInput, ctx: Context) -> output::HttpPrefixHeadersOutput:
  159         -
        raise NotImplementedError
  160         -
  161         -
    # Clients that perform this test extract all headers from the response.
  162         -
    @app.http_prefix_headers_in_response
  163         -
    def http_prefix_headers_in_response(input: input::HttpPrefixHeadersInResponseInput, ctx: Context) -> output::HttpPrefixHeadersInResponseOutput:
  164         -
        raise NotImplementedError
  165         -
  166         -
    @app.http_request_with_float_labels
  167         -
    def http_request_with_float_labels(input: input::HttpRequestWithFloatLabelsInput, ctx: Context) -> output::HttpRequestWithFloatLabelsOutput:
  168         -
        raise NotImplementedError
  169         -
  170         -
    @app.http_request_with_greedy_label_in_path
  171         -
    def http_request_with_greedy_label_in_path(input: input::HttpRequestWithGreedyLabelInPathInput, ctx: Context) -> output::HttpRequestWithGreedyLabelInPathOutput:
  172         -
        raise NotImplementedError
  173         -
  174         -
    # The example tests how requests are serialized when there's no input
  175         -
    # payload but there are HTTP labels.
  176         -
    @app.http_request_with_labels
  177         -
    def http_request_with_labels(input: input::HttpRequestWithLabelsInput, ctx: Context) -> output::HttpRequestWithLabelsOutput:
  178         -
        raise NotImplementedError
  179         -
  180         -
    # The example tests how requests serialize different timestamp formats in the
  181         -
    # URI path.
  182         -
    @app.http_request_with_labels_and_timestamp_format
  183         -
    def http_request_with_labels_and_timestamp_format(input: input::HttpRequestWithLabelsAndTimestampFormatInput, ctx: Context) -> output::HttpRequestWithLabelsAndTimestampFormatOutput:
  184         -
        raise NotImplementedError
  185         -
  186         -
    @app.http_request_with_regex_literal
  187         -
    def http_request_with_regex_literal(input: input::HttpRequestWithRegexLiteralInput, ctx: Context) -> output::HttpRequestWithRegexLiteralOutput:
  188         -
        raise NotImplementedError
  189         -
  190         -
    @app.http_response_code
  191         -
    def http_response_code(input: input::HttpResponseCodeInput, ctx: Context) -> output::HttpResponseCodeOutput:
  192         -
        raise NotImplementedError
  193         -
  194         -
    @app.http_string_payload
  195         -
    def http_string_payload(input: input::HttpStringPayloadInput, ctx: Context) -> output::HttpStringPayloadOutput:
  196         -
        raise NotImplementedError
  197         -
  198         -
    # This example ensures that query string bound request parameters are
  199         -
    # serialized in the body of responses if the structure is used in both
  200         -
    # the request and response.
  201         -
    @app.ignore_query_params_in_response
  202         -
    def ignore_query_params_in_response(input: input::IgnoreQueryParamsInResponseInput, ctx: Context) -> output::IgnoreQueryParamsInResponseOutput:
  203         -
        raise NotImplementedError
  204         -
  205         -
    # The example tests how requests and responses are serialized when there is
  206         -
    # no input or output payload but there are HTTP header bindings.
  207         -
    @app.input_and_output_with_headers
  208         -
    def input_and_output_with_headers(input: input::InputAndOutputWithHeadersInput, ctx: Context) -> output::InputAndOutputWithHeadersOutput:
  209         -
        raise NotImplementedError
  210         -
  211         -
    # Blobs are base64 encoded
  212         -
    @app.json_blobs
  213         -
    def json_blobs(input: input::JsonBlobsInput, ctx: Context) -> output::JsonBlobsOutput:
  214         -
        raise NotImplementedError
  215         -
  216         -
    # This example serializes enums as top level properties, in lists, sets, and maps.
  217         -
    @app.json_enums
  218         -
    def json_enums(input: input::JsonEnumsInput, ctx: Context) -> output::JsonEnumsOutput:
  219         -
        raise NotImplementedError
  220         -
  221         -
    # This example serializes intEnums as top level properties, in lists, sets, and maps.
  222         -
    @app.json_int_enums
  223         -
    def json_int_enums(input: input::JsonIntEnumsInput, ctx: Context) -> output::JsonIntEnumsOutput:
  224         -
        raise NotImplementedError
  225         -
  226         -
    # This test case serializes JSON lists for the following cases for both
  227         -
    # input and output:
  228         -
    #
  229         -
    # 1. Normal JSON lists.
  230         -
    # 2. Normal JSON sets.
  231         -
    # 3. JSON lists of lists.
  232         -
    # 4. Lists of structures.
  233         -
    @app.json_lists
  234         -
    def json_lists(input: input::JsonListsInput, ctx: Context) -> output::JsonListsOutput:
  235         -
        raise NotImplementedError
  236         -
  237         -
    # The example tests basic map serialization.
  238         -
    @app.json_maps
  239         -
    def json_maps(input: input::JsonMapsInput, ctx: Context) -> output::JsonMapsOutput:
  240         -
        raise NotImplementedError
  241         -
  242         -
    # This tests how timestamps are serialized, including using the
  243         -
    # default format of date-time and various @timestampFormat trait
  244         -
    # values.
  245         -
    @app.json_timestamps
  246         -
    def json_timestamps(input: input::JsonTimestampsInput, ctx: Context) -> output::JsonTimestampsOutput:
  247         -
        raise NotImplementedError
  248         -
  249         -
    # This operation uses unions for inputs and outputs.
  250         -
    @app.json_unions
  251         -
    def json_unions(input: input::JsonUnionsInput, ctx: Context) -> output::JsonUnionsOutput:
  252         -
        raise NotImplementedError
  253         -
  254         -
    @app.malformed_accept_with_body
  255         -
    def malformed_accept_with_body(input: input::MalformedAcceptWithBodyInput, ctx: Context) -> output::MalformedAcceptWithBodyOutput:
  256         -
        raise NotImplementedError
  257         -
  258         -
    @app.malformed_accept_with_generic_string
  259         -
    def malformed_accept_with_generic_string(input: input::MalformedAcceptWithGenericStringInput, ctx: Context) -> output::MalformedAcceptWithGenericStringOutput:
  260         -
        raise NotImplementedError
  261         -
  262         -
    @app.malformed_accept_with_payload
  263         -
    def malformed_accept_with_payload(input: input::MalformedAcceptWithPayloadInput, ctx: Context) -> output::MalformedAcceptWithPayloadOutput:
  264         -
        raise NotImplementedError
  265         -
  266         -
    @app.malformed_blob
  267         -
    def malformed_blob(input: input::MalformedBlobInput, ctx: Context) -> output::MalformedBlobOutput:
  268         -
        raise NotImplementedError
  269         -
  270         -
    @app.malformed_boolean
  271         -
    def malformed_boolean(input: input::MalformedBooleanInput, ctx: Context) -> output::MalformedBooleanOutput:
  272         -
        raise NotImplementedError
  273         -
  274         -
    @app.malformed_byte
  275         -
    def malformed_byte(input: input::MalformedByteInput, ctx: Context) -> output::MalformedByteOutput:
  276         -
        raise NotImplementedError
  277         -
  278         -
    @app.malformed_content_type_with_body
  279         -
    def malformed_content_type_with_body(input: input::MalformedContentTypeWithBodyInput, ctx: Context) -> output::MalformedContentTypeWithBodyOutput:
  280         -
        raise NotImplementedError
  281         -
  282         -
    @app.malformed_content_type_with_generic_string
  283         -
    def malformed_content_type_with_generic_string(input: input::MalformedContentTypeWithGenericStringInput, ctx: Context) -> output::MalformedContentTypeWithGenericStringOutput:
  284         -
        raise NotImplementedError
  285         -
  286         -
    @app.malformed_content_type_without_body
  287         -
    def malformed_content_type_without_body(input: input::MalformedContentTypeWithoutBodyInput, ctx: Context) -> output::MalformedContentTypeWithoutBodyOutput:
  288         -
        raise NotImplementedError
  289         -
  290         -
    @app.malformed_content_type_with_payload
  291         -
    def malformed_content_type_with_payload(input: input::MalformedContentTypeWithPayloadInput, ctx: Context) -> output::MalformedContentTypeWithPayloadOutput:
  292         -
        raise NotImplementedError
  293         -
  294         -
    @app.malformed_double
  295         -
    def malformed_double(input: input::MalformedDoubleInput, ctx: Context) -> output::MalformedDoubleOutput:
  296         -
        raise NotImplementedError
  297         -
  298         -
    @app.malformed_float
  299         -
    def malformed_float(input: input::MalformedFloatInput, ctx: Context) -> output::MalformedFloatOutput:
  300         -
        raise NotImplementedError
  301         -
  302         -
    @app.malformed_integer
  303         -
    def malformed_integer(input: input::MalformedIntegerInput, ctx: Context) -> output::MalformedIntegerOutput:
  304         -
        raise NotImplementedError
  305         -
  306         -
    @app.malformed_list
  307         -
    def malformed_list(input: input::MalformedListInput, ctx: Context) -> output::MalformedListOutput:
  308         -
        raise NotImplementedError
  309         -
  310         -
    @app.malformed_long
  311         -
    def malformed_long(input: input::MalformedLongInput, ctx: Context) -> output::MalformedLongOutput:
  312         -
        raise NotImplementedError
  313         -
  314         -
    @app.malformed_map
  315         -
    def malformed_map(input: input::MalformedMapInput, ctx: Context) -> output::MalformedMapOutput:
  316         -
        raise NotImplementedError
  317         -
  318         -
    @app.malformed_request_body
  319         -
    def malformed_request_body(input: input::MalformedRequestBodyInput, ctx: Context) -> output::MalformedRequestBodyOutput:
  320         -
        raise NotImplementedError
  321         -
  322         -
    @app.malformed_short
  323         -
    def malformed_short(input: input::MalformedShortInput, ctx: Context) -> output::MalformedShortOutput:
  324         -
        raise NotImplementedError
  325         -
  326         -
    @app.malformed_string
  327         -
    def malformed_string(input: input::MalformedStringInput, ctx: Context) -> output::MalformedStringOutput:
  328         -
        raise NotImplementedError
  329         -
  330         -
    @app.malformed_timestamp_body_date_time
  331         -
    def malformed_timestamp_body_date_time(input: input::MalformedTimestampBodyDateTimeInput, ctx: Context) -> output::MalformedTimestampBodyDateTimeOutput:
  332         -
        raise NotImplementedError
  333         -
  334         -
    @app.malformed_timestamp_body_default
  335         -
    def malformed_timestamp_body_default(input: input::MalformedTimestampBodyDefaultInput, ctx: Context) -> output::MalformedTimestampBodyDefaultOutput:
  336         -
        raise NotImplementedError
  337         -
  338         -
    @app.malformed_timestamp_body_http_date
  339         -
    def malformed_timestamp_body_http_date(input: input::MalformedTimestampBodyHttpDateInput, ctx: Context) -> output::MalformedTimestampBodyHttpDateOutput:
  340         -
        raise NotImplementedError
  341         -
  342         -
    @app.malformed_timestamp_header_date_time
  343         -
    def malformed_timestamp_header_date_time(input: input::MalformedTimestampHeaderDateTimeInput, ctx: Context) -> output::MalformedTimestampHeaderDateTimeOutput:
  344         -
        raise NotImplementedError
  345         -
  346         -
    @app.malformed_timestamp_header_default
  347         -
    def malformed_timestamp_header_default(input: input::MalformedTimestampHeaderDefaultInput, ctx: Context) -> output::MalformedTimestampHeaderDefaultOutput:
  348         -
        raise NotImplementedError
  349         -
  350         -
    @app.malformed_timestamp_header_epoch
  351         -
    def malformed_timestamp_header_epoch(input: input::MalformedTimestampHeaderEpochInput, ctx: Context) -> output::MalformedTimestampHeaderEpochOutput:
  352         -
        raise NotImplementedError
  353         -
  354         -
    @app.malformed_timestamp_path_default
  355         -
    def malformed_timestamp_path_default(input: input::MalformedTimestampPathDefaultInput, ctx: Context) -> output::MalformedTimestampPathDefaultOutput:
  356         -
        raise NotImplementedError
  357         -
  358         -
    @app.malformed_timestamp_path_epoch
  359         -
    def malformed_timestamp_path_epoch(input: input::MalformedTimestampPathEpochInput, ctx: Context) -> output::MalformedTimestampPathEpochOutput:
  360         -
        raise NotImplementedError
  361         -
  362         -
    @app.malformed_timestamp_path_http_date
  363         -
    def malformed_timestamp_path_http_date(input: input::MalformedTimestampPathHttpDateInput, ctx: Context) -> output::MalformedTimestampPathHttpDateOutput:
  364         -
        raise NotImplementedError
  365         -
  366         -
    @app.malformed_timestamp_query_default
  367         -
    def malformed_timestamp_query_default(input: input::MalformedTimestampQueryDefaultInput, ctx: Context) -> output::MalformedTimestampQueryDefaultOutput:
  368         -
        raise NotImplementedError
  369         -
  370         -
    @app.malformed_timestamp_query_epoch
  371         -
    def malformed_timestamp_query_epoch(input: input::MalformedTimestampQueryEpochInput, ctx: Context) -> output::MalformedTimestampQueryEpochOutput:
  372         -
        raise NotImplementedError
  373         -
  374         -
    @app.malformed_timestamp_query_http_date
  375         -
    def malformed_timestamp_query_http_date(input: input::MalformedTimestampQueryHttpDateInput, ctx: Context) -> output::MalformedTimestampQueryHttpDateOutput:
  376         -
        raise NotImplementedError
  377         -
  378         -
    @app.malformed_union
  379         -
    def malformed_union(input: input::MalformedUnionInput, ctx: Context) -> output::MalformedUnionOutput:
  380         -
        raise NotImplementedError
  381         -
  382         -
    # This example ensures that mediaType strings are base64 encoded in headers.
  383         -
    @app.media_type_header
  384         -
    def media_type_header(input: input::MediaTypeHeaderInput, ctx: Context) -> output::MediaTypeHeaderOutput:
  385         -
        raise NotImplementedError
  386         -
  387         -
    # The example tests how requests and responses are serialized when there's
  388         -
    # no request or response payload because the operation has no input or output.
  389         -
    # While this should be rare, code generators must support this.
  390         -
    @app.no_input_and_no_output
  391         -
    def no_input_and_no_output(input: input::NoInputAndNoOutputInput, ctx: Context) -> output::NoInputAndNoOutputOutput:
  392         -
        raise NotImplementedError
  393         -
  394         -
    # The example tests how requests and responses are serialized when there's
  395         -
    # no request or response payload because the operation has no input and the
  396         -
    # output is empty. While this should be rare, code generators must support
  397         -
    # this.
  398         -
    @app.no_input_and_output
  399         -
    def no_input_and_output(input: input::NoInputAndOutputInput, ctx: Context) -> output::NoInputAndOutputOutput:
  400         -
        raise NotImplementedError
  401         -
  402         -
    # Null and empty headers are not sent over the wire.
  403         -
    @app.null_and_empty_headers_client
  404         -
    def null_and_empty_headers_client(input: input::NullAndEmptyHeadersClientInput, ctx: Context) -> output::NullAndEmptyHeadersClientOutput:
  405         -
        raise NotImplementedError
  406         -
  407         -
    # Null and empty headers are not sent over the wire.
  408         -
    @app.null_and_empty_headers_server
  409         -
    def null_and_empty_headers_server(input: input::NullAndEmptyHeadersServerInput, ctx: Context) -> output::NullAndEmptyHeadersServerOutput:
  410         -
        raise NotImplementedError
  411         -
  412         -
    # Omits null, but serializes empty string value.
  413         -
    @app.omits_null_serializes_empty_string
  414         -
    def omits_null_serializes_empty_string(input: input::OmitsNullSerializesEmptyStringInput, ctx: Context) -> output::OmitsNullSerializesEmptyStringOutput:
  415         -
        raise NotImplementedError
  416         -
  417         -
    # Omits serializing empty lists. Because empty strings are serilized as
  418         -
    # `Foo=`, empty lists cannot also be serialized as `Foo=` and instead
  419         -
    # must be omitted.
  420         -
    @app.omits_serializing_empty_lists
  421         -
    def omits_serializing_empty_lists(input: input::OmitsSerializingEmptyListsInput, ctx: Context) -> output::OmitsSerializingEmptyListsOutput:
  422         -
        raise NotImplementedError
  423         -
  424         -
    @app.operation_with_defaults
  425         -
    def operation_with_defaults(input: input::OperationWithDefaultsInput, ctx: Context) -> output::OperationWithDefaultsOutput:
  426         -
        raise NotImplementedError
  427         -
  428         -
    @app.operation_with_nested_structure
  429         -
    def operation_with_nested_structure(input: input::OperationWithNestedStructureInput, ctx: Context) -> output::OperationWithNestedStructureOutput:
  430         -
        raise NotImplementedError
  431         -
  432         -
    # This operation defines a union with a Unit member.
  433         -
    @app.post_player_action
  434         -
    def post_player_action(input: input::PostPlayerActionInput, ctx: Context) -> output::PostPlayerActionOutput:
  435         -
        raise NotImplementedError
  436         -
  437         -
    # This operation defines a union that uses jsonName on some members.
  438         -
    @app.post_union_with_json_name
  439         -
    def post_union_with_json_name(input: input::PostUnionWithJsonNameInput, ctx: Context) -> output::PostUnionWithJsonNameOutput:
  440         -
        raise NotImplementedError
  441         -
  442         -
    @app.put_with_content_encoding
  443         -
    def put_with_content_encoding(input: input::PutWithContentEncodingInput, ctx: Context) -> output::PutWithContentEncodingOutput:
  444         -
        raise NotImplementedError
  445         -
  446         -
    # Automatically adds idempotency tokens.
  447         -
    @app.query_idempotency_token_auto_fill
  448         -
    def query_idempotency_token_auto_fill(input: input::QueryIdempotencyTokenAutoFillInput, ctx: Context) -> output::QueryIdempotencyTokenAutoFillOutput:
  449         -
        raise NotImplementedError
  450         -
  451         -
    @app.query_params_as_string_list_map
  452         -
    def query_params_as_string_list_map(input: input::QueryParamsAsStringListMapInput, ctx: Context) -> output::QueryParamsAsStringListMapOutput:
  453         -
        raise NotImplementedError
  454         -
  455         -
    @app.query_precedence
  456         -
    def query_precedence(input: input::QueryPrecedenceInput, ctx: Context) -> output::QueryPrecedenceOutput:
  457         -
        raise NotImplementedError
  458         -
  459         -
    # Recursive shapes
  460         -
    @app.recursive_shapes
  461         -
    def recursive_shapes(input: input::RecursiveShapesInput, ctx: Context) -> output::RecursiveShapesOutput:
  462         -
        raise NotImplementedError
  463         -
  464         -
    @app.simple_scalar_properties
  465         -
    def simple_scalar_properties(input: input::SimpleScalarPropertiesInput, ctx: Context) -> output::SimpleScalarPropertiesOutput:
  466         -
        raise NotImplementedError
  467         -
  468         -
    @app.sparse_json_lists
  469         -
    def sparse_json_lists(input: input::SparseJsonListsInput, ctx: Context) -> output::SparseJsonListsOutput:
  470         -
        raise NotImplementedError
  471         -
  472         -
    # This example tests sparse map serialization.
  473         -
    @app.sparse_json_maps
  474         -
    def sparse_json_maps(input: input::SparseJsonMapsInput, ctx: Context) -> output::SparseJsonMapsOutput:
  475         -
        raise NotImplementedError
  476         -
  477         -
    # This examples serializes a streaming blob shape in the request body.
  478         -
    #
  479         -
    # In this example, no JSON document is synthesized because the payload is
  480         -
    # not a structure or a union type.
  481         -
    @app.streaming_traits
  482         -
    def streaming_traits(input: input::StreamingTraitsInput, ctx: Context) -> output::StreamingTraitsOutput:
  483         -
        raise NotImplementedError
  484         -
  485         -
    # This examples serializes a streaming blob shape with a required content
  486         -
    # length in the request body.
  487         -
    #
  488         -
    # In this example, no JSON document is synthesized because the payload is
  489         -
    # not a structure or a union type.
  490         -
    @app.streaming_traits_require_length
  491         -
    def streaming_traits_require_length(input: input::StreamingTraitsRequireLengthInput, ctx: Context) -> output::StreamingTraitsRequireLengthOutput:
  492         -
        raise NotImplementedError
  493         -
  494         -
    # This examples serializes a streaming media-typed blob shape in the request body.
  495         -
    #
  496         -
    # This examples uses a `@mediaType` trait on the payload to force a custom
  497         -
    # content-type to be serialized.
  498         -
    @app.streaming_traits_with_media_type
  499         -
    def streaming_traits_with_media_type(input: input::StreamingTraitsWithMediaTypeInput, ctx: Context) -> output::StreamingTraitsWithMediaTypeOutput:
  500         -
        raise NotImplementedError
  501         -
  502         -
    # This example operation serializes a structure in the HTTP body.
  503         -
    #
  504         -
    # It should ensure Content-Type: application/json is
  505         -
    # used in all requests and that an "empty" body is
  506         -
    # an empty JSON document ({}).
  507         -
    #
  508         -
    @app.test_body_structure
  509         -
    def test_body_structure(input: input::TestBodyStructureInput, ctx: Context) -> output::TestBodyStructureOutput:
  510         -
        raise NotImplementedError
  511         -
  512         -
    # This example GET operation has no input and serializes a request without a HTTP body.
  513         -
    #
  514         -
    # These tests are to ensure we do not attach a body or related headers
  515         -
    # (Content-Length, Content-Type) to operations that semantically
  516         -
    # cannot produce an HTTP body.
  517         -
    #
  518         -
    @app.test_get_no_input_no_payload
  519         -
    def test_get_no_input_no_payload(input: input::TestGetNoInputNoPayloadInput, ctx: Context) -> output::TestGetNoInputNoPayloadOutput:
  520         -
        raise NotImplementedError
  521         -
  522         -
    # This example GET operation serializes a request without a modeled HTTP body.
  523         -
    #
  524         -
    # These tests are to ensure we do not attach a body or related headers
  525         -
    # (Content-Length, Content-Type) to operations that semantically
  526         -
    # cannot produce an HTTP body.
  527         -
    #
  528         -
    @app.test_get_no_payload
  529         -
    def test_get_no_payload(input: input::TestGetNoPayloadInput, ctx: Context) -> output::TestGetNoPayloadOutput:
  530         -
        raise NotImplementedError
  531         -
  532         -
    # This example operation serializes a payload targeting a blob.
  533         -
    #
  534         -
    # The Blob shape is not structured content and we cannot
  535         -
    # make assumptions about what data will be sent. This test ensures
  536         -
    # only a generic "Content-Type: application/octet-stream" header
  537         -
    # is used, and that we are not treating an empty body as an
  538         -
    # empty JSON document.
  539         -
    #
  540         -
    @app.test_payload_blob
  541         -
    def test_payload_blob(input: input::TestPayloadBlobInput, ctx: Context) -> output::TestPayloadBlobOutput:
  542         -
        raise NotImplementedError
  543         -
  544         -
    # This example operation serializes a payload targeting a structure.
  545         -
    #
  546         -
    # This enforces the same requirements as TestBodyStructure
  547         -
    # but with the body specified by the @httpPayload trait.
  548         -
    #
  549         -
    @app.test_payload_structure
  550         -
    def test_payload_structure(input: input::TestPayloadStructureInput, ctx: Context) -> output::TestPayloadStructureOutput:
  551         -
        raise NotImplementedError
  552         -
  553         -
    # This example POST operation has no input and serializes a request without a HTTP body.
  554         -
    #
  555         -
    # These tests are to ensure we do not attach a body or related headers
  556         -
    # (Content-Type) to a POST operation with no modeled input.
  557         -
    #
  558         -
    @app.test_post_no_input_no_payload
  559         -
    def test_post_no_input_no_payload(input: input::TestPostNoInputNoPayloadInput, ctx: Context) -> output::TestPostNoInputNoPayloadOutput:
  560         -
        raise NotImplementedError
  561         -
  562         -
    # This example POST operation serializes a request without a modeled HTTP body.
  563         -
    #
  564         -
    # These tests are to ensure we do not attach a body or related headers
  565         -
    # (Content-Type) to a POST operation with no modeled payload.
  566         -
    #
  567         -
    @app.test_post_no_payload
  568         -
    def test_post_no_payload(input: input::TestPostNoPayloadInput, ctx: Context) -> output::TestPostNoPayloadOutput:
  569         -
        raise NotImplementedError
  570         -
  571         -
    # This example tests how timestamp request and response headers are serialized.
  572         -
    @app.timestamp_format_headers
  573         -
    def timestamp_format_headers(input: input::TimestampFormatHeadersInput, ctx: Context) -> output::TimestampFormatHeadersOutput:
  574         -
        raise NotImplementedError
  575         -
  576         -
    # This test is similar to NoInputAndNoOutput, but uses explicit Unit types.
  577         -
    @app.unit_input_and_output
  578         -
    def unit_input_and_output(input: input::UnitInputAndOutputInput, ctx: Context) -> output::UnitInputAndOutputOutput:
  579         -
        raise NotImplementedError
  580         -
  581         -
    app.run()
  582         -
    ```
  583         -
  584         -
    Any of operations above can be written as well prepending the `async` keyword and
  585         -
    the Python application will automatically handle it and schedule it on the event loop for you.
  586         -
    """
  587         -
  588         -
    def all_query_string_types(self, func: typing.Union[typing.Callable[[rest_json.input.AllQueryStringTypesInput, Ctx], typing.Union[rest_json.output.AllQueryStringTypesOutput, typing.Awaitable[rest_json.output.AllQueryStringTypesOutput]]], typing.Callable[[rest_json.input.AllQueryStringTypesInput], typing.Union[rest_json.output.AllQueryStringTypesOutput, typing.Awaitable[rest_json.output.AllQueryStringTypesOutput]]]]) -> None:
  589         -
        """
  590         -
        Method to register `all_query_string_types` Python implementation inside the handlers map.
  591         -
        It can be used as a function decorator in Python.
  592         -
        """
  593         -
        ...
  594         -
  595         -
  596         -
    def constant_and_variable_query_string(self, func: typing.Union[typing.Callable[[rest_json.input.ConstantAndVariableQueryStringInput, Ctx], typing.Union[rest_json.output.ConstantAndVariableQueryStringOutput, typing.Awaitable[rest_json.output.ConstantAndVariableQueryStringOutput]]], typing.Callable[[rest_json.input.ConstantAndVariableQueryStringInput], typing.Union[rest_json.output.ConstantAndVariableQueryStringOutput, typing.Awaitable[rest_json.output.ConstantAndVariableQueryStringOutput]]]]) -> None:
  597         -
        """
  598         -
        Method to register `constant_and_variable_query_string` Python implementation inside the handlers map.
  599         -
        It can be used as a function decorator in Python.
  600         -
        """
  601         -
        ...
  602         -
  603         -
  604         -
    def constant_query_string(self, func: typing.Union[typing.Callable[[rest_json.input.ConstantQueryStringInput, Ctx], typing.Union[rest_json.output.ConstantQueryStringOutput, typing.Awaitable[rest_json.output.ConstantQueryStringOutput]]], typing.Callable[[rest_json.input.ConstantQueryStringInput], typing.Union[rest_json.output.ConstantQueryStringOutput, typing.Awaitable[rest_json.output.ConstantQueryStringOutput]]]]) -> None:
  605         -
        """
  606         -
        Method to register `constant_query_string` Python implementation inside the handlers map.
  607         -
        It can be used as a function decorator in Python.
  608         -
        """
  609         -
        ...
  610         -
  611         -
  612         -
    def content_type_parameters(self, func: typing.Union[typing.Callable[[rest_json.input.ContentTypeParametersInput, Ctx], typing.Union[rest_json.output.ContentTypeParametersOutput, typing.Awaitable[rest_json.output.ContentTypeParametersOutput]]], typing.Callable[[rest_json.input.ContentTypeParametersInput], typing.Union[rest_json.output.ContentTypeParametersOutput, typing.Awaitable[rest_json.output.ContentTypeParametersOutput]]]]) -> None:
  613         -
        """
  614         -
        Method to register `content_type_parameters` Python implementation inside the handlers map.
  615         -
        It can be used as a function decorator in Python.
  616         -
        """
  617         -
        ...
  618         -
  619         -
  620         -
    def context(self, context: Ctx) -> None:
  621         -
        """
  622         -
        Register a context object that will be shared between handlers.
  623         -
        """
  624         -
        ...
  625         -
  626         -
  627         -
    def datetime_offsets(self, func: typing.Union[typing.Callable[[rest_json.input.DatetimeOffsetsInput, Ctx], typing.Union[rest_json.output.DatetimeOffsetsOutput, typing.Awaitable[rest_json.output.DatetimeOffsetsOutput]]], typing.Callable[[rest_json.input.DatetimeOffsetsInput], typing.Union[rest_json.output.DatetimeOffsetsOutput, typing.Awaitable[rest_json.output.DatetimeOffsetsOutput]]]]) -> None:
  628         -
        """
  629         -
        Method to register `datetime_offsets` Python implementation inside the handlers map.
  630         -
        It can be used as a function decorator in Python.
  631         -
        """
  632         -
        ...
  633         -
  634         -
  635         -
    def document_type(self, func: typing.Union[typing.Callable[[rest_json.input.DocumentTypeInput, Ctx], typing.Union[rest_json.output.DocumentTypeOutput, typing.Awaitable[rest_json.output.DocumentTypeOutput]]], typing.Callable[[rest_json.input.DocumentTypeInput], typing.Union[rest_json.output.DocumentTypeOutput, typing.Awaitable[rest_json.output.DocumentTypeOutput]]]]) -> None:
  636         -
        """
  637         -
        Method to register `document_type` Python implementation inside the handlers map.
  638         -
        It can be used as a function decorator in Python.
  639         -
        """
  640         -
        ...
  641         -
  642         -
  643         -
    def document_type_as_map_value(self, func: typing.Union[typing.Callable[[rest_json.input.DocumentTypeAsMapValueInput, Ctx], typing.Union[rest_json.output.DocumentTypeAsMapValueOutput, typing.Awaitable[rest_json.output.DocumentTypeAsMapValueOutput]]], typing.Callable[[rest_json.input.DocumentTypeAsMapValueInput], typing.Union[rest_json.output.DocumentTypeAsMapValueOutput, typing.Awaitable[rest_json.output.DocumentTypeAsMapValueOutput]]]]) -> None:
  644         -
        """
  645         -
        Method to register `document_type_as_map_value` Python implementation inside the handlers map.
  646         -
        It can be used as a function decorator in Python.
  647         -
        """
  648         -
        ...
  649         -
  650         -
  651         -
    def document_type_as_payload(self, func: typing.Union[typing.Callable[[rest_json.input.DocumentTypeAsPayloadInput, Ctx], typing.Union[rest_json.output.DocumentTypeAsPayloadOutput, typing.Awaitable[rest_json.output.DocumentTypeAsPayloadOutput]]], typing.Callable[[rest_json.input.DocumentTypeAsPayloadInput], typing.Union[rest_json.output.DocumentTypeAsPayloadOutput, typing.Awaitable[rest_json.output.DocumentTypeAsPayloadOutput]]]]) -> None:
  652         -
        """
  653         -
        Method to register `document_type_as_payload` Python implementation inside the handlers map.
  654         -
        It can be used as a function decorator in Python.
  655         -
        """
  656         -
        ...
  657         -
  658         -
  659         -
    def empty_input_and_empty_output(self, func: typing.Union[typing.Callable[[rest_json.input.EmptyInputAndEmptyOutputInput, Ctx], typing.Union[rest_json.output.EmptyInputAndEmptyOutputOutput, typing.Awaitable[rest_json.output.EmptyInputAndEmptyOutputOutput]]], typing.Callable[[rest_json.input.EmptyInputAndEmptyOutputInput], typing.Union[rest_json.output.EmptyInputAndEmptyOutputOutput, typing.Awaitable[rest_json.output.EmptyInputAndEmptyOutputOutput]]]]) -> None:
  660         -
        """
  661         -
        Method to register `empty_input_and_empty_output` Python implementation inside the handlers map.
  662         -
        It can be used as a function decorator in Python.
  663         -
        """
  664         -
        ...
  665         -
  666         -
  667         -
    def endpoint_operation(self, func: typing.Union[typing.Callable[[rest_json.input.EndpointOperationInput, Ctx], typing.Union[rest_json.output.EndpointOperationOutput, typing.Awaitable[rest_json.output.EndpointOperationOutput]]], typing.Callable[[rest_json.input.EndpointOperationInput], typing.Union[rest_json.output.EndpointOperationOutput, typing.Awaitable[rest_json.output.EndpointOperationOutput]]]]) -> None:
  668         -
        """
  669         -
        Method to register `endpoint_operation` Python implementation inside the handlers map.
  670         -
        It can be used as a function decorator in Python.
  671         -
        """
  672         -
        ...
  673         -
  674         -
  675         -
    def endpoint_with_host_label_operation(self, func: typing.Union[typing.Callable[[rest_json.input.EndpointWithHostLabelOperationInput, Ctx], typing.Union[rest_json.output.EndpointWithHostLabelOperationOutput, typing.Awaitable[rest_json.output.EndpointWithHostLabelOperationOutput]]], typing.Callable[[rest_json.input.EndpointWithHostLabelOperationInput], typing.Union[rest_json.output.EndpointWithHostLabelOperationOutput, typing.Awaitable[rest_json.output.EndpointWithHostLabelOperationOutput]]]]) -> None:
  676         -
        """
  677         -
        Method to register `endpoint_with_host_label_operation` Python implementation inside the handlers map.
  678         -
        It can be used as a function decorator in Python.
  679         -
        """
  680         -
        ...
  681         -
  682         -
  683         -
    def fractional_seconds(self, func: typing.Union[typing.Callable[[rest_json.input.FractionalSecondsInput, Ctx], typing.Union[rest_json.output.FractionalSecondsOutput, typing.Awaitable[rest_json.output.FractionalSecondsOutput]]], typing.Callable[[rest_json.input.FractionalSecondsInput], typing.Union[rest_json.output.FractionalSecondsOutput, typing.Awaitable[rest_json.output.FractionalSecondsOutput]]]]) -> None:
  684         -
        """
  685         -
        Method to register `fractional_seconds` Python implementation inside the handlers map.
  686         -
        It can be used as a function decorator in Python.
  687         -
        """
  688         -
        ...
  689         -
  690         -
  691         -
    def greeting_with_errors(self, func: typing.Union[typing.Callable[[rest_json.input.GreetingWithErrorsInput, Ctx], typing.Union[rest_json.output.GreetingWithErrorsOutput, typing.Awaitable[rest_json.output.GreetingWithErrorsOutput]]], typing.Callable[[rest_json.input.GreetingWithErrorsInput], typing.Union[rest_json.output.GreetingWithErrorsOutput, typing.Awaitable[rest_json.output.GreetingWithErrorsOutput]]]]) -> None:
  692         -
        """
  693         -
        Method to register `greeting_with_errors` Python implementation inside the handlers map.
  694         -
        It can be used as a function decorator in Python.
  695         -
        """
  696         -
        ...
  697         -
  698         -
  699         -
    def host_with_path_operation(self, func: typing.Union[typing.Callable[[rest_json.input.HostWithPathOperationInput, Ctx], typing.Union[rest_json.output.HostWithPathOperationOutput, typing.Awaitable[rest_json.output.HostWithPathOperationOutput]]], typing.Callable[[rest_json.input.HostWithPathOperationInput], typing.Union[rest_json.output.HostWithPathOperationOutput, typing.Awaitable[rest_json.output.HostWithPathOperationOutput]]]]) -> None:
  700         -
        """
  701         -
        Method to register `host_with_path_operation` Python implementation inside the handlers map.
  702         -
        It can be used as a function decorator in Python.
  703         -
        """
  704         -
        ...
  705         -
  706         -
  707         -
    def http_checksum_required(self, func: typing.Union[typing.Callable[[rest_json.input.HttpChecksumRequiredInput, Ctx], typing.Union[rest_json.output.HttpChecksumRequiredOutput, typing.Awaitable[rest_json.output.HttpChecksumRequiredOutput]]], typing.Callable[[rest_json.input.HttpChecksumRequiredInput], typing.Union[rest_json.output.HttpChecksumRequiredOutput, typing.Awaitable[rest_json.output.HttpChecksumRequiredOutput]]]]) -> None:
  708         -
        """
  709         -
        Method to register `http_checksum_required` Python implementation inside the handlers map.
  710         -
        It can be used as a function decorator in Python.
  711         -
        """
  712         -
        ...
  713         -
  714         -
  715         -
    def http_enum_payload(self, func: typing.Union[typing.Callable[[rest_json.input.HttpEnumPayloadInput, Ctx], typing.Union[rest_json.output.HttpEnumPayloadOutput, typing.Awaitable[rest_json.output.HttpEnumPayloadOutput]]], typing.Callable[[rest_json.input.HttpEnumPayloadInput], typing.Union[rest_json.output.HttpEnumPayloadOutput, typing.Awaitable[rest_json.output.HttpEnumPayloadOutput]]]]) -> None:
  716         -
        """
  717         -
        Method to register `http_enum_payload` Python implementation inside the handlers map.
  718         -
        It can be used as a function decorator in Python.
  719         -
        """
  720         -
        ...
  721         -
  722         -
  723         -
    def http_payload_traits(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadTraitsInput, Ctx], typing.Union[rest_json.output.HttpPayloadTraitsOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsOutput]]], typing.Callable[[rest_json.input.HttpPayloadTraitsInput], typing.Union[rest_json.output.HttpPayloadTraitsOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsOutput]]]]) -> None:
  724         -
        """
  725         -
        Method to register `http_payload_traits` Python implementation inside the handlers map.
  726         -
        It can be used as a function decorator in Python.
  727         -
        """
  728         -
        ...
  729         -
  730         -
  731         -
    def http_payload_traits_with_media_type(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadTraitsWithMediaTypeInput, Ctx], typing.Union[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput]]], typing.Callable[[rest_json.input.HttpPayloadTraitsWithMediaTypeInput], typing.Union[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.HttpPayloadTraitsWithMediaTypeOutput]]]]) -> None:
  732         -
        """
  733         -
        Method to register `http_payload_traits_with_media_type` Python implementation inside the handlers map.
  734         -
        It can be used as a function decorator in Python.
  735         -
        """
  736         -
        ...
  737         -
  738         -
  739         -
    def http_payload_with_structure(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadWithStructureInput, Ctx], typing.Union[rest_json.output.HttpPayloadWithStructureOutput, typing.Awaitable[rest_json.output.HttpPayloadWithStructureOutput]]], typing.Callable[[rest_json.input.HttpPayloadWithStructureInput], typing.Union[rest_json.output.HttpPayloadWithStructureOutput, typing.Awaitable[rest_json.output.HttpPayloadWithStructureOutput]]]]) -> None:
  740         -
        """
  741         -
        Method to register `http_payload_with_structure` Python implementation inside the handlers map.
  742         -
        It can be used as a function decorator in Python.
  743         -
        """
  744         -
        ...
  745         -
  746         -
  747         -
    def http_payload_with_union(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPayloadWithUnionInput, Ctx], typing.Union[rest_json.output.HttpPayloadWithUnionOutput, typing.Awaitable[rest_json.output.HttpPayloadWithUnionOutput]]], typing.Callable[[rest_json.input.HttpPayloadWithUnionInput], typing.Union[rest_json.output.HttpPayloadWithUnionOutput, typing.Awaitable[rest_json.output.HttpPayloadWithUnionOutput]]]]) -> None:
  748         -
        """
  749         -
        Method to register `http_payload_with_union` Python implementation inside the handlers map.
  750         -
        It can be used as a function decorator in Python.
  751         -
        """
  752         -
        ...
  753         -
  754         -
  755         -
    def http_prefix_headers(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPrefixHeadersInput, Ctx], typing.Union[rest_json.output.HttpPrefixHeadersOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersOutput]]], typing.Callable[[rest_json.input.HttpPrefixHeadersInput], typing.Union[rest_json.output.HttpPrefixHeadersOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersOutput]]]]) -> None:
  756         -
        """
  757         -
        Method to register `http_prefix_headers` Python implementation inside the handlers map.
  758         -
        It can be used as a function decorator in Python.
  759         -
        """
  760         -
        ...
  761         -
  762         -
  763         -
    def http_prefix_headers_in_response(self, func: typing.Union[typing.Callable[[rest_json.input.HttpPrefixHeadersInResponseInput, Ctx], typing.Union[rest_json.output.HttpPrefixHeadersInResponseOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersInResponseOutput]]], typing.Callable[[rest_json.input.HttpPrefixHeadersInResponseInput], typing.Union[rest_json.output.HttpPrefixHeadersInResponseOutput, typing.Awaitable[rest_json.output.HttpPrefixHeadersInResponseOutput]]]]) -> None:
  764         -
        """
  765         -
        Method to register `http_prefix_headers_in_response` Python implementation inside the handlers map.
  766         -
        It can be used as a function decorator in Python.
  767         -
        """
  768         -
        ...
  769         -
  770         -
  771         -
    def http_request_with_float_labels(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithFloatLabelsInput, Ctx], typing.Union[rest_json.output.HttpRequestWithFloatLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithFloatLabelsOutput]]], typing.Callable[[rest_json.input.HttpRequestWithFloatLabelsInput], typing.Union[rest_json.output.HttpRequestWithFloatLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithFloatLabelsOutput]]]]) -> None:
  772         -
        """
  773         -
        Method to register `http_request_with_float_labels` Python implementation inside the handlers map.
  774         -
        It can be used as a function decorator in Python.
  775         -
        """
  776         -
        ...
  777         -
  778         -
  779         -
    def http_request_with_greedy_label_in_path(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithGreedyLabelInPathInput, Ctx], typing.Union[rest_json.output.HttpRequestWithGreedyLabelInPathOutput, typing.Awaitable[rest_json.output.HttpRequestWithGreedyLabelInPathOutput]]], typing.Callable[[rest_json.input.HttpRequestWithGreedyLabelInPathInput], typing.Union[rest_json.output.HttpRequestWithGreedyLabelInPathOutput, typing.Awaitable[rest_json.output.HttpRequestWithGreedyLabelInPathOutput]]]]) -> None:
  780         -
        """
  781         -
        Method to register `http_request_with_greedy_label_in_path` Python implementation inside the handlers map.
  782         -
        It can be used as a function decorator in Python.
  783         -
        """
  784         -
        ...
  785         -
  786         -
  787         -
    def http_request_with_labels(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithLabelsInput, Ctx], typing.Union[rest_json.output.HttpRequestWithLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsOutput]]], typing.Callable[[rest_json.input.HttpRequestWithLabelsInput], typing.Union[rest_json.output.HttpRequestWithLabelsOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsOutput]]]]) -> None:
  788         -
        """
  789         -
        Method to register `http_request_with_labels` Python implementation inside the handlers map.
  790         -
        It can be used as a function decorator in Python.
  791         -
        """
  792         -
        ...
  793         -
  794         -
  795         -
    def http_request_with_labels_and_timestamp_format(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithLabelsAndTimestampFormatInput, Ctx], typing.Union[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput]]], typing.Callable[[rest_json.input.HttpRequestWithLabelsAndTimestampFormatInput], typing.Union[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput, typing.Awaitable[rest_json.output.HttpRequestWithLabelsAndTimestampFormatOutput]]]]) -> None:
  796         -
        """
  797         -
        Method to register `http_request_with_labels_and_timestamp_format` Python implementation inside the handlers map.
  798         -
        It can be used as a function decorator in Python.
  799         -
        """
  800         -
        ...
  801         -
  802         -
  803         -
    def http_request_with_regex_literal(self, func: typing.Union[typing.Callable[[rest_json.input.HttpRequestWithRegexLiteralInput, Ctx], typing.Union[rest_json.output.HttpRequestWithRegexLiteralOutput, typing.Awaitable[rest_json.output.HttpRequestWithRegexLiteralOutput]]], typing.Callable[[rest_json.input.HttpRequestWithRegexLiteralInput], typing.Union[rest_json.output.HttpRequestWithRegexLiteralOutput, typing.Awaitable[rest_json.output.HttpRequestWithRegexLiteralOutput]]]]) -> None:
  804         -
        """
  805         -
        Method to register `http_request_with_regex_literal` Python implementation inside the handlers map.
  806         -
        It can be used as a function decorator in Python.
  807         -
        """
  808         -
        ...
  809         -
  810         -
  811         -
    def http_response_code(self, func: typing.Union[typing.Callable[[rest_json.input.HttpResponseCodeInput, Ctx], typing.Union[rest_json.output.HttpResponseCodeOutput, typing.Awaitable[rest_json.output.HttpResponseCodeOutput]]], typing.Callable[[rest_json.input.HttpResponseCodeInput], typing.Union[rest_json.output.HttpResponseCodeOutput, typing.Awaitable[rest_json.output.HttpResponseCodeOutput]]]]) -> None:
  812         -
        """
  813         -
        Method to register `http_response_code` Python implementation inside the handlers map.
  814         -
        It can be used as a function decorator in Python.
  815         -
        """
  816         -
        ...
  817         -
  818         -
  819         -
    def http_string_payload(self, func: typing.Union[typing.Callable[[rest_json.input.HttpStringPayloadInput, Ctx], typing.Union[rest_json.output.HttpStringPayloadOutput, typing.Awaitable[rest_json.output.HttpStringPayloadOutput]]], typing.Callable[[rest_json.input.HttpStringPayloadInput], typing.Union[rest_json.output.HttpStringPayloadOutput, typing.Awaitable[rest_json.output.HttpStringPayloadOutput]]]]) -> None:
  820         -
        """
  821         -
        Method to register `http_string_payload` Python implementation inside the handlers map.
  822         -
        It can be used as a function decorator in Python.
  823         -
        """
  824         -
        ...
  825         -
  826         -
  827         -
    def ignore_query_params_in_response(self, func: typing.Union[typing.Callable[[rest_json.input.IgnoreQueryParamsInResponseInput, Ctx], typing.Union[rest_json.output.IgnoreQueryParamsInResponseOutput, typing.Awaitable[rest_json.output.IgnoreQueryParamsInResponseOutput]]], typing.Callable[[rest_json.input.IgnoreQueryParamsInResponseInput], typing.Union[rest_json.output.IgnoreQueryParamsInResponseOutput, typing.Awaitable[rest_json.output.IgnoreQueryParamsInResponseOutput]]]]) -> None:
  828         -
        """
  829         -
        Method to register `ignore_query_params_in_response` Python implementation inside the handlers map.
  830         -
        It can be used as a function decorator in Python.
  831         -
        """
  832         -
        ...
  833         -
  834         -
  835         -
    def input_and_output_with_headers(self, func: typing.Union[typing.Callable[[rest_json.input.InputAndOutputWithHeadersInput, Ctx], typing.Union[rest_json.output.InputAndOutputWithHeadersOutput, typing.Awaitable[rest_json.output.InputAndOutputWithHeadersOutput]]], typing.Callable[[rest_json.input.InputAndOutputWithHeadersInput], typing.Union[rest_json.output.InputAndOutputWithHeadersOutput, typing.Awaitable[rest_json.output.InputAndOutputWithHeadersOutput]]]]) -> None:
  836         -
        """
  837         -
        Method to register `input_and_output_with_headers` Python implementation inside the handlers map.
  838         -
        It can be used as a function decorator in Python.
  839         -
        """
  840         -
        ...
  841         -
  842         -
  843         -
    def json_blobs(self, func: typing.Union[typing.Callable[[rest_json.input.JsonBlobsInput, Ctx], typing.Union[rest_json.output.JsonBlobsOutput, typing.Awaitable[rest_json.output.JsonBlobsOutput]]], typing.Callable[[rest_json.input.JsonBlobsInput], typing.Union[rest_json.output.JsonBlobsOutput, typing.Awaitable[rest_json.output.JsonBlobsOutput]]]]) -> None:
  844         -
        """
  845         -
        Method to register `json_blobs` Python implementation inside the handlers map.
  846         -
        It can be used as a function decorator in Python.
  847         -
        """
  848         -
        ...
  849         -
  850         -
  851         -
    def json_enums(self, func: typing.Union[typing.Callable[[rest_json.input.JsonEnumsInput, Ctx], typing.Union[rest_json.output.JsonEnumsOutput, typing.Awaitable[rest_json.output.JsonEnumsOutput]]], typing.Callable[[rest_json.input.JsonEnumsInput], typing.Union[rest_json.output.JsonEnumsOutput, typing.Awaitable[rest_json.output.JsonEnumsOutput]]]]) -> None:
  852         -
        """
  853         -
        Method to register `json_enums` Python implementation inside the handlers map.
  854         -
        It can be used as a function decorator in Python.
  855         -
        """
  856         -
        ...
  857         -
  858         -
  859         -
    def json_int_enums(self, func: typing.Union[typing.Callable[[rest_json.input.JsonIntEnumsInput, Ctx], typing.Union[rest_json.output.JsonIntEnumsOutput, typing.Awaitable[rest_json.output.JsonIntEnumsOutput]]], typing.Callable[[rest_json.input.JsonIntEnumsInput], typing.Union[rest_json.output.JsonIntEnumsOutput, typing.Awaitable[rest_json.output.JsonIntEnumsOutput]]]]) -> None:
  860         -
        """
  861         -
        Method to register `json_int_enums` Python implementation inside the handlers map.
  862         -
        It can be used as a function decorator in Python.
  863         -
        """
  864         -
        ...
  865         -
  866         -
  867         -
    def json_lists(self, func: typing.Union[typing.Callable[[rest_json.input.JsonListsInput, Ctx], typing.Union[rest_json.output.JsonListsOutput, typing.Awaitable[rest_json.output.JsonListsOutput]]], typing.Callable[[rest_json.input.JsonListsInput], typing.Union[rest_json.output.JsonListsOutput, typing.Awaitable[rest_json.output.JsonListsOutput]]]]) -> None:
  868         -
        """
  869         -
        Method to register `json_lists` Python implementation inside the handlers map.
  870         -
        It can be used as a function decorator in Python.
  871         -
        """
  872         -
        ...
  873         -
  874         -
  875         -
    def json_maps(self, func: typing.Union[typing.Callable[[rest_json.input.JsonMapsInput, Ctx], typing.Union[rest_json.output.JsonMapsOutput, typing.Awaitable[rest_json.output.JsonMapsOutput]]], typing.Callable[[rest_json.input.JsonMapsInput], typing.Union[rest_json.output.JsonMapsOutput, typing.Awaitable[rest_json.output.JsonMapsOutput]]]]) -> None:
  876         -
        """
  877         -
        Method to register `json_maps` Python implementation inside the handlers map.
  878         -
        It can be used as a function decorator in Python.
  879         -
        """
  880         -
        ...
  881         -
  882         -
  883         -
    def json_timestamps(self, func: typing.Union[typing.Callable[[rest_json.input.JsonTimestampsInput, Ctx], typing.Union[rest_json.output.JsonTimestampsOutput, typing.Awaitable[rest_json.output.JsonTimestampsOutput]]], typing.Callable[[rest_json.input.JsonTimestampsInput], typing.Union[rest_json.output.JsonTimestampsOutput, typing.Awaitable[rest_json.output.JsonTimestampsOutput]]]]) -> None:
  884         -
        """
  885         -
        Method to register `json_timestamps` Python implementation inside the handlers map.
  886         -
        It can be used as a function decorator in Python.
  887         -
        """
  888         -
        ...
  889         -
  890         -
  891         -
    def json_unions(self, func: typing.Union[typing.Callable[[rest_json.input.JsonUnionsInput, Ctx], typing.Union[rest_json.output.JsonUnionsOutput, typing.Awaitable[rest_json.output.JsonUnionsOutput]]], typing.Callable[[rest_json.input.JsonUnionsInput], typing.Union[rest_json.output.JsonUnionsOutput, typing.Awaitable[rest_json.output.JsonUnionsOutput]]]]) -> None:
  892         -
        """
  893         -
        Method to register `json_unions` Python implementation inside the handlers map.
  894         -
        It can be used as a function decorator in Python.
  895         -
        """
  896         -
        ...
  897         -
  898         -
  899         -
    def malformed_accept_with_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedAcceptWithBodyInput, Ctx], typing.Union[rest_json.output.MalformedAcceptWithBodyOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithBodyOutput]]], typing.Callable[[rest_json.input.MalformedAcceptWithBodyInput], typing.Union[rest_json.output.MalformedAcceptWithBodyOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithBodyOutput]]]]) -> None:
  900         -
        """
  901         -
        Method to register `malformed_accept_with_body` Python implementation inside the handlers map.
  902         -
        It can be used as a function decorator in Python.
  903         -
        """
  904         -
        ...
  905         -
  906         -
  907         -
    def malformed_accept_with_generic_string(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedAcceptWithGenericStringInput, Ctx], typing.Union[rest_json.output.MalformedAcceptWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithGenericStringOutput]]], typing.Callable[[rest_json.input.MalformedAcceptWithGenericStringInput], typing.Union[rest_json.output.MalformedAcceptWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithGenericStringOutput]]]]) -> None:
  908         -
        """
  909         -
        Method to register `malformed_accept_with_generic_string` Python implementation inside the handlers map.
  910         -
        It can be used as a function decorator in Python.
  911         -
        """
  912         -
        ...
  913         -
  914         -
  915         -
    def malformed_accept_with_payload(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedAcceptWithPayloadInput, Ctx], typing.Union[rest_json.output.MalformedAcceptWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithPayloadOutput]]], typing.Callable[[rest_json.input.MalformedAcceptWithPayloadInput], typing.Union[rest_json.output.MalformedAcceptWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedAcceptWithPayloadOutput]]]]) -> None:
  916         -
        """
  917         -
        Method to register `malformed_accept_with_payload` Python implementation inside the handlers map.
  918         -
        It can be used as a function decorator in Python.
  919         -
        """
  920         -
        ...
  921         -
  922         -
  923         -
    def malformed_blob(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedBlobInput, Ctx], typing.Union[rest_json.output.MalformedBlobOutput, typing.Awaitable[rest_json.output.MalformedBlobOutput]]], typing.Callable[[rest_json.input.MalformedBlobInput], typing.Union[rest_json.output.MalformedBlobOutput, typing.Awaitable[rest_json.output.MalformedBlobOutput]]]]) -> None:
  924         -
        """
  925         -
        Method to register `malformed_blob` Python implementation inside the handlers map.
  926         -
        It can be used as a function decorator in Python.
  927         -
        """
  928         -
        ...
  929         -
  930         -
  931         -
    def malformed_boolean(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedBooleanInput, Ctx], typing.Union[rest_json.output.MalformedBooleanOutput, typing.Awaitable[rest_json.output.MalformedBooleanOutput]]], typing.Callable[[rest_json.input.MalformedBooleanInput], typing.Union[rest_json.output.MalformedBooleanOutput, typing.Awaitable[rest_json.output.MalformedBooleanOutput]]]]) -> None:
  932         -
        """
  933         -
        Method to register `malformed_boolean` Python implementation inside the handlers map.
  934         -
        It can be used as a function decorator in Python.
  935         -
        """
  936         -
        ...
  937         -
  938         -
  939         -
    def malformed_byte(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedByteInput, Ctx], typing.Union[rest_json.output.MalformedByteOutput, typing.Awaitable[rest_json.output.MalformedByteOutput]]], typing.Callable[[rest_json.input.MalformedByteInput], typing.Union[rest_json.output.MalformedByteOutput, typing.Awaitable[rest_json.output.MalformedByteOutput]]]]) -> None:
  940         -
        """
  941         -
        Method to register `malformed_byte` Python implementation inside the handlers map.
  942         -
        It can be used as a function decorator in Python.
  943         -
        """
  944         -
        ...
  945         -
  946         -
  947         -
    def malformed_content_type_with_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithBodyInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithBodyOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithBodyInput], typing.Union[rest_json.output.MalformedContentTypeWithBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithBodyOutput]]]]) -> None:
  948         -
        """
  949         -
        Method to register `malformed_content_type_with_body` Python implementation inside the handlers map.
  950         -
        It can be used as a function decorator in Python.
  951         -
        """
  952         -
        ...
  953         -
  954         -
  955         -
    def malformed_content_type_with_generic_string(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithGenericStringInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithGenericStringOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithGenericStringInput], typing.Union[rest_json.output.MalformedContentTypeWithGenericStringOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithGenericStringOutput]]]]) -> None:
  956         -
        """
  957         -
        Method to register `malformed_content_type_with_generic_string` Python implementation inside the handlers map.
  958         -
        It can be used as a function decorator in Python.
  959         -
        """
  960         -
        ...
  961         -
  962         -
  963         -
    def malformed_content_type_with_payload(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithPayloadInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithPayloadOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithPayloadInput], typing.Union[rest_json.output.MalformedContentTypeWithPayloadOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithPayloadOutput]]]]) -> None:
  964         -
        """
  965         -
        Method to register `malformed_content_type_with_payload` Python implementation inside the handlers map.
  966         -
        It can be used as a function decorator in Python.
  967         -
        """
  968         -
        ...
  969         -
  970         -
  971         -
    def malformed_content_type_without_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedContentTypeWithoutBodyInput, Ctx], typing.Union[rest_json.output.MalformedContentTypeWithoutBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithoutBodyOutput]]], typing.Callable[[rest_json.input.MalformedContentTypeWithoutBodyInput], typing.Union[rest_json.output.MalformedContentTypeWithoutBodyOutput, typing.Awaitable[rest_json.output.MalformedContentTypeWithoutBodyOutput]]]]) -> None:
  972         -
        """
  973         -
        Method to register `malformed_content_type_without_body` Python implementation inside the handlers map.
  974         -
        It can be used as a function decorator in Python.
  975         -
        """
  976         -
        ...
  977         -
  978         -
  979         -
    def malformed_double(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedDoubleInput, Ctx], typing.Union[rest_json.output.MalformedDoubleOutput, typing.Awaitable[rest_json.output.MalformedDoubleOutput]]], typing.Callable[[rest_json.input.MalformedDoubleInput], typing.Union[rest_json.output.MalformedDoubleOutput, typing.Awaitable[rest_json.output.MalformedDoubleOutput]]]]) -> None:
  980         -
        """
  981         -
        Method to register `malformed_double` Python implementation inside the handlers map.
  982         -
        It can be used as a function decorator in Python.
  983         -
        """
  984         -
        ...
  985         -
  986         -
  987         -
    def malformed_float(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedFloatInput, Ctx], typing.Union[rest_json.output.MalformedFloatOutput, typing.Awaitable[rest_json.output.MalformedFloatOutput]]], typing.Callable[[rest_json.input.MalformedFloatInput], typing.Union[rest_json.output.MalformedFloatOutput, typing.Awaitable[rest_json.output.MalformedFloatOutput]]]]) -> None:
  988         -
        """
  989         -
        Method to register `malformed_float` Python implementation inside the handlers map.
  990         -
        It can be used as a function decorator in Python.
  991         -
        """
  992         -
        ...
  993         -
  994         -
  995         -
    def malformed_integer(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedIntegerInput, Ctx], typing.Union[rest_json.output.MalformedIntegerOutput, typing.Awaitable[rest_json.output.MalformedIntegerOutput]]], typing.Callable[[rest_json.input.MalformedIntegerInput], typing.Union[rest_json.output.MalformedIntegerOutput, typing.Awaitable[rest_json.output.MalformedIntegerOutput]]]]) -> None:
  996         -
        """
  997         -
        Method to register `malformed_integer` Python implementation inside the handlers map.
  998         -
        It can be used as a function decorator in Python.
  999         -
        """
 1000         -
        ...
 1001         -
 1002         -
 1003         -
    def malformed_list(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedListInput, Ctx], typing.Union[rest_json.output.MalformedListOutput, typing.Awaitable[rest_json.output.MalformedListOutput]]], typing.Callable[[rest_json.input.MalformedListInput], typing.Union[rest_json.output.MalformedListOutput, typing.Awaitable[rest_json.output.MalformedListOutput]]]]) -> None:
 1004         -
        """
 1005         -
        Method to register `malformed_list` Python implementation inside the handlers map.
 1006         -
        It can be used as a function decorator in Python.
 1007         -
        """
 1008         -
        ...
 1009         -
 1010         -
 1011         -
    def malformed_long(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedLongInput, Ctx], typing.Union[rest_json.output.MalformedLongOutput, typing.Awaitable[rest_json.output.MalformedLongOutput]]], typing.Callable[[rest_json.input.MalformedLongInput], typing.Union[rest_json.output.MalformedLongOutput, typing.Awaitable[rest_json.output.MalformedLongOutput]]]]) -> None:
 1012         -
        """
 1013         -
        Method to register `malformed_long` Python implementation inside the handlers map.
 1014         -
        It can be used as a function decorator in Python.
 1015         -
        """
 1016         -
        ...
 1017         -
 1018         -
 1019         -
    def malformed_map(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedMapInput, Ctx], typing.Union[rest_json.output.MalformedMapOutput, typing.Awaitable[rest_json.output.MalformedMapOutput]]], typing.Callable[[rest_json.input.MalformedMapInput], typing.Union[rest_json.output.MalformedMapOutput, typing.Awaitable[rest_json.output.MalformedMapOutput]]]]) -> None:
 1020         -
        """
 1021         -
        Method to register `malformed_map` Python implementation inside the handlers map.
 1022         -
        It can be used as a function decorator in Python.
 1023         -
        """
 1024         -
        ...
 1025         -
 1026         -
 1027         -
    def malformed_request_body(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedRequestBodyInput, Ctx], typing.Union[rest_json.output.MalformedRequestBodyOutput, typing.Awaitable[rest_json.output.MalformedRequestBodyOutput]]], typing.Callable[[rest_json.input.MalformedRequestBodyInput], typing.Union[rest_json.output.MalformedRequestBodyOutput, typing.Awaitable[rest_json.output.MalformedRequestBodyOutput]]]]) -> None:
 1028         -
        """
 1029         -
        Method to register `malformed_request_body` Python implementation inside the handlers map.
 1030         -
        It can be used as a function decorator in Python.
 1031         -
        """
 1032         -
        ...
 1033         -
 1034         -
 1035         -
    def malformed_short(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedShortInput, Ctx], typing.Union[rest_json.output.MalformedShortOutput, typing.Awaitable[rest_json.output.MalformedShortOutput]]], typing.Callable[[rest_json.input.MalformedShortInput], typing.Union[rest_json.output.MalformedShortOutput, typing.Awaitable[rest_json.output.MalformedShortOutput]]]]) -> None:
 1036         -
        """
 1037         -
        Method to register `malformed_short` Python implementation inside the handlers map.
 1038         -
        It can be used as a function decorator in Python.
 1039         -
        """
 1040         -
        ...
 1041         -
 1042         -
 1043         -
    def malformed_string(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedStringInput, Ctx], typing.Union[rest_json.output.MalformedStringOutput, typing.Awaitable[rest_json.output.MalformedStringOutput]]], typing.Callable[[rest_json.input.MalformedStringInput], typing.Union[rest_json.output.MalformedStringOutput, typing.Awaitable[rest_json.output.MalformedStringOutput]]]]) -> None:
 1044         -
        """
 1045         -
        Method to register `malformed_string` Python implementation inside the handlers map.
 1046         -
        It can be used as a function decorator in Python.
 1047         -
        """
 1048         -
        ...
 1049         -
 1050         -
 1051         -
    def malformed_timestamp_body_date_time(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampBodyDateTimeInput, Ctx], typing.Union[rest_json.output.MalformedTimestampBodyDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDateTimeOutput]]], typing.Callable[[rest_json.input.MalformedTimestampBodyDateTimeInput], typing.Union[rest_json.output.MalformedTimestampBodyDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDateTimeOutput]]]]) -> None:
 1052         -
        """
 1053         -
        Method to register `malformed_timestamp_body_date_time` Python implementation inside the handlers map.
 1054         -
        It can be used as a function decorator in Python.
 1055         -
        """
 1056         -
        ...
 1057         -
 1058         -
 1059         -
    def malformed_timestamp_body_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampBodyDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampBodyDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampBodyDefaultInput], typing.Union[rest_json.output.MalformedTimestampBodyDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyDefaultOutput]]]]) -> None:
 1060         -
        """
 1061         -
        Method to register `malformed_timestamp_body_default` Python implementation inside the handlers map.
 1062         -
        It can be used as a function decorator in Python.
 1063         -
        """
 1064         -
        ...
 1065         -
 1066         -
 1067         -
    def malformed_timestamp_body_http_date(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampBodyHttpDateInput, Ctx], typing.Union[rest_json.output.MalformedTimestampBodyHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyHttpDateOutput]]], typing.Callable[[rest_json.input.MalformedTimestampBodyHttpDateInput], typing.Union[rest_json.output.MalformedTimestampBodyHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampBodyHttpDateOutput]]]]) -> None:
 1068         -
        """
 1069         -
        Method to register `malformed_timestamp_body_http_date` Python implementation inside the handlers map.
 1070         -
        It can be used as a function decorator in Python.
 1071         -
        """
 1072         -
        ...
 1073         -
 1074         -
 1075         -
    def malformed_timestamp_header_date_time(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampHeaderDateTimeInput, Ctx], typing.Union[rest_json.output.MalformedTimestampHeaderDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDateTimeOutput]]], typing.Callable[[rest_json.input.MalformedTimestampHeaderDateTimeInput], typing.Union[rest_json.output.MalformedTimestampHeaderDateTimeOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDateTimeOutput]]]]) -> None:
 1076         -
        """
 1077         -
        Method to register `malformed_timestamp_header_date_time` Python implementation inside the handlers map.
 1078         -
        It can be used as a function decorator in Python.
 1079         -
        """
 1080         -
        ...
 1081         -
 1082         -
 1083         -
    def malformed_timestamp_header_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampHeaderDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampHeaderDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampHeaderDefaultInput], typing.Union[rest_json.output.MalformedTimestampHeaderDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderDefaultOutput]]]]) -> None:
 1084         -
        """
 1085         -
        Method to register `malformed_timestamp_header_default` Python implementation inside the handlers map.
 1086         -
        It can be used as a function decorator in Python.
 1087         -
        """
 1088         -
        ...
 1089         -
 1090         -
 1091         -
    def malformed_timestamp_header_epoch(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampHeaderEpochInput, Ctx], typing.Union[rest_json.output.MalformedTimestampHeaderEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderEpochOutput]]], typing.Callable[[rest_json.input.MalformedTimestampHeaderEpochInput], typing.Union[rest_json.output.MalformedTimestampHeaderEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampHeaderEpochOutput]]]]) -> None:
 1092         -
        """
 1093         -
        Method to register `malformed_timestamp_header_epoch` Python implementation inside the handlers map.
 1094         -
        It can be used as a function decorator in Python.
 1095         -
        """
 1096         -
        ...
 1097         -
 1098         -
 1099         -
    def malformed_timestamp_path_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampPathDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampPathDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampPathDefaultInput], typing.Union[rest_json.output.MalformedTimestampPathDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathDefaultOutput]]]]) -> None:
 1100         -
        """
 1101         -
        Method to register `malformed_timestamp_path_default` Python implementation inside the handlers map.
 1102         -
        It can be used as a function decorator in Python.
 1103         -
        """
 1104         -
        ...
 1105         -
 1106         -
 1107         -
    def malformed_timestamp_path_epoch(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampPathEpochInput, Ctx], typing.Union[rest_json.output.MalformedTimestampPathEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathEpochOutput]]], typing.Callable[[rest_json.input.MalformedTimestampPathEpochInput], typing.Union[rest_json.output.MalformedTimestampPathEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathEpochOutput]]]]) -> None:
 1108         -
        """
 1109         -
        Method to register `malformed_timestamp_path_epoch` Python implementation inside the handlers map.
 1110         -
        It can be used as a function decorator in Python.
 1111         -
        """
 1112         -
        ...
 1113         -
 1114         -
 1115         -
    def malformed_timestamp_path_http_date(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampPathHttpDateInput, Ctx], typing.Union[rest_json.output.MalformedTimestampPathHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathHttpDateOutput]]], typing.Callable[[rest_json.input.MalformedTimestampPathHttpDateInput], typing.Union[rest_json.output.MalformedTimestampPathHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampPathHttpDateOutput]]]]) -> None:
 1116         -
        """
 1117         -
        Method to register `malformed_timestamp_path_http_date` Python implementation inside the handlers map.
 1118         -
        It can be used as a function decorator in Python.
 1119         -
        """
 1120         -
        ...
 1121         -
 1122         -
 1123         -
    def malformed_timestamp_query_default(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampQueryDefaultInput, Ctx], typing.Union[rest_json.output.MalformedTimestampQueryDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryDefaultOutput]]], typing.Callable[[rest_json.input.MalformedTimestampQueryDefaultInput], typing.Union[rest_json.output.MalformedTimestampQueryDefaultOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryDefaultOutput]]]]) -> None:
 1124         -
        """
 1125         -
        Method to register `malformed_timestamp_query_default` Python implementation inside the handlers map.
 1126         -
        It can be used as a function decorator in Python.
 1127         -
        """
 1128         -
        ...
 1129         -
 1130         -
 1131         -
    def malformed_timestamp_query_epoch(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampQueryEpochInput, Ctx], typing.Union[rest_json.output.MalformedTimestampQueryEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryEpochOutput]]], typing.Callable[[rest_json.input.MalformedTimestampQueryEpochInput], typing.Union[rest_json.output.MalformedTimestampQueryEpochOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryEpochOutput]]]]) -> None:
 1132         -
        """
 1133         -
        Method to register `malformed_timestamp_query_epoch` Python implementation inside the handlers map.
 1134         -
        It can be used as a function decorator in Python.
 1135         -
        """
 1136         -
        ...
 1137         -
 1138         -
 1139         -
    def malformed_timestamp_query_http_date(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedTimestampQueryHttpDateInput, Ctx], typing.Union[rest_json.output.MalformedTimestampQueryHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryHttpDateOutput]]], typing.Callable[[rest_json.input.MalformedTimestampQueryHttpDateInput], typing.Union[rest_json.output.MalformedTimestampQueryHttpDateOutput, typing.Awaitable[rest_json.output.MalformedTimestampQueryHttpDateOutput]]]]) -> None:
 1140         -
        """
 1141         -
        Method to register `malformed_timestamp_query_http_date` Python implementation inside the handlers map.
 1142         -
        It can be used as a function decorator in Python.
 1143         -
        """
 1144         -
        ...
 1145         -
 1146         -
 1147         -
    def malformed_union(self, func: typing.Union[typing.Callable[[rest_json.input.MalformedUnionInput, Ctx], typing.Union[rest_json.output.MalformedUnionOutput, typing.Awaitable[rest_json.output.MalformedUnionOutput]]], typing.Callable[[rest_json.input.MalformedUnionInput], typing.Union[rest_json.output.MalformedUnionOutput, typing.Awaitable[rest_json.output.MalformedUnionOutput]]]]) -> None:
 1148         -
        """
 1149         -
        Method to register `malformed_union` Python implementation inside the handlers map.
 1150         -
        It can be used as a function decorator in Python.
 1151         -
        """
 1152         -
        ...
 1153         -
 1154         -
 1155         -
    def media_type_header(self, func: typing.Union[typing.Callable[[rest_json.input.MediaTypeHeaderInput, Ctx], typing.Union[rest_json.output.MediaTypeHeaderOutput, typing.Awaitable[rest_json.output.MediaTypeHeaderOutput]]], typing.Callable[[rest_json.input.MediaTypeHeaderInput], typing.Union[rest_json.output.MediaTypeHeaderOutput, typing.Awaitable[rest_json.output.MediaTypeHeaderOutput]]]]) -> None:
 1156         -
        """
 1157         -
        Method to register `media_type_header` Python implementation inside the handlers map.
 1158         -
        It can be used as a function decorator in Python.
 1159         -
        """
 1160         -
        ...
 1161         -
 1162         -
 1163         -
    def middleware(self, func: typing.Callable[[rest_json.middleware.Request, typing.Callable[[rest_json.middleware.Request], typing.Awaitable[rest_json.middleware.Response]]], typing.Awaitable[rest_json.middleware.Response]]) -> None:
 1164         -
        """
 1165         -
        Register a Python function to be executed inside a Tower middleware layer.
 1166         -
        """
 1167         -
        ...
 1168         -
 1169         -
 1170         -
    def no_input_and_no_output(self, func: typing.Union[typing.Callable[[rest_json.input.NoInputAndNoOutputInput, Ctx], typing.Union[rest_json.output.NoInputAndNoOutputOutput, typing.Awaitable[rest_json.output.NoInputAndNoOutputOutput]]], typing.Callable[[rest_json.input.NoInputAndNoOutputInput], typing.Union[rest_json.output.NoInputAndNoOutputOutput, typing.Awaitable[rest_json.output.NoInputAndNoOutputOutput]]]]) -> None:
 1171         -
        """
 1172         -
        Method to register `no_input_and_no_output` Python implementation inside the handlers map.
 1173         -
        It can be used as a function decorator in Python.
 1174         -
        """
 1175         -
        ...
 1176         -
 1177         -
 1178         -
    def no_input_and_output(self, func: typing.Union[typing.Callable[[rest_json.input.NoInputAndOutputInput, Ctx], typing.Union[rest_json.output.NoInputAndOutputOutput, typing.Awaitable[rest_json.output.NoInputAndOutputOutput]]], typing.Callable[[rest_json.input.NoInputAndOutputInput], typing.Union[rest_json.output.NoInputAndOutputOutput, typing.Awaitable[rest_json.output.NoInputAndOutputOutput]]]]) -> None:
 1179         -
        """
 1180         -
        Method to register `no_input_and_output` Python implementation inside the handlers map.
 1181         -
        It can be used as a function decorator in Python.
 1182         -
        """
 1183         -
        ...
 1184         -
 1185         -
 1186         -
    def null_and_empty_headers_client(self, func: typing.Union[typing.Callable[[rest_json.input.NullAndEmptyHeadersClientInput, Ctx], typing.Union[rest_json.output.NullAndEmptyHeadersClientOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersClientOutput]]], typing.Callable[[rest_json.input.NullAndEmptyHeadersClientInput], typing.Union[rest_json.output.NullAndEmptyHeadersClientOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersClientOutput]]]]) -> None:
 1187         -
        """
 1188         -
        Method to register `null_and_empty_headers_client` Python implementation inside the handlers map.
 1189         -
        It can be used as a function decorator in Python.
 1190         -
        """
 1191         -
        ...
 1192         -
 1193         -
 1194         -
    def null_and_empty_headers_server(self, func: typing.Union[typing.Callable[[rest_json.input.NullAndEmptyHeadersServerInput, Ctx], typing.Union[rest_json.output.NullAndEmptyHeadersServerOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersServerOutput]]], typing.Callable[[rest_json.input.NullAndEmptyHeadersServerInput], typing.Union[rest_json.output.NullAndEmptyHeadersServerOutput, typing.Awaitable[rest_json.output.NullAndEmptyHeadersServerOutput]]]]) -> None:
 1195         -
        """
 1196         -
        Method to register `null_and_empty_headers_server` Python implementation inside the handlers map.
 1197         -
        It can be used as a function decorator in Python.
 1198         -
        """
 1199         -
        ...
 1200         -
 1201         -
 1202         -
    def omits_null_serializes_empty_string(self, func: typing.Union[typing.Callable[[rest_json.input.OmitsNullSerializesEmptyStringInput, Ctx], typing.Union[rest_json.output.OmitsNullSerializesEmptyStringOutput, typing.Awaitable[rest_json.output.OmitsNullSerializesEmptyStringOutput]]], typing.Callable[[rest_json.input.OmitsNullSerializesEmptyStringInput], typing.Union[rest_json.output.OmitsNullSerializesEmptyStringOutput, typing.Awaitable[rest_json.output.OmitsNullSerializesEmptyStringOutput]]]]) -> None:
 1203         -
        """
 1204         -
        Method to register `omits_null_serializes_empty_string` Python implementation inside the handlers map.
 1205         -
        It can be used as a function decorator in Python.
 1206         -
        """
 1207         -
        ...
 1208         -
 1209         -
 1210         -
    def omits_serializing_empty_lists(self, func: typing.Union[typing.Callable[[rest_json.input.OmitsSerializingEmptyListsInput, Ctx], typing.Union[rest_json.output.OmitsSerializingEmptyListsOutput, typing.Awaitable[rest_json.output.OmitsSerializingEmptyListsOutput]]], typing.Callable[[rest_json.input.OmitsSerializingEmptyListsInput], typing.Union[rest_json.output.OmitsSerializingEmptyListsOutput, typing.Awaitable[rest_json.output.OmitsSerializingEmptyListsOutput]]]]) -> None:
 1211         -
        """
 1212         -
        Method to register `omits_serializing_empty_lists` Python implementation inside the handlers map.
 1213         -
        It can be used as a function decorator in Python.
 1214         -
        """
 1215         -
        ...
 1216         -
 1217         -
 1218         -
    def operation_with_defaults(self, func: typing.Union[typing.Callable[[rest_json.input.OperationWithDefaultsInput, Ctx], typing.Union[rest_json.output.OperationWithDefaultsOutput, typing.Awaitable[rest_json.output.OperationWithDefaultsOutput]]], typing.Callable[[rest_json.input.OperationWithDefaultsInput], typing.Union[rest_json.output.OperationWithDefaultsOutput, typing.Awaitable[rest_json.output.OperationWithDefaultsOutput]]]]) -> None:
 1219         -
        """
 1220         -
        Method to register `operation_with_defaults` Python implementation inside the handlers map.
 1221         -
        It can be used as a function decorator in Python.
 1222         -
        """
 1223         -
        ...
 1224         -
 1225         -
 1226         -
    def operation_with_nested_structure(self, func: typing.Union[typing.Callable[[rest_json.input.OperationWithNestedStructureInput, Ctx], typing.Union[rest_json.output.OperationWithNestedStructureOutput, typing.Awaitable[rest_json.output.OperationWithNestedStructureOutput]]], typing.Callable[[rest_json.input.OperationWithNestedStructureInput], typing.Union[rest_json.output.OperationWithNestedStructureOutput, typing.Awaitable[rest_json.output.OperationWithNestedStructureOutput]]]]) -> None:
 1227         -
        """
 1228         -
        Method to register `operation_with_nested_structure` Python implementation inside the handlers map.
 1229         -
        It can be used as a function decorator in Python.
 1230         -
        """
 1231         -
        ...
 1232         -
 1233         -
 1234         -
    def post_player_action(self, func: typing.Union[typing.Callable[[rest_json.input.PostPlayerActionInput, Ctx], typing.Union[rest_json.output.PostPlayerActionOutput, typing.Awaitable[rest_json.output.PostPlayerActionOutput]]], typing.Callable[[rest_json.input.PostPlayerActionInput], typing.Union[rest_json.output.PostPlayerActionOutput, typing.Awaitable[rest_json.output.PostPlayerActionOutput]]]]) -> None:
 1235         -
        """
 1236         -
        Method to register `post_player_action` Python implementation inside the handlers map.
 1237         -
        It can be used as a function decorator in Python.
 1238         -
        """
 1239         -
        ...
 1240         -
 1241         -
 1242         -
    def post_union_with_json_name(self, func: typing.Union[typing.Callable[[rest_json.input.PostUnionWithJsonNameInput, Ctx], typing.Union[rest_json.output.PostUnionWithJsonNameOutput, typing.Awaitable[rest_json.output.PostUnionWithJsonNameOutput]]], typing.Callable[[rest_json.input.PostUnionWithJsonNameInput], typing.Union[rest_json.output.PostUnionWithJsonNameOutput, typing.Awaitable[rest_json.output.PostUnionWithJsonNameOutput]]]]) -> None:
 1243         -
        """
 1244         -
        Method to register `post_union_with_json_name` Python implementation inside the handlers map.
 1245         -
        It can be used as a function decorator in Python.
 1246         -
        """
 1247         -
        ...
 1248         -
 1249         -
 1250         -
    def put_with_content_encoding(self, func: typing.Union[typing.Callable[[rest_json.input.PutWithContentEncodingInput, Ctx], typing.Union[rest_json.output.PutWithContentEncodingOutput, typing.Awaitable[rest_json.output.PutWithContentEncodingOutput]]], typing.Callable[[rest_json.input.PutWithContentEncodingInput], typing.Union[rest_json.output.PutWithContentEncodingOutput, typing.Awaitable[rest_json.output.PutWithContentEncodingOutput]]]]) -> None:
 1251         -
        """
 1252         -
        Method to register `put_with_content_encoding` Python implementation inside the handlers map.
 1253         -
        It can be used as a function decorator in Python.
 1254         -
        """
 1255         -
        ...
 1256         -
 1257         -
 1258         -
    def query_idempotency_token_auto_fill(self, func: typing.Union[typing.Callable[[rest_json.input.QueryIdempotencyTokenAutoFillInput, Ctx], typing.Union[rest_json.output.QueryIdempotencyTokenAutoFillOutput, typing.Awaitable[rest_json.output.QueryIdempotencyTokenAutoFillOutput]]], typing.Callable[[rest_json.input.QueryIdempotencyTokenAutoFillInput], typing.Union[rest_json.output.QueryIdempotencyTokenAutoFillOutput, typing.Awaitable[rest_json.output.QueryIdempotencyTokenAutoFillOutput]]]]) -> None:
 1259         -
        """
 1260         -
        Method to register `query_idempotency_token_auto_fill` Python implementation inside the handlers map.
 1261         -
        It can be used as a function decorator in Python.
 1262         -
        """
 1263         -
        ...
 1264         -
 1265         -
 1266         -
    def query_params_as_string_list_map(self, func: typing.Union[typing.Callable[[rest_json.input.QueryParamsAsStringListMapInput, Ctx], typing.Union[rest_json.output.QueryParamsAsStringListMapOutput, typing.Awaitable[rest_json.output.QueryParamsAsStringListMapOutput]]], typing.Callable[[rest_json.input.QueryParamsAsStringListMapInput], typing.Union[rest_json.output.QueryParamsAsStringListMapOutput, typing.Awaitable[rest_json.output.QueryParamsAsStringListMapOutput]]]]) -> None:
 1267         -
        """
 1268         -
        Method to register `query_params_as_string_list_map` Python implementation inside the handlers map.
 1269         -
        It can be used as a function decorator in Python.
 1270         -
        """
 1271         -
        ...
 1272         -
 1273         -
 1274         -
    def query_precedence(self, func: typing.Union[typing.Callable[[rest_json.input.QueryPrecedenceInput, Ctx], typing.Union[rest_json.output.QueryPrecedenceOutput, typing.Awaitable[rest_json.output.QueryPrecedenceOutput]]], typing.Callable[[rest_json.input.QueryPrecedenceInput], typing.Union[rest_json.output.QueryPrecedenceOutput, typing.Awaitable[rest_json.output.QueryPrecedenceOutput]]]]) -> None:
 1275         -
        """
 1276         -
        Method to register `query_precedence` Python implementation inside the handlers map.
 1277         -
        It can be used as a function decorator in Python.
 1278         -
        """
 1279         -
        ...
 1280         -
 1281         -
 1282         -
    def recursive_shapes(self, func: typing.Union[typing.Callable[[rest_json.input.RecursiveShapesInput, Ctx], typing.Union[rest_json.output.RecursiveShapesOutput, typing.Awaitable[rest_json.output.RecursiveShapesOutput]]], typing.Callable[[rest_json.input.RecursiveShapesInput], typing.Union[rest_json.output.RecursiveShapesOutput, typing.Awaitable[rest_json.output.RecursiveShapesOutput]]]]) -> None:
 1283         -
        """
 1284         -
        Method to register `recursive_shapes` Python implementation inside the handlers map.
 1285         -
        It can be used as a function decorator in Python.
 1286         -
        """
 1287         -
        ...
 1288         -
 1289         -
 1290         -
    def run(self, address: typing.Optional[str] = ..., port: typing.Optional[int] = ..., backlog: typing.Optional[int] = ..., workers: typing.Optional[int] = ..., tls: typing.Optional[rest_json.tls.TlsConfig] = ...) -> None:
 1291         -
        """
 1292         -
        Main entrypoint: start the server on multiple workers.
 1293         -
        """
 1294         -
        ...
 1295         -
 1296         -
 1297         -
    def run_lambda(self) -> None:
 1298         -
        """
 1299         -
        Lambda entrypoint: start the server on Lambda.
 1300         -
        """
 1301         -
        ...
 1302         -
 1303         -
 1304         -
    def simple_scalar_properties(self, func: typing.Union[typing.Callable[[rest_json.input.SimpleScalarPropertiesInput, Ctx], typing.Union[rest_json.output.SimpleScalarPropertiesOutput, typing.Awaitable[rest_json.output.SimpleScalarPropertiesOutput]]], typing.Callable[[rest_json.input.SimpleScalarPropertiesInput], typing.Union[rest_json.output.SimpleScalarPropertiesOutput, typing.Awaitable[rest_json.output.SimpleScalarPropertiesOutput]]]]) -> None:
 1305         -
        """
 1306         -
        Method to register `simple_scalar_properties` Python implementation inside the handlers map.
 1307         -
        It can be used as a function decorator in Python.
 1308         -
        """
 1309         -
        ...
 1310         -
 1311         -
 1312         -
    def sparse_json_lists(self, func: typing.Union[typing.Callable[[rest_json.input.SparseJsonListsInput, Ctx], typing.Union[rest_json.output.SparseJsonListsOutput, typing.Awaitable[rest_json.output.SparseJsonListsOutput]]], typing.Callable[[rest_json.input.SparseJsonListsInput], typing.Union[rest_json.output.SparseJsonListsOutput, typing.Awaitable[rest_json.output.SparseJsonListsOutput]]]]) -> None:
 1313         -
        """
 1314         -
        Method to register `sparse_json_lists` Python implementation inside the handlers map.
 1315         -
        It can be used as a function decorator in Python.
 1316         -
        """
 1317         -
        ...
 1318         -
 1319         -
 1320         -
    def sparse_json_maps(self, func: typing.Union[typing.Callable[[rest_json.input.SparseJsonMapsInput, Ctx], typing.Union[rest_json.output.SparseJsonMapsOutput, typing.Awaitable[rest_json.output.SparseJsonMapsOutput]]], typing.Callable[[rest_json.input.SparseJsonMapsInput], typing.Union[rest_json.output.SparseJsonMapsOutput, typing.Awaitable[rest_json.output.SparseJsonMapsOutput]]]]) -> None:
 1321         -
        """
 1322         -
        Method to register `sparse_json_maps` Python implementation inside the handlers map.
 1323         -
        It can be used as a function decorator in Python.
 1324         -
        """
 1325         -
        ...
 1326         -
 1327         -
 1328         -
    def start_worker(self) -> None:
 1329         -
        """
 1330         -
        Build the service and start a single worker.
 1331         -
        """
 1332         -
        ...
 1333         -
 1334         -
 1335         -
    def streaming_traits(self, func: typing.Union[typing.Callable[[rest_json.input.StreamingTraitsInput, Ctx], typing.Union[rest_json.output.StreamingTraitsOutput, typing.Awaitable[rest_json.output.StreamingTraitsOutput]]], typing.Callable[[rest_json.input.StreamingTraitsInput], typing.Union[rest_json.output.StreamingTraitsOutput, typing.Awaitable[rest_json.output.StreamingTraitsOutput]]]]) -> None:
 1336         -
        """
 1337         -
        Method to register `streaming_traits` Python implementation inside the handlers map.
 1338         -
        It can be used as a function decorator in Python.
 1339         -
        """
 1340         -
        ...
 1341         -
 1342         -
 1343         -
    def streaming_traits_require_length(self, func: typing.Union[typing.Callable[[rest_json.input.StreamingTraitsRequireLengthInput, Ctx], typing.Union[rest_json.output.StreamingTraitsRequireLengthOutput, typing.Awaitable[rest_json.output.StreamingTraitsRequireLengthOutput]]], typing.Callable[[rest_json.input.StreamingTraitsRequireLengthInput], typing.Union[rest_json.output.StreamingTraitsRequireLengthOutput, typing.Awaitable[rest_json.output.StreamingTraitsRequireLengthOutput]]]]) -> None:
 1344         -
        """
 1345         -
        Method to register `streaming_traits_require_length` Python implementation inside the handlers map.
 1346         -
        It can be used as a function decorator in Python.
 1347         -
        """
 1348         -
        ...
 1349         -
 1350         -
 1351         -
    def streaming_traits_with_media_type(self, func: typing.Union[typing.Callable[[rest_json.input.StreamingTraitsWithMediaTypeInput, Ctx], typing.Union[rest_json.output.StreamingTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.StreamingTraitsWithMediaTypeOutput]]], typing.Callable[[rest_json.input.StreamingTraitsWithMediaTypeInput], typing.Union[rest_json.output.StreamingTraitsWithMediaTypeOutput, typing.Awaitable[rest_json.output.StreamingTraitsWithMediaTypeOutput]]]]) -> None:
 1352         -
        """
 1353         -
        Method to register `streaming_traits_with_media_type` Python implementation inside the handlers map.
 1354         -
        It can be used as a function decorator in Python.
 1355         -
        """
 1356         -
        ...
 1357         -
 1358         -
 1359         -
    def test_body_structure(self, func: typing.Union[typing.Callable[[rest_json.input.TestBodyStructureInput, Ctx], typing.Union[rest_json.output.TestBodyStructureOutput, typing.Awaitable[rest_json.output.TestBodyStructureOutput]]], typing.Callable[[rest_json.input.TestBodyStructureInput], typing.Union[rest_json.output.TestBodyStructureOutput, typing.Awaitable[rest_json.output.TestBodyStructureOutput]]]]) -> None:
 1360         -
        """
 1361         -
        Method to register `test_body_structure` Python implementation inside the handlers map.
 1362         -
        It can be used as a function decorator in Python.
 1363         -
        """
 1364         -
        ...
 1365         -
 1366         -
 1367         -
    def test_get_no_input_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestGetNoInputNoPayloadInput, Ctx], typing.Union[rest_json.output.TestGetNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoInputNoPayloadOutput]]], typing.Callable[[rest_json.input.TestGetNoInputNoPayloadInput], typing.Union[rest_json.output.TestGetNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoInputNoPayloadOutput]]]]) -> None:
 1368         -
        """
 1369         -
        Method to register `test_get_no_input_no_payload` Python implementation inside the handlers map.
 1370         -
        It can be used as a function decorator in Python.
 1371         -
        """
 1372         -
        ...
 1373         -
 1374         -
 1375         -
    def test_get_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestGetNoPayloadInput, Ctx], typing.Union[rest_json.output.TestGetNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoPayloadOutput]]], typing.Callable[[rest_json.input.TestGetNoPayloadInput], typing.Union[rest_json.output.TestGetNoPayloadOutput, typing.Awaitable[rest_json.output.TestGetNoPayloadOutput]]]]) -> None:
 1376         -
        """
 1377         -
        Method to register `test_get_no_payload` Python implementation inside the handlers map.
 1378         -
        It can be used as a function decorator in Python.
 1379         -
        """
 1380         -
        ...
 1381         -
 1382         -
 1383         -
    def test_payload_blob(self, func: typing.Union[typing.Callable[[rest_json.input.TestPayloadBlobInput, Ctx], typing.Union[rest_json.output.TestPayloadBlobOutput, typing.Awaitable[rest_json.output.TestPayloadBlobOutput]]], typing.Callable[[rest_json.input.TestPayloadBlobInput], typing.Union[rest_json.output.TestPayloadBlobOutput, typing.Awaitable[rest_json.output.TestPayloadBlobOutput]]]]) -> None:
 1384         -
        """
 1385         -
        Method to register `test_payload_blob` Python implementation inside the handlers map.
 1386         -
        It can be used as a function decorator in Python.
 1387         -
        """
 1388         -
        ...
 1389         -
 1390         -
 1391         -
    def test_payload_structure(self, func: typing.Union[typing.Callable[[rest_json.input.TestPayloadStructureInput, Ctx], typing.Union[rest_json.output.TestPayloadStructureOutput, typing.Awaitable[rest_json.output.TestPayloadStructureOutput]]], typing.Callable[[rest_json.input.TestPayloadStructureInput], typing.Union[rest_json.output.TestPayloadStructureOutput, typing.Awaitable[rest_json.output.TestPayloadStructureOutput]]]]) -> None:
 1392         -
        """
 1393         -
        Method to register `test_payload_structure` Python implementation inside the handlers map.
 1394         -
        It can be used as a function decorator in Python.
 1395         -
        """
 1396         -
        ...
 1397         -
 1398         -
 1399         -
    def test_post_no_input_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestPostNoInputNoPayloadInput, Ctx], typing.Union[rest_json.output.TestPostNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoInputNoPayloadOutput]]], typing.Callable[[rest_json.input.TestPostNoInputNoPayloadInput], typing.Union[rest_json.output.TestPostNoInputNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoInputNoPayloadOutput]]]]) -> None:
 1400         -
        """
 1401         -
        Method to register `test_post_no_input_no_payload` Python implementation inside the handlers map.
 1402         -
        It can be used as a function decorator in Python.
 1403         -
        """
 1404         -
        ...
 1405         -
 1406         -
 1407         -
    def test_post_no_payload(self, func: typing.Union[typing.Callable[[rest_json.input.TestPostNoPayloadInput, Ctx], typing.Union[rest_json.output.TestPostNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoPayloadOutput]]], typing.Callable[[rest_json.input.TestPostNoPayloadInput], typing.Union[rest_json.output.TestPostNoPayloadOutput, typing.Awaitable[rest_json.output.TestPostNoPayloadOutput]]]]) -> None:
 1408         -
        """
 1409         -
        Method to register `test_post_no_payload` Python implementation inside the handlers map.
 1410         -
        It can be used as a function decorator in Python.
 1411         -
        """
 1412         -
        ...
 1413         -
 1414         -
 1415         -
    def timestamp_format_headers(self, func: typing.Union[typing.Callable[[rest_json.input.TimestampFormatHeadersInput, Ctx], typing.Union[rest_json.output.TimestampFormatHeadersOutput, typing.Awaitable[rest_json.output.TimestampFormatHeadersOutput]]], typing.Callable[[rest_json.input.TimestampFormatHeadersInput], typing.Union[rest_json.output.TimestampFormatHeadersOutput, typing.Awaitable[rest_json.output.TimestampFormatHeadersOutput]]]]) -> None:
 1416         -
        """
 1417         -
        Method to register `timestamp_format_headers` Python implementation inside the handlers map.
 1418         -
        It can be used as a function decorator in Python.
 1419         -
        """
 1420         -
        ...
 1421         -
 1422         -
 1423         -
    def unit_input_and_output(self, func: typing.Union[typing.Callable[[rest_json.input.UnitInputAndOutputInput, Ctx], typing.Union[rest_json.output.UnitInputAndOutputOutput, typing.Awaitable[rest_json.output.UnitInputAndOutputOutput]]], typing.Callable[[rest_json.input.UnitInputAndOutputInput], typing.Union[rest_json.output.UnitInputAndOutputOutput, typing.Awaitable[rest_json.output.UnitInputAndOutputOutput]]]]) -> None:
 1424         -
        """
 1425         -
        Method to register `unit_input_and_output` Python implementation inside the handlers map.
 1426         -
        It can be used as a function decorator in Python.
 1427         -
        """
 1428         -
        ...
 1429         -
 1430         -
 1431         -
    def __init__(self) -> None:
 1432         -
        ...
 1433         -
 1434         -
 1435         -
CODEGEN_VERSION: str = ...