Server Test Python

Server Test Python

rev. aa5c29a987f7f91566c4691a6049ccdb8d69ba9a

Files changed:

tmp-codegen-diff/codegen-server-test-python/json_rpc10/rust-server-codegen-python/src/output.rs

@@ -244,244 +324,324 @@
  264    264   
}
  265    265   
  266    266   
#[::pyo3::pyclass]
  267    267   
/// :param default_string str:
  268    268   
/// :param default_boolean bool:
  269    269   
/// :param default_list typing.List\[str\]:
  270    270   
/// :param default_document_map json_rpc10.types.Document:
  271    271   
/// :param default_document_string json_rpc10.types.Document:
  272    272   
/// :param default_document_boolean json_rpc10.types.Document:
  273    273   
/// :param default_document_list json_rpc10.types.Document:
  274         -
/// :param default_null_document typing.Optional\[json_rpc10.types.Document\]:
  275    274   
/// :param default_timestamp json_rpc10.types.DateTime:
  276    275   
/// :param default_blob json_rpc10.types.Blob:
  277    276   
/// :param default_byte int:
  278    277   
/// :param default_short int:
  279    278   
/// :param default_integer int:
  280    279   
/// :param default_long int:
  281    280   
/// :param default_float float:
  282    281   
/// :param default_double float:
  283    282   
/// :param default_map typing.Dict\[str, str\]:
  284    283   
/// :param default_enum json_rpc10.model.TestEnum:
  285    284   
/// :param default_int_enum int:
  286    285   
/// :param empty_string str:
  287    286   
/// :param false_boolean bool:
  288    287   
/// :param empty_blob json_rpc10.types.Blob:
  289    288   
/// :param zero_byte int:
  290    289   
/// :param zero_short int:
  291    290   
/// :param zero_integer int:
  292    291   
/// :param zero_long int:
  293    292   
/// :param zero_float float:
  294    293   
/// :param zero_double float:
         294  +
/// :param default_null_document typing.Optional\[json_rpc10.types.Document\]:
  295    295   
/// :rtype None:
  296    296   
#[allow(missing_docs)] // documentation missing in model
  297    297   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
  298    298   
pub struct OperationWithDefaultsOutput {
  299    299   
    #[pyo3(get, set)]
  300    300   
    /// :type str:
  301    301   
    #[allow(missing_docs)] // documentation missing in model
  302    302   
    pub default_string: ::std::string::String,
  303    303   
    #[pyo3(get, set)]
  304    304   
    /// :type bool:
@@ -517,517 +629,629 @@
  537    537   
impl OperationWithDefaultsOutput {
  538    538   
    #[new]
  539    539   
    pub fn new(
  540    540   
        default_string: ::std::string::String,
  541    541   
        default_boolean: bool,
  542    542   
        default_list: ::std::vec::Vec<::std::string::String>,
  543    543   
        default_document_map: ::aws_smithy_http_server_python::types::Document,
  544    544   
        default_document_string: ::aws_smithy_http_server_python::types::Document,
  545    545   
        default_document_boolean: ::aws_smithy_http_server_python::types::Document,
  546    546   
        default_document_list: ::aws_smithy_http_server_python::types::Document,
  547         -
        default_null_document: ::std::option::Option<
  548         -
            ::aws_smithy_http_server_python::types::Document,
  549         -
        >,
  550    547   
        default_timestamp: ::aws_smithy_http_server_python::types::DateTime,
  551    548   
        default_blob: ::aws_smithy_http_server_python::types::Blob,
  552    549   
        default_byte: i8,
  553    550   
        default_short: i16,
  554    551   
        default_integer: i32,
  555    552   
        default_long: i64,
  556    553   
        default_float: f32,
  557    554   
        default_double: f64,
  558    555   
        default_map: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
  559    556   
        default_enum: crate::model::TestEnum,
  560    557   
        default_int_enum: i32,
  561    558   
        empty_string: ::std::string::String,
  562    559   
        false_boolean: bool,
  563    560   
        empty_blob: ::aws_smithy_http_server_python::types::Blob,
  564    561   
        zero_byte: i8,
  565    562   
        zero_short: i16,
  566    563   
        zero_integer: i32,
  567    564   
        zero_long: i64,
  568    565   
        zero_float: f32,
  569    566   
        zero_double: f64,
         567  +
        default_null_document: ::std::option::Option<
         568  +
            ::aws_smithy_http_server_python::types::Document,
         569  +
        >,
  570    570   
    ) -> Self {
  571    571   
        Self {
  572    572   
            default_string,
  573    573   
            default_boolean,
  574    574   
            default_list,
  575    575   
            default_document_map,
  576    576   
            default_document_string,
  577    577   
            default_document_boolean,
  578    578   
            default_document_list,
  579         -
            default_null_document,
  580    579   
            default_timestamp,
  581    580   
            default_blob,
  582    581   
            default_byte,
  583    582   
            default_short,
  584    583   
            default_integer,
  585    584   
            default_long,
  586    585   
            default_float,
  587    586   
            default_double,
  588    587   
            default_map,
  589    588   
            default_enum,
  590    589   
            default_int_enum,
  591    590   
            empty_string,
  592    591   
            false_boolean,
  593    592   
            empty_blob,
  594    593   
            zero_byte,
  595    594   
            zero_short,
  596    595   
            zero_integer,
  597    596   
            zero_long,
  598    597   
            zero_float,
  599    598   
            zero_double,
         599  +
            default_null_document,
  600    600   
        }
  601    601   
    }
  602    602   
    fn __repr__(&self) -> String {
  603    603   
        format!("{self:?}")
  604    604   
    }
  605    605   
    fn __str__(&self) -> String {
  606    606   
        format!("{self:?}")
  607    607   
    }
  608    608   
}
  609    609   
impl<'source> ::pyo3::FromPyObject<'source> for std::boxed::Box<OperationWithDefaultsOutput> {

tmp-codegen-diff/codegen-server-test-python/json_rpc10/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "json_rpc10")]
           3  +
