Server Test Python

Server Test Python

rev. 399187927edd9a1e762efeae060e3a56d671920a

Files changed:

tmp-codegen-diff/codegen-server-test-python/rest_json/rust-server-codegen-python/python/rest_json/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/rest_json/rust-server-codegen-python/python/rest_json/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/rest_json/rust-server-codegen-python/python/rest_json/model/__init__.pyi

@@ -1,0 +600,0 @@
    1         -
import rest_json.model
    2         -
import rest_json.types
    3         -
import typing
    4         -
    5         -
class ClientOptionalDefaults:
    6         -
    member: int
    7         -
    8         -
    def __init__(self, member: int) -> None:
    9         -
        ...
   10         -
   11         -
   12         -
class ComplexNestedErrorData:
   13         -
    foo: typing.Optional[str]
   14         -
   15         -
    def __init__(self, foo: typing.Optional[str] = ...) -> None:
   16         -
        ...
   17         -
   18         -
   19         -
class Defaults:
   20         -
    default_blob: rest_json.types.Blob
   21         -
   22         -
    default_boolean: bool
   23         -
   24         -
    default_byte: int
   25         -
   26         -
    default_document_boolean: rest_json.types.Document
   27         -
   28         -
    default_document_list: rest_json.types.Document
   29         -
   30         -
    default_document_map: rest_json.types.Document
   31         -
   32         -
    default_document_string: rest_json.types.Document
   33         -
   34         -
    default_double: float
   35         -
   36         -
    default_enum: rest_json.model.TestEnum
   37         -
   38         -
    default_float: float
   39         -
   40         -
    default_int_enum: int
   41         -
   42         -
    default_integer: int
   43         -
   44         -
    default_list: typing.List[str]
   45         -
   46         -
    default_long: int
   47         -
   48         -
    default_map: typing.Dict[str, str]
   49         -
   50         -
    default_null_document: typing.Optional[rest_json.types.Document]
   51         -
   52         -
    default_short: int
   53         -
   54         -
    default_string: str
   55         -
   56         -
    default_timestamp: rest_json.types.DateTime
   57         -
   58         -
    empty_blob: rest_json.types.Blob
   59         -
   60         -
    empty_string: str
   61         -
   62         -
    false_boolean: bool
   63         -
   64         -
    zero_byte: int
   65         -
   66         -
    zero_double: float
   67         -
   68         -
    zero_float: float
   69         -
   70         -
    zero_integer: int
   71         -
   72         -
    zero_long: int
   73         -
   74         -
    zero_short: int
   75         -
   76         -
    def __init__(self, default_string: str, default_boolean: bool, default_list: typing.List[str], default_document_map: rest_json.types.Document, default_document_string: rest_json.types.Document, default_document_boolean: rest_json.types.Document, default_document_list: rest_json.types.Document, default_null_document: typing.Optional[rest_json.types.Document] = ..., default_timestamp: rest_json.types.DateTime, default_blob: rest_json.types.Blob, default_byte: int, default_short: int, default_integer: int, default_long: int, default_float: float, default_double: float, default_map: typing.Dict[str, str], default_enum: rest_json.model.TestEnum, default_int_enum: int, empty_string: str, false_boolean: bool, empty_blob: rest_json.types.Blob, zero_byte: int, zero_short: int, zero_integer: int, zero_long: int, zero_float: float, zero_double: float) -> None:
   77         -
        ...
   78         -
   79         -
   80         -
class Dialog:
   81         -
    farewell: typing.Optional[rest_json.model.Farewell]
   82         -
   83         -
    greeting: str
   84         -
   85         -
    language: typing.Optional[str]
   86         -
   87         -
    def __init__(self, language: typing.Optional[str] = ..., greeting: str, farewell: typing.Optional[rest_json.model.Farewell] = ...) -> None:
   88         -
        ...
   89         -
   90         -
   91         -
class Farewell:
   92         -
    phrase: str
   93         -
   94         -
    def __init__(self, phrase: str) -> None:
   95         -
        ...
   96         -
   97         -
   98         -
class FooEnum:
   99         -
    Bar: FooEnum
  100         -
  101         -
    Baz: FooEnum
  102         -
  103         -
    Foo: FooEnum
  104         -
  105         -
    One: FooEnum
  106         -
  107         -
    Zero: FooEnum
  108         -
  109         -
    name: typing.Any
  110         -
  111         -
    value: typing.Any
  112         -
  113         -
class GreetingStruct:
  114         -
    hi: typing.Optional[str]
  115         -
  116         -
    def __init__(self, hi: typing.Optional[str] = ...) -> None:
  117         -
        ...
  118         -
  119         -
  120         -
class MyUnion:
  121         -
    def as_blob_value(self) -> rest_json.types.Blob:
  122         -
        """
  123         -
        Tries to convert the enum instance into [`BlobValue`](crate::model::MyUnion::BlobValue), extracting the inner [`Blob`](::aws_smithy_http_server_python::types::Blob).
  124         -
        """
  125         -
        ...
  126         -
  127         -
  128         -
    def as_boolean_value(self) -> bool:
  129         -
        """
  130         -
        Tries to convert the enum instance into [`BooleanValue`](crate::model::MyUnion::BooleanValue), extracting the inner [`bool`](bool).
  131         -
        """
  132         -
        ...
  133         -
  134         -
  135         -
    def as_enum_value(self) -> rest_json.model.FooEnum:
  136         -
        """
  137         -
        Tries to convert the enum instance into [`EnumValue`](crate::model::MyUnion::EnumValue), extracting the inner [`FooEnum`](crate::model::FooEnum).
  138         -
        """
  139         -
        ...
  140         -
  141         -
  142         -
    def as_list_value(self) -> typing.List[str]:
  143         -
        """
  144         -
        Tries to convert the enum instance into [`ListValue`](crate::model::MyUnion::ListValue), extracting the inner [`Vec`](::std::vec::Vec).
  145         -
        """
  146         -
        ...
  147         -
  148         -
  149         -
    def as_map_value(self) -> typing.Dict[str, str]:
  150         -
        """
  151         -
        Tries to convert the enum instance into [`MapValue`](crate::model::MyUnion::MapValue), extracting the inner [`HashMap`](::std::collections::HashMap).
  152         -
        """
  153         -
        ...
  154         -
  155         -
  156         -
    def as_number_value(self) -> int:
  157         -
        """
  158         -
        Tries to convert the enum instance into [`NumberValue`](crate::model::MyUnion::NumberValue), extracting the inner [`i32`](i32).
  159         -
        """
  160         -
        ...
  161         -
  162         -
  163         -
    def as_renamed_structure_value(self) -> rest_json.model.RenamedGreeting:
  164         -
        """
  165         -
        Tries to convert the enum instance into [`RenamedStructureValue`](crate::model::MyUnion::RenamedStructureValue), extracting the inner [`RenamedGreeting`](crate::model::RenamedGreeting).
  166         -
        """
  167         -
        ...
  168         -
  169         -
  170         -
    def as_string_value(self) -> str:
  171         -
        """
  172         -
        Tries to convert the enum instance into [`StringValue`](crate::model::MyUnion::StringValue), extracting the inner [`String`](::std::string::String).
  173         -
        """
  174         -
        ...
  175         -
  176         -
  177         -
    def as_structure_value(self) -> rest_json.model.GreetingStruct:
  178         -
        """
  179         -
        Tries to convert the enum instance into [`StructureValue`](crate::model::MyUnion::StructureValue), extracting the inner [`GreetingStruct`](crate::model::GreetingStruct).
  180         -
        """
  181         -
        ...
  182         -
  183         -
  184         -
    def as_timestamp_value(self) -> rest_json.types.DateTime:
  185         -
        """
  186         -
        Tries to convert the enum instance into [`TimestampValue`](crate::model::MyUnion::TimestampValue), extracting the inner [`DateTime`](::aws_smithy_http_server_python::types::DateTime).
  187         -
        """
  188         -
        ...
  189         -
  190         -
  191         -
    @staticmethod
  192         -
    def blob_value(data: rest_json.types.Blob) -> MyUnion:
  193         -
        """
  194         -
        Creates a new union instance of [`BlobValue`](crate::model::MyUnion::BlobValue)
  195         -
        """
  196         -
        ...
  197         -
  198         -
  199         -
    @staticmethod
  200         -
    def boolean_value(data: bool) -> MyUnion:
  201         -
        """
  202         -
        Creates a new union instance of [`BooleanValue`](crate::model::MyUnion::BooleanValue)
  203         -
        """
  204         -
        ...
  205         -
  206         -
  207         -
    @staticmethod
  208         -
    def enum_value(data: rest_json.model.FooEnum) -> MyUnion:
  209         -
        """
  210         -
        Creates a new union instance of [`EnumValue`](crate::model::MyUnion::EnumValue)
  211         -
        """
  212         -
        ...
  213         -
  214         -
  215         -
    def is_blob_value(self) -> bool:
  216         -
        """
  217         -
        Returns true if this is a [`BlobValue`](crate::model::MyUnion::BlobValue).
  218         -
        """
  219         -
        ...
  220         -
  221         -
  222         -
    def is_boolean_value(self) -> bool:
  223         -
        """
  224         -
        Returns true if this is a [`BooleanValue`](crate::model::MyUnion::BooleanValue).
  225         -
        """
  226         -
        ...
  227         -
  228         -
  229         -
    def is_enum_value(self) -> bool:
  230         -
        """
  231         -
        Returns true if this is a [`EnumValue`](crate::model::MyUnion::EnumValue).
  232         -
        """
  233         -
        ...
  234         -
  235         -
  236         -
    def is_list_value(self) -> bool:
  237         -
        """
  238         -
        Returns true if this is a [`ListValue`](crate::model::MyUnion::ListValue).
  239         -
        """
  240         -
        ...
  241         -
  242         -
  243         -
    def is_map_value(self) -> bool:
  244         -
        """
  245         -
        Returns true if this is a [`MapValue`](crate::model::MyUnion::MapValue).
  246         -
        """
  247         -
        ...
  248         -
  249         -
  250         -
    def is_number_value(self) -> bool:
  251         -
        """
  252         -
        Returns true if this is a [`NumberValue`](crate::model::MyUnion::NumberValue).
  253         -
        """
  254         -
        ...
  255         -
  256         -
  257         -
    def is_renamed_structure_value(self) -> bool:
  258         -
        """
  259         -
        Returns true if this is a [`RenamedStructureValue`](crate::model::MyUnion::RenamedStructureValue).
  260         -
        """
  261         -
        ...
  262         -
  263         -
  264         -
    def is_string_value(self) -> bool:
  265         -
        """
  266         -
        Returns true if this is a [`StringValue`](crate::model::MyUnion::StringValue).
  267         -
        """
  268         -
        ...
  269         -
  270         -
  271         -
    def is_structure_value(self) -> bool:
  272         -
        """
  273         -
        Returns true if this is a [`StructureValue`](crate::model::MyUnion::StructureValue).
  274         -
        """
  275         -
        ...
  276         -
  277         -
  278         -
    def is_timestamp_value(self) -> bool:
  279         -
        """
  280         -
        Returns true if this is a [`TimestampValue`](crate::model::MyUnion::TimestampValue).
  281         -
        """
  282         -
        ...
  283         -
  284         -
  285         -
    @staticmethod
  286         -
    def list_value(data: typing.List[str]) -> MyUnion:
  287         -
        """
  288         -
        Creates a new union instance of [`ListValue`](crate::model::MyUnion::ListValue)
  289         -
        """
  290         -
        ...
  291         -
  292         -
  293         -
    @staticmethod
  294         -
    def map_value(data: typing.Dict[str, str]) -> MyUnion:
  295         -
        """
  296         -
        Creates a new union instance of [`MapValue`](crate::model::MyUnion::MapValue)
  297         -
        """
  298         -
        ...
  299         -
  300         -
  301         -
    @staticmethod
  302         -
    def number_value(data: int) -> MyUnion:
  303         -
        """
  304         -
        Creates a new union instance of [`NumberValue`](crate::model::MyUnion::NumberValue)
  305         -
        """
  306         -
        ...
  307         -
  308         -
  309         -
    @staticmethod
  310         -
    def renamed_structure_value(data: rest_json.model.RenamedGreeting) -> MyUnion:
  311         -
        """
  312         -
        Creates a new union instance of [`RenamedStructureValue`](crate::model::MyUnion::RenamedStructureValue)
  313         -
        """
  314         -
        ...
  315         -
  316         -
  317         -
    @staticmethod
  318         -
    def string_value(data: str) -> MyUnion:
  319         -
        """
  320         -
        Creates a new union instance of [`StringValue`](crate::model::MyUnion::StringValue)
  321         -
        """
  322         -
        ...
  323         -
  324         -
  325         -
    @staticmethod
  326         -
    def structure_value(data: rest_json.model.GreetingStruct) -> MyUnion:
  327         -
        """
  328         -
        Creates a new union instance of [`StructureValue`](crate::model::MyUnion::StructureValue)
  329         -
        """
  330         -
        ...
  331         -
  332         -
  333         -
    @staticmethod
  334         -
    def timestamp_value(data: rest_json.types.DateTime) -> MyUnion:
  335         -
        """
  336         -
        Creates a new union instance of [`TimestampValue`](crate::model::MyUnion::TimestampValue)
  337         -
        """
  338         -
        ...
  339         -
  340         -
  341         -
class NestedPayload:
  342         -
    greeting: typing.Optional[str]
  343         -
  344         -
    name: typing.Optional[str]
  345         -
  346         -
    def __init__(self, greeting: typing.Optional[str] = ..., name: typing.Optional[str] = ...) -> None:
  347         -
        ...
  348         -
  349         -
  350         -
class PayloadConfig:
  351         -
    data: typing.Optional[int]
  352         -
  353         -
    def __init__(self, data: typing.Optional[int] = ...) -> None:
  354         -
        ...
  355         -
  356         -
  357         -
class PlayerAction:
  358         -
    def as_quit(self) -> None:
  359         -
        """
  360         -
        Tries to convert the enum instance into [`Quit`](crate::model::PlayerAction::Quit), extracting the inner `()`.
  361         -
        """
  362         -
        ...
  363         -
  364         -
  365         -
    def is_quit(self) -> bool:
  366         -
        """
  367         -
        Returns true if this is a [`Quit`](crate::model::PlayerAction::Quit).
  368         -
        """
  369         -
        ...
  370         -
  371         -
  372         -
    @staticmethod
  373         -
    def quit() -> PlayerAction:
  374         -
        """
  375         -
        Creates a new union instance of [`Quit`](crate::model::PlayerAction::Quit)
  376         -
        """
  377         -
        ...
  378         -
  379         -
  380         -