#[pyo3(name = "json_rpc10")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8      8   
    error.add_class::<crate::error::InternalServerError>()?;
    9      9   
    error.add_class::<crate::error::ValidationException>()?;
   10     10   
    let model = ::pyo3::types::PyModule::new(py, "model")?;
   11     11   
    model.add_class::<crate::model::ValidationExceptionField>()?;
   12     12   
    output.add_class::<crate::output::OperationWithNestedStructureOutput>()?;
   13     13   
    model.add_class::<crate::model::Dialog>()?;

tmp-codegen-diff/codegen-server-test-python/json_rpc11/rust-server-codegen-python/Cargo.toml

@@ -6,6 +58,58 @@
   26     26   
version = "0.2.9"
   27     27   
[dependencies.hyper]
   28     28   
version = "0.14.26"
   29     29   
[dependencies.mime]
   30     30   
version = "0.3"
   31     31   
[dependencies.parking_lot]
   32     32   
version = "0.12"
   33     33   
[dependencies.pin-project-lite]
   34     34   
version = "0.2"
   35     35   
[dependencies.pyo3]
   36         -
version = "0.18"
          36  +
version = "0.20"
   37     37   
[dependencies.pyo3-asyncio]
   38         -
version = "0.18"
          38  +
version = "0.20"
   39     39   
features = ["attributes", "tokio-runtime"]
   40     40   
[dependencies.tower]
   41     41   
version = "0.4"
   42     42   
[dependencies.tracing]
   43     43   
version = "0.1"
   44     44   
[dev-dependencies.hyper]
   45     45   
version = "0.14.12"
   46     46   
[dev-dependencies.tokio]
   47     47   
version = "1.23.1"
   48     48   
[features]

tmp-codegen-diff/codegen-server-test-python/json_rpc11/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "json_rpc11")]
           3  +
#[pyo3(name = "json_rpc11")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8      8   
    error.add_class::<crate::error::InternalServerError>()?;
    9      9   
    output.add_class::<crate::output::ContentTypeParametersOutput>()?;
   10     10   
    input.add_class::<crate::input::ContentTypeParametersInput>()?;
   11     11   
    output.add_class::<crate::output::PutWithContentEncodingOutput>()?;
   12     12   
    input.add_class::<crate::input::PutWithContentEncodingInput>()?;
   13     13   
    output.add_class::<crate::output::FractionalSecondsOutput>()?;

tmp-codegen-diff/codegen-server-test-python/misc/rust-server-codegen-python/Cargo.toml

@@ -6,6 +58,58 @@
   26     26   
version = "0.2.9"
   27     27   
[dependencies.hyper]
   28     28   
version = "0.14.26"
   29     29   