class RecursiveShapesInputOutputNested1:
  381         -
    foo: typing.Optional[str]
  382         -
  383         -
    nested: typing.Optional[rest_json.model.RecursiveShapesInputOutputNested2]
  384         -
  385         -
    def __init__(self, foo: typing.Optional[str] = ..., nested: typing.Optional[rest_json.model.RecursiveShapesInputOutputNested2] = ...) -> None:
  386         -
        ...
  387         -
  388         -
  389         -
class RecursiveShapesInputOutputNested2:
  390         -
    bar: typing.Optional[str]
  391         -
  392         -
    recursive_member: typing.Optional[rest_json.model.RecursiveShapesInputOutputNested1]
  393         -
  394         -
    def __init__(self, bar: typing.Optional[str] = ..., recursive_member: typing.Optional[rest_json.model.RecursiveShapesInputOutputNested1] = ...) -> None:
  395         -
        ...
  396         -
  397         -
  398         -
class SimpleUnion:
  399         -
    def as_int(self) -> int:
  400         -
        """
  401         -
        Tries to convert the enum instance into [`Int`](crate::model::SimpleUnion::Int), extracting the inner [`i32`](i32).
  402         -
        """
  403         -
        ...
  404         -
  405         -
  406         -
    def as_string(self) -> str:
  407         -
        """
  408         -
        Tries to convert the enum instance into [`String`](crate::model::SimpleUnion::String), extracting the inner [`String`](::std::string::String).
  409         -
        """
  410         -
        ...
  411         -
  412         -
  413         -
    @staticmethod
  414         -
    def int(data: int) -> SimpleUnion:
  415         -
        """
  416         -
        Creates a new union instance of [`Int`](crate::model::SimpleUnion::Int)
  417         -
        """
  418         -
        ...
  419         -
  420         -
  421         -
    def is_int(self) -> bool:
  422         -
        """
  423         -
        Returns true if this is a [`Int`](crate::model::SimpleUnion::Int).
  424         -
        """
  425         -
        ...
  426         -
  427         -
  428         -
    def is_string(self) -> bool:
  429         -
        """
  430         -
        Returns true if this is a [`String`](crate::model::SimpleUnion::String).
  431         -
        """
  432         -
        ...
  433         -
  434         -
  435         -
    @staticmethod
  436         -
    def string(data: str) -> SimpleUnion:
  437         -
        """
  438         -
        Creates a new union instance of [`String`](crate::model::SimpleUnion::String)
  439         -
        """
  440         -
        ...
  441         -
  442         -
  443         -
class StringEnum:
  444         -
    V: StringEnum
  445         -
  446         -
    name: typing.Any
  447         -
  448         -
    value: typing.Any
  449         -
  450         -
class StructureListMember:
  451         -
    a: typing.Optional[str]
  452         -
  453         -
    b: typing.Optional[str]
  454         -
  455         -
    def __init__(self, a: typing.Optional[str] = ..., b: typing.Optional[str] = ...) -> None:
  456         -
        ...
  457         -
  458         -
  459         -
class TestConfig:
  460         -
    timeout: typing.Optional[int]
  461         -
  462         -
    def __init__(self, timeout: typing.Optional[int] = ...) -> None:
  463         -
        ...
  464         -
  465         -
  466         -
class TestEnum:
  467         -
    Bar: TestEnum
  468         -
  469         -
    Baz: TestEnum
  470         -
  471         -
    Foo: TestEnum
  472         -
  473         -
    name: typing.Any
  474         -
  475         -
    value: typing.Any
  476         -
  477         -
class TopLevel:
  478         -
    dialog: rest_json.model.Dialog
  479         -
  480         -
    dialog_list: typing.List[rest_json.model.Dialog]
  481         -
  482         -
    dialog_map: typing.Dict[str, rest_json.model.Dialog]
  483         -
  484         -
    def __init__(self, dialog: rest_json.model.Dialog, dialog_list: typing.List[rest_json.model.Dialog], dialog_map: typing.Dict[str, rest_json.model.Dialog]) -> None:
  485         -
        ...
  486         -
  487         -
  488         -
class UnionPayload:
  489         -
    def as_greeting(self) -> str:
  490         -
        """
  491         -
        Tries to convert the enum instance into [`Greeting`](crate::model::UnionPayload::Greeting), extracting the inner [`String`](::std::string::String).
  492         -
        """
  493         -
        ...
  494         -
  495         -
  496         -
    @staticmethod
  497         -
    def greeting(data: str) -> UnionPayload:
  498         -
        """
  499         -
        Creates a new union instance of [`Greeting`](crate::model::UnionPayload::Greeting)
  500         -
        """
  501         -
        ...
  502         -
  503         -
  504         -
    def is_greeting(self) -> bool:
  505         -
        """
  506         -
        Returns true if this is a [`Greeting`](crate::model::UnionPayload::Greeting).
  507         -
        """
  508         -
        ...
  509         -
  510         -
  511         -
class UnionWithJsonName:
  512         -
    def as_bar(self) -> str:
  513         -
        """
  514         -
        Tries to convert the enum instance into [`Bar`](crate::model::UnionWithJsonName::Bar), extracting the inner [`String`](::std::string::String).
  515         -
        """
  516         -
        ...
  517         -
  518         -
  519         -
    def as_baz(self) -> str:
  520         -
        """
  521         -
        Tries to convert the enum instance into [`Baz`](crate::model::UnionWithJsonName::Baz), extracting the inner [`String`](::std::string::String).
  522         -
        """
  523         -
        ...
  524         -
  525         -
  526         -
    def as_foo(self) -> str:
  527         -
        """
  528         -
        Tries to convert the enum instance into [`Foo`](crate::model::UnionWithJsonName::Foo), extracting the inner [`String`](::std::string::String).
  529         -
        """
  530         -
        ...
  531         -
  532         -
  533         -
    @staticmethod
  534         -
    def bar(data: str) -> UnionWithJsonName:
  535         -
        """
  536         -
        Creates a new union instance of [`Bar`](crate::model::UnionWithJsonName::Bar)
  537         -
        """
  538         -
        ...
  539         -
  540         -
  541         -
    @staticmethod
  542         -
    def baz(data: str) -> UnionWithJsonName:
  543         -
        """
  544         -
        Creates a new union instance of [`Baz`](crate::model::UnionWithJsonName::Baz)
  545         -
        """
  546         -
        ...
  547         -
  548         -
  549         -
    @staticmethod
  550         -
    def foo(data: str) -> UnionWithJsonName:
  551         -
        """
  552         -
        Creates a new union instance of [`Foo`](crate::model::UnionWithJsonName::Foo)
  553         -
        """
  554         -
        ...
  555         -
  556         -
  557         -
    def is_bar(self) -> bool:
  558         -
        """
  559         -
        Returns true if this is a [`Bar`](crate::model::UnionWithJsonName::Bar).
  560         -
        """
  561         -
        ...
  562         -
  563         -
  564         -
    def is_baz(self) -> bool:
  565         -
        """
  566         -
        Returns true if this is a [`Baz`](crate::model::UnionWithJsonName::Baz).
  567         -
        """
  568         -
        ...
  569         -
  570         -
  571         -
    def is_foo(self) -> bool:
  572         -
        """
  573         -
        Returns true if this is a [`Foo`](crate::model::UnionWithJsonName::Foo).
  574         -
        """
  575         -
        ...
  576         -
  577         -
  578         -
class Unit:
  579         -
    def __init__(self) -> None:
  580         -
        ...
  581         -
  582         -
  583         -
class ValidationExceptionField:
  584         -
    """
  585         -
    Describes one specific validation failure for an input member.
  586         -
    """
  587         -
  588         -
    message: str
  589         -
    """
  590         -
    A detailed description of the validation failure.
  591         -
    """
  592         -
  593         -
    path: str
  594         -
    """
  595         -
    A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints.
  596         -
    """
  597         -
  598         -
    def __init__(self, path: str, message: str) -> None:
  599         -
        ...
  600         -

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

@@ -1,0 +830,0 @@
    1         -
import rest_json.model
    2         -
import rest_json.types
    3         -
import typing
    4         -
    5         -
class AllQueryStringTypesOutput:
    6         -
    def __init__(self) -> None:
    7         -
        ...
    8         -
    9         -
   10         -
class ConstantAndVariableQueryStringOutput:
   11         -
    def __init__(self) -> None:
   12         -
        ...
   13         -
   14         -
   15         -
class ConstantQueryStringOutput:
   16         -
    def __init__(self) -> None:
   17         -
        ...
   18         -
   19         -
   20         -
class ContentTypeParametersOutput:
   21         -
    def __init__(self) -> None:
   22         -
        ...
   23         -
   24         -
   25         -
class DatetimeOffsetsOutput:
   26         -
    datetime: typing.Optional[rest_json.types.DateTime]
   27         -
   28         -
    def __init__(self, datetime: typing.Optional[rest_json.types.DateTime] = ...) -> None:
   29         -
        ...
   30         -
   31         -
   32         -
class DocumentTypeAsMapValueOutput:
   33         -
    doc_valued_map: typing.Optional[typing.Dict[str, rest_json.types.Document]]
   34         -
   35         -
    def __init__(self, doc_valued_map: typing.Optional[typing.Dict[str, rest_json.types.Document]] = ...) -> None:
   36         -
        ...
   37         -
   38         -
   39         -
class DocumentTypeAsPayloadOutput:
   40         -
    document_value: typing.Optional[rest_json.types.Document]
   41         -
   42         -
    def __init__(self, document_value: typing.Optional[rest_json.types.Document] = ...) -> None:
   43         -
        ...
   44         -
   45         -
   46         -
class DocumentTypeOutput:
   47         -
    document_value: typing.Optional[rest_json.types.Document]
   48         -
   49         -
    string_value: typing.Optional[str]
   50         -
   51         -
    def __init__(self, string_value: typing.Optional[str] = ..., document_value: typing.Optional[rest_json.types.Document] = ...) -> None:
   52         -
        ...
   53         -
   54         -
   55         -
class EmptyInputAndEmptyOutputOutput:
   56         -
    def __init__(self) -> None:
   57         -
        ...
   58         -
   59         -
   60         -
class EndpointOperationOutput:
   61         -
    def __init__(self) -> None:
   62         -
        ...
   63         -
   64         -
   65         -
class EndpointWithHostLabelOperationOutput:
   66         -
    def __init__(self) -> None:
   67         -
        ...
   68         -
   69         -
   70         -
class FractionalSecondsOutput:
   71         -
    datetime: typing.Optional[rest_json.types.DateTime]
   72         -
   73         -
    def __init__(self, datetime: typing.Optional[rest_json.types.DateTime] = ...) -> None:
   74         -
        ...
   75         -
   76         -
   77         -
class GreetingWithErrorsOutput:
   78         -
    greeting: typing.Optional[str]
   79         -
   80         -
    def __init__(self, greeting: typing.Optional[str] = ...) -> None:
   81         -
        ...
   82         -
   83         -
   84         -
class HostWithPathOperationOutput:
   85         -
    def __init__(self) -> None:
   86         -
        ...
   87         -
   88         -
   89         -
class HttpChecksumRequiredOutput:
   90         -
    foo: typing.Optional[str]
   91         -
   92         -
    def __init__(self, foo: typing.Optional[str] = ...) -> None:
   93         -
        ...
   94         -
   95         -
   96         -
class HttpEnumPayloadOutput:
   97         -
    payload: typing.Optional[rest_json.model.StringEnum]
   98         -
   99         -
    def __init__(self, payload: typing.Optional[rest_json.model.StringEnum] = ...) -> None:
  100         -
        ...
  101         -
  102         -
  103         -
class HttpPayloadTraitsOutput:
  104         -
    blob: typing.Optional[rest_json.types.Blob]
  105         -
  106         -
    foo: typing.Optional[str]
  107         -
  108         -
    def __init__(self, foo: typing.Optional[str] = ..., blob: typing.Optional[rest_json.types.Blob] = ...) -> None:
  109         -
        ...
  110         -
  111         -
  112         -
class HttpPayloadTraitsWithMediaTypeOutput:
  113         -
    blob: typing.Optional[rest_json.types.Blob]
  114         -
  115         -
    foo: typing.Optional[str]
  116         -
  117         -
    def __init__(self, foo: typing.Optional[str] = ..., blob: typing.Optional[rest_json.types.Blob] = ...) -> None:
  118         -
        ...
  119         -
  120         -
  121         -
class HttpPayloadWithStructureOutput:
  122         -
    nested: typing.Optional[rest_json.model.NestedPayload]
  123         -
  124         -
    def __init__(self, nested: typing.Optional[rest_json.model.NestedPayload] = ...) -> None:
  125         -
        ...
  126         -
  127         -
  128         -
class HttpPayloadWithUnionOutput:
  129         -
    nested: typing.Optional[rest_json.model.UnionPayload]
  130         -
  131         -
    def __init__(self, nested: typing.Optional[rest_json.model.UnionPayload] = ...) -> None:
  132         -
        ...
  133         -
  134         -
  135         -
class HttpPrefixHeadersInResponseOutput:
  136         -
    prefix_headers: typing.Optional[typing.Dict[str, str]]
  137         -
  138         -
    def __init__(self, prefix_headers: typing.Optional[typing.Dict[str, str]] = ...) -> None:
  139         -
        ...
  140         -
  141         -
  142         -
class HttpPrefixHeadersOutput:
  143         -
    foo: typing.Optional[str]
  144         -
  145         -
    foo_map: typing.Optional[typing.Dict[str, str]]
  146         -
  147         -
    def __init__(self, foo: typing.Optional[str] = ..., foo_map: typing.Optional[typing.Dict[str, str]] = ...) -> None:
  148         -
        ...
  149         -
  150         -
  151         -
class HttpRequestWithFloatLabelsOutput:
  152         -
    def __init__(self) -> None:
  153         -
        ...
  154         -
  155         -
  156         -
class HttpRequestWithGreedyLabelInPathOutput:
  157         -
    def __init__(self) -> None:
  158         -
        ...
  159         -
  160         -
  161         -
class HttpRequestWithLabelsAndTimestampFormatOutput:
  162         -
    def __init__(self) -> None:
  163         -
        ...
  164         -
  165         -
  166         -
class HttpRequestWithLabelsOutput:
  167         -
    def __init__(self) -> None:
  168         -
        ...
  169         -
  170         -
  171         -
class HttpRequestWithRegexLiteralOutput:
  172         -
    def __init__(self) -> None:
  173         -
        ...
  174         -
  175         -
  176         -