[dependencies.mime]
   30     30   
version = "0.3"
   31     31   
[dependencies.parking_lot]
   32     32   
version = "0.12"
   33     33   
[dependencies.pin-project-lite]
   34     34   
version = "0.2"
   35     35   
[dependencies.pyo3]
   36         -
version = "0.18"
          36  +
version = "0.20"
   37     37   
[dependencies.pyo3-asyncio]
   38         -
version = "0.18"
          38  +
version = "0.20"
   39     39   
features = ["attributes", "tokio-runtime"]
   40     40   
[dependencies.tower]
   41     41   
version = "0.4"
   42     42   
[dependencies.tracing]
   43     43   
version = "0.1"
   44     44   
[dev-dependencies.hyper]
   45     45   
version = "0.14.12"
   46     46   
[dev-dependencies.tokio]
   47     47   
version = "1.23.1"
   48     48   
[features]

tmp-codegen-diff/codegen-server-test-python/misc/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "misc")]
           3  +
#[pyo3(name = "misc")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8      8   
    error.add_class::<crate::error::InternalServerError>()?;
    9      9   
    output.add_class::<crate::output::ResponseCodeDefaultOperationOutput>()?;
   10     10   
    input.add_class::<crate::input::ResponseCodeDefaultOperationInput>()?;
   11     11   
    output.add_class::<crate::output::ResponseCodeHttpFallbackOperationOutput>()?;
   12     12   
    input.add_class::<crate::input::ResponseCodeHttpFallbackOperationInput>()?;
   13     13   
    output.add_class::<crate::output::ResponseCodeRequiredOperationOutput>()?;

tmp-codegen-diff/codegen-server-test-python/naming_test_casing/rust-server-codegen-python/Cargo.toml

@@ -4,4 +56,56 @@
   24     24   
version = "0.3"
   25     25   
[dependencies.http]
   26     26   
version = "0.2.9"
   27     27   
[dependencies.mime]
   28     28   
version = "0.3"
   29     29   
[dependencies.parking_lot]
   30     30   
version = "0.12"
   31     31   
[dependencies.pin-project-lite]
   32     32   
version = "0.2"
   33     33   
[dependencies.pyo3]
   34         -
version = "0.18"
          34  +
version = "0.20"
   35     35   
[dependencies.pyo3-asyncio]
   36         -
version = "0.18"
          36  +
version = "0.20"
   37     37   
features = ["attributes", "tokio-runtime"]
   38     38   
[dependencies.tower]
   39     39   
version = "0.4"
   40     40   
[dependencies.tracing]
   41     41   
version = "0.1"
   42     42   
[dev-dependencies.hyper]
   43     43   
version = "0.14.12"
   44     44   
[dev-dependencies.tokio]
   45     45   
version = "1.23.1"
   46     46   
[features]

tmp-codegen-diff/codegen-server-test-python/naming_test_casing/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "naming_test_casing")]
           3  +
#[pyo3(name = "naming_test_casing")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8      8   
    error.add_class::<crate::error::InternalServerError>()?;
    9      9   
    output.add_class::<crate::output::DoNothingOutput>()?;
   10     10   
    input.add_class::<crate::input::DoNothingInput>()?;
   11     11   
    ::pyo3::py_run!(
   12     12   
        py,
   13     13   
        input,

tmp-codegen-diff/codegen-server-test-python/naming_test_ops/rust-server-codegen-python/Cargo.toml

@@ -6,6 +58,58 @@
   26     26   
version = "0.2.9"
   27     27   
[dependencies.hyper]
   28     28   
version = "0.14.26"
   29     29   
[dependencies.mime]
   30     30   
version = "0.3"
   31     31   
[dependencies.parking_lot]
   32     32   
version = "0.12"
   33     33   
[dependencies.pin-project-lite]
   34     34   
version = "0.2"
   35     35   
[dependencies.pyo3]
   36         -
version = "0.18"
          36  +
version = "0.20"
   37     37   
[dependencies.pyo3-asyncio]
   38         -
version = "0.18"
          38  +
version = "0.20"
   39     39   
features = ["attributes", "tokio-runtime"]
   40     40   
[dependencies.tower]
   41     41   
version = "0.4"
   42     42   
[dependencies.tracing]
   43     43   
version = "0.1"
   44     44   
[dev-dependencies.hyper]
   45     45   
version = "0.14.12"
   46     46   
[dev-dependencies.tokio]
   47     47   
version = "1.23.1"
   48     48   
[features]

tmp-codegen-diff/codegen-server-test-python/naming_test_ops/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "naming_test_ops")]
           3  +