class HttpResponseCodeOutput:
  177         -
    status: typing.Optional[int]
  178         -
  179         -
    def __init__(self, status: typing.Optional[int] = ...) -> None:
  180         -
        ...
  181         -
  182         -
  183         -
class HttpStringPayloadOutput:
  184         -
    payload: typing.Optional[str]
  185         -
  186         -
    def __init__(self, payload: typing.Optional[str] = ...) -> None:
  187         -
        ...
  188         -
  189         -
  190         -
class IgnoreQueryParamsInResponseOutput:
  191         -
    baz: typing.Optional[str]
  192         -
  193         -
    def __init__(self, baz: typing.Optional[str] = ...) -> None:
  194         -
        ...
  195         -
  196         -
  197         -
class InputAndOutputWithHeadersOutput:
  198         -
    header_boolean_list: typing.Optional[typing.List[bool]]
  199         -
  200         -
    header_byte: typing.Optional[int]
  201         -
  202         -
    header_double: typing.Optional[float]
  203         -
  204         -
    header_enum: typing.Optional[rest_json.model.FooEnum]
  205         -
  206         -
    header_enum_list: typing.Optional[typing.List[rest_json.model.FooEnum]]
  207         -
  208         -
    header_false_bool: typing.Optional[bool]
  209         -
  210         -
    header_float: typing.Optional[float]
  211         -
  212         -
    header_integer: typing.Optional[int]
  213         -
  214         -
    header_integer_enum: typing.Optional[int]
  215         -
  216         -
    header_integer_enum_list: typing.Optional[typing.List[int]]
  217         -
  218         -
    header_integer_list: typing.Optional[typing.List[int]]
  219         -
  220         -
    header_long: typing.Optional[int]
  221         -
  222         -
    header_short: typing.Optional[int]
  223         -
  224         -
    header_string: typing.Optional[str]
  225         -
  226         -
    header_string_list: typing.Optional[typing.List[str]]
  227         -
  228         -
    header_string_set: typing.Optional[typing.List[str]]
  229         -
  230         -
    header_timestamp_list: typing.Optional[typing.List[rest_json.types.DateTime]]
  231         -
  232         -
    header_true_bool: typing.Optional[bool]
  233         -
  234         -
    def __init__(self, header_string: typing.Optional[str] = ..., header_byte: typing.Optional[int] = ..., header_short: typing.Optional[int] = ..., header_integer: typing.Optional[int] = ..., header_long: typing.Optional[int] = ..., header_float: typing.Optional[float] = ..., header_double: typing.Optional[float] = ..., header_true_bool: typing.Optional[bool] = ..., header_false_bool: typing.Optional[bool] = ..., header_string_list: typing.Optional[typing.List[str]] = ..., header_string_set: typing.Optional[typing.List[str]] = ..., header_integer_list: typing.Optional[typing.List[int]] = ..., header_boolean_list: typing.Optional[typing.List[bool]] = ..., header_timestamp_list: typing.Optional[typing.List[rest_json.types.DateTime]] = ..., header_enum: typing.Optional[rest_json.model.FooEnum] = ..., header_enum_list: typing.Optional[typing.List[rest_json.model.FooEnum]] = ..., header_integer_enum: typing.Optional[int] = ..., header_integer_enum_list: typing.Optional[typing.List[int]] = ...) -> None:
  235         -
        ...
  236         -
  237         -
  238         -
class JsonBlobsOutput:
  239         -
    data: typing.Optional[rest_json.types.Blob]
  240         -
  241         -
    def __init__(self, data: typing.Optional[rest_json.types.Blob] = ...) -> None:
  242         -
        ...
  243         -
  244         -
  245         -
class JsonEnumsOutput:
  246         -
    foo_enum1: typing.Optional[rest_json.model.FooEnum]
  247         -
  248         -
    foo_enum2: typing.Optional[rest_json.model.FooEnum]
  249         -
  250         -
    foo_enum3: typing.Optional[rest_json.model.FooEnum]
  251         -
  252         -
    foo_enum_list: typing.Optional[typing.List[rest_json.model.FooEnum]]
  253         -
  254         -
    foo_enum_map: typing.Optional[typing.Dict[str, rest_json.model.FooEnum]]
  255         -
  256         -
    foo_enum_set: typing.Optional[typing.List[rest_json.model.FooEnum]]
  257         -
  258         -
    def __init__(self, foo_enum1: typing.Optional[rest_json.model.FooEnum] = ..., foo_enum2: typing.Optional[rest_json.model.FooEnum] = ..., foo_enum3: typing.Optional[rest_json.model.FooEnum] = ..., foo_enum_list: typing.Optional[typing.List[rest_json.model.FooEnum]] = ..., foo_enum_set: typing.Optional[typing.List[rest_json.model.FooEnum]] = ..., foo_enum_map: typing.Optional[typing.Dict[str, rest_json.model.FooEnum]] = ...) -> None:
  259         -
        ...
  260         -
  261         -
  262         -
class JsonIntEnumsOutput:
  263         -
    integer_enum1: typing.Optional[int]
  264         -
  265         -
    integer_enum2: typing.Optional[int]
  266         -
  267         -
    integer_enum3: typing.Optional[int]
  268         -
  269         -
    integer_enum_list: typing.Optional[typing.List[int]]
  270         -
  271         -
    integer_enum_map: typing.Optional[typing.Dict[str, int]]
  272         -
  273         -
    integer_enum_set: typing.Optional[typing.List[int]]
  274         -
  275         -
    def __init__(self, integer_enum1: typing.Optional[int] = ..., integer_enum2: typing.Optional[int] = ..., integer_enum3: typing.Optional[int] = ..., integer_enum_list: typing.Optional[typing.List[int]] = ..., integer_enum_set: typing.Optional[typing.List[int]] = ..., integer_enum_map: typing.Optional[typing.Dict[str, int]] = ...) -> None:
  276         -
        ...
  277         -
  278         -
  279         -
class JsonListsOutput:
  280         -
    boolean_list: typing.Optional[typing.List[bool]]
  281         -
  282         -
    enum_list: typing.Optional[typing.List[rest_json.model.FooEnum]]
  283         -
  284         -
    int_enum_list: typing.Optional[typing.List[int]]
  285         -
  286         -
    integer_list: typing.Optional[typing.List[int]]
  287         -
  288         -
    nested_string_list: typing.Optional[typing.List[typing.List[str]]]
  289         -
    """
  290         -
    A list of lists of strings.
  291         -
    """
  292         -
  293         -
    string_list: typing.Optional[typing.List[str]]
  294         -
  295         -
    string_set: typing.Optional[typing.List[str]]
  296         -
  297         -
    structure_list: typing.Optional[typing.List[rest_json.model.StructureListMember]]
  298         -
  299         -
    timestamp_list: typing.Optional[typing.List[rest_json.types.DateTime]]
  300         -
  301         -
    def __init__(self, string_list: typing.Optional[typing.List[str]] = ..., string_set: typing.Optional[typing.List[str]] = ..., integer_list: typing.Optional[typing.List[int]] = ..., boolean_list: typing.Optional[typing.List[bool]] = ..., timestamp_list: typing.Optional[typing.List[rest_json.types.DateTime]] = ..., enum_list: typing.Optional[typing.List[rest_json.model.FooEnum]] = ..., int_enum_list: typing.Optional[typing.List[int]] = ..., nested_string_list: typing.Optional[typing.List[typing.List[str]]] = ..., structure_list: typing.Optional[typing.List[rest_json.model.StructureListMember]] = ...) -> None:
  302         -
        ...
  303         -
  304         -
  305         -
class JsonMapsOutput:
  306         -
    dense_boolean_map: typing.Optional[typing.Dict[str, bool]]
  307         -
  308         -
    dense_number_map: typing.Optional[typing.Dict[str, int]]
  309         -
  310         -
    dense_set_map: typing.Optional[typing.Dict[str, typing.List[str]]]
  311         -
  312         -
    dense_string_map: typing.Optional[typing.Dict[str, str]]
  313         -
  314         -
    dense_struct_map: typing.Optional[typing.Dict[str, rest_json.model.GreetingStruct]]
  315         -
  316         -
    def __init__(self, dense_struct_map: typing.Optional[typing.Dict[str, rest_json.model.GreetingStruct]] = ..., dense_number_map: typing.Optional[typing.Dict[str, int]] = ..., dense_boolean_map: typing.Optional[typing.Dict[str, bool]] = ..., dense_string_map: typing.Optional[typing.Dict[str, str]] = ..., dense_set_map: typing.Optional[typing.Dict[str, typing.List[str]]] = ...) -> None:
  317         -
        ...
  318         -
  319         -
  320         -
class JsonTimestampsOutput:
  321         -
    date_time: typing.Optional[rest_json.types.DateTime]
  322         -
  323         -
    date_time_on_target: typing.Optional[rest_json.types.DateTime]
  324         -
  325         -
    epoch_seconds: typing.Optional[rest_json.types.DateTime]
  326         -
  327         -
    epoch_seconds_on_target: typing.Optional[rest_json.types.DateTime]
  328         -
  329         -
    http_date: typing.Optional[rest_json.types.DateTime]
  330         -
  331         -
    http_date_on_target: typing.Optional[rest_json.types.DateTime]
  332         -
  333         -
    normal: typing.Optional[rest_json.types.DateTime]
  334         -
  335         -
    def __init__(self, normal: typing.Optional[rest_json.types.DateTime] = ..., date_time: typing.Optional[rest_json.types.DateTime] = ..., date_time_on_target: typing.Optional[rest_json.types.DateTime] = ..., epoch_seconds: typing.Optional[rest_json.types.DateTime] = ..., epoch_seconds_on_target: typing.Optional[rest_json.types.DateTime] = ..., http_date: typing.Optional[rest_json.types.DateTime] = ..., http_date_on_target: typing.Optional[rest_json.types.DateTime] = ...) -> None:
  336         -
        ...
  337         -
  338         -
  339         -
class JsonUnionsOutput:
  340         -
    """
  341         -
    A shared structure that contains a single union member.
  342         -
    """
  343         -
  344         -
    contents: typing.Optional[rest_json.model.MyUnion]
  345         -
    """
  346         -
    A union with a representative set of types for members.
  347         -
    """
  348         -
  349         -
    def __init__(self, contents: typing.Optional[rest_json.model.MyUnion] = ...) -> None:
  350         -
        ...
  351         -
  352         -
  353         -
class MalformedAcceptWithBodyOutput:
  354         -
    hi: typing.Optional[str]
  355         -
  356         -
    def __init__(self, hi: typing.Optional[str] = ...) -> None:
  357         -
        ...
  358         -
  359         -
  360         -
class MalformedAcceptWithGenericStringOutput:
  361         -
    payload: typing.Optional[str]
  362         -
  363         -
    def __init__(self, payload: typing.Optional[str] = ...) -> None:
  364         -
        ...
  365         -
  366         -
  367         -
class MalformedAcceptWithPayloadOutput:
  368         -
    payload: typing.Optional[rest_json.types.Blob]
  369         -
  370         -
    def __init__(self, payload: typing.Optional[rest_json.types.Blob] = ...) -> None:
  371         -
        ...
  372         -
  373         -
  374         -
class MalformedBlobOutput:
  375         -
    def __init__(self) -> None:
  376         -
        ...
  377         -
  378         -
  379         -
class MalformedBooleanOutput:
  380         -
    def __init__(self) -> None:
  381         -
        ...
  382         -
  383         -
  384         -
class MalformedByteOutput:
  385         -
    def __init__(self) -> None:
  386         -
        ...
  387         -
  388         -
  389         -
class MalformedContentTypeWithBodyOutput:
  390         -
    def __init__(self) -> None:
  391         -
        ...
  392         -
  393         -
  394         -
class MalformedContentTypeWithGenericStringOutput:
  395         -
    def __init__(self) -> None:
  396         -
        ...
  397         -
  398         -
  399         -
class MalformedContentTypeWithPayloadOutput:
  400         -
    def __init__(self) -> None:
  401         -
        ...
  402         -
  403         -
  404         -
class MalformedContentTypeWithoutBodyOutput:
  405         -
    def __init__(self) -> None:
  406         -
        ...
  407         -
  408         -
  409         -
class MalformedDoubleOutput:
  410         -
    def __init__(self) -> None:
  411         -
        ...
  412         -
  413         -
  414         -
class MalformedFloatOutput:
  415         -
    def __init__(self) -> None:
  416         -
        ...
  417         -
  418         -
  419         -
class MalformedIntegerOutput:
  420         -
    def __init__(self) -> None:
  421         -
        ...
  422         -
  423         -
  424         -
class MalformedListOutput:
  425         -
    def __init__(self) -> None:
  426         -
        ...
  427         -
  428         -
  429         -
class MalformedLongOutput:
  430         -
    def __init__(self) -> None:
  431         -
        ...
  432         -
  433         -
  434         -
class MalformedMapOutput:
  435         -
    def __init__(self) -> None:
  436         -
        ...
  437         -
  438         -
  439         -
class MalformedRequestBodyOutput:
  440         -
    def __init__(self) -> None:
  441         -
        ...
  442         -
  443         -
  444         -
class MalformedShortOutput:
  445         -
    def __init__(self) -> None:
  446         -
        ...
  447         -
  448         -
  449         -
class MalformedStringOutput:
  450         -
    def __init__(self) -> None:
  451         -
        ...
  452         -
  453         -
  454         -
class MalformedTimestampBodyDateTimeOutput:
  455         -
    def __init__(self) -> None:
  456         -
        ...
  457         -
  458         -
  459         -
class MalformedTimestampBodyDefaultOutput:
  460         -
    def __init__(self) -> None:
  461         -
        ...
  462         -
  463         -
  464         -
class MalformedTimestampBodyHttpDateOutput:
  465         -
    def __init__(self) -> None:
  466         -
        ...
  467         -
  468         -
  469         -
class MalformedTimestampHeaderDateTimeOutput:
  470         -
    def __init__(self) -> None:
  471         -
        ...
  472         -
  473         -
  474         -
class MalformedTimestampHeaderDefaultOutput:
  475         -
    def __init__(self) -> None:
  476         -
        ...
  477         -
  478         -
  479         -
class MalformedTimestampHeaderEpochOutput:
  480         -
    def __init__(self) -> None:
  481         -
        ...
  482         -
  483         -
  484         -
class MalformedTimestampPathDefaultOutput:
  485         -
    def __init__(self) -> None:
  486         -
        ...
  487         -
  488         -
  489         -