#[pyo3(name = "naming_test_ops")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8      8   
    error.add_class::<crate::error::InternalServerError>()?;
    9      9   
    error.add_class::<crate::error::ValidationException>()?;
   10     10   
    let model = ::pyo3::types::PyModule::new(py, "model")?;
   11     11   
    model.add_class::<crate::model::ValidationExceptionField>()?;
   12     12   
    output.add_class::<crate::output::RpcEchoOutput>()?;
   13     13   
    input.add_class::<crate::input::RpcEchoInput>()?;

tmp-codegen-diff/codegen-server-test-python/naming_test_structs/rust-server-codegen-python/Cargo.toml

@@ -6,6 +58,58 @@
   26     26   
version = "0.2.9"
   27     27   
[dependencies.hyper]
   28     28   
version = "0.14.26"
   29     29   
[dependencies.mime]
   30     30   
version = "0.3"
   31     31   
[dependencies.parking_lot]
   32     32   
version = "0.12"
   33     33   
[dependencies.pin-project-lite]
   34     34   
version = "0.2"
   35     35   
[dependencies.pyo3]
   36         -
version = "0.18"
          36  +
version = "0.20"
   37     37   
[dependencies.pyo3-asyncio]
   38         -
version = "0.18"
          38  +
version = "0.20"
   39     39   
features = ["attributes", "tokio-runtime"]
   40     40   
[dependencies.tower]
   41     41   
version = "0.4"
   42     42   
[dependencies.tracing]
   43     43   
version = "0.1"
   44     44   
[dev-dependencies.hyper]
   45     45   
version = "0.14.12"
   46     46   
[dev-dependencies.tokio]
   47     47   
version = "1.23.1"
   48     48   
[features]

tmp-codegen-diff/codegen-server-test-python/naming_test_structs/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "naming_test_structs")]
           3  +
#[pyo3(name = "naming_test_structs")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8      8   
    error.add_class::<crate::error::InternalServerError>()?;
    9      9   
    output.add_class::<crate::output::StructsOutput>()?;
   10     10   
    let model = ::pyo3::types::PyModule::new(py, "model")?;
   11     11   
    model.add_class::<crate::model::SomethingElse>()?;
   12     12   
    model.add_class::<crate::model::PyUnionMarkerSomeUnion>()?;
   13     13   
    model.add_class::<crate::model::Option>()?;

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/Cargo.toml

@@ -12,12 +69,69 @@
   32     32   
version = "0.3"
   33     33   
[dependencies.nom]
   34     34   
version = "7"
   35     35   
[dependencies.parking_lot]
   36     36   
version = "0.12"
   37     37   
[dependencies.percent-encoding]
   38     38   
version = "2.0.0"
   39     39   
[dependencies.pin-project-lite]
   40     40   
version = "0.2"
   41     41   
[dependencies.pyo3]
   42         -
version = "0.18"
          42  +
version = "0.20"
   43     43   
[dependencies.pyo3-asyncio]
   44         -
version = "0.18"
          44  +
version = "0.20"
   45     45   
features = ["attributes", "tokio-runtime", "unstable-streams"]
   46     46   
[dependencies.tokio]
   47     47   
version = "1.20.1"
   48     48   
features = ["full"]
   49     49   
[dependencies.tokio-stream]
   50     50   
version = "0.1.12"
   51     51   
[dependencies.tower]
   52     52   
version = "0.4"
   53     53   
[dependencies.tracing]
   54     54   
version = "0.1"

tmp-codegen-diff/codegen-server-test-python/pokemon-service-server-sdk/rust-server-codegen-python/src/python_module_export.rs

@@ -1,1 +33,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3         -
#[::pyo3(name = "pokemon_service_server_sdk")]
           3  +
#[pyo3(name = "pokemon_service_server_sdk")]
    4      4   