class MalformedTimestampPathEpochOutput:
  490         -
    def __init__(self) -> None:
  491         -
        ...
  492         -
  493         -
  494         -
class MalformedTimestampPathHttpDateOutput:
  495         -
    def __init__(self) -> None:
  496         -
        ...
  497         -
  498         -
  499         -
class MalformedTimestampQueryDefaultOutput:
  500         -
    def __init__(self) -> None:
  501         -
        ...
  502         -
  503         -
  504         -
class MalformedTimestampQueryEpochOutput:
  505         -
    def __init__(self) -> None:
  506         -
        ...
  507         -
  508         -
  509         -
class MalformedTimestampQueryHttpDateOutput:
  510         -
    def __init__(self) -> None:
  511         -
        ...
  512         -
  513         -
  514         -
class MalformedUnionOutput:
  515         -
    def __init__(self) -> None:
  516         -
        ...
  517         -
  518         -
  519         -
class MediaTypeHeaderOutput:
  520         -
    json: typing.Optional[str]
  521         -
  522         -
    def __init__(self, json: typing.Optional[str] = ...) -> None:
  523         -
        ...
  524         -
  525         -
  526         -
class NoInputAndNoOutputOutput:
  527         -
    def __init__(self) -> None:
  528         -
        ...
  529         -
  530         -
  531         -
class NoInputAndOutputOutput:
  532         -
    def __init__(self) -> None:
  533         -
        ...
  534         -
  535         -
  536         -
class NullAndEmptyHeadersClientOutput:
  537         -
    a: typing.Optional[str]
  538         -
  539         -
    b: typing.Optional[str]
  540         -
  541         -
    c: typing.Optional[typing.List[str]]
  542         -
  543         -
    def __init__(self, a: typing.Optional[str] = ..., b: typing.Optional[str] = ..., c: typing.Optional[typing.List[str]] = ...) -> None:
  544         -
        ...
  545         -
  546         -
  547         -
class NullAndEmptyHeadersServerOutput:
  548         -
    a: typing.Optional[str]
  549         -
  550         -
    b: typing.Optional[str]
  551         -
  552         -
    c: typing.Optional[typing.List[str]]
  553         -
  554         -
    def __init__(self, a: typing.Optional[str] = ..., b: typing.Optional[str] = ..., c: typing.Optional[typing.List[str]] = ...) -> None:
  555         -
        ...
  556         -
  557         -
  558         -
class OmitsNullSerializesEmptyStringOutput:
  559         -
    def __init__(self) -> None:
  560         -
        ...
  561         -
  562         -
  563         -
class OmitsSerializingEmptyListsOutput:
  564         -
    def __init__(self) -> None:
  565         -
        ...
  566         -
  567         -
  568         -
class OperationWithDefaultsOutput:
  569         -
    default_blob: rest_json.types.Blob
  570         -
  571         -
    default_boolean: bool
  572         -
  573         -
    default_byte: int
  574         -
  575         -
    default_document_boolean: rest_json.types.Document
  576         -
  577         -
    default_document_list: rest_json.types.Document
  578         -
  579         -
    default_document_map: rest_json.types.Document
  580         -
  581         -
    default_document_string: rest_json.types.Document
  582         -
  583         -
    default_double: float
  584         -
  585         -
    default_enum: rest_json.model.TestEnum
  586         -
  587         -
    default_float: float
  588         -
  589         -
    default_int_enum: int
  590         -
  591         -
    default_integer: int
  592         -
  593         -
    default_list: typing.List[str]
  594         -
  595         -
    default_long: int
  596         -
  597         -
    default_map: typing.Dict[str, str]
  598         -
  599         -
    default_null_document: typing.Optional[rest_json.types.Document]
  600         -
  601         -
    default_short: int
  602         -
  603         -
    default_string: str
  604         -
  605         -
    default_timestamp: rest_json.types.DateTime
  606         -
  607         -
    empty_blob: rest_json.types.Blob
  608         -
  609         -
    empty_string: str
  610         -
  611         -
    false_boolean: bool
  612         -
  613         -
    zero_byte: int
  614         -
  615         -
    zero_double: float
  616         -
  617         -
    zero_float: float
  618         -
  619         -
    zero_integer: int
  620         -
  621         -
    zero_long: int
  622         -
  623         -
    zero_short: int
  624         -
  625         -
    def __init__(self, default_string: str, default_boolean: bool, default_list: typing.List[str], default_document_map: rest_json.types.Document, default_document_string: rest_json.types.Document, default_document_boolean: rest_json.types.Document, default_document_list: rest_json.types.Document, default_null_document: typing.Optional[rest_json.types.Document] = ..., default_timestamp: rest_json.types.DateTime, default_blob: rest_json.types.Blob, default_byte: int, default_short: int, default_integer: int, default_long: int, default_float: float, default_double: float, default_map: typing.Dict[str, str], default_enum: rest_json.model.TestEnum, default_int_enum: int, empty_string: str, false_boolean: bool, empty_blob: rest_json.types.Blob, zero_byte: int, zero_short: int, zero_integer: int, zero_long: int, zero_float: float, zero_double: float) -> None:
  626         -
        ...
  627         -
  628         -
  629         -
class OperationWithNestedStructureOutput:
  630         -
    dialog: rest_json.model.Dialog
  631         -
  632         -
    dialog_list: typing.List[rest_json.model.Dialog]
  633         -
  634         -
    dialog_map: typing.Dict[str, rest_json.model.Dialog]
  635         -
  636         -
    def __init__(self, dialog: rest_json.model.Dialog, dialog_list: typing.List[rest_json.model.Dialog], dialog_map: typing.Dict[str, rest_json.model.Dialog]) -> None:
  637         -
        ...
  638         -
  639         -
  640         -
class PostPlayerActionOutput:
  641         -
    action: rest_json.model.PlayerAction
  642         -
  643         -
    def __init__(self, action: rest_json.model.PlayerAction) -> None:
  644         -
        ...
  645         -
  646         -
  647         -
class PostUnionWithJsonNameOutput:
  648         -
    value: rest_json.model.UnionWithJsonName
  649         -
  650         -
    def __init__(self, value: rest_json.model.UnionWithJsonName) -> None:
  651         -
        ...
  652         -
  653         -
  654         -
class PutWithContentEncodingOutput:
  655         -
    def __init__(self) -> None:
  656         -
        ...
  657         -
  658         -
  659         -
class QueryIdempotencyTokenAutoFillOutput:
  660         -
    def __init__(self) -> None:
  661         -
        ...
  662         -
  663         -
  664         -
class QueryParamsAsStringListMapOutput:
  665         -
    def __init__(self) -> None:
  666         -
        ...
  667         -
  668         -
  669         -
class QueryPrecedenceOutput:
  670         -
    def __init__(self) -> None:
  671         -
        ...
  672         -
  673         -
  674         -
class RecursiveShapesOutput:
  675         -
    nested: typing.Optional[rest_json.model.RecursiveShapesInputOutputNested1]
  676         -
  677         -
    def __init__(self, nested: typing.Optional[rest_json.model.RecursiveShapesInputOutputNested1] = ...) -> None:
  678         -
        ...
  679         -
  680         -
  681         -
class SimpleScalarPropertiesOutput:
  682         -
    byte_value: typing.Optional[int]
  683         -
  684         -
    double_value: typing.Optional[float]
  685         -
  686         -
    false_boolean_value: typing.Optional[bool]
  687         -
  688         -
    float_value: typing.Optional[float]
  689         -
  690         -
    foo: typing.Optional[str]
  691         -
  692         -
    integer_value: typing.Optional[int]
  693         -
  694         -
    long_value: typing.Optional[int]
  695         -
  696         -
    short_value: typing.Optional[int]
  697         -
  698         -
    string_value: typing.Optional[str]
  699         -
  700         -
    true_boolean_value: typing.Optional[bool]
  701         -
  702         -
    def __init__(self, foo: typing.Optional[str] = ..., string_value: typing.Optional[str] = ..., true_boolean_value: typing.Optional[bool] = ..., false_boolean_value: typing.Optional[bool] = ..., byte_value: typing.Optional[int] = ..., short_value: typing.Optional[int] = ..., integer_value: typing.Optional[int] = ..., long_value: typing.Optional[int] = ..., float_value: typing.Optional[float] = ..., double_value: typing.Optional[float] = ...) -> None:
  703         -
        ...
  704         -
  705         -
  706         -
class SparseJsonListsOutput:
  707         -
    sparse_short_list: typing.Optional[typing.List[typing.Optional[int]]]
  708         -
  709         -
    sparse_string_list: typing.Optional[typing.List[typing.Optional[str]]]
  710         -
  711         -
    def __init__(self, sparse_string_list: typing.Optional[typing.List[typing.Optional[str]]] = ..., sparse_short_list: typing.Optional[typing.List[typing.Optional[int]]] = ...) -> None:
  712         -
        ...
  713         -
  714         -
  715         -
class SparseJsonMapsOutput:
  716         -
    sparse_boolean_map: typing.Optional[typing.Dict[str, typing.Optional[bool]]]
  717         -
  718         -
    sparse_number_map: typing.Optional[typing.Dict[str, typing.Optional[int]]]
  719         -
  720         -
    sparse_set_map: typing.Optional[typing.Dict[str, typing.Optional[typing.List[str]]]]
  721         -
  722         -
    sparse_string_map: typing.Optional[typing.Dict[str, typing.Optional[str]]]
  723         -
  724         -
    sparse_struct_map: typing.Optional[typing.Dict[str, typing.Optional[rest_json.model.GreetingStruct]]]
  725         -
  726         -
    def __init__(self, sparse_struct_map: typing.Optional[typing.Dict[str, typing.Optional[rest_json.model.GreetingStruct]]] = ..., sparse_number_map: typing.Optional[typing.Dict[str, typing.Optional[int]]] = ..., sparse_boolean_map: typing.Optional[typing.Dict[str, typing.Optional[bool]]] = ..., sparse_string_map: typing.Optional[typing.Dict[str, typing.Optional[str]]] = ..., sparse_set_map: typing.Optional[typing.Dict[str, typing.Optional[typing.List[str]]]] = ...) -> None:
  727         -
        ...
  728         -
  729         -
  730         -
class StreamingTraitsOutput:
  731         -
    blob: rest_json.types.ByteStream
  732         -
  733         -
    foo: typing.Optional[str]
  734         -
  735         -
    def __init__(self, foo: typing.Optional[str] = ..., blob: rest_json.types.ByteStream) -> None:
  736         -
        ...
  737         -
  738         -
  739         -
class StreamingTraitsRequireLengthOutput:
  740         -
    def __init__(self) -> None:
  741         -
        ...
  742         -
  743         -
  744         -
class StreamingTraitsWithMediaTypeOutput:
  745         -
    blob: rest_json.types.ByteStream
  746         -
  747         -
    foo: typing.Optional[str]
  748         -
  749         -
    def __init__(self, foo: typing.Optional[str] = ..., blob: rest_json.types.ByteStream) -> None:
  750         -
        ...
  751         -
  752         -
  753         -
class TestBodyStructureOutput:
  754         -
    test_config: typing.Optional[rest_json.model.TestConfig]
  755         -
  756         -
    test_id: typing.Optional[str]
  757         -
  758         -
    def __init__(self, test_id: typing.Optional[str] = ..., test_config: typing.Optional[rest_json.model.TestConfig] = ...) -> None:
  759         -
        ...
  760         -
  761         -
  762         -
class TestGetNoInputNoPayloadOutput:
  763         -
    test_id: typing.Optional[str]
  764         -
  765         -
    def __init__(self, test_id: typing.Optional[str] = ...) -> None:
  766         -
        ...
  767         -
  768         -
  769         -
class TestGetNoPayloadOutput:
  770         -
    test_id: typing.Optional[str]
  771         -
  772         -
    def __init__(self, test_id: typing.Optional[str] = ...) -> None:
  773         -
        ...
  774         -
  775         -
  776         -
class TestPayloadBlobOutput:
  777         -
    content_type: typing.Optional[str]
  778         -
  779         -
    data: typing.Optional[rest_json.types.Blob]
  780         -
  781         -
    def __init__(self, content_type: typing.Optional[str] = ..., data: typing.Optional[rest_json.types.Blob] = ...) -> None:
  782         -
        ...
  783         -
  784         -
  785         -
class TestPayloadStructureOutput:
  786         -
    payload_config: typing.Optional[rest_json.model.PayloadConfig]
  787         -
  788         -
    test_id: typing.Optional[str]
  789         -
  790         -
    def __init__(self, test_id: typing.Optional[str] = ..., payload_config: typing.Optional[rest_json.model.PayloadConfig] = ...) -> None:
  791         -
        ...
  792         -
  793         -
  794         -
class TestPostNoInputNoPayloadOutput:
  795         -
    test_id: typing.Optional[str]
  796         -
  797         -
    def __init__(self, test_id: typing.Optional[str] = ...) -> None:
  798         -
        ...
  799         -
  800         -
  801         -
class TestPostNoPayloadOutput:
  802         -
    test_id: typing.Optional[str]
  803         -
  804         -
    def __init__(self, test_id: typing.Optional[str] = ...) -> None:
  805         -
        ...
  806         -
  807         -
  808         -
class TimestampFormatHeadersOutput:
  809         -
    default_format: typing.Optional[rest_json.types.DateTime]
  810         -
  811         -
    member_date_time: typing.Optional[rest_json.types.DateTime]
  812         -
  813         -
    member_epoch_seconds: typing.Optional[rest_json.types.DateTime]
  814         -
  815         -
    member_http_date: typing.Optional[rest_json.types.DateTime]
  816         -
  817         -
    target_date_time: typing.Optional[rest_json.types.DateTime]
  818         -
  819         -
    target_epoch_seconds: typing.Optional[rest_json.types.DateTime]
  820         -
  821         -
    target_http_date: typing.Optional[rest_json.types.DateTime]
  822         -
  823         -
    def __init__(self, member_epoch_seconds: typing.Optional[rest_json.types.DateTime] = ..., member_http_date: typing.Optional[rest_json.types.DateTime] = ..., member_date_time: typing.Optional[rest_json.types.DateTime] = ..., default_format: typing.Optional[rest_json.types.DateTime] = ..., target_epoch_seconds: typing.Optional[rest_json.types.DateTime] = ..., target_http_date: typing.Optional[rest_json.types.DateTime] = ..., target_date_time: typing.Optional[rest_json.types.DateTime] = ...) -> None:
  824         -
        ...
  825         -
  826         -
  827         -
class UnitInputAndOutputOutput:
  828         -
    def __init__(self) -> None:
  829         -
        ...
  830         -