pub fn python_library(py: ::pyo3::Python<'_>, m: &::pyo3::types::PyModule) -> ::pyo3::PyResult<()> {
    5      5   
    let input = ::pyo3::types::PyModule::new(py, "input")?;
    6      6   
    let output = ::pyo3::types::PyModule::new(py, "output")?;
    7      7   
    let error = ::pyo3::types::PyModule::new(py, "error")?;
    8      8   
    error.add_class::<crate::error::InternalServerError>()?;
    9      9   
    error.add_class::<crate::error::ResourceNotFoundException>()?;
   10     10   
    error.add_class::<crate::error::StorageAccessNotAuthorized>()?;
   11     11   
    error.add_class::<crate::error::ValidationException>()?;
   12     12   
    let model = ::pyo3::types::PyModule::new(py, "model")?;
   13     13   
    model.add_class::<crate::model::ValidationExceptionField>()?;

tmp-codegen-diff/codegen-server-test-python/rest_json/rust-server-codegen-python/Cargo.toml

@@ -12,12 +64,64 @@
   32     32   
version = "0.3"
   33     33   
[dependencies.nom]
   34     34   
version = "7"
   35     35   
[dependencies.parking_lot]
   36     36   
version = "0.12"
   37     37   
[dependencies.percent-encoding]
   38     38   
version = "2.0.0"
   39     39   
[dependencies.pin-project-lite]
   40     40   
version = "0.2"
   41     41   
[dependencies.pyo3]
   42         -
version = "0.18"
          42  +
version = "0.20"
   43     43   
[dependencies.pyo3-asyncio]
   44         -
version = "0.18"
          44  +
version = "0.20"
   45     45   
features = ["attributes", "tokio-runtime"]
   46     46   
[dependencies.tower]
   47     47   
version = "0.4"
   48     48   
[dependencies.tracing]
   49     49   
version = "0.1"
   50     50   
[dev-dependencies.hyper]
   51     51   
version = "0.14.12"
   52     52   
[dev-dependencies.tokio]
   53     53   
version = "1.23.1"
   54     54   
[features]

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

@@ -440,440 +627,627 @@
  460    460   
  461    461   
class MalformedBooleanInput:
  462    462   
    boolean_in_body: typing.Optional[bool]
  463    463   
  464    464   
    boolean_in_header: typing.Optional[bool]
  465    465   
  466    466   
    boolean_in_path: bool
  467    467   
  468    468   
    boolean_in_query: typing.Optional[bool]
  469    469   
  470         -
    def __init__(self, boolean_in_body: typing.Optional[bool] = ..., boolean_in_path: bool, boolean_in_query: typing.Optional[bool] = ..., boolean_in_header: typing.Optional[bool] = ...) -> None:
         470  +
    def __init__(self, boolean_in_path: bool, boolean_in_body: typing.Optional[bool] = ..., boolean_in_query: typing.Optional[bool] = ..., boolean_in_header: typing.Optional[bool] = ...) -> None:
  471    471   
        ...
  472    472   
  473    473   
  474    474   
class MalformedByteInput:
  475    475   
    byte_in_body: typing.Optional[int]
  476    476   
  477    477   
    byte_in_header: typing.Optional[int]
  478    478   
  479    479   
    byte_in_path: int
  480    480   
  481    481   
    byte_in_query: typing.Optional[int]
  482    482   
  483         -
    def __init__(self, byte_in_body: typing.Optional[int] = ..., byte_in_path: int, byte_in_query: typing.Optional[int] = ..., byte_in_header: typing.Optional[int] = ...) -> None:
         483  +
    def __init__(self, byte_in_path: int, byte_in_body: typing.Optional[int] = ..., byte_in_query: typing.Optional[int] = ..., byte_in_header: typing.Optional[int] = ...) -> None:
  484    484   
        ...
  485    485   
  486    486   
  487    487   
class MalformedContentTypeWithBodyInput:
  488    488   
    hi: typing.Optional[str]
  489    489   
  490    490   
    def __init__(self, hi: typing.Optional[str] = ...) -> None:
  491    491   
        ...
  492    492   
  493    493   
  494    494   
class MalformedContentTypeWithGenericStringInput:
  495    495   
    payload: typing.Optional[str]
  496    496   
  497    497   
    def __init__(self, payload: typing.Optional[str] = ...) -> None:
  498    498   
        ...
  499    499   
  500    500   
  501    501   
class MalformedContentTypeWithPayloadInput:
  502    502   
    payload: typing.Optional[rest_json.types.Blob]
  503    503   
  504    504   
    def __init__(self, payload: typing.Optional[rest_json.types.Blob] = ...) -> None:
  505    505   
        ...
  506    506   
  507    507   
  508    508   
class MalformedContentTypeWithoutBodyInput:
  509    509   
    def __init__(self) -> None:
  510    510   
        ...
  511    511   
  512    512   
  513    513   
class MalformedDoubleInput:
  514    514   
    double_in_body: typing.Optional[float]
  515    515   
  516    516   
    double_in_header: typing.Optional[float]
  517    517   
  518    518   
    double_in_path: float
  519    519   
  520    520   
    double_in_query: typing.Optional[float]
  521    521   
  522         -
    def __init__(self, double_in_body: typing.Optional[float] = ..., double_in_path: float, double_in_query: typing.Optional[float] = ..., double_in_header: typing.Optional[float] = ...) -> None:
         522  +
    def __init__(self, double_in_path: float, double_in_body: typing.Optional[float] = ..., double_in_query: typing.Optional[float] = ..., double_in_header: typing.Optional[float] = ...) -> None:
  523    523   
        ...
  524    524   
  525    525   
  526    526   
class MalformedFloatInput:
  527    527   
    float_in_body: typing.Optional[float]
  528    528   
  529    529   
    float_in_header: typing.Optional[float]
  530    530   
  531    531   
    float_in_path: float
  532    532   
  533    533   
    float_in_query: typing.Optional[float]
  534    534   
  535         -
    def __init__(self, float_in_body: typing.Optional[float] = ..., float_in_path: float, float_in_query: typing.Optional[float] = ..., float_in_header: typing.Optional[float] = ...) -> None:
         535  +
    def __init__(self, float_in_path: float, float_in_body: typing.Optional[float] = ..., float_in_query: typing.Optional[float] = ..., float_in_header: typing.Optional[float] = ...) -> None:
  536    536   
        ...
  537    537   
  538    538   
  539    539   
class MalformedIntegerInput:
  540    540   
    integer_in_body: typing.Optional[int]
  541    541   
  542    542   
    integer_in_header: typing.Optional[int]
  543    543   
  544    544   
    integer_in_path: int
  545    545   
  546    546   
    integer_in_query: typing.Optional[int]
  547    547   
  548         -
    def __init__(self, integer_in_body: typing.Optional[int] = ..., integer_in_path: int, integer_in_query: typing.Optional[int] = ..., integer_in_header: typing.Optional[int] = ...) -> None:
         548  +
    def __init__(self, integer_in_path: int, integer_in_body: typing.Optional[int] = ..., integer_in_query: typing.Optional[int] = ..., integer_in_header: typing.Optional[int] = ...) -> None:
  549    549   
        ...
  550    550   
  551    551   
  552    552   
class MalformedListInput:
  553    553   
    body_list: typing.Optional[typing.List[str]]
  554    554   
  555    555   
    def __init__(self, body_list: typing.Optional[typing.List[str]] = ...) -> None:
  556    556   
        ...
  557    557   
  558    558   
  559    559   
class MalformedLongInput:
  560    560   
    long_in_body: typing.Optional[int]
  561    561   
  562    562   
    long_in_header: typing.Optional[int]
  563    563   
  564    564   
    long_in_path: int
  565    565   
  566    566   
    long_in_query: typing.Optional[int]
  567    567   
  568         -
    def __init__(self, long_in_body: typing.Optional[int] = ..., long_in_path: int, long_in_query: typing.Optional[int] = ..., long_in_header: typing.Optional[int] = ...) -> None:
         568  +
    def __init__(self, long_in_path: int, long_in_body: typing.Optional[int] = ..., long_in_query: typing.Optional[int] = ..., long_in_header: typing.Optional[int] = ...) -> None:
  569    569   
        ...
  570    570   
  571    571   
  572    572   
class MalformedMapInput:
  573    573   
    body_map: typing.Optional[typing.Dict[str, str]]
  574    574   
  575    575   
    def __init__(self, body_map: typing.Optional[typing.Dict[str, str]] = ...) -> None:
  576    576   
        ...
  577    577   
  578    578   
  579    579   
class MalformedRequestBodyInput:
  580    580   
    float: typing.Optional[float]
  581    581   
  582    582   
    int: typing.Optional[int]
  583    583   
  584    584   
    def __init__(self, int: typing.Optional[int] = ..., float: typing.Optional[float] = ...) -> None:
  585    585   
        ...
  586    586   
  587    587   
  588    588   
class MalformedShortInput:
  589    589   
    short_in_body: typing.Optional[int]
  590    590   
  591    591   
    short_in_header: typing.Optional[int]
  592    592   
  593    593   
    short_in_path: int
  594    594   
  595    595   
    short_in_query: typing.Optional[int]
  596    596   
  597         -
    def __init__(self, short_in_body: typing.Optional[int] = ..., short_in_path: int, short_in_query: typing.Optional[int] = ..., short_in_header: typing.Optional[int] = ...) -> None:
         597  +
    def __init__(self, short_in_path: int, short_in_body: typing.Optional[int] = ..., short_in_query: typing.Optional[int] = ..., short_in_header: typing.Optional[int] = ...) -> None:
  598    598   
        ...
  599    599   
  600    600   
  601    601   
class MalformedStringInput:
  602    602   
    blob: typing.Optional[str]
  603    603   
  604    604   
    def __init__(self, blob: typing.Optional[str] = ...) -> None:
  605    605   
        ...
  606    606   
  607    607   
@@ -745,745 +805,805 @@
  765    765   
  766    766   
class OperationWithDefaultsInput:
  767    767   
    client_optional_defaults: typing.Optional[rest_json.model.ClientOptionalDefaults]
  768    768   
  769    769   
    defaults: typing.Optional[rest_json.model.Defaults]
  770    770   
  771    771   
    other_top_level_default: int
  772    772   
  773    773   
    top_level_default: str
  774    774   
  775         -
    def __init__(self, defaults: typing.Optional[rest_json.model.Defaults] = ..., client_optional_defaults: typing.Optional[rest_json.model.ClientOptionalDefaults] = ..., top_level_default: str, other_top_level_default: int) -> None:
         775  +
    def __init__(self, top_level_default: str, other_top_level_default: int, defaults: typing.Optional[rest_json.model.Defaults] = ..., client_optional_defaults: typing.Optional[rest_json.model.ClientOptionalDefaults] = ...) -> None:
  776    776   
        ...
  777    777   
  778    778   
  779    779   
class OperationWithNestedStructureInput:
  780    780   
    top_level: rest_json.model.TopLevel
  781    781   
  782    782   
    def __init__(self, top_level: rest_json.model.TopLevel) -> None:
  783    783   
        ...
  784    784   
  785    785   
@@ -865,865 +943,943 @@
  885    885   
  886    886   
    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:
  887    887   
        ...
  888    888   
  889    889   
  890    890   
class StreamingTraitsInput:
  891    891   
    blob: rest_json.types.ByteStream
  892    892   
  893    893   
    foo: typing.Optional[str]
  894    894   
  895         -
    def __init__(self, foo: typing.Optional[str] = ..., blob: rest_json.types.ByteStream) -> None:
         895  +
    def __init__(self, blob: rest_json.types.ByteStream, foo: typing.Optional[str] = ...) -> None:
  896    896   
        ...
  897    897   
  898    898   
  899    899   
class StreamingTraitsRequireLengthInput:
  900    900   
    blob: rest_json.types.ByteStream
  901    901   
  902    902   
    foo: typing.Optional[str]
  903    903   
  904         -
    def __init__(self, foo: typing.Optional[str] = ..., blob: rest_json.types.ByteStream) -> None:
         904  +
    def __init__(self, blob: rest_json.types.ByteStream, foo: typing.Optional[str] = ...) -> None:
  905    905   
        ...
  906    906   
  907    907   
  908    908   
class StreamingTraitsWithMediaTypeInput:
  909    909   
    blob: rest_json.types.ByteStream
  910    910   
  911    911   
    foo: typing.Optional[str]
  912    912   
  913         -
    def __init__(self, foo: typing.Optional[str] = ..., blob: rest_json.types.ByteStream) -> None:
         913  +
    def __init__(self, blob: rest_json.types.ByteStream, foo: typing.Optional[str] = ...) -> None:
  914    914   
        ...
  915    915   
  916    916   
  917    917   
class TestBodyStructureInput:
  918    918   
    test_config: typing.Optional[rest_json.model.TestConfig]
  919    919   
  920    920   
    test_id: typing.Optional[str]
  921    921   
  922    922   
    def __init__(self, test_id: typing.Optional[str] = ..., test_config: typing.Optional[rest_json.model.TestConfig] = ...) -> None:
  923    923   
        ...