Server Test Python

Server Test Python

rev. d838bf488731ae5e751cce0fe13f339a5b9be858

Files changed:

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

@@ -1,1 +87,87 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[::pyo3::pymodule]
    3      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  +
    input.add_class::<crate::input::NoInputAndNoOutputInput>()?;
           9  +
    output.add_class::<crate::output::NoInputAndNoOutputOutput>()?;
    8     10   
    error.add_class::<crate::error::InternalServerError>()?;
    9         -
    output.add_class::<crate::output::QueryIncompatibleOperationOutput>()?;
   10         -
    input.add_class::<crate::input::QueryIncompatibleOperationInput>()?;
          11  +
    input.add_class::<crate::input::NoInputAndOutputInput>()?;
          12  +
    output.add_class::<crate::output::NoInputAndOutputOutput>()?;
          13  +
    input.add_class::<crate::input::EmptyInputAndEmptyOutputInput>()?;
          14  +
    output.add_class::<crate::output::EmptyInputAndEmptyOutputOutput>()?;
          15  +
    input.add_class::<crate::input::SimpleScalarPropertiesInput>()?;
          16  +
    output.add_class::<crate::output::SimpleScalarPropertiesOutput>()?;
          17  +
    input.add_class::<crate::input::GreetingWithErrorsInput>()?;
          18  +
    output.add_class::<crate::output::GreetingWithErrorsOutput>()?;
          19  +
    error.add_class::<crate::error::InvalidGreeting>()?;
          20  +
    error.add_class::<crate::error::ComplexError>()?;
          21  +
    error.add_class::<crate::error::FooError>()?;
          22  +
    input.add_class::<crate::input::JsonUnionsInput>()?;
          23  +
    output.add_class::<crate::output::JsonUnionsOutput>()?;
          24  +
    error.add_class::<crate::error::ValidationException>()?;
          25  +
    input.add_class::<crate::input::EndpointOperationInput>()?;
          26  +
    output.add_class::<crate::output::EndpointOperationOutput>()?;
          27  +
    input.add_class::<crate::input::EndpointWithHostLabelOperationInput>()?;
          28  +
    output.add_class::<crate::output::EndpointWithHostLabelOperationOutput>()?;
          29  +
    input.add_class::<crate::input::HostWithPathOperationInput>()?;
          30  +
    output.add_class::<crate::output::HostWithPathOperationOutput>()?;
          31  +
    input.add_class::<crate::input::PutWithContentEncodingInput>()?;
          32  +
    output.add_class::<crate::output::PutWithContentEncodingOutput>()?;
          33  +
    input.add_class::<crate::input::ContentTypeParametersInput>()?;
          34  +
    output.add_class::<crate::output::ContentTypeParametersOutput>()?;
          35  +
    input.add_class::<crate::input::OperationWithDefaultsInput>()?;
          36  +
    output.add_class::<crate::output::OperationWithDefaultsOutput>()?;
          37  +
    input.add_class::<crate::input::OperationWithRequiredMembersInput>()?;
          38  +
    output.add_class::<crate::output::OperationWithRequiredMembersOutput>()?;
          39  +
    input.add_class::<crate::input::OperationWithNestedStructureInput>()?;
          40  +
    output.add_class::<crate::output::OperationWithNestedStructureOutput>()?;
          41  +
    input.add_class::<crate::input::OperationWithRequiredMembersWithDefaultsInput>()?;
   11     42   
    output.add_class::<crate::output::OperationWithRequiredMembersWithDefaultsOutput>()?;
          43  +
    input.add_class::<crate::input::QueryIncompatibleOperationInput>()?;
          44  +
    output.add_class::<crate::output::QueryIncompatibleOperationOutput>()?;
   12     45   
    let model = ::pyo3::types::PyModule::new(py, "model")?;
          46  +
    model.add_class::<crate::model::ComplexNestedErrorData>()?;
          47  +
    model.add_class::<crate::model::PyUnionMarkerMyUnion>()?;
          48  +
    model.add_class::<crate::model::Defaults>()?;
          49  +
    model.add_class::<crate::model::ClientOptionalDefaults>()?;
          50  +
    model.add_class::<crate::model::TestEnum>()?;
          51  +
    model.add_class::<crate::model::TopLevel>()?;
          52  +
    model.add_class::<crate::model::Dialog>()?;
   13     53   
    model.add_class::<crate::model::RequiredEnum>()?;
   14         -
    input.add_class::<crate::input::OperationWithRequiredMembersWithDefaultsInput>()?;
   15         -
    error.add_class::<crate::error::ValidationException>()?;
          54  +
    model.add_class::<crate::model::FooEnum>()?;
          55  +
    model.add_class::<crate::model::GreetingStruct>()?;
   16     56   
    model.add_class::<crate::model::ValidationExceptionField>()?;
   17         -
    output.add_class::<crate::output::OperationWithNestedStructureOutput>()?;
   18         -
    model.add_class::<crate::model::Dialog>()?;
   19     57   
    model.add_class::<crate::model::Farewell>()?;
   20         -
    input.add_class::<crate::input::OperationWithNestedStructureInput>()?;
   21         -
    model.add_class::<crate::model::TopLevel>()?;
   22         -
    output.add_class::<crate::output::OperationWithRequiredMembersOutput>()?;
   23         -
    input.add_class::<crate::input::OperationWithRequiredMembersInput>()?;
   24         -
    output.add_class::<crate::output::OperationWithDefaultsOutput>()?;
   25         -
    model.add_class::<crate::model::TestEnum>()?;
   26         -
    input.add_class::<crate::input::OperationWithDefaultsInput>()?;
   27         -
    model.add_class::<crate::model::ClientOptionalDefaults>()?;
   28         -
    model.add_class::<crate::model::Defaults>()?;
   29         -
    output.add_class::<crate::output::ContentTypeParametersOutput>()?;
   30         -
    input.add_class::<crate::input::ContentTypeParametersInput>()?;
   31         -
    output.add_class::<crate::output::PutWithContentEncodingOutput>()?;
   32         -
    input.add_class::<crate::input::PutWithContentEncodingInput>()?;
   33         -
    output.add_class::<crate::output::HostWithPathOperationOutput>()?;
   34         -
    input.add_class::<crate::input::HostWithPathOperationInput>()?;
   35         -
    output.add_class::<crate::output::EndpointWithHostLabelOperationOutput>()?;
   36         -
    input.add_class::<crate::input::EndpointWithHostLabelOperationInput>()?;
   37         -
    output.add_class::<crate::output::EndpointOperationOutput>()?;
   38         -
    input.add_class::<crate::input::EndpointOperationInput>()?;
   39         -
    output.add_class::<crate::output::JsonUnionsOutput>()?;
   40         -
    model.add_class::<crate::model::PyUnionMarkerMyUnion>()?;
   41         -
    model.add_class::<crate::model::GreetingStruct>()?;
   42         -
    model.add_class::<crate::model::FooEnum>()?;
   43         -
    input.add_class::<crate::input::JsonUnionsInput>()?;
   44         -
    error.add_class::<crate::error::FooError>()?;
   45         -
    error.add_class::<crate::error::ComplexError>()?;
   46         -
    model.add_class::<crate::model::ComplexNestedErrorData>()?;
   47         -
    error.add_class::<crate::error::InvalidGreeting>()?;
   48         -
    output.add_class::<crate::output::GreetingWithErrorsOutput>()?;
   49         -
    input.add_class::<crate::input::GreetingWithErrorsInput>()?;
   50         -
    output.add_class::<crate::output::SimpleScalarPropertiesOutput>()?;
   51         -
    input.add_class::<crate::input::SimpleScalarPropertiesInput>()?;
   52         -
    output.add_class::<crate::output::EmptyInputAndEmptyOutputOutput>()?;
   53         -
    input.add_class::<crate::input::EmptyInputAndEmptyOutputInput>()?;
   54         -
    output.add_class::<crate::output::NoInputAndOutputOutput>()?;
   55         -
    input.add_class::<crate::input::NoInputAndOutputInput>()?;
   56         -
    output.add_class::<crate::output::NoInputAndNoOutputOutput>()?;
   57         -
    input.add_class::<crate::input::NoInputAndNoOutputInput>()?;
   58     58   
    ::pyo3::py_run!(
   59     59   
        py,
   60     60   
        input,
   61     61   
        "import sys; sys.modules['json_rpc10.input'] = input"
   62     62   
    );
   63     63   
    m.add_submodule(input)?;
   64     64   
    ::pyo3::py_run!(
   65     65   
        py,
   66     66   
        output,
   67     67   
        "import sys; sys.modules['json_rpc10.output'] = output"

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

@@ -1,1 +889,889 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/// Python handler for operation `QueryIncompatibleOperation`.
    3         -
pub(crate) async fn query_incompatible_operation(
    4         -
    input: crate::input::QueryIncompatibleOperationInput,
           2  +
/// Python handler for operation `NoInputAndNoOutput`.
           3  +
pub(crate) async fn no_input_and_no_output(
           4  +
    input: crate::input::NoInputAndNoOutputInput,
    5      5   
    state: ::aws_smithy_legacy_http_server::Extension<
    6      6   
        ::aws_smithy_http_server_python::context::PyContext,
    7      7   
    >,
    8      8   
    handler: ::aws_smithy_http_server_python::PyHandler,
    9      9   
) -> std::result::Result<
   10         -
    crate::output::QueryIncompatibleOperationOutput,
   11         -
    crate::error::QueryIncompatibleOperationError,
          10  +
    crate::output::NoInputAndNoOutputOutput,
          11  +
    crate::error::NoInputAndNoOutputError,
   12     12   
> {
   13     13   
    // Async block used to run the handler and catch any Python error.
   14     14   
    let result = if handler.is_coroutine {
   15     15   
        ::tracing::trace!(
   16         -
            name = "query_incompatible_operation",
          16  +
            name = "no_input_and_no_output",
   17     17   
            "executing python handler coroutine"
   18     18   
        );
   19     19   
        let result = ::pyo3::Python::with_gil(|py| {
   20     20   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   21     21   
            let coroutine = if handler.args == 1 {
   22     22   
                pyhandler.call1((input,))?
   23     23   
            } else {
   24     24   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
   25     25   
            };
   26     26   
            ::pyo3_asyncio::tokio::into_future(coroutine)
   27     27   
        })?;
   28     28   
        result.await.and_then(|r| {
   29         -
            ::pyo3::Python::with_gil(|py| {
   30         -
                r.extract::<crate::output::QueryIncompatibleOperationOutput>(py)
   31         -
            })
          29  +
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::NoInputAndNoOutputOutput>(py))
   32     30   
        })
   33     31   
    } else {
   34     32   
        ::tracing::trace!(
   35         -
            name = "query_incompatible_operation",
          33  +
            name = "no_input_and_no_output",
   36     34   
            "executing python handler function"
   37     35   
        );
   38     36   
        ::pyo3::Python::with_gil(|py| {
   39     37   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   40     38   
            let output = if handler.args == 1 {
   41     39   
                pyhandler.call1((input,))?
   42     40   
            } else {
   43     41   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
   44     42   
            };
   45         -
            output.extract::<crate::output::QueryIncompatibleOperationOutput>()
          43  +
            output.extract::<crate::output::NoInputAndNoOutputOutput>()
   46     44   
        })
   47     45   
    };
   48     46   
    // Catch and record a Python traceback.
   49     47   
    result.map_err(|e| {
   50     48   
        let rich_py_err =
   51     49   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
   52     50   
                e.clone_ref(py)
   53     51   
            }));
   54     52   
        ::tracing::error!(error = ?rich_py_err, "handler error");
   55     53   
        e.into()
   56     54   
    })
   57     55   
}
   58     56   
   59         -
/// Python handler for operation `OperationWithRequiredMembersWithDefaults`.
   60         -
pub(crate) async fn operation_with_required_members_with_defaults(
   61         -
    input: crate::input::OperationWithRequiredMembersWithDefaultsInput,
          57  +
/// Python handler for operation `NoInputAndOutput`.
          58  +
pub(crate) async fn no_input_and_output(
          59  +
    input: crate::input::NoInputAndOutputInput,
   62     60   
    state: ::aws_smithy_legacy_http_server::Extension<
   63     61   
        ::aws_smithy_http_server_python::context::PyContext,
   64     62   
    >,
   65     63   
    handler: ::aws_smithy_http_server_python::PyHandler,
   66         -
) -> std::result::Result<
   67         -
    crate::output::OperationWithRequiredMembersWithDefaultsOutput,
   68         -
    crate::error::OperationWithRequiredMembersWithDefaultsError,
   69         -
> {
          64  +
) -> std::result::Result<crate::output::NoInputAndOutputOutput, crate::error::NoInputAndOutputError>
          65  +
{
   70     66   
    // Async block used to run the handler and catch any Python error.
   71     67   
    let result = if handler.is_coroutine {
   72     68   
        ::tracing::trace!(
   73         -
            name = "operation_with_required_members_with_defaults",
          69  +
            name = "no_input_and_output",
   74     70   
            "executing python handler coroutine"
   75     71   
        );
   76     72   
        let result = ::pyo3::Python::with_gil(|py| {
   77     73   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   78     74   
            let coroutine = if handler.args == 1 {
   79     75   
                pyhandler.call1((input,))?
   80     76   
            } else {
   81     77   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
   82     78   
            };
   83     79   
            ::pyo3_asyncio::tokio::into_future(coroutine)
   84     80   
        })?;
   85     81   
        result.await.and_then(|r| {
   86         -
            ::pyo3::Python::with_gil(|py| {
   87         -
                r.extract::<crate::output::OperationWithRequiredMembersWithDefaultsOutput>(py)
   88         -
            })
          82  +
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::NoInputAndOutputOutput>(py))
   89     83   
        })
   90     84   
    } else {
   91     85   
        ::tracing::trace!(
   92         -
            name = "operation_with_required_members_with_defaults",
          86  +
            name = "no_input_and_output",
   93     87   
            "executing python handler function"
   94     88   
        );
   95     89   
        ::pyo3::Python::with_gil(|py| {
   96     90   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
   97     91   
            let output = if handler.args == 1 {
   98     92   
                pyhandler.call1((input,))?
   99     93   
            } else {
  100     94   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  101     95   
            };
  102         -
            output.extract::<crate::output::OperationWithRequiredMembersWithDefaultsOutput>()
          96  +
            output.extract::<crate::output::NoInputAndOutputOutput>()
  103     97   
        })
  104     98   
    };
  105     99   
    // Catch and record a Python traceback.
  106    100   
    result.map_err(|e| {
  107    101   
        let rich_py_err =
  108    102   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  109    103   
                e.clone_ref(py)
  110    104   
            }));
  111    105   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  112    106   
        e.into()
  113    107   
    })
  114    108   
}
  115    109   
  116         -
/// Python handler for operation `OperationWithNestedStructure`.
  117         -
pub(crate) async fn operation_with_nested_structure(
  118         -
    input: crate::input::OperationWithNestedStructureInput,
         110  +
/// Python handler for operation `EmptyInputAndEmptyOutput`.
         111  +
pub(crate) async fn empty_input_and_empty_output(
         112  +
    input: crate::input::EmptyInputAndEmptyOutputInput,
  119    113   
    state: ::aws_smithy_legacy_http_server::Extension<
  120    114   
        ::aws_smithy_http_server_python::context::PyContext,
  121    115   
    >,
  122    116   
    handler: ::aws_smithy_http_server_python::PyHandler,
  123    117   
) -> std::result::Result<
  124         -
    crate::output::OperationWithNestedStructureOutput,
  125         -
    crate::error::OperationWithNestedStructureError,
         118  +
    crate::output::EmptyInputAndEmptyOutputOutput,
         119  +
    crate::error::EmptyInputAndEmptyOutputError,
  126    120   
> {
  127    121   
    // Async block used to run the handler and catch any Python error.
  128    122   
    let result = if handler.is_coroutine {
  129    123   
        ::tracing::trace!(
  130         -
            name = "operation_with_nested_structure",
         124  +
            name = "empty_input_and_empty_output",
  131    125   
            "executing python handler coroutine"
  132    126   
        );
  133    127   
        let result = ::pyo3::Python::with_gil(|py| {
  134    128   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  135    129   
            let coroutine = if handler.args == 1 {
  136    130   
                pyhandler.call1((input,))?
  137    131   
            } else {
  138    132   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  139    133   
            };
  140    134   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  141    135   
        })?;
  142    136   
        result.await.and_then(|r| {
  143    137   
            ::pyo3::Python::with_gil(|py| {
  144         -
                r.extract::<crate::output::OperationWithNestedStructureOutput>(py)
         138  +
                r.extract::<crate::output::EmptyInputAndEmptyOutputOutput>(py)
  145    139   
            })
  146    140   
        })
  147    141   
    } else {
  148    142   
        ::tracing::trace!(
  149         -
            name = "operation_with_nested_structure",
         143  +
            name = "empty_input_and_empty_output",
  150    144   
            "executing python handler function"
  151    145   
        );
  152    146   
        ::pyo3::Python::with_gil(|py| {
  153    147   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  154    148   
            let output = if handler.args == 1 {
  155    149   
                pyhandler.call1((input,))?
  156    150   
            } else {
  157    151   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  158    152   
            };
  159         -
            output.extract::<crate::output::OperationWithNestedStructureOutput>()
         153  +
            output.extract::<crate::output::EmptyInputAndEmptyOutputOutput>()
  160    154   
        })
  161    155   
    };
  162    156   
    // Catch and record a Python traceback.
  163    157   
    result.map_err(|e| {
  164    158   
        let rich_py_err =
  165    159   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  166    160   
                e.clone_ref(py)
  167    161   
            }));
  168    162   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  169    163   
        e.into()
  170    164   
    })
  171    165   
}
  172    166   
  173         -
/// Python handler for operation `OperationWithRequiredMembers`.
  174         -
pub(crate) async fn operation_with_required_members(
  175         -
    input: crate::input::OperationWithRequiredMembersInput,
         167  +
/// Python handler for operation `SimpleScalarProperties`.
         168  +
pub(crate) async fn simple_scalar_properties(
         169  +
    input: crate::input::SimpleScalarPropertiesInput,
  176    170   
    state: ::aws_smithy_legacy_http_server::Extension<
  177    171   
        ::aws_smithy_http_server_python::context::PyContext,
  178    172   
    >,
  179    173   
    handler: ::aws_smithy_http_server_python::PyHandler,
  180    174   
) -> std::result::Result<
  181         -
    crate::output::OperationWithRequiredMembersOutput,
  182         -
    crate::error::OperationWithRequiredMembersError,
         175  +
    crate::output::SimpleScalarPropertiesOutput,
         176  +
    crate::error::SimpleScalarPropertiesError,
  183    177   
> {
  184    178   
    // Async block used to run the handler and catch any Python error.
  185    179   
    let result = if handler.is_coroutine {
  186    180   
        ::tracing::trace!(
  187         -
            name = "operation_with_required_members",
         181  +
            name = "simple_scalar_properties",
  188    182   
            "executing python handler coroutine"
  189    183   
        );
  190    184   
        let result = ::pyo3::Python::with_gil(|py| {
  191    185   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  192    186   
            let coroutine = if handler.args == 1 {
  193    187   
                pyhandler.call1((input,))?
  194    188   
            } else {
  195    189   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  196    190   
            };
  197    191   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  198    192   
        })?;
  199    193   
        result.await.and_then(|r| {
  200    194   
            ::pyo3::Python::with_gil(|py| {
  201         -
                r.extract::<crate::output::OperationWithRequiredMembersOutput>(py)
         195  +
                r.extract::<crate::output::SimpleScalarPropertiesOutput>(py)
  202    196   
            })
  203    197   
        })
  204    198   
    } else {
  205    199   
        ::tracing::trace!(
  206         -
            name = "operation_with_required_members",
         200  +
            name = "simple_scalar_properties",
  207    201   
            "executing python handler function"
  208    202   
        );
  209    203   
        ::pyo3::Python::with_gil(|py| {
  210    204   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  211    205   
            let output = if handler.args == 1 {
  212    206   
                pyhandler.call1((input,))?
  213    207   
            } else {
  214    208   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  215    209   
            };
  216         -
            output.extract::<crate::output::OperationWithRequiredMembersOutput>()
         210  +
            output.extract::<crate::output::SimpleScalarPropertiesOutput>()
  217    211   
        })
  218    212   
    };
  219    213   
    // Catch and record a Python traceback.
  220    214   
    result.map_err(|e| {
  221    215   
        let rich_py_err =
  222    216   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  223    217   
                e.clone_ref(py)
  224    218   
            }));
  225    219   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  226    220   
        e.into()
  227    221   
    })
  228    222   
}
  229    223   
  230         -
/// Python handler for operation `OperationWithDefaults`.
  231         -
pub(crate) async fn operation_with_defaults(
  232         -
    input: crate::input::OperationWithDefaultsInput,
         224  +
/// Python handler for operation `GreetingWithErrors`.
         225  +
pub(crate) async fn greeting_with_errors(
         226  +
    input: crate::input::GreetingWithErrorsInput,
  233    227   
    state: ::aws_smithy_legacy_http_server::Extension<
  234    228   
        ::aws_smithy_http_server_python::context::PyContext,
  235    229   
    >,
  236    230   
    handler: ::aws_smithy_http_server_python::PyHandler,
  237    231   
) -> std::result::Result<
  238         -
    crate::output::OperationWithDefaultsOutput,
  239         -
    crate::error::OperationWithDefaultsError,
         232  +
    crate::output::GreetingWithErrorsOutput,
         233  +
    crate::error::GreetingWithErrorsError,
  240    234   
> {
  241    235   
    // Async block used to run the handler and catch any Python error.
  242    236   
    let result = if handler.is_coroutine {
  243    237   
        ::tracing::trace!(
  244         -
            name = "operation_with_defaults",
         238  +
            name = "greeting_with_errors",
  245    239   
            "executing python handler coroutine"
  246    240   
        );
  247    241   
        let result = ::pyo3::Python::with_gil(|py| {
  248    242   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  249    243   
            let coroutine = if handler.args == 1 {
  250    244   
                pyhandler.call1((input,))?
  251    245   
            } else {
  252    246   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  253    247   
            };
  254    248   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  255    249   
        })?;
  256    250   
        result.await.and_then(|r| {
  257         -
            ::pyo3::Python::with_gil(|py| {
  258         -
                r.extract::<crate::output::OperationWithDefaultsOutput>(py)
  259         -
            })
         251  +
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::GreetingWithErrorsOutput>(py))
  260    252   
        })
  261    253   
    } else {
  262    254   
        ::tracing::trace!(
  263         -
            name = "operation_with_defaults",
         255  +
            name = "greeting_with_errors",
  264    256   
            "executing python handler function"
  265    257   
        );
  266    258   
        ::pyo3::Python::with_gil(|py| {
  267    259   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  268    260   
            let output = if handler.args == 1 {
  269    261   
                pyhandler.call1((input,))?
  270    262   
            } else {
  271    263   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  272    264   
            };
  273         -
            output.extract::<crate::output::OperationWithDefaultsOutput>()
         265  +
            output.extract::<crate::output::GreetingWithErrorsOutput>()
  274    266   
        })
  275    267   
    };
  276    268   
    // Catch and record a Python traceback.
  277    269   
    result.map_err(|e| {
  278    270   
        let rich_py_err =
  279    271   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  280    272   
                e.clone_ref(py)
  281    273   
            }));
  282    274   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  283    275   
        e.into()
  284    276   
    })
  285    277   
}
  286    278   
  287         -
/// Python handler for operation `ContentTypeParameters`.
  288         -
pub(crate) async fn content_type_parameters(
  289         -
    input: crate::input::ContentTypeParametersInput,
         279  +
/// Python handler for operation `JsonUnions`.
         280  +
pub(crate) async fn json_unions(
         281  +
    input: crate::input::JsonUnionsInput,
  290    282   
    state: ::aws_smithy_legacy_http_server::Extension<
  291    283   
        ::aws_smithy_http_server_python::context::PyContext,
  292    284   
    >,
  293    285   
    handler: ::aws_smithy_http_server_python::PyHandler,
  294         -
) -> std::result::Result<
  295         -
    crate::output::ContentTypeParametersOutput,
  296         -
    crate::error::ContentTypeParametersError,
  297         -
> {
         286  +
) -> std::result::Result<crate::output::JsonUnionsOutput, crate::error::JsonUnionsError> {
  298    287   
    // Async block used to run the handler and catch any Python error.
  299    288   
    let result = if handler.is_coroutine {
  300         -
        ::tracing::trace!(
  301         -
            name = "content_type_parameters",
  302         -
            "executing python handler coroutine"
  303         -
        );
         289  +
        ::tracing::trace!(name = "json_unions", "executing python handler coroutine");
  304    290   
        let result = ::pyo3::Python::with_gil(|py| {
  305    291   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  306    292   
            let coroutine = if handler.args == 1 {
  307    293   
                pyhandler.call1((input,))?
  308    294   
            } else {
  309    295   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  310    296   
            };
  311    297   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  312    298   
        })?;
  313    299   
        result.await.and_then(|r| {
  314         -
            ::pyo3::Python::with_gil(|py| {
  315         -
                r.extract::<crate::output::ContentTypeParametersOutput>(py)
  316         -
            })
         300  +
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonUnionsOutput>(py))
  317    301   
        })
  318    302   
    } else {
  319         -
        ::tracing::trace!(
  320         -
            name = "content_type_parameters",
  321         -
            "executing python handler function"
  322         -
        );
         303  +
        ::tracing::trace!(name = "json_unions", "executing python handler function");
  323    304   
        ::pyo3::Python::with_gil(|py| {
  324    305   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  325    306   
            let output = if handler.args == 1 {
  326    307   
                pyhandler.call1((input,))?
  327    308   
            } else {
  328    309   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  329    310   
            };
  330         -
            output.extract::<crate::output::ContentTypeParametersOutput>()
         311  +
            output.extract::<crate::output::JsonUnionsOutput>()
  331    312   
        })
  332    313   
    };
  333    314   
    // Catch and record a Python traceback.
  334    315   
    result.map_err(|e| {
  335    316   
        let rich_py_err =
  336    317   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  337    318   
                e.clone_ref(py)
  338    319   
            }));
  339    320   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  340    321   
        e.into()
  341    322   
    })
  342    323   
}
  343    324   
  344         -
/// Python handler for operation `PutWithContentEncoding`.
  345         -
pub(crate) async fn put_with_content_encoding(
  346         -
    input: crate::input::PutWithContentEncodingInput,
         325  +
/// Python handler for operation `EndpointOperation`.
         326  +
pub(crate) async fn endpoint_operation(
         327  +
    input: crate::input::EndpointOperationInput,
  347    328   
    state: ::aws_smithy_legacy_http_server::Extension<
  348    329   
        ::aws_smithy_http_server_python::context::PyContext,
  349    330   
    >,
  350    331   
    handler: ::aws_smithy_http_server_python::PyHandler,
  351         -
) -> std::result::Result<
  352         -
    crate::output::PutWithContentEncodingOutput,
  353         -
    crate::error::PutWithContentEncodingError,
  354         -
> {
         332  +
) -> std::result::Result<crate::output::EndpointOperationOutput, crate::error::EndpointOperationError>
         333  +
{
  355    334   
    // Async block used to run the handler and catch any Python error.
  356    335   
    let result = if handler.is_coroutine {
  357    336   
        ::tracing::trace!(
  358         -
            name = "put_with_content_encoding",
         337  +
            name = "endpoint_operation",
  359    338   
            "executing python handler coroutine"
  360    339   
        );
  361    340   
        let result = ::pyo3::Python::with_gil(|py| {
  362    341   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  363    342   
            let coroutine = if handler.args == 1 {
  364    343   
                pyhandler.call1((input,))?
  365    344   
            } else {
  366    345   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  367    346   
            };
  368    347   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  369    348   
        })?;
  370    349   
        result.await.and_then(|r| {
  371         -
            ::pyo3::Python::with_gil(|py| {
  372         -
                r.extract::<crate::output::PutWithContentEncodingOutput>(py)
  373         -
            })
         350  +
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::EndpointOperationOutput>(py))
  374    351   
        })
  375    352   
    } else {
  376    353   
        ::tracing::trace!(
  377         -
            name = "put_with_content_encoding",
         354  +
            name = "endpoint_operation",
  378    355   
            "executing python handler function"
  379    356   
        );
  380    357   
        ::pyo3::Python::with_gil(|py| {
  381    358   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  382    359   
            let output = if handler.args == 1 {
  383    360   
                pyhandler.call1((input,))?
  384    361   
            } else {
  385    362   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  386    363   
            };
  387         -
            output.extract::<crate::output::PutWithContentEncodingOutput>()
         364  +
            output.extract::<crate::output::EndpointOperationOutput>()
  388    365   
        })
  389    366   
    };
  390    367   
    // Catch and record a Python traceback.
  391    368   
    result.map_err(|e| {
  392    369   
        let rich_py_err =
  393    370   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  394    371   
                e.clone_ref(py)
  395    372   
            }));
  396    373   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  397    374   
        e.into()
  398    375   
    })
  399    376   
}
  400    377   
  401         -
/// Python handler for operation `HostWithPathOperation`.
  402         -
pub(crate) async fn host_with_path_operation(
  403         -
    input: crate::input::HostWithPathOperationInput,
         378  +
/// Python handler for operation `EndpointWithHostLabelOperation`.
         379  +
pub(crate) async fn endpoint_with_host_label_operation(
         380  +
    input: crate::input::EndpointWithHostLabelOperationInput,
  404    381   
    state: ::aws_smithy_legacy_http_server::Extension<
  405    382   
        ::aws_smithy_http_server_python::context::PyContext,
  406    383   
    >,
  407    384   
    handler: ::aws_smithy_http_server_python::PyHandler,
  408    385   
) -> std::result::Result<
  409         -
    crate::output::HostWithPathOperationOutput,
  410         -
    crate::error::HostWithPathOperationError,
         386  +
    crate::output::EndpointWithHostLabelOperationOutput,
         387  +
    crate::error::EndpointWithHostLabelOperationError,
  411    388   
> {
  412    389   
    // Async block used to run the handler and catch any Python error.
  413    390   
    let result = if handler.is_coroutine {
  414    391   
        ::tracing::trace!(
  415         -
            name = "host_with_path_operation",
         392  +
            name = "endpoint_with_host_label_operation",
  416    393   
            "executing python handler coroutine"
  417    394   
        );
  418    395   
        let result = ::pyo3::Python::with_gil(|py| {
  419    396   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  420    397   
            let coroutine = if handler.args == 1 {
  421    398   
                pyhandler.call1((input,))?
  422    399   
            } else {
  423    400   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  424    401   
            };
  425    402   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  426    403   
        })?;
  427    404   
        result.await.and_then(|r| {
  428    405   
            ::pyo3::Python::with_gil(|py| {
  429         -
                r.extract::<crate::output::HostWithPathOperationOutput>(py)
         406  +
                r.extract::<crate::output::EndpointWithHostLabelOperationOutput>(py)
  430    407   
            })
  431    408   
        })
  432    409   
    } else {
  433    410   
        ::tracing::trace!(
  434         -
            name = "host_with_path_operation",
         411  +
            name = "endpoint_with_host_label_operation",
  435    412   
            "executing python handler function"
  436    413   
        );
  437    414   
        ::pyo3::Python::with_gil(|py| {
  438    415   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  439    416   
            let output = if handler.args == 1 {
  440    417   
                pyhandler.call1((input,))?
  441    418   
            } else {
  442    419   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  443    420   
            };
  444         -
            output.extract::<crate::output::HostWithPathOperationOutput>()
         421  +
            output.extract::<crate::output::EndpointWithHostLabelOperationOutput>()
  445    422   
        })
  446    423   
    };
  447    424   
    // Catch and record a Python traceback.
  448    425   
    result.map_err(|e| {
  449    426   
        let rich_py_err =
  450    427   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  451    428   
                e.clone_ref(py)
  452    429   
            }));
  453    430   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  454    431   
        e.into()
  455    432   
    })
  456    433   
}
  457    434   
  458         -
/// Python handler for operation `EndpointWithHostLabelOperation`.
  459         -
pub(crate) async fn endpoint_with_host_label_operation(
  460         -
    input: crate::input::EndpointWithHostLabelOperationInput,
         435  +
/// Python handler for operation `HostWithPathOperation`.
         436  +
pub(crate) async fn host_with_path_operation(
         437  +
    input: crate::input::HostWithPathOperationInput,
  461    438   
    state: ::aws_smithy_legacy_http_server::Extension<
  462    439   
        ::aws_smithy_http_server_python::context::PyContext,
  463    440   
    >,
  464    441   
    handler: ::aws_smithy_http_server_python::PyHandler,
  465    442   
) -> std::result::Result<
  466         -
    crate::output::EndpointWithHostLabelOperationOutput,
  467         -
    crate::error::EndpointWithHostLabelOperationError,
         443  +
    crate::output::HostWithPathOperationOutput,
         444  +
    crate::error::HostWithPathOperationError,
  468    445   
> {
  469    446   
    // Async block used to run the handler and catch any Python error.
  470    447   
    let result = if handler.is_coroutine {
  471    448   
        ::tracing::trace!(
  472         -
            name = "endpoint_with_host_label_operation",
         449  +
            name = "host_with_path_operation",
  473    450   
            "executing python handler coroutine"
  474    451   
        );
  475    452   
        let result = ::pyo3::Python::with_gil(|py| {
  476    453   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  477    454   
            let coroutine = if handler.args == 1 {
  478    455   
                pyhandler.call1((input,))?
  479    456   
            } else {
  480    457   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  481    458   
            };
  482    459   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  483    460   
        })?;
  484    461   
        result.await.and_then(|r| {
  485    462   
            ::pyo3::Python::with_gil(|py| {
  486         -
                r.extract::<crate::output::EndpointWithHostLabelOperationOutput>(py)
         463  +
                r.extract::<crate::output::HostWithPathOperationOutput>(py)
  487    464   
            })
  488    465   
        })
  489    466   
    } else {
  490    467   
        ::tracing::trace!(
  491         -
            name = "endpoint_with_host_label_operation",
         468  +
            name = "host_with_path_operation",
  492    469   
            "executing python handler function"
  493    470   
        );
  494    471   
        ::pyo3::Python::with_gil(|py| {
  495    472   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  496    473   
            let output = if handler.args == 1 {
  497    474   
                pyhandler.call1((input,))?
  498    475   
            } else {
  499    476   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  500    477   
            };
  501         -
            output.extract::<crate::output::EndpointWithHostLabelOperationOutput>()
         478  +
            output.extract::<crate::output::HostWithPathOperationOutput>()
  502    479   
        })
  503    480   
    };
  504    481   
    // Catch and record a Python traceback.
  505    482   
    result.map_err(|e| {
  506    483   
        let rich_py_err =
  507    484   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  508    485   
                e.clone_ref(py)
  509    486   
            }));
  510    487   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  511    488   
        e.into()
  512    489   
    })
  513    490   
}
  514    491   
  515         -
/// Python handler for operation `EndpointOperation`.
  516         -
pub(crate) async fn endpoint_operation(
  517         -
    input: crate::input::EndpointOperationInput,
         492  +
/// Python handler for operation `PutWithContentEncoding`.
         493  +
pub(crate) async fn put_with_content_encoding(
         494  +
    input: crate::input::PutWithContentEncodingInput,
  518    495   
    state: ::aws_smithy_legacy_http_server::Extension<
  519    496   
        ::aws_smithy_http_server_python::context::PyContext,
  520    497   
    >,
  521    498   
    handler: ::aws_smithy_http_server_python::PyHandler,
  522         -
) -> std::result::Result<crate::output::EndpointOperationOutput, crate::error::EndpointOperationError>
  523         -
{
         499  +
) -> std::result::Result<
         500  +
    crate::output::PutWithContentEncodingOutput,
         501  +
    crate::error::PutWithContentEncodingError,
         502  +
> {
  524    503   
    // Async block used to run the handler and catch any Python error.
  525    504   
    let result = if handler.is_coroutine {
  526    505   
        ::tracing::trace!(
  527         -
            name = "endpoint_operation",
         506  +
            name = "put_with_content_encoding",
  528    507   
            "executing python handler coroutine"
  529    508   
        );
  530    509   
        let result = ::pyo3::Python::with_gil(|py| {
  531    510   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  532    511   
            let coroutine = if handler.args == 1 {
  533    512   
                pyhandler.call1((input,))?
  534    513   
            } else {
  535    514   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  536    515   
            };
  537    516   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  538    517   
        })?;
  539    518   
        result.await.and_then(|r| {
  540         -
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::EndpointOperationOutput>(py))
         519  +
            ::pyo3::Python::with_gil(|py| {
         520  +
                r.extract::<crate::output::PutWithContentEncodingOutput>(py)
         521  +
            })
  541    522   
        })
  542    523   
    } else {
  543    524   
        ::tracing::trace!(
  544         -
            name = "endpoint_operation",
         525  +
            name = "put_with_content_encoding",
  545    526   
            "executing python handler function"
  546    527   
        );
  547    528   
        ::pyo3::Python::with_gil(|py| {
  548    529   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  549    530   
            let output = if handler.args == 1 {
  550    531   
                pyhandler.call1((input,))?
  551    532   
            } else {
  552    533   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  553    534   
            };
  554         -
            output.extract::<crate::output::EndpointOperationOutput>()
         535  +
            output.extract::<crate::output::PutWithContentEncodingOutput>()
  555    536   
        })
  556    537   
    };
  557    538   
    // Catch and record a Python traceback.
  558    539   
    result.map_err(|e| {
  559    540   
        let rich_py_err =
  560    541   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  561    542   
                e.clone_ref(py)
  562    543   
            }));
  563    544   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  564    545   
        e.into()
  565    546   
    })
  566    547   
}
  567    548   
  568         -
/// Python handler for operation `JsonUnions`.
  569         -
pub(crate) async fn json_unions(
  570         -
    input: crate::input::JsonUnionsInput,
         549  +
/// Python handler for operation `ContentTypeParameters`.
         550  +
pub(crate) async fn content_type_parameters(
         551  +
    input: crate::input::ContentTypeParametersInput,
  571    552   
    state: ::aws_smithy_legacy_http_server::Extension<
  572    553   
        ::aws_smithy_http_server_python::context::PyContext,
  573    554   
    >,
  574    555   
    handler: ::aws_smithy_http_server_python::PyHandler,
  575         -
) -> std::result::Result<crate::output::JsonUnionsOutput, crate::error::JsonUnionsError> {
         556  +
) -> std::result::Result<
         557  +
    crate::output::ContentTypeParametersOutput,
         558  +
    crate::error::ContentTypeParametersError,
         559  +
> {
  576    560   
    // Async block used to run the handler and catch any Python error.
  577    561   
    let result = if handler.is_coroutine {
  578         -
        ::tracing::trace!(name = "json_unions", "executing python handler coroutine");
         562  +
        ::tracing::trace!(
         563  +
            name = "content_type_parameters",
         564  +
            "executing python handler coroutine"
         565  +
        );
  579    566   
        let result = ::pyo3::Python::with_gil(|py| {
  580    567   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  581    568   
            let coroutine = if handler.args == 1 {
  582    569   
                pyhandler.call1((input,))?
  583    570   
            } else {
  584    571   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  585    572   
            };
  586    573   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  587    574   
        })?;
  588    575   
        result.await.and_then(|r| {
  589         -
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::JsonUnionsOutput>(py))
         576  +
            ::pyo3::Python::with_gil(|py| {
         577  +
                r.extract::<crate::output::ContentTypeParametersOutput>(py)
         578  +
            })
  590    579   
        })
  591    580   
    } else {
  592         -
        ::tracing::trace!(name = "json_unions", "executing python handler function");
         581  +
        ::tracing::trace!(
         582  +
            name = "content_type_parameters",
         583  +
            "executing python handler function"
         584  +
        );
  593    585   
        ::pyo3::Python::with_gil(|py| {
  594    586   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  595    587   
            let output = if handler.args == 1 {
  596    588   
                pyhandler.call1((input,))?
  597    589   
            } else {
  598    590   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  599    591   
            };
  600         -
            output.extract::<crate::output::JsonUnionsOutput>()
         592  +
            output.extract::<crate::output::ContentTypeParametersOutput>()
  601    593   
        })
  602    594   
    };
  603    595   
    // Catch and record a Python traceback.
  604    596   
    result.map_err(|e| {
  605    597   
        let rich_py_err =
  606    598   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  607    599   
                e.clone_ref(py)
  608    600   
            }));
  609    601   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  610    602   
        e.into()
  611    603   
    })
  612    604   
}
  613    605   
  614         -
/// Python handler for operation `GreetingWithErrors`.
  615         -
pub(crate) async fn greeting_with_errors(
  616         -
    input: crate::input::GreetingWithErrorsInput,
         606  +
/// Python handler for operation `OperationWithDefaults`.
         607  +
pub(crate) async fn operation_with_defaults(
         608  +
    input: crate::input::OperationWithDefaultsInput,
  617    609   
    state: ::aws_smithy_legacy_http_server::Extension<
  618    610   
        ::aws_smithy_http_server_python::context::PyContext,
  619    611   
    >,
  620    612   
    handler: ::aws_smithy_http_server_python::PyHandler,
  621    613   
) -> std::result::Result<
  622         -
    crate::output::GreetingWithErrorsOutput,
  623         -
    crate::error::GreetingWithErrorsError,
         614  +
    crate::output::OperationWithDefaultsOutput,
         615  +
    crate::error::OperationWithDefaultsError,
  624    616   
> {
  625    617   
    // Async block used to run the handler and catch any Python error.
  626    618   
    let result = if handler.is_coroutine {
  627    619   
        ::tracing::trace!(
  628         -
            name = "greeting_with_errors",
         620  +
            name = "operation_with_defaults",
  629    621   
            "executing python handler coroutine"
  630    622   
        );
  631    623   
        let result = ::pyo3::Python::with_gil(|py| {
  632    624   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  633    625   
            let coroutine = if handler.args == 1 {
  634    626   
                pyhandler.call1((input,))?
  635    627   
            } else {
  636    628   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  637    629   
            };
  638    630   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  639    631   
        })?;
  640    632   
        result.await.and_then(|r| {
  641         -
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::GreetingWithErrorsOutput>(py))
         633  +
            ::pyo3::Python::with_gil(|py| {
         634  +
                r.extract::<crate::output::OperationWithDefaultsOutput>(py)
         635  +
            })
  642    636   
        })
  643    637   
    } else {
  644    638   
        ::tracing::trace!(
  645         -
            name = "greeting_with_errors",
         639  +
            name = "operation_with_defaults",
  646    640   
            "executing python handler function"
  647    641   
        );
  648    642   
        ::pyo3::Python::with_gil(|py| {
  649    643   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  650    644   
            let output = if handler.args == 1 {
  651    645   
                pyhandler.call1((input,))?
  652    646   
            } else {
  653    647   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  654    648   
            };
  655         -
            output.extract::<crate::output::GreetingWithErrorsOutput>()
         649  +
            output.extract::<crate::output::OperationWithDefaultsOutput>()
  656    650   
        })
  657    651   
    };
  658    652   
    // Catch and record a Python traceback.
  659    653   
    result.map_err(|e| {
  660    654   
        let rich_py_err =
  661    655   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  662    656   
                e.clone_ref(py)
  663    657   
            }));
  664    658   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  665    659   
        e.into()
  666    660   
    })
  667    661   
}
  668    662   
  669         -
/// Python handler for operation `SimpleScalarProperties`.
  670         -
pub(crate) async fn simple_scalar_properties(
  671         -
    input: crate::input::SimpleScalarPropertiesInput,
         663  +
/// Python handler for operation `OperationWithRequiredMembers`.
         664  +
pub(crate) async fn operation_with_required_members(
         665  +
    input: crate::input::OperationWithRequiredMembersInput,
  672    666   
    state: ::aws_smithy_legacy_http_server::Extension<
  673    667   
        ::aws_smithy_http_server_python::context::PyContext,
  674    668   
    >,
  675    669   
    handler: ::aws_smithy_http_server_python::PyHandler,
  676    670   
) -> std::result::Result<
  677         -
    crate::output::SimpleScalarPropertiesOutput,
  678         -
    crate::error::SimpleScalarPropertiesError,
         671  +
    crate::output::OperationWithRequiredMembersOutput,
         672  +
    crate::error::OperationWithRequiredMembersError,
  679    673   
> {
  680    674   
    // Async block used to run the handler and catch any Python error.
  681    675   
    let result = if handler.is_coroutine {
  682    676   
        ::tracing::trace!(
  683         -
            name = "simple_scalar_properties",
         677  +
            name = "operation_with_required_members",
  684    678   
            "executing python handler coroutine"
  685    679   
        );
  686    680   
        let result = ::pyo3::Python::with_gil(|py| {
  687    681   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  688    682   
            let coroutine = if handler.args == 1 {
  689    683   
                pyhandler.call1((input,))?
  690    684   
            } else {
  691    685   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  692    686   
            };
  693    687   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  694    688   
        })?;
  695    689   
        result.await.and_then(|r| {
  696    690   
            ::pyo3::Python::with_gil(|py| {
  697         -
                r.extract::<crate::output::SimpleScalarPropertiesOutput>(py)
         691  +
                r.extract::<crate::output::OperationWithRequiredMembersOutput>(py)
  698    692   
            })
  699    693   
        })
  700    694   
    } else {
  701    695   
        ::tracing::trace!(
  702         -
            name = "simple_scalar_properties",
         696  +
            name = "operation_with_required_members",
  703    697   
            "executing python handler function"
  704    698   
        );
  705    699   
        ::pyo3::Python::with_gil(|py| {
  706    700   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  707    701   
            let output = if handler.args == 1 {
  708    702   
                pyhandler.call1((input,))?
  709    703   
            } else {
  710    704   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  711    705   
            };
  712         -
            output.extract::<crate::output::SimpleScalarPropertiesOutput>()
         706  +
            output.extract::<crate::output::OperationWithRequiredMembersOutput>()
  713    707   
        })
  714    708   
    };
  715    709   
    // Catch and record a Python traceback.
  716    710   
    result.map_err(|e| {
  717    711   
        let rich_py_err =
  718    712   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  719    713   
                e.clone_ref(py)
  720    714   
            }));
  721    715   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  722    716   
        e.into()
  723    717   
    })
  724    718   
}
  725    719   
  726         -
/// Python handler for operation `EmptyInputAndEmptyOutput`.
  727         -
pub(crate) async fn empty_input_and_empty_output(
  728         -
    input: crate::input::EmptyInputAndEmptyOutputInput,
         720  +
/// Python handler for operation `OperationWithNestedStructure`.
         721  +
pub(crate) async fn operation_with_nested_structure(
         722  +
    input: crate::input::OperationWithNestedStructureInput,
  729    723   
    state: ::aws_smithy_legacy_http_server::Extension<
  730    724   
        ::aws_smithy_http_server_python::context::PyContext,
  731    725   
    >,
  732    726   
    handler: ::aws_smithy_http_server_python::PyHandler,
  733    727   
) -> std::result::Result<
  734         -
    crate::output::EmptyInputAndEmptyOutputOutput,
  735         -
    crate::error::EmptyInputAndEmptyOutputError,
         728  +
    crate::output::OperationWithNestedStructureOutput,
         729  +
    crate::error::OperationWithNestedStructureError,
  736    730   
> {
  737    731   
    // Async block used to run the handler and catch any Python error.
  738    732   
    let result = if handler.is_coroutine {
  739    733   
        ::tracing::trace!(
  740         -
            name = "empty_input_and_empty_output",
         734  +
            name = "operation_with_nested_structure",
  741    735   
            "executing python handler coroutine"
  742    736   
        );
  743    737   
        let result = ::pyo3::Python::with_gil(|py| {
  744    738   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  745    739   
            let coroutine = if handler.args == 1 {
  746    740   
                pyhandler.call1((input,))?
  747    741   
            } else {
  748    742   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  749    743   
            };
  750    744   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  751    745   
        })?;
  752    746   
        result.await.and_then(|r| {
  753    747   
            ::pyo3::Python::with_gil(|py| {
  754         -
                r.extract::<crate::output::EmptyInputAndEmptyOutputOutput>(py)
         748  +
                r.extract::<crate::output::OperationWithNestedStructureOutput>(py)
  755    749   
            })
  756    750   
        })
  757    751   
    } else {
  758    752   
        ::tracing::trace!(
  759         -
            name = "empty_input_and_empty_output",
         753  +
            name = "operation_with_nested_structure",
  760    754   
            "executing python handler function"
  761    755   
        );
  762    756   
        ::pyo3::Python::with_gil(|py| {
  763    757   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  764    758   
            let output = if handler.args == 1 {
  765    759   
                pyhandler.call1((input,))?
  766    760   
            } else {
  767    761   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  768    762   
            };
  769         -
            output.extract::<crate::output::EmptyInputAndEmptyOutputOutput>()
         763  +
            output.extract::<crate::output::OperationWithNestedStructureOutput>()
  770    764   
        })
  771    765   
    };
  772    766   
    // Catch and record a Python traceback.
  773    767   
    result.map_err(|e| {
  774    768   
        let rich_py_err =
  775    769   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  776    770   
                e.clone_ref(py)
  777    771   
            }));
  778    772   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  779    773   
        e.into()
  780    774   
    })
  781    775   
}
  782    776   
  783         -
/// Python handler for operation `NoInputAndOutput`.
  784         -
pub(crate) async fn no_input_and_output(
  785         -
    input: crate::input::NoInputAndOutputInput,
         777  +
/// Python handler for operation `OperationWithRequiredMembersWithDefaults`.
         778  +
pub(crate) async fn operation_with_required_members_with_defaults(
         779  +
    input: crate::input::OperationWithRequiredMembersWithDefaultsInput,
  786    780   
    state: ::aws_smithy_legacy_http_server::Extension<
  787    781   
        ::aws_smithy_http_server_python::context::PyContext,
  788    782   
    >,
  789    783   
    handler: ::aws_smithy_http_server_python::PyHandler,
  790         -
) -> std::result::Result<crate::output::NoInputAndOutputOutput, crate::error::NoInputAndOutputError>
  791         -
{
         784  +
) -> std::result::Result<
         785  +
    crate::output::OperationWithRequiredMembersWithDefaultsOutput,
         786  +
    crate::error::OperationWithRequiredMembersWithDefaultsError,
         787  +
> {
  792    788   
    // Async block used to run the handler and catch any Python error.
  793    789   
    let result = if handler.is_coroutine {
  794    790   
        ::tracing::trace!(
  795         -
            name = "no_input_and_output",
         791  +
            name = "operation_with_required_members_with_defaults",
  796    792   
            "executing python handler coroutine"
  797    793   
        );
  798    794   
        let result = ::pyo3::Python::with_gil(|py| {
  799    795   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  800    796   
            let coroutine = if handler.args == 1 {
  801    797   
                pyhandler.call1((input,))?
  802    798   
            } else {
  803    799   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  804    800   
            };
  805    801   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  806    802   
        })?;
  807    803   
        result.await.and_then(|r| {
  808         -
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::NoInputAndOutputOutput>(py))
         804  +
            ::pyo3::Python::with_gil(|py| {
         805  +
                r.extract::<crate::output::OperationWithRequiredMembersWithDefaultsOutput>(py)
         806  +
            })
  809    807   
        })
  810    808   
    } else {
  811    809   
        ::tracing::trace!(
  812         -
            name = "no_input_and_output",
         810  +
            name = "operation_with_required_members_with_defaults",
  813    811   
            "executing python handler function"
  814    812   
        );
  815    813   
        ::pyo3::Python::with_gil(|py| {
  816    814   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  817    815   
            let output = if handler.args == 1 {
  818    816   
                pyhandler.call1((input,))?
  819    817   
            } else {
  820    818   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  821    819   
            };
  822         -
            output.extract::<crate::output::NoInputAndOutputOutput>()
         820  +
            output.extract::<crate::output::OperationWithRequiredMembersWithDefaultsOutput>()
  823    821   
        })
  824    822   
    };
  825    823   
    // Catch and record a Python traceback.
  826    824   
    result.map_err(|e| {
  827    825   
        let rich_py_err =
  828    826   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  829    827   
                e.clone_ref(py)
  830    828   
            }));
  831    829   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  832    830   
        e.into()
  833    831   
    })
  834    832   
}
  835    833   
  836         -
/// Python handler for operation `NoInputAndNoOutput`.
  837         -
pub(crate) async fn no_input_and_no_output(
  838         -
    input: crate::input::NoInputAndNoOutputInput,
         834  +
/// Python handler for operation `QueryIncompatibleOperation`.
         835  +
pub(crate) async fn query_incompatible_operation(
         836  +
    input: crate::input::QueryIncompatibleOperationInput,
  839    837   
    state: ::aws_smithy_legacy_http_server::Extension<
  840    838   
        ::aws_smithy_http_server_python::context::PyContext,
  841    839   
    >,
  842    840   
    handler: ::aws_smithy_http_server_python::PyHandler,
  843    841   
) -> std::result::Result<
  844         -
    crate::output::NoInputAndNoOutputOutput,
  845         -
    crate::error::NoInputAndNoOutputError,
         842  +
    crate::output::QueryIncompatibleOperationOutput,
         843  +
    crate::error::QueryIncompatibleOperationError,
  846    844   
> {
  847    845   
    // Async block used to run the handler and catch any Python error.
  848    846   
    let result = if handler.is_coroutine {
  849    847   
        ::tracing::trace!(
  850         -
            name = "no_input_and_no_output",
         848  +
            name = "query_incompatible_operation",
  851    849   
            "executing python handler coroutine"
  852    850   
        );
  853    851   
        let result = ::pyo3::Python::with_gil(|py| {
  854    852   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  855    853   
            let coroutine = if handler.args == 1 {
  856    854   
                pyhandler.call1((input,))?
  857    855   
            } else {
  858    856   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  859    857   
            };
  860    858   
            ::pyo3_asyncio::tokio::into_future(coroutine)
  861    859   
        })?;
  862    860   
        result.await.and_then(|r| {
  863         -
            ::pyo3::Python::with_gil(|py| r.extract::<crate::output::NoInputAndNoOutputOutput>(py))
         861  +
            ::pyo3::Python::with_gil(|py| {
         862  +
                r.extract::<crate::output::QueryIncompatibleOperationOutput>(py)
         863  +
            })
  864    864   
        })
  865    865   
    } else {
  866    866   
        ::tracing::trace!(
  867         -
            name = "no_input_and_no_output",
         867  +
            name = "query_incompatible_operation",
  868    868   
            "executing python handler function"
  869    869   
        );
  870    870   
        ::pyo3::Python::with_gil(|py| {
  871    871   
            let pyhandler: &::pyo3::types::PyFunction = handler.extract(py)?;
  872    872   
            let output = if handler.args == 1 {
  873    873   
                pyhandler.call1((input,))?
  874    874   
            } else {
  875    875   
                pyhandler.call1((input, ::pyo3::ToPyObject::to_object(&state.0, py)))?
  876    876   
            };
  877         -
            output.extract::<crate::output::NoInputAndNoOutputOutput>()
         877  +
            output.extract::<crate::output::QueryIncompatibleOperationOutput>()
  878    878   
        })
  879    879   
    };
  880    880   
    // Catch and record a Python traceback.
  881    881   
    result.map_err(|e| {
  882    882   
        let rich_py_err =
  883    883   
            ::aws_smithy_http_server_python::rich_py_err(::pyo3::Python::with_gil(|py| {
  884    884   
                e.clone_ref(py)
  885    885   
            }));
  886    886   
        ::tracing::error!(error = ?rich_py_err, "handler error");
  887    887   
        e.into()

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

@@ -1,1 +52,52 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
           3  +
pub(crate) mod foo_enum_list_constrained {
           4  +
           5  +
    #[derive(Debug, Clone)]
           6  +
    pub(crate) struct FooEnumListConstrained(pub(crate) std::vec::Vec<crate::model::FooEnum>);
           7  +
           8  +
    impl crate::constrained::Constrained for FooEnumListConstrained {
           9  +
        type Unconstrained =
          10  +
            crate::unconstrained::foo_enum_list_unconstrained::FooEnumListUnconstrained;
          11  +
    }
          12  +
    impl ::std::convert::From<FooEnumListConstrained> for ::std::vec::Vec<crate::model::FooEnum> {
          13  +
        fn from(v: FooEnumListConstrained) -> Self {
          14  +
            v.0
          15  +
        }
          16  +
    }
          17  +
}
    3     18   
pub(crate) mod foo_enum_map_constrained {
    4     19   
    5     20   
    #[derive(Debug, Clone)]
    6     21   
    pub(crate) struct FooEnumMapConstrained(
    7     22   
        pub(crate) std::collections::HashMap<::std::string::String, crate::model::FooEnum>,
    8     23   
    );
    9     24   
   10     25   
    impl crate::constrained::Constrained for FooEnumMapConstrained {
   11     26   
        type Unconstrained =
   12     27   
            crate::unconstrained::foo_enum_map_unconstrained::FooEnumMapUnconstrained;
   13     28   
    }
   14     29   
    impl ::std::convert::From<FooEnumMapConstrained>
   15     30   
        for ::std::collections::HashMap<::std::string::String, crate::model::FooEnum>
   16     31   
    {
   17     32   
        fn from(v: FooEnumMapConstrained) -> Self {
   18     33   
            v.0
   19     34   
        }
   20     35   
    }
   21     36   
}
   22         -
pub(crate) mod foo_enum_list_constrained {
   23         -
   24         -
    #[derive(Debug, Clone)]
   25         -
    pub(crate) struct FooEnumListConstrained(pub(crate) std::vec::Vec<crate::model::FooEnum>);
   26         -
   27         -
    impl crate::constrained::Constrained for FooEnumListConstrained {
   28         -
        type Unconstrained =
   29         -
            crate::unconstrained::foo_enum_list_unconstrained::FooEnumListUnconstrained;
   30         -
    }
   31         -
    impl ::std::convert::From<FooEnumListConstrained> for ::std::vec::Vec<crate::model::FooEnum> {
   32         -
        fn from(v: FooEnumListConstrained) -> Self {
   33         -
            v.0
   34         -
        }
   35         -
    }
   36         -
}
   37     37   
   38     38   
/*
   39     39   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   40     40   
 * SPDX-License-Identifier: Apache-2.0
   41     41   
 */
   42     42   
   43     43   
pub(crate) trait Constrained {
   44     44   
    type Unconstrained;
   45     45   
}
   46     46   

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

@@ -1,1 +632,579 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/// Error type for the `ContentTypeParameters` operation.
    3         -
/// Each variant represents an error that can occur for the `ContentTypeParameters` operation.
           2  +
/// Error type for the `EmptyOperation` operation.
           3  +
/// Each variant represents an error that can occur for the `EmptyOperation` operation.
    4      4   
#[derive(::std::fmt::Debug)]
    5         -
pub enum ContentTypeParametersError {
           5  +
pub enum EmptyOperationError {
    6      6   
    #[allow(missing_docs)] // documentation missing in model
    7      7   
    InternalServerError(crate::error::InternalServerError),
    8      8   
}
    9         -
impl ::std::fmt::Display for ContentTypeParametersError {
           9  +
impl ::std::fmt::Display for EmptyOperationError {
   10     10   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   11     11   
        match &self {
   12         -
            ContentTypeParametersError::InternalServerError(_inner) => _inner.fmt(f),
          12  +
            EmptyOperationError::InternalServerError(_inner) => _inner.fmt(f),
   13     13   
        }
   14     14   
    }
   15     15   
}
   16         -
impl ContentTypeParametersError {
   17         -
    /// Returns `true` if the error kind is `ContentTypeParametersError::InternalServerError`.
          16  +
impl EmptyOperationError {
          17  +
    /// Returns `true` if the error kind is `EmptyOperationError::InternalServerError`.
   18     18   
    pub fn is_internal_server_error(&self) -> bool {
   19         -
        matches!(&self, ContentTypeParametersError::InternalServerError(_))
          19  +
        matches!(&self, EmptyOperationError::InternalServerError(_))
   20     20   
    }
   21     21   
    /// Returns the error name string by matching the correct variant.
   22     22   
    pub fn name(&self) -> &'static str {
   23     23   
        match &self {
   24         -
            ContentTypeParametersError::InternalServerError(_inner) => _inner.name(),
          24  +
            EmptyOperationError::InternalServerError(_inner) => _inner.name(),
   25     25   
        }
   26     26   
    }
   27     27   
}
   28         -
impl ::std::error::Error for ContentTypeParametersError {
          28  +
impl ::std::error::Error for EmptyOperationError {
   29     29   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
   30     30   
        match &self {
   31         -
            ContentTypeParametersError::InternalServerError(_inner) => Some(_inner),
          31  +
            EmptyOperationError::InternalServerError(_inner) => Some(_inner),
   32     32   
        }
   33     33   
    }
   34     34   
}
   35         -
impl ::std::convert::From<crate::error::InternalServerError>
   36         -
    for crate::error::ContentTypeParametersError
   37         -
{
   38         -
    fn from(
   39         -
        variant: crate::error::InternalServerError,
   40         -
    ) -> crate::error::ContentTypeParametersError {
          35  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::EmptyOperationError {
          36  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::EmptyOperationError {
   41     37   
        Self::InternalServerError(variant)
   42     38   
    }
   43     39   
}
   44     40   
   45         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::ContentTypeParametersError {
   46         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::ContentTypeParametersError {
          41  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EmptyOperationError {
          42  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::EmptyOperationError {
   47     43   
        ::pyo3::Python::with_gil(|py| {
   48     44   
            let error = variant.value(py);
   49     45   
   50     46   
            crate::error::InternalServerError {
   51     47   
                message: error.to_string(),
   52     48   
            }
   53     49   
            .into()
   54     50   
        })
   55     51   
    }
   56     52   
}
   57     53   
   58         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
   59         -
/// :param message str:
   60         -
/// :rtype None:
   61         -
#[allow(missing_docs)] // documentation missing in model
   62         -
#[derive(
   63         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
   64         -
)]
   65         -
pub struct InternalServerError {
   66         -
    #[pyo3(get, set)]
   67         -
    /// :type str:
   68         -
    #[allow(missing_docs)] // documentation missing in model
   69         -
    pub message: ::std::string::String,
   70         -
}
   71         -
#[allow(clippy::new_without_default)]
   72         -
#[allow(clippy::too_many_arguments)]
   73         -
#[::pyo3::pymethods]
   74         -
impl InternalServerError {
   75         -
    #[new]
   76         -
    pub fn new(message: ::std::string::String) -> Self {
   77         -
        Self { message }
   78         -
    }
   79         -
    fn __repr__(&self) -> String {
   80         -
        format!("{self:?}")
   81         -
    }
   82         -
    fn __str__(&self) -> String {
   83         -
        format!("{self:?}")
   84         -
    }
   85         -
}
   86         -
impl InternalServerError {
   87         -
    /// Returns the error message.
   88         -
    pub fn message(&self) -> &str {
   89         -
        &self.message
   90         -
    }
   91         -
    #[doc(hidden)]
   92         -
    /// Returns the error name.
   93         -
    pub fn name(&self) -> &'static str {
   94         -
        "InternalServerError"
   95         -
    }
   96         -
}
   97         -
impl ::std::fmt::Display for InternalServerError {
   98         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
   99         -
        ::std::write!(f, "InternalServerError")?;
  100         -
        {
  101         -
            ::std::write!(f, ": {}", &self.message)?;
  102         -
        }
  103         -
        Ok(())
  104         -
    }
  105         -
}
  106         -
impl ::std::error::Error for InternalServerError {}
  107         -
impl InternalServerError {
  108         -
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
  109         -
    pub fn builder() -> crate::error::internal_server_error::Builder {
  110         -
        crate::error::internal_server_error::Builder::default()
  111         -
    }
  112         -
}
  113         -
  114         -
/// Error type for the `PutWithContentEncoding` operation.
  115         -
/// Each variant represents an error that can occur for the `PutWithContentEncoding` operation.
          54  +
/// Error type for the `KitchenSinkOperation` operation.
          55  +
/// Each variant represents an error that can occur for the `KitchenSinkOperation` operation.
  116     56   
#[derive(::std::fmt::Debug)]
  117         -
pub enum PutWithContentEncodingError {
          57  +
pub enum KitchenSinkOperationError {
          58  +
    #[allow(missing_docs)] // documentation missing in model
          59  +
    ErrorWithMembers(crate::error::ErrorWithMembers),
          60  +
    #[allow(missing_docs)] // documentation missing in model
          61  +
    ErrorWithoutMembers(crate::error::ErrorWithoutMembers),
  118     62   
    #[allow(missing_docs)] // documentation missing in model
  119     63   
    InternalServerError(crate::error::InternalServerError),
  120     64   
}
  121         -
impl ::std::fmt::Display for PutWithContentEncodingError {
          65  +
impl ::std::fmt::Display for KitchenSinkOperationError {
  122     66   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  123     67   
        match &self {
  124         -
            PutWithContentEncodingError::InternalServerError(_inner) => _inner.fmt(f),
          68  +
            KitchenSinkOperationError::ErrorWithMembers(_inner) => _inner.fmt(f),
          69  +
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => _inner.fmt(f),
          70  +
            KitchenSinkOperationError::InternalServerError(_inner) => _inner.fmt(f),
  125     71   
        }
  126     72   
    }
  127     73   
}
  128         -
impl PutWithContentEncodingError {
  129         -
    /// Returns `true` if the error kind is `PutWithContentEncodingError::InternalServerError`.
          74  +
impl KitchenSinkOperationError {
          75  +
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithMembers`.
          76  +
    pub fn is_error_with_members(&self) -> bool {
          77  +
        matches!(&self, KitchenSinkOperationError::ErrorWithMembers(_))
          78  +
    }
          79  +
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithoutMembers`.
          80  +
    pub fn is_error_without_members(&self) -> bool {
          81  +
        matches!(&self, KitchenSinkOperationError::ErrorWithoutMembers(_))
          82  +
    }
          83  +
    /// Returns `true` if the error kind is `KitchenSinkOperationError::InternalServerError`.
  130     84   
    pub fn is_internal_server_error(&self) -> bool {
  131         -
        matches!(&self, PutWithContentEncodingError::InternalServerError(_))
          85  +
        matches!(&self, KitchenSinkOperationError::InternalServerError(_))
  132     86   
    }
  133     87   
    /// Returns the error name string by matching the correct variant.
  134     88   
    pub fn name(&self) -> &'static str {
  135     89   
        match &self {
  136         -
            PutWithContentEncodingError::InternalServerError(_inner) => _inner.name(),
          90  +
            KitchenSinkOperationError::ErrorWithMembers(_inner) => _inner.name(),
          91  +
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => _inner.name(),
          92  +
            KitchenSinkOperationError::InternalServerError(_inner) => _inner.name(),
  137     93   
        }
  138     94   
    }
  139     95   
}
  140         -
impl ::std::error::Error for PutWithContentEncodingError {
          96  +
impl ::std::error::Error for KitchenSinkOperationError {
  141     97   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  142     98   
        match &self {
  143         -
            PutWithContentEncodingError::InternalServerError(_inner) => Some(_inner),
          99  +
            KitchenSinkOperationError::ErrorWithMembers(_inner) => Some(_inner),
         100  +
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => Some(_inner),
         101  +
            KitchenSinkOperationError::InternalServerError(_inner) => Some(_inner),
  144    102   
        }
  145    103   
    }
  146    104   
}
         105  +
impl ::std::convert::From<crate::error::ErrorWithMembers>
         106  +
    for crate::error::KitchenSinkOperationError
         107  +
{
         108  +
    fn from(variant: crate::error::ErrorWithMembers) -> crate::error::KitchenSinkOperationError {
         109  +
        Self::ErrorWithMembers(variant)
         110  +
    }
         111  +
}
         112  +
impl ::std::convert::From<crate::error::ErrorWithoutMembers>
         113  +
    for crate::error::KitchenSinkOperationError
         114  +
{
         115  +
    fn from(variant: crate::error::ErrorWithoutMembers) -> crate::error::KitchenSinkOperationError {
         116  +
        Self::ErrorWithoutMembers(variant)
         117  +
    }
         118  +
}
  147    119   
impl ::std::convert::From<crate::error::InternalServerError>
  148         -
    for crate::error::PutWithContentEncodingError
         120  +
    for crate::error::KitchenSinkOperationError
  149    121   
{
  150         -
    fn from(
  151         -
        variant: crate::error::InternalServerError,
  152         -
    ) -> crate::error::PutWithContentEncodingError {
         122  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::KitchenSinkOperationError {
  153    123   
        Self::InternalServerError(variant)
  154    124   
    }
  155    125   
}
  156    126   
  157         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PutWithContentEncodingError {
  158         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::PutWithContentEncodingError {
         127  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::KitchenSinkOperationError {
         128  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::KitchenSinkOperationError {
  159    129   
        ::pyo3::Python::with_gil(|py| {
  160    130   
            let error = variant.value(py);
  161         -
         131  +
            if let Ok(error) = error.extract::<crate::error::ErrorWithMembers>() {
         132  +
                return error.into();
         133  +
            }
         134  +
            if let Ok(error) = error.extract::<crate::error::ErrorWithoutMembers>() {
         135  +
                return error.into();
         136  +
            }
  162    137   
            crate::error::InternalServerError {
  163    138   
                message: error.to_string(),
  164    139   
            }
  165    140   
            .into()
  166    141   
        })
  167    142   
    }
  168    143   
}
  169    144   
  170         -
/// Error type for the `FractionalSeconds` operation.
  171         -
/// Each variant represents an error that can occur for the `FractionalSeconds` operation.
         145  +
/// Error type for the `SimpleScalarProperties` operation.
         146  +
/// Each variant represents an error that can occur for the `SimpleScalarProperties` operation.
  172    147   
#[derive(::std::fmt::Debug)]
  173         -
pub enum FractionalSecondsError {
         148  +
pub enum SimpleScalarPropertiesError {
  174    149   
    #[allow(missing_docs)] // documentation missing in model
  175    150   
    InternalServerError(crate::error::InternalServerError),
  176    151   
}
  177         -
impl ::std::fmt::Display for FractionalSecondsError {
         152  +
impl ::std::fmt::Display for SimpleScalarPropertiesError {
  178    153   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  179    154   
        match &self {
  180         -
            FractionalSecondsError::InternalServerError(_inner) => _inner.fmt(f),
         155  +
            SimpleScalarPropertiesError::InternalServerError(_inner) => _inner.fmt(f),
  181    156   
        }
  182    157   
    }
  183    158   
}
  184         -
impl FractionalSecondsError {
  185         -
    /// Returns `true` if the error kind is `FractionalSecondsError::InternalServerError`.
         159  +
impl SimpleScalarPropertiesError {
         160  +
    /// Returns `true` if the error kind is `SimpleScalarPropertiesError::InternalServerError`.
  186    161   
    pub fn is_internal_server_error(&self) -> bool {
  187         -
        matches!(&self, FractionalSecondsError::InternalServerError(_))
         162  +
        matches!(&self, SimpleScalarPropertiesError::InternalServerError(_))
  188    163   
    }
  189    164   
    /// Returns the error name string by matching the correct variant.
  190    165   
    pub fn name(&self) -> &'static str {
  191    166   
        match &self {
  192         -
            FractionalSecondsError::InternalServerError(_inner) => _inner.name(),
         167  +
            SimpleScalarPropertiesError::InternalServerError(_inner) => _inner.name(),
  193    168   
        }
  194    169   
    }
  195    170   
}
  196         -
impl ::std::error::Error for FractionalSecondsError {
         171  +
impl ::std::error::Error for SimpleScalarPropertiesError {
  197    172   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  198    173   
        match &self {
  199         -
            FractionalSecondsError::InternalServerError(_inner) => Some(_inner),
         174  +
            SimpleScalarPropertiesError::InternalServerError(_inner) => Some(_inner),
  200    175   
        }
  201    176   
    }
  202    177   
}
  203    178   
impl ::std::convert::From<crate::error::InternalServerError>
  204         -
    for crate::error::FractionalSecondsError
         179  +
    for crate::error::SimpleScalarPropertiesError
  205    180   
{
  206         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::FractionalSecondsError {
         181  +
    fn from(
         182  +
        variant: crate::error::InternalServerError,
         183  +
    ) -> crate::error::SimpleScalarPropertiesError {
  207    184   
        Self::InternalServerError(variant)
  208    185   
    }
  209    186   
}
  210    187   
  211         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::FractionalSecondsError {
  212         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::FractionalSecondsError {
         188  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::SimpleScalarPropertiesError {
         189  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::SimpleScalarPropertiesError {
  213    190   
        ::pyo3::Python::with_gil(|py| {
  214    191   
            let error = variant.value(py);
  215    192   
  216    193   
            crate::error::InternalServerError {
  217    194   
                message: error.to_string(),
  218    195   
            }
  219    196   
            .into()
  220    197   
        })
  221    198   
    }
  222    199   
}
  223    200   
  224         -
/// Error type for the `DatetimeOffsets` operation.
  225         -
/// Each variant represents an error that can occur for the `DatetimeOffsets` operation.
         201  +
/// Error type for the `OperationWithOptionalInputOutput` operation.
         202  +
/// Each variant represents an error that can occur for the `OperationWithOptionalInputOutput` operation.
  226    203   
#[derive(::std::fmt::Debug)]
  227         -
pub enum DatetimeOffsetsError {
         204  +
pub enum OperationWithOptionalInputOutputError {
  228    205   
    #[allow(missing_docs)] // documentation missing in model
  229    206   
    InternalServerError(crate::error::InternalServerError),
  230    207   
}
  231         -
impl ::std::fmt::Display for DatetimeOffsetsError {
         208  +
impl ::std::fmt::Display for OperationWithOptionalInputOutputError {
  232    209   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  233    210   
        match &self {
  234         -
            DatetimeOffsetsError::InternalServerError(_inner) => _inner.fmt(f),
         211  +
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => _inner.fmt(f),
  235    212   
        }
  236    213   
    }
  237    214   
}
  238         -
impl DatetimeOffsetsError {
  239         -
    /// Returns `true` if the error kind is `DatetimeOffsetsError::InternalServerError`.
         215  +
impl OperationWithOptionalInputOutputError {
         216  +
    /// Returns `true` if the error kind is `OperationWithOptionalInputOutputError::InternalServerError`.
  240    217   
    pub fn is_internal_server_error(&self) -> bool {
  241         -
        matches!(&self, DatetimeOffsetsError::InternalServerError(_))
         218  +
        matches!(
         219  +
            &self,
         220  +
            OperationWithOptionalInputOutputError::InternalServerError(_)
         221  +
        )
  242    222   
    }
  243    223   
    /// Returns the error name string by matching the correct variant.
  244    224   
    pub fn name(&self) -> &'static str {
  245    225   
        match &self {
  246         -
            DatetimeOffsetsError::InternalServerError(_inner) => _inner.name(),
         226  +
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => _inner.name(),
  247    227   
        }
  248    228   
    }
  249    229   
}
  250         -
impl ::std::error::Error for DatetimeOffsetsError {
         230  +
impl ::std::error::Error for OperationWithOptionalInputOutputError {
  251    231   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  252    232   
        match &self {
  253         -
            DatetimeOffsetsError::InternalServerError(_inner) => Some(_inner),
         233  +
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => Some(_inner),
  254    234   
        }
  255    235   
    }
  256    236   
}
  257    237   
impl ::std::convert::From<crate::error::InternalServerError>
  258         -
    for crate::error::DatetimeOffsetsError
         238  +
    for crate::error::OperationWithOptionalInputOutputError
  259    239   
{
  260         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::DatetimeOffsetsError {
         240  +
    fn from(
         241  +
        variant: crate::error::InternalServerError,
         242  +
    ) -> crate::error::OperationWithOptionalInputOutputError {
  261    243   
        Self::InternalServerError(variant)
  262    244   
    }
  263    245   
}
  264    246   
  265         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::DatetimeOffsetsError {
  266         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::DatetimeOffsetsError {
         247  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::OperationWithOptionalInputOutputError {
         248  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::OperationWithOptionalInputOutputError {
  267    249   
        ::pyo3::Python::with_gil(|py| {
  268    250   
            let error = variant.value(py);
  269    251   
  270    252   
            crate::error::InternalServerError {
  271    253   
                message: error.to_string(),
  272    254   
            }
  273    255   
            .into()
  274    256   
        })
  275    257   
    }
  276    258   
}
  277    259   
  278         -
/// Error type for the `HostWithPathOperation` operation.
  279         -
/// Each variant represents an error that can occur for the `HostWithPathOperation` operation.
         260  +
/// Error type for the `PutAndGetInlineDocuments` operation.
         261  +
/// Each variant represents an error that can occur for the `PutAndGetInlineDocuments` operation.
  280    262   
#[derive(::std::fmt::Debug)]
  281         -
pub enum HostWithPathOperationError {
         263  +
pub enum PutAndGetInlineDocumentsError {
  282    264   
    #[allow(missing_docs)] // documentation missing in model
  283    265   
    InternalServerError(crate::error::InternalServerError),
  284    266   
}
  285         -
impl ::std::fmt::Display for HostWithPathOperationError {
         267  +
impl ::std::fmt::Display for PutAndGetInlineDocumentsError {
  286    268   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  287    269   
        match &self {
  288         -
            HostWithPathOperationError::InternalServerError(_inner) => _inner.fmt(f),
         270  +
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => _inner.fmt(f),
  289    271   
        }
  290    272   
    }
  291    273   
}
  292         -
impl HostWithPathOperationError {
  293         -
    /// Returns `true` if the error kind is `HostWithPathOperationError::InternalServerError`.
         274  +
impl PutAndGetInlineDocumentsError {
         275  +
    /// Returns `true` if the error kind is `PutAndGetInlineDocumentsError::InternalServerError`.
  294    276   
    pub fn is_internal_server_error(&self) -> bool {
  295         -
        matches!(&self, HostWithPathOperationError::InternalServerError(_))
         277  +
        matches!(&self, PutAndGetInlineDocumentsError::InternalServerError(_))
  296    278   
    }
  297    279   
    /// Returns the error name string by matching the correct variant.
  298    280   
    pub fn name(&self) -> &'static str {
  299    281   
        match &self {
  300         -
            HostWithPathOperationError::InternalServerError(_inner) => _inner.name(),
         282  +
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => _inner.name(),
  301    283   
        }
  302    284   
    }
  303    285   
}
  304         -
impl ::std::error::Error for HostWithPathOperationError {
         286  +
impl ::std::error::Error for PutAndGetInlineDocumentsError {
  305    287   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  306    288   
        match &self {
  307         -
            HostWithPathOperationError::InternalServerError(_inner) => Some(_inner),
         289  +
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => Some(_inner),
  308    290   
        }
  309    291   
    }
  310    292   
}
  311    293   
impl ::std::convert::From<crate::error::InternalServerError>
  312         -
    for crate::error::HostWithPathOperationError
         294  +
    for crate::error::PutAndGetInlineDocumentsError
  313    295   
{
  314    296   
    fn from(
  315    297   
        variant: crate::error::InternalServerError,
  316         -
    ) -> crate::error::HostWithPathOperationError {
         298  +
    ) -> crate::error::PutAndGetInlineDocumentsError {
  317    299   
        Self::InternalServerError(variant)
  318    300   
    }
  319    301   
}
  320    302   
  321         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::HostWithPathOperationError {
  322         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::HostWithPathOperationError {
         303  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PutAndGetInlineDocumentsError {
         304  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::PutAndGetInlineDocumentsError {
  323    305   
        ::pyo3::Python::with_gil(|py| {
  324    306   
            let error = variant.value(py);
  325    307   
  326    308   
            crate::error::InternalServerError {
  327    309   
                message: error.to_string(),
  328    310   
            }
  329    311   
            .into()
  330    312   
        })
  331    313   
    }
  332    314   
}
  333    315   
  334         -
/// Error type for the `EndpointWithHostLabelOperation` operation.
  335         -
/// Each variant represents an error that can occur for the `EndpointWithHostLabelOperation` operation.
         316  +
/// Error type for the `JsonEnums` operation.
         317  +
/// Each variant represents an error that can occur for the `JsonEnums` operation.
  336    318   
#[derive(::std::fmt::Debug)]
  337         -
pub enum EndpointWithHostLabelOperationError {
         319  +
pub enum JsonEnumsError {
  338    320   
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  339    321   
    ValidationException(crate::error::ValidationException),
  340    322   
    #[allow(missing_docs)] // documentation missing in model
  341    323   
    InternalServerError(crate::error::InternalServerError),
  342    324   
}
  343         -
impl ::std::fmt::Display for EndpointWithHostLabelOperationError {
         325  +
impl ::std::fmt::Display for JsonEnumsError {
  344    326   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  345    327   
        match &self {
  346         -
            EndpointWithHostLabelOperationError::ValidationException(_inner) => _inner.fmt(f),
  347         -
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => _inner.fmt(f),
         328  +
            JsonEnumsError::ValidationException(_inner) => _inner.fmt(f),
         329  +
            JsonEnumsError::InternalServerError(_inner) => _inner.fmt(f),
  348    330   
        }
  349    331   
    }
  350    332   
}
  351         -
impl EndpointWithHostLabelOperationError {
  352         -
    /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::ValidationException`.
         333  +
impl JsonEnumsError {
         334  +
    /// Returns `true` if the error kind is `JsonEnumsError::ValidationException`.
  353    335   
    pub fn is_validation_exception(&self) -> bool {
  354         -
        matches!(
  355         -
            &self,
  356         -
            EndpointWithHostLabelOperationError::ValidationException(_)
  357         -
        )
         336  +
        matches!(&self, JsonEnumsError::ValidationException(_))
  358    337   
    }
  359         -
    /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::InternalServerError`.
         338  +
    /// Returns `true` if the error kind is `JsonEnumsError::InternalServerError`.
  360    339   
    pub fn is_internal_server_error(&self) -> bool {
  361         -
        matches!(
  362         -
            &self,
  363         -
            EndpointWithHostLabelOperationError::InternalServerError(_)
  364         -
        )
         340  +
        matches!(&self, JsonEnumsError::InternalServerError(_))
  365    341   
    }
  366    342   
    /// Returns the error name string by matching the correct variant.
  367    343   
    pub fn name(&self) -> &'static str {
  368    344   
        match &self {
  369         -
            EndpointWithHostLabelOperationError::ValidationException(_inner) => _inner.name(),
  370         -
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => _inner.name(),
         345  +
            JsonEnumsError::ValidationException(_inner) => _inner.name(),
         346  +
            JsonEnumsError::InternalServerError(_inner) => _inner.name(),
  371    347   
        }
  372    348   
    }
  373    349   
}
  374         -
impl ::std::error::Error for EndpointWithHostLabelOperationError {
         350  +
impl ::std::error::Error for JsonEnumsError {
  375    351   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  376    352   
        match &self {
  377         -
            EndpointWithHostLabelOperationError::ValidationException(_inner) => Some(_inner),
  378         -
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => Some(_inner),
         353  +
            JsonEnumsError::ValidationException(_inner) => Some(_inner),
         354  +
            JsonEnumsError::InternalServerError(_inner) => Some(_inner),
  379    355   
        }
  380    356   
    }
  381    357   
}
  382         -
impl ::std::convert::From<crate::error::ValidationException>
  383         -
    for crate::error::EndpointWithHostLabelOperationError
  384         -
{
  385         -
    fn from(
  386         -
        variant: crate::error::ValidationException,
  387         -
    ) -> crate::error::EndpointWithHostLabelOperationError {
         358  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonEnumsError {
         359  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonEnumsError {
  388    360   
        Self::ValidationException(variant)
  389    361   
    }
  390    362   
}
  391         -
impl ::std::convert::From<crate::error::InternalServerError>
  392         -
    for crate::error::EndpointWithHostLabelOperationError
  393         -
{
  394         -
    fn from(
  395         -
        variant: crate::error::InternalServerError,
  396         -
    ) -> crate::error::EndpointWithHostLabelOperationError {
         363  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonEnumsError {
         364  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonEnumsError {
  397    365   
        Self::InternalServerError(variant)
  398    366   
    }
  399    367   
}
  400    368   
  401         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EndpointWithHostLabelOperationError {
  402         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::EndpointWithHostLabelOperationError {
         369  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonEnumsError {
         370  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonEnumsError {
  403    371   
        ::pyo3::Python::with_gil(|py| {
  404    372   
            let error = variant.value(py);
  405    373   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  406    374   
                return error.into();
  407    375   
            }
  408    376   
            crate::error::InternalServerError {
  409    377   
                message: error.to_string(),
  410    378   
            }
  411    379   
            .into()
  412    380   
        })
  413    381   
    }
  414    382   
}
  415    383   
  416         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  417         -
/// :param message str:
  418         -
/// :param field_list typing.Optional\[typing.List\[json_rpc11.model.ValidationExceptionField\]\]:
  419         -
/// :rtype None:
  420         -
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  421         -
#[derive(
  422         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  423         -
)]
  424         -
pub struct ValidationException {
  425         -
    #[pyo3(get, set)]
  426         -
    /// :type str:
  427         -
    /// A summary of the validation failure.
  428         -
    pub message: ::std::string::String,
  429         -
    #[pyo3(get, set)]
  430         -
    /// :type typing.Optional\[typing.List\[json_rpc11.model.ValidationExceptionField\]\]:
  431         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  432         -
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
         384  +
/// Error type for the `JsonIntEnums` operation.
         385  +
/// Each variant represents an error that can occur for the `JsonIntEnums` operation.
         386  +
#[derive(::std::fmt::Debug)]
         387  +
pub enum JsonIntEnumsError {
         388  +
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         389  +
    ValidationException(crate::error::ValidationException),
         390  +
    #[allow(missing_docs)] // documentation missing in model
         391  +
    InternalServerError(crate::error::InternalServerError),
  433    392   
}
  434         -
impl ValidationException {
  435         -
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
  436         -
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
  437         -
        self.field_list.as_deref()
         393  +
impl ::std::fmt::Display for JsonIntEnumsError {
         394  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         395  +
        match &self {
         396  +
            JsonIntEnumsError::ValidationException(_inner) => _inner.fmt(f),
         397  +
            JsonIntEnumsError::InternalServerError(_inner) => _inner.fmt(f),
         398  +
        }
  438    399   
    }
  439    400   
}
  440         -
#[allow(clippy::new_without_default)]
  441         -
#[allow(clippy::too_many_arguments)]
  442         -
#[::pyo3::pymethods]
  443         -
impl ValidationException {
  444         -
    #[new]
  445         -
    pub fn new(
  446         -
        message: ::std::string::String,
  447         -
        field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
  448         -
    ) -> Self {
  449         -
        Self {
  450         -
            message,
  451         -
            field_list,
  452         -
        }
         401  +
impl JsonIntEnumsError {
         402  +
    /// Returns `true` if the error kind is `JsonIntEnumsError::ValidationException`.
         403  +
    pub fn is_validation_exception(&self) -> bool {
         404  +
        matches!(&self, JsonIntEnumsError::ValidationException(_))
  453    405   
    }
  454         -
    fn __repr__(&self) -> String {
  455         -
        format!("{self:?}")
         406  +
    /// Returns `true` if the error kind is `JsonIntEnumsError::InternalServerError`.
         407  +
    pub fn is_internal_server_error(&self) -> bool {
         408  +
        matches!(&self, JsonIntEnumsError::InternalServerError(_))
  456    409   
    }
  457         -
    fn __str__(&self) -> String {
  458         -
        format!("{self:?}")
         410  +
    /// Returns the error name string by matching the correct variant.
         411  +
    pub fn name(&self) -> &'static str {
         412  +
        match &self {
         413  +
            JsonIntEnumsError::ValidationException(_inner) => _inner.name(),
         414  +
            JsonIntEnumsError::InternalServerError(_inner) => _inner.name(),
         415  +
        }
  459    416   
    }
  460    417   
}
  461         -
impl ValidationException {
  462         -
    /// Returns the error message.
  463         -
    pub fn message(&self) -> &str {
  464         -
        &self.message
         418  +
impl ::std::error::Error for JsonIntEnumsError {
         419  +
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
         420  +
        match &self {
         421  +
            JsonIntEnumsError::ValidationException(_inner) => Some(_inner),
         422  +
            JsonIntEnumsError::InternalServerError(_inner) => Some(_inner),
         423  +
        }
  465    424   
    }
  466         -
    #[doc(hidden)]
  467         -
    /// Returns the error name.
  468         -
    pub fn name(&self) -> &'static str {
  469         -
        "ValidationException"
         425  +
}
         426  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonIntEnumsError {
         427  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonIntEnumsError {
         428  +
        Self::ValidationException(variant)
  470    429   
    }
  471    430   
}
  472         -
impl ::std::fmt::Display for ValidationException {
  473         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  474         -
        ::std::write!(f, "ValidationException")?;
  475         -
        {
  476         -
            ::std::write!(f, ": {}", &self.message)?;
  477         -
        }
  478         -
        Ok(())
         431  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonIntEnumsError {
         432  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonIntEnumsError {
         433  +
        Self::InternalServerError(variant)
  479    434   
    }
  480    435   
}
  481         -
impl ::std::error::Error for ValidationException {}
  482         -
impl ValidationException {
  483         -
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
  484         -
    pub fn builder() -> crate::error::validation_exception::Builder {
  485         -
        crate::error::validation_exception::Builder::default()
         436  +
         437  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonIntEnumsError {
         438  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonIntEnumsError {
         439  +
        ::pyo3::Python::with_gil(|py| {
         440  +
            let error = variant.value(py);
         441  +
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
         442  +
                return error.into();
         443  +
            }
         444  +
            crate::error::InternalServerError {
         445  +
                message: error.to_string(),
         446  +
            }
         447  +
            .into()
         448  +
        })
  486    449   
    }
  487    450   
}
  488    451   
  489         -
/// Error type for the `EndpointOperation` operation.
  490         -
/// Each variant represents an error that can occur for the `EndpointOperation` operation.
         452  +
/// Error type for the `NullOperation` operation.
         453  +
/// Each variant represents an error that can occur for the `NullOperation` operation.
  491    454   
#[derive(::std::fmt::Debug)]
  492         -
pub enum EndpointOperationError {
         455  +
pub enum NullOperationError {
  493    456   
    #[allow(missing_docs)] // documentation missing in model
  494    457   
    InternalServerError(crate::error::InternalServerError),
  495    458   
}
  496         -
impl ::std::fmt::Display for EndpointOperationError {
         459  +
impl ::std::fmt::Display for NullOperationError {
  497    460   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  498    461   
        match &self {
  499         -
            EndpointOperationError::InternalServerError(_inner) => _inner.fmt(f),
         462  +
            NullOperationError::InternalServerError(_inner) => _inner.fmt(f),
  500    463   
        }
  501    464   
    }
  502    465   
}
  503         -
impl EndpointOperationError {
  504         -
    /// Returns `true` if the error kind is `EndpointOperationError::InternalServerError`.
         466  +
impl NullOperationError {
         467  +
    /// Returns `true` if the error kind is `NullOperationError::InternalServerError`.
  505    468   
    pub fn is_internal_server_error(&self) -> bool {
  506         -
        matches!(&self, EndpointOperationError::InternalServerError(_))
         469  +
        matches!(&self, NullOperationError::InternalServerError(_))
  507    470   
    }
  508    471   
    /// Returns the error name string by matching the correct variant.
  509    472   
    pub fn name(&self) -> &'static str {
  510    473   
        match &self {
  511         -
            EndpointOperationError::InternalServerError(_inner) => _inner.name(),
         474  +
            NullOperationError::InternalServerError(_inner) => _inner.name(),
  512    475   
        }
  513    476   
    }
  514    477   
}
  515         -
impl ::std::error::Error for EndpointOperationError {
         478  +
impl ::std::error::Error for NullOperationError {
  516    479   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  517    480   
        match &self {
  518         -
            EndpointOperationError::InternalServerError(_inner) => Some(_inner),
         481  +
            NullOperationError::InternalServerError(_inner) => Some(_inner),
  519    482   
        }
  520    483   
    }
  521    484   
}
  522         -
impl ::std::convert::From<crate::error::InternalServerError>
  523         -
    for crate::error::EndpointOperationError
  524         -
{
  525         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::EndpointOperationError {
         485  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::NullOperationError {
         486  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::NullOperationError {
  526    487   
        Self::InternalServerError(variant)
  527    488   
    }
  528    489   
}
  529    490   
  530         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EndpointOperationError {
  531         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::EndpointOperationError {
         491  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::NullOperationError {
         492  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::NullOperationError {
  532    493   
        ::pyo3::Python::with_gil(|py| {
  533    494   
            let error = variant.value(py);
  534    495   
  535    496   
            crate::error::InternalServerError {
  536    497   
                message: error.to_string(),
  537    498   
            }
  538    499   
            .into()
  539    500   
        })
  540    501   
    }
  541    502   
}
  542    503   
  543         -
/// Error type for the `JsonUnions` operation.
  544         -
/// Each variant represents an error that can occur for the `JsonUnions` operation.
         504  +
/// Error type for the `SparseNullsOperation` operation.
         505  +
/// Each variant represents an error that can occur for the `SparseNullsOperation` operation.
  545    506   
#[derive(::std::fmt::Debug)]
  546         -
pub enum JsonUnionsError {
  547         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  548         -
    ValidationException(crate::error::ValidationException),
         507  +
pub enum SparseNullsOperationError {
  549    508   
    #[allow(missing_docs)] // documentation missing in model
  550    509   
    InternalServerError(crate::error::InternalServerError),
  551    510   
}
  552         -
impl ::std::fmt::Display for JsonUnionsError {
         511  +
impl ::std::fmt::Display for SparseNullsOperationError {
  553    512   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  554    513   
        match &self {
  555         -
            JsonUnionsError::ValidationException(_inner) => _inner.fmt(f),
  556         -
            JsonUnionsError::InternalServerError(_inner) => _inner.fmt(f),
         514  +
            SparseNullsOperationError::InternalServerError(_inner) => _inner.fmt(f),
  557    515   
        }
  558    516   
    }
  559    517   
}
  560         -
impl JsonUnionsError {
  561         -
    /// Returns `true` if the error kind is `JsonUnionsError::ValidationException`.
  562         -
    pub fn is_validation_exception(&self) -> bool {
  563         -
        matches!(&self, JsonUnionsError::ValidationException(_))
  564         -
    }
  565         -
    /// Returns `true` if the error kind is `JsonUnionsError::InternalServerError`.
         518  +
impl SparseNullsOperationError {
         519  +
    /// Returns `true` if the error kind is `SparseNullsOperationError::InternalServerError`.
  566    520   
    pub fn is_internal_server_error(&self) -> bool {
  567         -
        matches!(&self, JsonUnionsError::InternalServerError(_))
         521  +
        matches!(&self, SparseNullsOperationError::InternalServerError(_))
  568    522   
    }
  569    523   
    /// Returns the error name string by matching the correct variant.
  570    524   
    pub fn name(&self) -> &'static str {
  571    525   
        match &self {
  572         -
            JsonUnionsError::ValidationException(_inner) => _inner.name(),
  573         -
            JsonUnionsError::InternalServerError(_inner) => _inner.name(),
         526  +
            SparseNullsOperationError::InternalServerError(_inner) => _inner.name(),
  574    527   
        }
  575    528   
    }
  576    529   
}
  577         -
impl ::std::error::Error for JsonUnionsError {
         530  +
impl ::std::error::Error for SparseNullsOperationError {
  578    531   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  579    532   
        match &self {
  580         -
            JsonUnionsError::ValidationException(_inner) => Some(_inner),
  581         -
            JsonUnionsError::InternalServerError(_inner) => Some(_inner),
         533  +
            SparseNullsOperationError::InternalServerError(_inner) => Some(_inner),
  582    534   
        }
  583    535   
    }
  584    536   
}
  585         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonUnionsError {
  586         -
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonUnionsError {
  587         -
        Self::ValidationException(variant)
  588         -
    }
  589         -
}
  590         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonUnionsError {
  591         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonUnionsError {
         537  +
impl ::std::convert::From<crate::error::InternalServerError>
         538  +
    for crate::error::SparseNullsOperationError
         539  +
{
         540  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::SparseNullsOperationError {
  592    541   
        Self::InternalServerError(variant)
  593    542   
    }
  594    543   
}
  595    544   
  596         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonUnionsError {
  597         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonUnionsError {
         545  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::SparseNullsOperationError {
         546  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::SparseNullsOperationError {
  598    547   
        ::pyo3::Python::with_gil(|py| {
  599    548   
            let error = variant.value(py);
  600         -
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
  601         -
                return error.into();
  602         -
            }
         549  +
  603    550   
            crate::error::InternalServerError {
  604    551   
                message: error.to_string(),
  605    552   
            }
  606    553   
            .into()
  607    554   
        })
  608    555   
    }
  609    556   
}
  610    557   
  611    558   
/// Error type for the `GreetingWithErrors` operation.
  612    559   
/// Each variant represents an error that can occur for the `GreetingWithErrors` operation.
@@ -685,632 +1456,1224 @@
  705    652   
                return error.into();
  706    653   
            }
  707    654   
            crate::error::InternalServerError {
  708    655   
                message: error.to_string(),
  709    656   
            }
  710    657   
            .into()
  711    658   
        })
  712    659   
    }
  713    660   
}
  714    661   
  715         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  716         -
/// :rtype None:
  717         -
/// This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
  718         -
#[derive(
  719         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  720         -
)]
  721         -
pub struct FooError {}
  722         -
#[allow(clippy::new_without_default)]
  723         -
#[allow(clippy::too_many_arguments)]
  724         -
#[::pyo3::pymethods]
  725         -
impl FooError {
  726         -
    #[new]
  727         -
    pub fn new() -> Self {
  728         -
        Self {}
  729         -
    }
  730         -
    fn __repr__(&self) -> String {
  731         -
        format!("{self:?}")
  732         -
    }
  733         -
    fn __str__(&self) -> String {
  734         -
        format!("{self:?}")
  735         -
    }
  736         -
}
  737         -
impl FooError {
  738         -
    #[doc(hidden)]
  739         -
    /// Returns the error name.
  740         -
    pub fn name(&self) -> &'static str {
  741         -
        "FooError"
  742         -
    }
  743         -
}
  744         -
impl ::std::fmt::Display for FooError {
  745         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  746         -
        ::std::write!(f, "FooError")?;
  747         -
        Ok(())
  748         -
    }
  749         -
}
  750         -
impl ::std::error::Error for FooError {}
  751         -
impl FooError {
  752         -
    /// Creates a new builder-style object to manufacture [`FooError`](crate::error::FooError).
  753         -
    pub fn builder() -> crate::error::foo_error::Builder {
  754         -
        crate::error::foo_error::Builder::default()
  755         -
    }
  756         -
}
  757         -
  758         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  759         -
/// :param top_level typing.Optional\[str\]:
  760         -
/// :param nested typing.Optional\[json_rpc11.model.ComplexNestedErrorData\]:
  761         -
/// :rtype None:
  762         -
/// This error is thrown when a request is invalid.
  763         -
#[derive(
  764         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  765         -
)]
  766         -
pub struct ComplexError {
  767         -
    #[pyo3(get, set)]
  768         -
    /// :type typing.Optional\[str\]:
  769         -
    #[allow(missing_docs)] // documentation missing in model
  770         -
    pub top_level: ::std::option::Option<::std::string::String>,
  771         -
    #[pyo3(get, set)]
  772         -
    /// :type typing.Optional\[json_rpc11.model.ComplexNestedErrorData\]:
  773         -
    #[allow(missing_docs)] // documentation missing in model
  774         -
    pub nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
  775         -
}
  776         -
impl ComplexError {
  777         -
    #[allow(missing_docs)] // documentation missing in model
  778         -
    pub fn top_level(&self) -> ::std::option::Option<&str> {
  779         -
        self.top_level.as_deref()
  780         -
    }
  781         -
    #[allow(missing_docs)] // documentation missing in model
  782         -
    pub fn nested(&self) -> ::std::option::Option<&crate::model::ComplexNestedErrorData> {
  783         -
        self.nested.as_ref()
  784         -
    }
  785         -
}
  786         -
#[allow(clippy::new_without_default)]
  787         -
#[allow(clippy::too_many_arguments)]
  788         -
#[::pyo3::pymethods]
  789         -
impl ComplexError {
  790         -
    #[new]
  791         -
    pub fn new(
  792         -
        top_level: ::std::option::Option<::std::string::String>,
  793         -
        nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
  794         -
    ) -> Self {
  795         -
        Self { top_level, nested }
  796         -
    }
  797         -
    fn __repr__(&self) -> String {
  798         -
        format!("{self:?}")
  799         -
    }
  800         -
    fn __str__(&self) -> String {
  801         -
        format!("{self:?}")
  802         -
    }
  803         -
}
  804         -
impl ComplexError {
  805         -
    #[doc(hidden)]
  806         -
    /// Returns the error name.
  807         -
    pub fn name(&self) -> &'static str {
  808         -
        "ComplexError"
  809         -
    }
  810         -
}
  811         -
impl ::std::fmt::Display for ComplexError {
  812         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  813         -
        ::std::write!(f, "ComplexError")?;
  814         -
        Ok(())
  815         -
    }
  816         -
}
  817         -
impl ::std::error::Error for ComplexError {}
  818         -
impl ComplexError {
  819         -
    /// Creates a new builder-style object to manufacture [`ComplexError`](crate::error::ComplexError).
  820         -
    pub fn builder() -> crate::error::complex_error::Builder {
  821         -
        crate::error::complex_error::Builder::default()
  822         -
    }
  823         -
}
  824         -
  825         -
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
  826         -
/// :param message typing.Optional\[str\]:
  827         -
/// :rtype None:
  828         -
/// This error is thrown when an invalid greeting value is provided.
  829         -
#[derive(
  830         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
  831         -
)]
  832         -
pub struct InvalidGreeting {
  833         -
    #[pyo3(get, set)]
  834         -
    /// :type typing.Optional\[str\]:
  835         -
    #[allow(missing_docs)] // documentation missing in model
  836         -
    pub message: ::std::option::Option<::std::string::String>,
  837         -
}
  838         -
#[allow(clippy::new_without_default)]
  839         -
#[allow(clippy::too_many_arguments)]
  840         -
#[::pyo3::pymethods]
  841         -
impl InvalidGreeting {
  842         -
    #[new]
  843         -
    pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
  844         -
        Self { message }
  845         -
    }
  846         -
    fn __repr__(&self) -> String {
  847         -
        format!("{self:?}")
  848         -
    }
  849         -
    fn __str__(&self) -> String {
  850         -
        format!("{self:?}")
  851         -
    }
  852         -
}
  853         -
impl InvalidGreeting {
  854         -
    /// Returns the error message.
  855         -
    pub fn message(&self) -> ::std::option::Option<&str> {
  856         -
        self.message.as_deref()
  857         -
    }
  858         -
    #[doc(hidden)]
  859         -
    /// Returns the error name.
  860         -
    pub fn name(&self) -> &'static str {
  861         -
        "InvalidGreeting"
  862         -
    }
  863         -
}
  864         -
impl ::std::fmt::Display for InvalidGreeting {
  865         -
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  866         -
        ::std::write!(f, "InvalidGreeting")?;
  867         -
        if let ::std::option::Option::Some(inner_1) = &self.message {
  868         -
            {
  869         -
                ::std::write!(f, ": {inner_1}")?;
  870         -
            }
  871         -
        }
  872         -
        Ok(())
  873         -
    }
  874         -
}
  875         -
impl ::std::error::Error for InvalidGreeting {}
  876         -
impl InvalidGreeting {
  877         -
    /// Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::error::InvalidGreeting).
  878         -
    pub fn builder() -> crate::error::invalid_greeting::Builder {
  879         -
        crate::error::invalid_greeting::Builder::default()
  880         -
    }
  881         -
}
  882         -
  883         -
/// Error type for the `SparseNullsOperation` operation.
  884         -
/// Each variant represents an error that can occur for the `SparseNullsOperation` operation.
         662  +
/// Error type for the `JsonUnions` operation.
         663  +
/// Each variant represents an error that can occur for the `JsonUnions` operation.
  885    664   
#[derive(::std::fmt::Debug)]
  886         -
pub enum SparseNullsOperationError {
         665  +
pub enum JsonUnionsError {
         666  +
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
         667  +
    ValidationException(crate::error::ValidationException),
  887    668   
    #[allow(missing_docs)] // documentation missing in model
  888    669   
    InternalServerError(crate::error::InternalServerError),
  889    670   
}
  890         -
impl ::std::fmt::Display for SparseNullsOperationError {
         671  +
impl ::std::fmt::Display for JsonUnionsError {
  891    672   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  892    673   
        match &self {
  893         -
            SparseNullsOperationError::InternalServerError(_inner) => _inner.fmt(f),
         674  +
            JsonUnionsError::ValidationException(_inner) => _inner.fmt(f),
         675  +
            JsonUnionsError::InternalServerError(_inner) => _inner.fmt(f),
  894    676   
        }
  895    677   
    }
  896    678   
}
  897         -
impl SparseNullsOperationError {
  898         -
    /// Returns `true` if the error kind is `SparseNullsOperationError::InternalServerError`.
         679  +
impl JsonUnionsError {
         680  +
    /// Returns `true` if the error kind is `JsonUnionsError::ValidationException`.
         681  +
    pub fn is_validation_exception(&self) -> bool {
         682  +
        matches!(&self, JsonUnionsError::ValidationException(_))
         683  +
    }
         684  +
    /// Returns `true` if the error kind is `JsonUnionsError::InternalServerError`.
  899    685   
    pub fn is_internal_server_error(&self) -> bool {
  900         -
        matches!(&self, SparseNullsOperationError::InternalServerError(_))
         686  +
        matches!(&self, JsonUnionsError::InternalServerError(_))
  901    687   
    }
  902    688   
    /// Returns the error name string by matching the correct variant.
  903    689   
    pub fn name(&self) -> &'static str {
  904    690   
        match &self {
  905         -
            SparseNullsOperationError::InternalServerError(_inner) => _inner.name(),
         691  +
            JsonUnionsError::ValidationException(_inner) => _inner.name(),
         692  +
            JsonUnionsError::InternalServerError(_inner) => _inner.name(),
  906    693   
        }
  907    694   
    }
  908    695   
}
  909         -
impl ::std::error::Error for SparseNullsOperationError {
         696  +
impl ::std::error::Error for JsonUnionsError {
  910    697   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  911    698   
        match &self {
  912         -
            SparseNullsOperationError::InternalServerError(_inner) => Some(_inner),
         699  +
            JsonUnionsError::ValidationException(_inner) => Some(_inner),
         700  +
            JsonUnionsError::InternalServerError(_inner) => Some(_inner),
  913    701   
        }
  914    702   
    }
  915    703   
}
  916         -
impl ::std::convert::From<crate::error::InternalServerError>
  917         -
    for crate::error::SparseNullsOperationError
  918         -
{
  919         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::SparseNullsOperationError {
         704  +
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonUnionsError {
         705  +
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonUnionsError {
         706  +
        Self::ValidationException(variant)
         707  +
    }
         708  +
}
         709  +
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonUnionsError {
         710  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonUnionsError {
  920    711   
        Self::InternalServerError(variant)
  921    712   
    }
  922    713   
}
  923    714   
  924         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::SparseNullsOperationError {
  925         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::SparseNullsOperationError {
         715  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonUnionsError {
         716  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonUnionsError {
  926    717   
        ::pyo3::Python::with_gil(|py| {
  927    718   
            let error = variant.value(py);
  928         -
         719  +
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
         720  +
                return error.into();
         721  +
            }
  929    722   
            crate::error::InternalServerError {
  930    723   
                message: error.to_string(),
  931    724   
            }
  932    725   
            .into()
  933    726   
        })
  934    727   
    }
  935    728   
}
  936    729   
  937         -
/// Error type for the `NullOperation` operation.
  938         -
/// Each variant represents an error that can occur for the `NullOperation` operation.
         730  +
/// Error type for the `EndpointOperation` operation.
         731  +
/// Each variant represents an error that can occur for the `EndpointOperation` operation.
  939    732   
#[derive(::std::fmt::Debug)]
  940         -
pub enum NullOperationError {
         733  +
pub enum EndpointOperationError {
  941    734   
    #[allow(missing_docs)] // documentation missing in model
  942    735   
    InternalServerError(crate::error::InternalServerError),
  943    736   
}
  944         -
impl ::std::fmt::Display for NullOperationError {
         737  +
impl ::std::fmt::Display for EndpointOperationError {
  945    738   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
  946    739   
        match &self {
  947         -
            NullOperationError::InternalServerError(_inner) => _inner.fmt(f),
         740  +
            EndpointOperationError::InternalServerError(_inner) => _inner.fmt(f),
  948    741   
        }
  949    742   
    }
  950    743   
}
  951         -
impl NullOperationError {
  952         -
    /// Returns `true` if the error kind is `NullOperationError::InternalServerError`.
         744  +
impl EndpointOperationError {
         745  +
    /// Returns `true` if the error kind is `EndpointOperationError::InternalServerError`.
  953    746   
    pub fn is_internal_server_error(&self) -> bool {
  954         -
        matches!(&self, NullOperationError::InternalServerError(_))
         747  +
        matches!(&self, EndpointOperationError::InternalServerError(_))
  955    748   
    }
  956    749   
    /// Returns the error name string by matching the correct variant.
  957    750   
    pub fn name(&self) -> &'static str {
  958    751   
        match &self {
  959         -
            NullOperationError::InternalServerError(_inner) => _inner.name(),
         752  +
            EndpointOperationError::InternalServerError(_inner) => _inner.name(),
  960    753   
        }
  961    754   
    }
  962    755   
}
  963         -
impl ::std::error::Error for NullOperationError {
         756  +
impl ::std::error::Error for EndpointOperationError {
  964    757   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
  965    758   
        match &self {
  966         -
            NullOperationError::InternalServerError(_inner) => Some(_inner),
         759  +
            EndpointOperationError::InternalServerError(_inner) => Some(_inner),
  967    760   
        }
  968    761   
    }
  969    762   
}
  970         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::NullOperationError {
  971         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::NullOperationError {
         763  +
impl ::std::convert::From<crate::error::InternalServerError>
         764  +
    for crate::error::EndpointOperationError
         765  +
{
         766  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::EndpointOperationError {
  972    767   
        Self::InternalServerError(variant)
  973    768   
    }
  974    769   
}
  975    770   
  976         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::NullOperationError {
  977         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::NullOperationError {
         771  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EndpointOperationError {
         772  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::EndpointOperationError {
  978    773   
        ::pyo3::Python::with_gil(|py| {
  979    774   
            let error = variant.value(py);
  980    775   
  981    776   
            crate::error::InternalServerError {
  982    777   
                message: error.to_string(),
  983    778   
            }
  984    779   
            .into()
  985    780   
        })
  986    781   
    }
  987    782   
}
  988    783   
  989         -
/// Error type for the `JsonIntEnums` operation.
  990         -
/// Each variant represents an error that can occur for the `JsonIntEnums` operation.
         784  +
/// Error type for the `EndpointWithHostLabelOperation` operation.
         785  +
/// Each variant represents an error that can occur for the `EndpointWithHostLabelOperation` operation.
  991    786   
#[derive(::std::fmt::Debug)]
  992         -
pub enum JsonIntEnumsError {
         787  +
pub enum EndpointWithHostLabelOperationError {
  993    788   
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
  994    789   
    ValidationException(crate::error::ValidationException),
  995    790   
    #[allow(missing_docs)] // documentation missing in model
  996    791   
    InternalServerError(crate::error::InternalServerError),
  997    792   
}
  998         -
impl ::std::fmt::Display for JsonIntEnumsError {
         793  +
impl ::std::fmt::Display for EndpointWithHostLabelOperationError {
  999    794   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1000    795   
        match &self {
 1001         -
            JsonIntEnumsError::ValidationException(_inner) => _inner.fmt(f),
 1002         -
            JsonIntEnumsError::InternalServerError(_inner) => _inner.fmt(f),
         796  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) => _inner.fmt(f),
         797  +
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => _inner.fmt(f),
 1003    798   
        }
 1004    799   
    }
 1005    800   
}
 1006         -
impl JsonIntEnumsError {
 1007         -
    /// Returns `true` if the error kind is `JsonIntEnumsError::ValidationException`.
         801  +
impl EndpointWithHostLabelOperationError {
         802  +
    /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::ValidationException`.
 1008    803   
    pub fn is_validation_exception(&self) -> bool {
 1009         -
        matches!(&self, JsonIntEnumsError::ValidationException(_))
         804  +
        matches!(
         805  +
            &self,
         806  +
            EndpointWithHostLabelOperationError::ValidationException(_)
         807  +
        )
 1010    808   
    }
 1011         -
    /// Returns `true` if the error kind is `JsonIntEnumsError::InternalServerError`.
         809  +
    /// Returns `true` if the error kind is `EndpointWithHostLabelOperationError::InternalServerError`.
 1012    810   
    pub fn is_internal_server_error(&self) -> bool {
 1013         -
        matches!(&self, JsonIntEnumsError::InternalServerError(_))
         811  +
        matches!(
         812  +
            &self,
         813  +
            EndpointWithHostLabelOperationError::InternalServerError(_)
         814  +
        )
 1014    815   
    }
 1015    816   
    /// Returns the error name string by matching the correct variant.
 1016    817   
    pub fn name(&self) -> &'static str {
 1017    818   
        match &self {
 1018         -
            JsonIntEnumsError::ValidationException(_inner) => _inner.name(),
 1019         -
            JsonIntEnumsError::InternalServerError(_inner) => _inner.name(),
         819  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) => _inner.name(),
         820  +
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => _inner.name(),
 1020    821   
        }
 1021    822   
    }
 1022    823   
}
 1023         -
impl ::std::error::Error for JsonIntEnumsError {
         824  +
impl ::std::error::Error for EndpointWithHostLabelOperationError {
 1024    825   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1025    826   
        match &self {
 1026         -
            JsonIntEnumsError::ValidationException(_inner) => Some(_inner),
 1027         -
            JsonIntEnumsError::InternalServerError(_inner) => Some(_inner),
         827  +
            EndpointWithHostLabelOperationError::ValidationException(_inner) => Some(_inner),
         828  +
            EndpointWithHostLabelOperationError::InternalServerError(_inner) => Some(_inner),
 1028    829   
        }
 1029    830   
    }
 1030    831   
}
 1031         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonIntEnumsError {
 1032         -
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonIntEnumsError {
         832  +
impl ::std::convert::From<crate::error::ValidationException>
         833  +
    for crate::error::EndpointWithHostLabelOperationError
         834  +
{
         835  +
    fn from(
         836  +
        variant: crate::error::ValidationException,
         837  +
    ) -> crate::error::EndpointWithHostLabelOperationError {
 1033    838   
        Self::ValidationException(variant)
 1034    839   
    }
 1035    840   
}
 1036         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonIntEnumsError {
 1037         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonIntEnumsError {
         841  +
impl ::std::convert::From<crate::error::InternalServerError>
         842  +
    for crate::error::EndpointWithHostLabelOperationError
         843  +
{
         844  +
    fn from(
         845  +
        variant: crate::error::InternalServerError,
         846  +
    ) -> crate::error::EndpointWithHostLabelOperationError {
 1038    847   
        Self::InternalServerError(variant)
 1039    848   
    }
 1040    849   
}
 1041    850   
 1042         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonIntEnumsError {
 1043         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonIntEnumsError {
         851  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EndpointWithHostLabelOperationError {
         852  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::EndpointWithHostLabelOperationError {
 1044    853   
        ::pyo3::Python::with_gil(|py| {
 1045    854   
            let error = variant.value(py);
 1046    855   
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
 1047    856   
                return error.into();
 1048    857   
            }
 1049    858   
            crate::error::InternalServerError {
 1050    859   
                message: error.to_string(),
 1051    860   
            }
 1052    861   
            .into()
 1053    862   
        })
 1054    863   
    }
 1055    864   
}
 1056    865   
 1057         -
/// Error type for the `JsonEnums` operation.
 1058         -
/// Each variant represents an error that can occur for the `JsonEnums` operation.
         866  +
/// Error type for the `HostWithPathOperation` operation.
         867  +
/// Each variant represents an error that can occur for the `HostWithPathOperation` operation.
 1059    868   
#[derive(::std::fmt::Debug)]
 1060         -
pub enum JsonEnumsError {
 1061         -
    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
 1062         -
    ValidationException(crate::error::ValidationException),
         869  +
pub enum HostWithPathOperationError {
 1063    870   
    #[allow(missing_docs)] // documentation missing in model
 1064    871   
    InternalServerError(crate::error::InternalServerError),
 1065    872   
}
 1066         -
impl ::std::fmt::Display for JsonEnumsError {
         873  +
impl ::std::fmt::Display for HostWithPathOperationError {
 1067    874   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1068    875   
        match &self {
 1069         -
            JsonEnumsError::ValidationException(_inner) => _inner.fmt(f),
 1070         -
            JsonEnumsError::InternalServerError(_inner) => _inner.fmt(f),
         876  +
            HostWithPathOperationError::InternalServerError(_inner) => _inner.fmt(f),
 1071    877   
        }
 1072    878   
    }
 1073    879   
}
 1074         -
impl JsonEnumsError {
 1075         -
    /// Returns `true` if the error kind is `JsonEnumsError::ValidationException`.
 1076         -
    pub fn is_validation_exception(&self) -> bool {
 1077         -
        matches!(&self, JsonEnumsError::ValidationException(_))
 1078         -
    }
 1079         -
    /// Returns `true` if the error kind is `JsonEnumsError::InternalServerError`.
         880  +
impl HostWithPathOperationError {
         881  +
    /// Returns `true` if the error kind is `HostWithPathOperationError::InternalServerError`.
 1080    882   
    pub fn is_internal_server_error(&self) -> bool {
 1081         -
        matches!(&self, JsonEnumsError::InternalServerError(_))
         883  +
        matches!(&self, HostWithPathOperationError::InternalServerError(_))
 1082    884   
    }
 1083    885   
    /// Returns the error name string by matching the correct variant.
 1084    886   
    pub fn name(&self) -> &'static str {
 1085    887   
        match &self {
 1086         -
            JsonEnumsError::ValidationException(_inner) => _inner.name(),
 1087         -
            JsonEnumsError::InternalServerError(_inner) => _inner.name(),
         888  +
            HostWithPathOperationError::InternalServerError(_inner) => _inner.name(),
 1088    889   
        }
 1089    890   
    }
 1090    891   
}
 1091         -
impl ::std::error::Error for JsonEnumsError {
         892  +
impl ::std::error::Error for HostWithPathOperationError {
 1092    893   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1093    894   
        match &self {
 1094         -
            JsonEnumsError::ValidationException(_inner) => Some(_inner),
 1095         -
            JsonEnumsError::InternalServerError(_inner) => Some(_inner),
         895  +
            HostWithPathOperationError::InternalServerError(_inner) => Some(_inner),
 1096    896   
        }
 1097    897   
    }
 1098    898   
}
 1099         -
impl ::std::convert::From<crate::error::ValidationException> for crate::error::JsonEnumsError {
 1100         -
    fn from(variant: crate::error::ValidationException) -> crate::error::JsonEnumsError {
 1101         -
        Self::ValidationException(variant)
 1102         -
    }
 1103         -
}
 1104         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::JsonEnumsError {
 1105         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::JsonEnumsError {
         899  +
impl ::std::convert::From<crate::error::InternalServerError>
         900  +
    for crate::error::HostWithPathOperationError
         901  +
{
         902  +
    fn from(
         903  +
        variant: crate::error::InternalServerError,
         904  +
    ) -> crate::error::HostWithPathOperationError {
 1106    905   
        Self::InternalServerError(variant)
 1107    906   
    }
 1108    907   
}
 1109    908   
 1110         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::JsonEnumsError {
 1111         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::JsonEnumsError {
         909  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::HostWithPathOperationError {
         910  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::HostWithPathOperationError {
 1112    911   
        ::pyo3::Python::with_gil(|py| {
 1113    912   
            let error = variant.value(py);
 1114         -
            if let Ok(error) = error.extract::<crate::error::ValidationException>() {
 1115         -
                return error.into();
 1116         -
            }
         913  +
 1117    914   
            crate::error::InternalServerError {
 1118    915   
                message: error.to_string(),
 1119    916   
            }
 1120    917   
            .into()
 1121    918   
        })
 1122    919   
    }
 1123    920   
}
 1124    921   
 1125         -
/// Error type for the `PutAndGetInlineDocuments` operation.
 1126         -
/// Each variant represents an error that can occur for the `PutAndGetInlineDocuments` operation.
         922  +
/// Error type for the `DatetimeOffsets` operation.
         923  +
/// Each variant represents an error that can occur for the `DatetimeOffsets` operation.
 1127    924   
#[derive(::std::fmt::Debug)]
 1128         -
pub enum PutAndGetInlineDocumentsError {
         925  +
pub enum DatetimeOffsetsError {
 1129    926   
    #[allow(missing_docs)] // documentation missing in model
 1130    927   
    InternalServerError(crate::error::InternalServerError),
 1131    928   
}
 1132         -
impl ::std::fmt::Display for PutAndGetInlineDocumentsError {
         929  +
impl ::std::fmt::Display for DatetimeOffsetsError {
 1133    930   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1134    931   
        match &self {
 1135         -
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => _inner.fmt(f),
         932  +
            DatetimeOffsetsError::InternalServerError(_inner) => _inner.fmt(f),
 1136    933   
        }
 1137    934   
    }
 1138    935   
}
 1139         -
impl PutAndGetInlineDocumentsError {
 1140         -
    /// Returns `true` if the error kind is `PutAndGetInlineDocumentsError::InternalServerError`.
         936  +
impl DatetimeOffsetsError {
         937  +
    /// Returns `true` if the error kind is `DatetimeOffsetsError::InternalServerError`.
 1141    938   
    pub fn is_internal_server_error(&self) -> bool {
 1142         -
        matches!(&self, PutAndGetInlineDocumentsError::InternalServerError(_))
         939  +
        matches!(&self, DatetimeOffsetsError::InternalServerError(_))
 1143    940   
    }
 1144    941   
    /// Returns the error name string by matching the correct variant.
 1145    942   
    pub fn name(&self) -> &'static str {
 1146    943   
        match &self {
 1147         -
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => _inner.name(),
         944  +
            DatetimeOffsetsError::InternalServerError(_inner) => _inner.name(),
 1148    945   
        }
 1149    946   
    }
 1150    947   
}
 1151         -
impl ::std::error::Error for PutAndGetInlineDocumentsError {
         948  +
impl ::std::error::Error for DatetimeOffsetsError {
 1152    949   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1153    950   
        match &self {
 1154         -
            PutAndGetInlineDocumentsError::InternalServerError(_inner) => Some(_inner),
         951  +
            DatetimeOffsetsError::InternalServerError(_inner) => Some(_inner),
 1155    952   
        }
 1156    953   
    }
 1157    954   
}
 1158    955   
impl ::std::convert::From<crate::error::InternalServerError>
 1159         -
    for crate::error::PutAndGetInlineDocumentsError
         956  +
    for crate::error::DatetimeOffsetsError
 1160    957   
{
 1161         -
    fn from(
 1162         -
        variant: crate::error::InternalServerError,
 1163         -
    ) -> crate::error::PutAndGetInlineDocumentsError {
         958  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::DatetimeOffsetsError {
 1164    959   
        Self::InternalServerError(variant)
 1165    960   
    }
 1166    961   
}
 1167    962   
 1168         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PutAndGetInlineDocumentsError {
 1169         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::PutAndGetInlineDocumentsError {
         963  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::DatetimeOffsetsError {
         964  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::DatetimeOffsetsError {
 1170    965   
        ::pyo3::Python::with_gil(|py| {
 1171    966   
            let error = variant.value(py);
 1172    967   
 1173    968   
            crate::error::InternalServerError {
 1174    969   
                message: error.to_string(),
 1175    970   
            }
 1176    971   
            .into()
 1177    972   
        })
 1178    973   
    }
 1179    974   
}
 1180    975   
 1181         -
/// Error type for the `OperationWithOptionalInputOutput` operation.
 1182         -
/// Each variant represents an error that can occur for the `OperationWithOptionalInputOutput` operation.
         976  +
/// Error type for the `FractionalSeconds` operation.
         977  +
/// Each variant represents an error that can occur for the `FractionalSeconds` operation.
 1183    978   
#[derive(::std::fmt::Debug)]
 1184         -
pub enum OperationWithOptionalInputOutputError {
         979  +
pub enum FractionalSecondsError {
 1185    980   
    #[allow(missing_docs)] // documentation missing in model
 1186    981   
    InternalServerError(crate::error::InternalServerError),
 1187    982   
}
 1188         -
impl ::std::fmt::Display for OperationWithOptionalInputOutputError {
         983  +
impl ::std::fmt::Display for FractionalSecondsError {
 1189    984   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1190    985   
        match &self {
 1191         -
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => _inner.fmt(f),
         986  +
            FractionalSecondsError::InternalServerError(_inner) => _inner.fmt(f),
 1192    987   
        }
 1193    988   
    }
 1194    989   
}
 1195         -
impl OperationWithOptionalInputOutputError {
 1196         -
    /// Returns `true` if the error kind is `OperationWithOptionalInputOutputError::InternalServerError`.
         990  +
impl FractionalSecondsError {
         991  +
    /// Returns `true` if the error kind is `FractionalSecondsError::InternalServerError`.
 1197    992   
    pub fn is_internal_server_error(&self) -> bool {
 1198         -
        matches!(
 1199         -
            &self,
 1200         -
            OperationWithOptionalInputOutputError::InternalServerError(_)
 1201         -
        )
         993  +
        matches!(&self, FractionalSecondsError::InternalServerError(_))
 1202    994   
    }
 1203    995   
    /// Returns the error name string by matching the correct variant.
 1204    996   
    pub fn name(&self) -> &'static str {
 1205    997   
        match &self {
 1206         -
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => _inner.name(),
         998  +
            FractionalSecondsError::InternalServerError(_inner) => _inner.name(),
 1207    999   
        }
 1208   1000   
    }
 1209   1001   
}
 1210         -
impl ::std::error::Error for OperationWithOptionalInputOutputError {
        1002  +
impl ::std::error::Error for FractionalSecondsError {
 1211   1003   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1212   1004   
        match &self {
 1213         -
            OperationWithOptionalInputOutputError::InternalServerError(_inner) => Some(_inner),
        1005  +
            FractionalSecondsError::InternalServerError(_inner) => Some(_inner),
 1214   1006   
        }
 1215   1007   
    }
 1216   1008   
}
 1217   1009   
impl ::std::convert::From<crate::error::InternalServerError>
 1218         -
    for crate::error::OperationWithOptionalInputOutputError
        1010  +
    for crate::error::FractionalSecondsError
 1219   1011   
{
 1220         -
    fn from(
 1221         -
        variant: crate::error::InternalServerError,
 1222         -
    ) -> crate::error::OperationWithOptionalInputOutputError {
        1012  +
    fn from(variant: crate::error::InternalServerError) -> crate::error::FractionalSecondsError {
 1223   1013   
        Self::InternalServerError(variant)
 1224   1014   
    }
 1225   1015   
}
 1226   1016   
 1227         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::OperationWithOptionalInputOutputError {
 1228         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::OperationWithOptionalInputOutputError {
        1017  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::FractionalSecondsError {
        1018  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::FractionalSecondsError {
 1229   1019   
        ::pyo3::Python::with_gil(|py| {
 1230   1020   
            let error = variant.value(py);
 1231   1021   
 1232   1022   
            crate::error::InternalServerError {
 1233   1023   
                message: error.to_string(),
 1234   1024   
            }
 1235   1025   
            .into()
 1236   1026   
        })
 1237   1027   
    }
 1238   1028   
}
 1239   1029   
 1240         -
/// Error type for the `SimpleScalarProperties` operation.
 1241         -
/// Each variant represents an error that can occur for the `SimpleScalarProperties` operation.
        1030  +
/// Error type for the `PutWithContentEncoding` operation.
        1031  +
/// Each variant represents an error that can occur for the `PutWithContentEncoding` operation.
 1242   1032   
#[derive(::std::fmt::Debug)]
 1243         -
pub enum SimpleScalarPropertiesError {
        1033  +
pub enum PutWithContentEncodingError {
 1244   1034   
    #[allow(missing_docs)] // documentation missing in model
 1245   1035   
    InternalServerError(crate::error::InternalServerError),
 1246   1036   
}
 1247         -
impl ::std::fmt::Display for SimpleScalarPropertiesError {
        1037  +
impl ::std::fmt::Display for PutWithContentEncodingError {
 1248   1038   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1249   1039   
        match &self {
 1250         -
            SimpleScalarPropertiesError::InternalServerError(_inner) => _inner.fmt(f),
        1040  +
            PutWithContentEncodingError::InternalServerError(_inner) => _inner.fmt(f),
 1251   1041   
        }
 1252   1042   
    }
 1253   1043   
}
 1254         -
impl SimpleScalarPropertiesError {
 1255         -
    /// Returns `true` if the error kind is `SimpleScalarPropertiesError::InternalServerError`.
        1044  +
impl PutWithContentEncodingError {
        1045  +
    /// Returns `true` if the error kind is `PutWithContentEncodingError::InternalServerError`.
 1256   1046   
    pub fn is_internal_server_error(&self) -> bool {
 1257         -
        matches!(&self, SimpleScalarPropertiesError::InternalServerError(_))
        1047  +
        matches!(&self, PutWithContentEncodingError::InternalServerError(_))
 1258   1048   
    }
 1259   1049   
    /// Returns the error name string by matching the correct variant.
 1260   1050   
    pub fn name(&self) -> &'static str {
 1261   1051   
        match &self {
 1262         -
            SimpleScalarPropertiesError::InternalServerError(_inner) => _inner.name(),
        1052  +
            PutWithContentEncodingError::InternalServerError(_inner) => _inner.name(),
 1263   1053   
        }
 1264   1054   
    }
 1265   1055   
}
 1266         -
impl ::std::error::Error for SimpleScalarPropertiesError {
        1056  +
impl ::std::error::Error for PutWithContentEncodingError {
 1267   1057   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1268   1058   
        match &self {
 1269         -
            SimpleScalarPropertiesError::InternalServerError(_inner) => Some(_inner),
        1059  +
            PutWithContentEncodingError::InternalServerError(_inner) => Some(_inner),
 1270   1060   
        }
 1271   1061   
    }
 1272   1062   
}
 1273   1063   
impl ::std::convert::From<crate::error::InternalServerError>
 1274         -
    for crate::error::SimpleScalarPropertiesError
        1064  +
    for crate::error::PutWithContentEncodingError
 1275   1065   
{
 1276   1066   
    fn from(
 1277   1067   
        variant: crate::error::InternalServerError,
 1278         -
    ) -> crate::error::SimpleScalarPropertiesError {
        1068  +
    ) -> crate::error::PutWithContentEncodingError {
 1279   1069   
        Self::InternalServerError(variant)
 1280   1070   
    }
 1281   1071   
}
 1282   1072   
 1283         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::SimpleScalarPropertiesError {
 1284         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::SimpleScalarPropertiesError {
        1073  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::PutWithContentEncodingError {
        1074  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::PutWithContentEncodingError {
 1285   1075   
        ::pyo3::Python::with_gil(|py| {
 1286   1076   
            let error = variant.value(py);
 1287   1077   
 1288   1078   
            crate::error::InternalServerError {
 1289   1079   
                message: error.to_string(),
 1290   1080   
            }
 1291   1081   
            .into()
 1292   1082   
        })
 1293   1083   
    }
 1294   1084   
}
 1295   1085   
 1296         -
/// Error type for the `KitchenSinkOperation` operation.
 1297         -
/// Each variant represents an error that can occur for the `KitchenSinkOperation` operation.
        1086  +
/// Error type for the `ContentTypeParameters` operation.
        1087  +
/// Each variant represents an error that can occur for the `ContentTypeParameters` operation.
 1298   1088   
#[derive(::std::fmt::Debug)]
 1299         -
pub enum KitchenSinkOperationError {
 1300         -
    #[allow(missing_docs)] // documentation missing in model
 1301         -
    ErrorWithMembers(crate::error::ErrorWithMembers),
 1302         -
    #[allow(missing_docs)] // documentation missing in model
 1303         -
    ErrorWithoutMembers(crate::error::ErrorWithoutMembers),
        1089  +
pub enum ContentTypeParametersError {
 1304   1090   
    #[allow(missing_docs)] // documentation missing in model
 1305   1091   
    InternalServerError(crate::error::InternalServerError),
 1306   1092   
}
 1307         -
impl ::std::fmt::Display for KitchenSinkOperationError {
        1093  +
impl ::std::fmt::Display for ContentTypeParametersError {
 1308   1094   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1309   1095   
        match &self {
 1310         -
            KitchenSinkOperationError::ErrorWithMembers(_inner) => _inner.fmt(f),
 1311         -
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => _inner.fmt(f),
 1312         -
            KitchenSinkOperationError::InternalServerError(_inner) => _inner.fmt(f),
        1096  +
            ContentTypeParametersError::InternalServerError(_inner) => _inner.fmt(f),
 1313   1097   
        }
 1314   1098   
    }
 1315   1099   
}
 1316         -
impl KitchenSinkOperationError {
 1317         -
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithMembers`.
 1318         -
    pub fn is_error_with_members(&self) -> bool {
 1319         -
        matches!(&self, KitchenSinkOperationError::ErrorWithMembers(_))
 1320         -
    }
 1321         -
    /// Returns `true` if the error kind is `KitchenSinkOperationError::ErrorWithoutMembers`.
 1322         -
    pub fn is_error_without_members(&self) -> bool {
 1323         -
        matches!(&self, KitchenSinkOperationError::ErrorWithoutMembers(_))
 1324         -
    }
 1325         -
    /// Returns `true` if the error kind is `KitchenSinkOperationError::InternalServerError`.
        1100  +
impl ContentTypeParametersError {
        1101  +
    /// Returns `true` if the error kind is `ContentTypeParametersError::InternalServerError`.
 1326   1102   
    pub fn is_internal_server_error(&self) -> bool {
 1327         -
        matches!(&self, KitchenSinkOperationError::InternalServerError(_))
        1103  +
        matches!(&self, ContentTypeParametersError::InternalServerError(_))
 1328   1104   
    }
 1329   1105   
    /// Returns the error name string by matching the correct variant.
 1330   1106   
    pub fn name(&self) -> &'static str {
 1331   1107   
        match &self {
 1332         -
            KitchenSinkOperationError::ErrorWithMembers(_inner) => _inner.name(),
 1333         -
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => _inner.name(),
 1334         -
            KitchenSinkOperationError::InternalServerError(_inner) => _inner.name(),
        1108  +
            ContentTypeParametersError::InternalServerError(_inner) => _inner.name(),
 1335   1109   
        }
 1336   1110   
    }
 1337   1111   
}
 1338         -
impl ::std::error::Error for KitchenSinkOperationError {
        1112  +
impl ::std::error::Error for ContentTypeParametersError {
 1339   1113   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1340   1114   
        match &self {
 1341         -
            KitchenSinkOperationError::ErrorWithMembers(_inner) => Some(_inner),
 1342         -
            KitchenSinkOperationError::ErrorWithoutMembers(_inner) => Some(_inner),
 1343         -
            KitchenSinkOperationError::InternalServerError(_inner) => Some(_inner),
        1115  +
            ContentTypeParametersError::InternalServerError(_inner) => Some(_inner),
 1344   1116   
        }
 1345   1117   
    }
 1346   1118   
}
 1347         -
impl ::std::convert::From<crate::error::ErrorWithMembers>
 1348         -
    for crate::error::KitchenSinkOperationError
 1349         -
{
 1350         -
    fn from(variant: crate::error::ErrorWithMembers) -> crate::error::KitchenSinkOperationError {
 1351         -
        Self::ErrorWithMembers(variant)
 1352         -
    }
 1353         -
}
 1354         -
impl ::std::convert::From<crate::error::ErrorWithoutMembers>
 1355         -
    for crate::error::KitchenSinkOperationError
        1119  +
impl ::std::convert::From<crate::error::InternalServerError>
        1120  +
    for crate::error::ContentTypeParametersError
 1356   1121   
{
 1357         -
    fn from(variant: crate::error::ErrorWithoutMembers) -> crate::error::KitchenSinkOperationError {
 1358         -
        Self::ErrorWithoutMembers(variant)
 1359         -
    }
 1360         -
}
 1361         -
impl ::std::convert::From<crate::error::InternalServerError>
 1362         -
    for crate::error::KitchenSinkOperationError
 1363         -
{
 1364         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::KitchenSinkOperationError {
 1365         -
        Self::InternalServerError(variant)
        1122  +
    fn from(
        1123  +
        variant: crate::error::InternalServerError,
        1124  +
    ) -> crate::error::ContentTypeParametersError {
        1125  +
        Self::InternalServerError(variant)
 1366   1126   
    }
 1367   1127   
}
 1368   1128   
 1369         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::KitchenSinkOperationError {
 1370         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::KitchenSinkOperationError {
        1129  +
impl ::std::convert::From<::pyo3::PyErr> for crate::error::ContentTypeParametersError {
        1130  +
    fn from(variant: ::pyo3::PyErr) -> crate::error::ContentTypeParametersError {
 1371   1131   
        ::pyo3::Python::with_gil(|py| {
 1372   1132   
            let error = variant.value(py);
 1373         -
            if let Ok(error) = error.extract::<crate::error::ErrorWithMembers>() {
 1374         -
                return error.into();
 1375         -
            }
 1376         -
            if let Ok(error) = error.extract::<crate::error::ErrorWithoutMembers>() {
 1377         -
                return error.into();
 1378         -
            }
        1133  +
 1379   1134   
            crate::error::InternalServerError {
 1380   1135   
                message: error.to_string(),
 1381   1136   
            }
 1382   1137   
            .into()
 1383   1138   
        })
 1384   1139   
    }
 1385   1140   
}
 1386   1141   
 1387   1142   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1143  +
/// :param message str:
 1388   1144   
/// :rtype None:
 1389   1145   
#[allow(missing_docs)] // documentation missing in model
 1390   1146   
#[derive(
 1391   1147   
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
 1392   1148   
)]
 1393         -
pub struct ErrorWithoutMembers {}
        1149  +
pub struct InternalServerError {
        1150  +
    #[pyo3(get, set)]
        1151  +
    /// :type str:
        1152  +
    #[allow(missing_docs)] // documentation missing in model
        1153  +
    pub message: ::std::string::String,
        1154  +
}
 1394   1155   
#[allow(clippy::new_without_default)]
 1395   1156   
#[allow(clippy::too_many_arguments)]
 1396   1157   
#[::pyo3::pymethods]
 1397         -
impl ErrorWithoutMembers {
        1158  +
impl InternalServerError {
 1398   1159   
    #[new]
 1399         -
    pub fn new() -> Self {
 1400         -
        Self {}
        1160  +
    pub fn new(message: ::std::string::String) -> Self {
        1161  +
        Self { message }
 1401   1162   
    }
 1402   1163   
    fn __repr__(&self) -> String {
 1403   1164   
        format!("{self:?}")
 1404   1165   
    }
 1405   1166   
    fn __str__(&self) -> String {
 1406   1167   
        format!("{self:?}")
 1407   1168   
    }
 1408   1169   
}
 1409         -
impl ErrorWithoutMembers {
        1170  +
impl InternalServerError {
        1171  +
    /// Returns the error message.
        1172  +
    pub fn message(&self) -> &str {
        1173  +
        &self.message
        1174  +
    }
 1410   1175   
    #[doc(hidden)]
 1411   1176   
    /// Returns the error name.
 1412   1177   
    pub fn name(&self) -> &'static str {
 1413         -
        "ErrorWithoutMembers"
        1178  +
        "InternalServerError"
 1414   1179   
    }
 1415   1180   
}
 1416         -
impl ::std::fmt::Display for ErrorWithoutMembers {
        1181  +
impl ::std::fmt::Display for InternalServerError {
 1417   1182   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1418         -
        ::std::write!(f, "ErrorWithoutMembers")?;
        1183  +
        ::std::write!(f, "InternalServerError")?;
        1184  +
        {
        1185  +
            ::std::write!(f, ": {}", &self.message)?;
        1186  +
        }
 1419   1187   
        Ok(())
 1420   1188   
    }
 1421   1189   
}
 1422         -
impl ::std::error::Error for ErrorWithoutMembers {}
 1423         -
impl ErrorWithoutMembers {
 1424         -
    /// Creates a new builder-style object to manufacture [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
 1425         -
    pub fn builder() -> crate::error::error_without_members::Builder {
 1426         -
        crate::error::error_without_members::Builder::default()
        1190  +
impl ::std::error::Error for InternalServerError {}
        1191  +
impl InternalServerError {
        1192  +
    /// Creates a new builder-style object to manufacture [`InternalServerError`](crate::error::InternalServerError).
        1193  +
    pub fn builder() -> crate::error::internal_server_error::Builder {
        1194  +
        crate::error::internal_server_error::Builder::default()
 1427   1195   
    }
 1428   1196   
}
 1429   1197   
 1430   1198   
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
 1431   1199   
/// :param code typing.Optional\[str\]:
 1432   1200   
/// :param complex_data typing.Optional\[json_rpc11.model.KitchenSink\]:
 1433   1201   
/// :param integer_field typing.Optional\[int\]:
 1434   1202   
/// :param list_field typing.Optional\[typing.List\[str\]\]:
 1435   1203   
/// :param map_field typing.Optional\[typing.Dict\[str, str\]\]:
 1436   1204   
/// :param message typing.Optional\[str\]:
@@ -1520,1288 +1695,1801 @@
 1540   1308   
    }
 1541   1309   
    #[doc(hidden)]
 1542   1310   
    /// Returns the error name.
 1543   1311   
    pub fn name(&self) -> &'static str {
 1544   1312   
        "ErrorWithMembers"
 1545   1313   
    }
 1546   1314   
}
 1547   1315   
impl ::std::fmt::Display for ErrorWithMembers {
 1548   1316   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1549   1317   
        ::std::write!(f, "ErrorWithMembers")?;
 1550         -
        if let ::std::option::Option::Some(inner_2) = &self.message {
        1318  +
        if let ::std::option::Option::Some(inner_1) = &self.message {
 1551   1319   
            {
 1552         -
                ::std::write!(f, ": {inner_2}")?;
        1320  +
                ::std::write!(f, ": {inner_1}")?;
 1553   1321   
            }
 1554   1322   
        }
 1555   1323   
        Ok(())
 1556   1324   
    }
 1557   1325   
}
 1558   1326   
impl ::std::error::Error for ErrorWithMembers {}
 1559   1327   
impl ErrorWithMembers {
 1560   1328   
    /// Creates a new builder-style object to manufacture [`ErrorWithMembers`](crate::error::ErrorWithMembers).
 1561   1329   
    pub fn builder() -> crate::error::error_with_members::Builder {
 1562   1330   
        crate::error::error_with_members::Builder::default()
 1563   1331   
    }
 1564   1332   
}
 1565   1333   
 1566         -
/// Error type for the `EmptyOperation` operation.
 1567         -
/// Each variant represents an error that can occur for the `EmptyOperation` operation.
 1568         -
#[derive(::std::fmt::Debug)]
 1569         -
pub enum EmptyOperationError {
        1334  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1335  +
/// :rtype None:
        1336  +
#[allow(missing_docs)] // documentation missing in model
        1337  +
#[derive(
        1338  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1339  +
)]
        1340  +
pub struct ErrorWithoutMembers {}
        1341  +
#[allow(clippy::new_without_default)]
        1342  +
#[allow(clippy::too_many_arguments)]
        1343  +
#[::pyo3::pymethods]
        1344  +
impl ErrorWithoutMembers {
        1345  +
    #[new]
        1346  +
    pub fn new() -> Self {
        1347  +
        Self {}
        1348  +
    }
        1349  +
    fn __repr__(&self) -> String {
        1350  +
        format!("{self:?}")
        1351  +
    }
        1352  +
    fn __str__(&self) -> String {
        1353  +
        format!("{self:?}")
        1354  +
    }
        1355  +
}
        1356  +
impl ErrorWithoutMembers {
        1357  +
    #[doc(hidden)]
        1358  +
    /// Returns the error name.
        1359  +
    pub fn name(&self) -> &'static str {
        1360  +
        "ErrorWithoutMembers"
        1361  +
    }
        1362  +
}
        1363  +
impl ::std::fmt::Display for ErrorWithoutMembers {
        1364  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1365  +
        ::std::write!(f, "ErrorWithoutMembers")?;
        1366  +
        Ok(())
        1367  +
    }
        1368  +
}
        1369  +
impl ::std::error::Error for ErrorWithoutMembers {}
        1370  +
impl ErrorWithoutMembers {
        1371  +
    /// Creates a new builder-style object to manufacture [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        1372  +
    pub fn builder() -> crate::error::error_without_members::Builder {
        1373  +
        crate::error::error_without_members::Builder::default()
        1374  +
    }
        1375  +
}
        1376  +
        1377  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1378  +
/// :param message str:
        1379  +
/// :param field_list typing.Optional\[typing.List\[json_rpc11.model.ValidationExceptionField\]\]:
        1380  +
/// :rtype None:
        1381  +
/// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
        1382  +
#[derive(
        1383  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1384  +
)]
        1385  +
pub struct ValidationException {
        1386  +
    #[pyo3(get, set)]
        1387  +
    /// :type str:
        1388  +
    /// A summary of the validation failure.
        1389  +
    pub message: ::std::string::String,
        1390  +
    #[pyo3(get, set)]
        1391  +
    /// :type typing.Optional\[typing.List\[json_rpc11.model.ValidationExceptionField\]\]:
        1392  +
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        1393  +
    pub field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        1394  +
}
        1395  +
impl ValidationException {
        1396  +
    /// A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints.
        1397  +
    pub fn field_list(&self) -> ::std::option::Option<&[crate::model::ValidationExceptionField]> {
        1398  +
        self.field_list.as_deref()
        1399  +
    }
        1400  +
}
        1401  +
#[allow(clippy::new_without_default)]
        1402  +
#[allow(clippy::too_many_arguments)]
        1403  +
#[::pyo3::pymethods]
        1404  +
impl ValidationException {
        1405  +
    #[new]
        1406  +
    pub fn new(
        1407  +
        message: ::std::string::String,
        1408  +
        field_list: ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
        1409  +
    ) -> Self {
        1410  +
        Self {
        1411  +
            message,
        1412  +
            field_list,
        1413  +
        }
        1414  +
    }
        1415  +
    fn __repr__(&self) -> String {
        1416  +
        format!("{self:?}")
        1417  +
    }
        1418  +
    fn __str__(&self) -> String {
        1419  +
        format!("{self:?}")
        1420  +
    }
        1421  +
}
        1422  +
impl ValidationException {
        1423  +
    /// Returns the error message.
        1424  +
    pub fn message(&self) -> &str {
        1425  +
        &self.message
        1426  +
    }
        1427  +
    #[doc(hidden)]
        1428  +
    /// Returns the error name.
        1429  +
    pub fn name(&self) -> &'static str {
        1430  +
        "ValidationException"
        1431  +
    }
        1432  +
}
        1433  +
impl ::std::fmt::Display for ValidationException {
        1434  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1435  +
        ::std::write!(f, "ValidationException")?;
        1436  +
        {
        1437  +
            ::std::write!(f, ": {}", &self.message)?;
        1438  +
        }
        1439  +
        Ok(())
        1440  +
    }
        1441  +
}
        1442  +
impl ::std::error::Error for ValidationException {}
        1443  +
impl ValidationException {
        1444  +
    /// Creates a new builder-style object to manufacture [`ValidationException`](crate::error::ValidationException).
        1445  +
    pub fn builder() -> crate::error::validation_exception::Builder {
        1446  +
        crate::error::validation_exception::Builder::default()
        1447  +
    }
        1448  +
}
        1449  +
        1450  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1451  +
/// :param message typing.Optional\[str\]:
        1452  +
/// :rtype None:
        1453  +
/// This error is thrown when an invalid greeting value is provided.
        1454  +
#[derive(
        1455  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1456  +
)]
        1457  +
pub struct InvalidGreeting {
        1458  +
    #[pyo3(get, set)]
        1459  +
    /// :type typing.Optional\[str\]:
 1570   1460   
    #[allow(missing_docs)] // documentation missing in model
 1571         -
    InternalServerError(crate::error::InternalServerError),
        1461  +
    pub message: ::std::option::Option<::std::string::String>,
 1572   1462   
}
 1573         -
impl ::std::fmt::Display for EmptyOperationError {
        1463  +
#[allow(clippy::new_without_default)]
        1464  +
#[allow(clippy::too_many_arguments)]
        1465  +
#[::pyo3::pymethods]
        1466  +
impl InvalidGreeting {
        1467  +
    #[new]
        1468  +
    pub fn new(message: ::std::option::Option<::std::string::String>) -> Self {
        1469  +
        Self { message }
        1470  +
    }
        1471  +
    fn __repr__(&self) -> String {
        1472  +
        format!("{self:?}")
        1473  +
    }
        1474  +
    fn __str__(&self) -> String {
        1475  +
        format!("{self:?}")
        1476  +
    }
        1477  +
}
        1478  +
impl InvalidGreeting {
        1479  +
    /// Returns the error message.
        1480  +
    pub fn message(&self) -> ::std::option::Option<&str> {
        1481  +
        self.message.as_deref()
        1482  +
    }
        1483  +
    #[doc(hidden)]
        1484  +
    /// Returns the error name.
        1485  +
    pub fn name(&self) -> &'static str {
        1486  +
        "InvalidGreeting"
        1487  +
    }
        1488  +
}
        1489  +
impl ::std::fmt::Display for InvalidGreeting {
 1574   1490   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1575         -
        match &self {
 1576         -
            EmptyOperationError::InternalServerError(_inner) => _inner.fmt(f),
        1491  +
        ::std::write!(f, "InvalidGreeting")?;
        1492  +
        if let ::std::option::Option::Some(inner_2) = &self.message {
        1493  +
            {
        1494  +
                ::std::write!(f, ": {inner_2}")?;
        1495  +
            }
 1577   1496   
        }
        1497  +
        Ok(())
 1578   1498   
    }
 1579   1499   
}
 1580         -
impl EmptyOperationError {
 1581         -
    /// Returns `true` if the error kind is `EmptyOperationError::InternalServerError`.
 1582         -
    pub fn is_internal_server_error(&self) -> bool {
 1583         -
        matches!(&self, EmptyOperationError::InternalServerError(_))
        1500  +
impl ::std::error::Error for InvalidGreeting {}
        1501  +
impl InvalidGreeting {
        1502  +
    /// Creates a new builder-style object to manufacture [`InvalidGreeting`](crate::error::InvalidGreeting).
        1503  +
    pub fn builder() -> crate::error::invalid_greeting::Builder {
        1504  +
        crate::error::invalid_greeting::Builder::default()
 1584   1505   
    }
 1585         -
    /// Returns the error name string by matching the correct variant.
        1506  +
}
        1507  +
        1508  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1509  +
/// :param top_level typing.Optional\[str\]:
        1510  +
/// :param nested typing.Optional\[json_rpc11.model.ComplexNestedErrorData\]:
        1511  +
/// :rtype None:
        1512  +
/// This error is thrown when a request is invalid.
        1513  +
#[derive(
        1514  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1515  +
)]
        1516  +
pub struct ComplexError {
        1517  +
    #[pyo3(get, set)]
        1518  +
    /// :type typing.Optional\[str\]:
        1519  +
    #[allow(missing_docs)] // documentation missing in model
        1520  +
    pub top_level: ::std::option::Option<::std::string::String>,
        1521  +
    #[pyo3(get, set)]
        1522  +
    /// :type typing.Optional\[json_rpc11.model.ComplexNestedErrorData\]:
        1523  +
    #[allow(missing_docs)] // documentation missing in model
        1524  +
    pub nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
        1525  +
}
        1526  +
impl ComplexError {
        1527  +
    #[allow(missing_docs)] // documentation missing in model
        1528  +
    pub fn top_level(&self) -> ::std::option::Option<&str> {
        1529  +
        self.top_level.as_deref()
        1530  +
    }
        1531  +
    #[allow(missing_docs)] // documentation missing in model
        1532  +
    pub fn nested(&self) -> ::std::option::Option<&crate::model::ComplexNestedErrorData> {
        1533  +
        self.nested.as_ref()
        1534  +
    }
        1535  +
}
        1536  +
#[allow(clippy::new_without_default)]
        1537  +
#[allow(clippy::too_many_arguments)]
        1538  +
#[::pyo3::pymethods]
        1539  +
impl ComplexError {
        1540  +
    #[new]
        1541  +
    pub fn new(
        1542  +
        top_level: ::std::option::Option<::std::string::String>,
        1543  +
        nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
        1544  +
    ) -> Self {
        1545  +
        Self { top_level, nested }
        1546  +
    }
        1547  +
    fn __repr__(&self) -> String {
        1548  +
        format!("{self:?}")
        1549  +
    }
        1550  +
    fn __str__(&self) -> String {
        1551  +
        format!("{self:?}")
        1552  +
    }
        1553  +
}
        1554  +
impl ComplexError {
        1555  +
    #[doc(hidden)]
        1556  +
    /// Returns the error name.
 1586   1557   
    pub fn name(&self) -> &'static str {
 1587         -
        match &self {
 1588         -
            EmptyOperationError::InternalServerError(_inner) => _inner.name(),
        1558  +
        "ComplexError"
        1559  +
    }
        1560  +
}
        1561  +
impl ::std::fmt::Display for ComplexError {
        1562  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1563  +
        ::std::write!(f, "ComplexError")?;
        1564  +
        Ok(())
        1565  +
    }
        1566  +
}
        1567  +
impl ::std::error::Error for ComplexError {}
        1568  +
impl ComplexError {
        1569  +
    /// Creates a new builder-style object to manufacture [`ComplexError`](crate::error::ComplexError).
        1570  +
    pub fn builder() -> crate::error::complex_error::Builder {
        1571  +
        crate::error::complex_error::Builder::default()
        1572  +
    }
        1573  +
}
        1574  +
        1575  +
#[::pyo3::pyclass(extends = ::pyo3::exceptions::PyException)]
        1576  +
/// :rtype None:
        1577  +
/// This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.
        1578  +
#[derive(
        1579  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug, ::std::hash::Hash,
        1580  +
)]
        1581  +
pub struct FooError {}
        1582  +
#[allow(clippy::new_without_default)]
        1583  +
#[allow(clippy::too_many_arguments)]
        1584  +
#[::pyo3::pymethods]
        1585  +
impl FooError {
        1586  +
    #[new]
        1587  +
    pub fn new() -> Self {
        1588  +
        Self {}
        1589  +
    }
        1590  +
    fn __repr__(&self) -> String {
        1591  +
        format!("{self:?}")
        1592  +
    }
        1593  +
    fn __str__(&self) -> String {
        1594  +
        format!("{self:?}")
        1595  +
    }
        1596  +
}
        1597  +
impl FooError {
        1598  +
    #[doc(hidden)]
        1599  +
    /// Returns the error name.
        1600  +
    pub fn name(&self) -> &'static str {
        1601  +
        "FooError"
        1602  +
    }
        1603  +
}
        1604  +
impl ::std::fmt::Display for FooError {
        1605  +
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1606  +
        ::std::write!(f, "FooError")?;
        1607  +
        Ok(())
        1608  +
    }
        1609  +
}
        1610  +
impl ::std::error::Error for FooError {}
        1611  +
impl FooError {
        1612  +
    /// Creates a new builder-style object to manufacture [`FooError`](crate::error::FooError).
        1613  +
    pub fn builder() -> crate::error::foo_error::Builder {
        1614  +
        crate::error::foo_error::Builder::default()
        1615  +
    }
        1616  +
}
        1617  +
/// See [`InternalServerError`](crate::error::InternalServerError).
        1618  +
pub mod internal_server_error {
        1619  +
        1620  +
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
        1621  +
    /// Holds one variant for each of the ways the builder can fail.
        1622  +
    #[allow(clippy::enum_variant_names)]
        1623  +
    pub enum ConstraintViolation {
        1624  +
        /// `message` was not provided but it is required when building `InternalServerError`.
        1625  +
        MissingMessage,
        1626  +
    }
        1627  +
    impl ::std::fmt::Display for ConstraintViolation {
        1628  +
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        1629  +
            match self {
        1630  +
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
        1631  +
            }
        1632  +
        }
        1633  +
    }
        1634  +
    impl ::std::error::Error for ConstraintViolation {}
        1635  +
    impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
        1636  +
        type Error = ConstraintViolation;
        1637  +
        1638  +
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1639  +
            builder.build()
        1640  +
        }
        1641  +
    }
        1642  +
    /// A builder for [`InternalServerError`](crate::error::InternalServerError).
        1643  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1644  +
    pub struct Builder {
        1645  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
        1646  +
    }
        1647  +
    impl Builder {
        1648  +
        #[allow(missing_docs)] // documentation missing in model
        1649  +
        pub fn message(mut self, input: ::std::string::String) -> Self {
        1650  +
            self.message = Some(input);
        1651  +
            self
        1652  +
        }
        1653  +
        /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
        1654  +
        ///
        1655  +
        /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
        1656  +
        ///
        1657  +
        pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
        1658  +
            self.build_enforcing_required_and_enum_traits()
        1659  +
        }
        1660  +
        fn build_enforcing_required_and_enum_traits(
        1661  +
            self,
        1662  +
        ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
        1663  +
            Ok(crate::error::InternalServerError {
        1664  +
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
        1665  +
            })
        1666  +
        }
        1667  +
    }
        1668  +
}
        1669  +
/// See [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        1670  +
pub mod error_with_members {
        1671  +
        1672  +
    impl ::std::convert::From<Builder> for crate::error::ErrorWithMembers {
        1673  +
        fn from(builder: Builder) -> Self {
        1674  +
            builder.build()
        1675  +
        }
        1676  +
    }
        1677  +
    /// A builder for [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        1678  +
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
        1679  +
    pub struct Builder {
        1680  +
        pub(crate) code: ::std::option::Option<::std::string::String>,
        1681  +
        pub(crate) complex_data: ::std::option::Option<crate::model::KitchenSink>,
        1682  +
        pub(crate) integer_field: ::std::option::Option<i32>,
        1683  +
        pub(crate) list_field: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        1684  +
        pub(crate) map_field: ::std::option::Option<
        1685  +
            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
        1686  +
        >,
        1687  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
        1688  +
        pub(crate) string_field: ::std::option::Option<::std::string::String>,
        1689  +
    }
        1690  +
    impl Builder {
        1691  +
        #[allow(missing_docs)] // documentation missing in model
        1692  +
        pub fn code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        1693  +
            self.code = input;
        1694  +
            self
        1695  +
        }
        1696  +
        #[allow(missing_docs)] // documentation missing in model
        1697  +
        pub fn complex_data(
        1698  +
            mut self,
        1699  +
            input: ::std::option::Option<crate::model::KitchenSink>,
        1700  +
        ) -> Self {
        1701  +
            self.complex_data = input;
        1702  +
            self
        1703  +
        }
        1704  +
        #[allow(missing_docs)] // documentation missing in model
        1705  +
        pub fn integer_field(mut self, input: ::std::option::Option<i32>) -> Self {
        1706  +
            self.integer_field = input;
        1707  +
            self
        1708  +
        }
        1709  +
        #[allow(missing_docs)] // documentation missing in model
        1710  +
        pub fn list_field(
        1711  +
            mut self,
        1712  +
            input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
        1713  +
        ) -> Self {
        1714  +
            self.list_field = input;
        1715  +
            self
        1716  +
        }
        1717  +
        #[allow(missing_docs)] // documentation missing in model
        1718  +
        pub fn map_field(
        1719  +
            mut self,
        1720  +
            input: ::std::option::Option<
        1721  +
                ::std::collections::HashMap<::std::string::String, ::std::string::String>,
        1722  +
            >,
        1723  +
        ) -> Self {
        1724  +
            self.map_field = input;
        1725  +
            self
 1589   1726   
        }
 1590         -
    }
 1591         -
}
 1592         -
impl ::std::error::Error for EmptyOperationError {
 1593         -
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
 1594         -
        match &self {
 1595         -
            EmptyOperationError::InternalServerError(_inner) => Some(_inner),
        1727  +
        #[allow(missing_docs)] // documentation missing in model
        1728  +
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        1729  +
            self.message = input;
        1730  +
            self
 1596   1731   
        }
 1597         -
    }
 1598         -
}
 1599         -
impl ::std::convert::From<crate::error::InternalServerError> for crate::error::EmptyOperationError {
 1600         -
    fn from(variant: crate::error::InternalServerError) -> crate::error::EmptyOperationError {
 1601         -
        Self::InternalServerError(variant)
 1602         -
    }
 1603         -
}
 1604         -
 1605         -
impl ::std::convert::From<::pyo3::PyErr> for crate::error::EmptyOperationError {
 1606         -
    fn from(variant: ::pyo3::PyErr) -> crate::error::EmptyOperationError {
 1607         -
        ::pyo3::Python::with_gil(|py| {
 1608         -
            let error = variant.value(py);
 1609         -
 1610         -
            crate::error::InternalServerError {
 1611         -
                message: error.to_string(),
 1612         -
            }
 1613         -
            .into()
 1614         -
        })
 1615         -
    }
 1616         -
}
 1617         -
/// See [`InternalServerError`](crate::error::InternalServerError).
 1618         -
pub mod internal_server_error {
 1619         -
 1620         -
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1621         -
    /// Holds one variant for each of the ways the builder can fail.
 1622         -
    #[allow(clippy::enum_variant_names)]
 1623         -
    pub enum ConstraintViolation {
 1624         -
        /// `message` was not provided but it is required when building `InternalServerError`.
 1625         -
        MissingMessage,
 1626         -
    }
 1627         -
    impl ::std::fmt::Display for ConstraintViolation {
 1628         -
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
 1629         -
            match self {
 1630         -
                ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `InternalServerError`"),
        1732  +
        /// abc
        1733  +
        pub fn string_field(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        1734  +
            self.string_field = input;
        1735  +
            self
        1736  +
        }
        1737  +
        /// Consumes the builder and constructs a [`ErrorWithMembers`](crate::error::ErrorWithMembers).
        1738  +
        pub fn build(self) -> crate::error::ErrorWithMembers {
        1739  +
            self.build_enforcing_required_and_enum_traits()
        1740  +
        }
        1741  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ErrorWithMembers {
        1742  +
            crate::error::ErrorWithMembers {
        1743  +
                code: self.code,
        1744  +
                complex_data: self.complex_data,
        1745  +
                integer_field: self.integer_field,
        1746  +
                list_field: self.list_field,
        1747  +
                map_field: self.map_field,
        1748  +
                message: self.message,
        1749  +
                string_field: self.string_field,
 1631   1750   
            }
 1632   1751   
        }
 1633   1752   
    }
 1634         -
    impl ::std::error::Error for ConstraintViolation {}
 1635         -
    impl ::std::convert::TryFrom<Builder> for crate::error::InternalServerError {
 1636         -
        type Error = ConstraintViolation;
        1753  +
}
        1754  +
/// See [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        1755  +
pub mod error_without_members {
 1637   1756   
 1638         -
        fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
        1757  +
    impl ::std::convert::From<Builder> for crate::error::ErrorWithoutMembers {
        1758  +
        fn from(builder: Builder) -> Self {
 1639   1759   
            builder.build()
 1640   1760   
        }
 1641   1761   
    }
 1642         -
    /// A builder for [`InternalServerError`](crate::error::InternalServerError).
        1762  +
    /// A builder for [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
 1643   1763   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1644         -
    pub struct Builder {
 1645         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1646         -
    }
        1764  +
    pub struct Builder {}
 1647   1765   
    impl Builder {
 1648         -
        #[allow(missing_docs)] // documentation missing in model
 1649         -
        pub fn message(mut self, input: ::std::string::String) -> Self {
 1650         -
            self.message = Some(input);
 1651         -
            self
 1652         -
        }
 1653         -
        /// Consumes the builder and constructs a [`InternalServerError`](crate::error::InternalServerError).
 1654         -
        ///
 1655         -
        /// The builder fails to construct a [`InternalServerError`](crate::error::InternalServerError) if you do not provide a value for all non-`Option`al members.
 1656         -
        ///
 1657         -
        pub fn build(self) -> Result<crate::error::InternalServerError, ConstraintViolation> {
        1766  +
        /// Consumes the builder and constructs a [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        1767  +
        pub fn build(self) -> crate::error::ErrorWithoutMembers {
 1658   1768   
            self.build_enforcing_required_and_enum_traits()
 1659   1769   
        }
 1660         -
        fn build_enforcing_required_and_enum_traits(
 1661         -
            self,
 1662         -
        ) -> Result<crate::error::InternalServerError, ConstraintViolation> {
 1663         -
            Ok(crate::error::InternalServerError {
 1664         -
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1665         -
            })
        1770  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ErrorWithoutMembers {
        1771  +
            crate::error::ErrorWithoutMembers {}
 1666   1772   
        }
 1667   1773   
    }
 1668   1774   
}
 1669   1775   
/// See [`ValidationException`](crate::error::ValidationException).
 1670   1776   
pub mod validation_exception {
 1671   1777   
 1672   1778   
    #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
 1673   1779   
    /// Holds one variant for each of the ways the builder can fail.
 1674   1780   
    #[allow(clippy::enum_variant_names)]
 1675   1781   
    pub enum ConstraintViolation {
@@ -1702,1808 +1928,1928 @@
 1722   1828   
        fn build_enforcing_required_and_enum_traits(
 1723   1829   
            self,
 1724   1830   
        ) -> Result<crate::error::ValidationException, ConstraintViolation> {
 1725   1831   
            Ok(crate::error::ValidationException {
 1726   1832   
                message: self.message.ok_or(ConstraintViolation::MissingMessage)?,
 1727   1833   
                field_list: self.field_list,
 1728   1834   
            })
 1729   1835   
        }
 1730   1836   
    }
 1731   1837   
}
 1732         -
/// See [`FooError`](crate::error::FooError).
 1733         -
pub mod foo_error {
        1838  +
/// See [`InvalidGreeting`](crate::error::InvalidGreeting).
        1839  +
pub mod invalid_greeting {
 1734   1840   
 1735         -
    impl ::std::convert::From<Builder> for crate::error::FooError {
        1841  +
    impl ::std::convert::From<Builder> for crate::error::InvalidGreeting {
 1736   1842   
        fn from(builder: Builder) -> Self {
 1737   1843   
            builder.build()
 1738   1844   
        }
 1739   1845   
    }
 1740         -
    /// A builder for [`FooError`](crate::error::FooError).
        1846  +
    /// A builder for [`InvalidGreeting`](crate::error::InvalidGreeting).
 1741   1847   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1742         -
    pub struct Builder {}
        1848  +
    pub struct Builder {
        1849  +
        pub(crate) message: ::std::option::Option<::std::string::String>,
        1850  +
    }
 1743   1851   
    impl Builder {
 1744         -
        /// Consumes the builder and constructs a [`FooError`](crate::error::FooError).
 1745         -
        pub fn build(self) -> crate::error::FooError {
        1852  +
        #[allow(missing_docs)] // documentation missing in model
        1853  +
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        1854  +
            self.message = input;
        1855  +
            self
        1856  +
        }
        1857  +
        /// Consumes the builder and constructs a [`InvalidGreeting`](crate::error::InvalidGreeting).
        1858  +
        pub fn build(self) -> crate::error::InvalidGreeting {
 1746   1859   
            self.build_enforcing_required_and_enum_traits()
 1747   1860   
        }
 1748         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::FooError {
 1749         -
            crate::error::FooError {}
        1861  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::InvalidGreeting {
        1862  +
            crate::error::InvalidGreeting {
        1863  +
                message: self.message,
        1864  +
            }
 1750   1865   
        }
 1751   1866   
    }
 1752   1867   
}
 1753   1868   
/// See [`ComplexError`](crate::error::ComplexError).
 1754   1869   
pub mod complex_error {
 1755   1870   
 1756   1871   
    impl ::std::convert::From<Builder> for crate::error::ComplexError {
 1757   1872   
        fn from(builder: Builder) -> Self {
 1758   1873   
            builder.build()
 1759   1874   
        }
 1760   1875   
    }
 1761   1876   
    /// A builder for [`ComplexError`](crate::error::ComplexError).
 1762   1877   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1763   1878   
    pub struct Builder {
 1764   1879   
        pub(crate) top_level: ::std::option::Option<::std::string::String>,
 1765   1880   
        pub(crate) nested: ::std::option::Option<crate::model::ComplexNestedErrorData>,
 1766   1881   
    }
 1767   1882   
    impl Builder {
 1768   1883   
        #[allow(missing_docs)] // documentation missing in model
 1769   1884   
        pub fn top_level(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1770   1885   
            self.top_level = input;
 1771   1886   
            self
 1772   1887   
        }
 1773   1888   
        #[allow(missing_docs)] // documentation missing in model
 1774   1889   
        pub fn nested(
 1775   1890   
            mut self,
 1776   1891   
            input: ::std::option::Option<crate::model::ComplexNestedErrorData>,
 1777   1892   
        ) -> Self {
 1778   1893   
            self.nested = input;
 1779   1894   
            self
 1780   1895   
        }
 1781   1896   
        /// Consumes the builder and constructs a [`ComplexError`](crate::error::ComplexError).
 1782   1897   
        pub fn build(self) -> crate::error::ComplexError {
 1783   1898   
            self.build_enforcing_required_and_enum_traits()
 1784   1899   
        }
 1785   1900   
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ComplexError {
 1786   1901   
            crate::error::ComplexError {
 1787   1902   
                top_level: self.top_level,
 1788   1903   
                nested: self.nested,
 1789   1904   
            }
 1790   1905   
        }
 1791   1906   
    }
 1792   1907   
}
 1793         -
/// See [`InvalidGreeting`](crate::error::InvalidGreeting).
 1794         -
pub mod invalid_greeting {
 1795         -
 1796         -
    impl ::std::convert::From<Builder> for crate::error::InvalidGreeting {
 1797         -
        fn from(builder: Builder) -> Self {
 1798         -
            builder.build()
 1799         -
        }
 1800         -
    }
 1801         -
    /// A builder for [`InvalidGreeting`](crate::error::InvalidGreeting).
 1802         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1803         -
    pub struct Builder {
 1804         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1805         -
    }
 1806         -
    impl Builder {
 1807         -
        #[allow(missing_docs)] // documentation missing in model
 1808         -
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1809         -
            self.message = input;
 1810         -
            self
 1811         -
        }
 1812         -
        /// Consumes the builder and constructs a [`InvalidGreeting`](crate::error::InvalidGreeting).
 1813         -
        pub fn build(self) -> crate::error::InvalidGreeting {
 1814         -
            self.build_enforcing_required_and_enum_traits()
 1815         -
        }
 1816         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::InvalidGreeting {
 1817         -
            crate::error::InvalidGreeting {
 1818         -
                message: self.message,
 1819         -
            }
 1820         -
        }
 1821         -
    }
 1822         -
}
 1823         -
/// See [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
 1824         -
pub mod error_without_members {
        1908  +
/// See [`FooError`](crate::error::FooError).
        1909  +
pub mod foo_error {
 1825   1910   
 1826         -
    impl ::std::convert::From<Builder> for crate::error::ErrorWithoutMembers {
        1911  +
    impl ::std::convert::From<Builder> for crate::error::FooError {
 1827   1912   
        fn from(builder: Builder) -> Self {
 1828   1913   
            builder.build()
 1829   1914   
        }
 1830   1915   
    }
 1831         -
    /// A builder for [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
        1916  +
    /// A builder for [`FooError`](crate::error::FooError).
 1832   1917   
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1833   1918   
    pub struct Builder {}
 1834   1919   
    impl Builder {
 1835         -
        /// Consumes the builder and constructs a [`ErrorWithoutMembers`](crate::error::ErrorWithoutMembers).
 1836         -
        pub fn build(self) -> crate::error::ErrorWithoutMembers {
 1837         -
            self.build_enforcing_required_and_enum_traits()
 1838         -
        }
 1839         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ErrorWithoutMembers {
 1840         -
            crate::error::ErrorWithoutMembers {}
 1841         -
        }
 1842         -
    }
 1843         -
}
 1844         -
/// See [`ErrorWithMembers`](crate::error::ErrorWithMembers).
 1845         -
pub mod error_with_members {
 1846         -
 1847         -
    impl ::std::convert::From<Builder> for crate::error::ErrorWithMembers {
 1848         -
        fn from(builder: Builder) -> Self {
 1849         -
            builder.build()
 1850         -
        }
 1851         -
    }
 1852         -
    /// A builder for [`ErrorWithMembers`](crate::error::ErrorWithMembers).
 1853         -
    #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
 1854         -
    pub struct Builder {
 1855         -
        pub(crate) code: ::std::option::Option<::std::string::String>,
 1856         -
        pub(crate) complex_data: ::std::option::Option<crate::model::KitchenSink>,
 1857         -
        pub(crate) integer_field: ::std::option::Option<i32>,
 1858         -
        pub(crate) list_field: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
 1859         -
        pub(crate) map_field: ::std::option::Option<
 1860         -
            ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1861         -
        >,
 1862         -
        pub(crate) message: ::std::option::Option<::std::string::String>,
 1863         -
        pub(crate) string_field: ::std::option::Option<::std::string::String>,
 1864         -
    }
 1865         -
    impl Builder {
 1866         -
        #[allow(missing_docs)] // documentation missing in model
 1867         -
        pub fn code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1868         -
            self.code = input;
 1869         -
            self
 1870         -
        }
 1871         -
        #[allow(missing_docs)] // documentation missing in model
 1872         -
        pub fn complex_data(
 1873         -
            mut self,
 1874         -
            input: ::std::option::Option<crate::model::KitchenSink>,
 1875         -
        ) -> Self {
 1876         -
            self.complex_data = input;
 1877         -
            self
 1878         -
        }
 1879         -
        #[allow(missing_docs)] // documentation missing in model
 1880         -
        pub fn integer_field(mut self, input: ::std::option::Option<i32>) -> Self {
 1881         -
            self.integer_field = input;
 1882         -
            self
 1883         -
        }
 1884         -
        #[allow(missing_docs)] // documentation missing in model
 1885         -
        pub fn list_field(
 1886         -
            mut self,
 1887         -
            input: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
 1888         -
        ) -> Self {
 1889         -
            self.list_field = input;
 1890         -
            self
 1891         -
        }
 1892         -
        #[allow(missing_docs)] // documentation missing in model
 1893         -
        pub fn map_field(
 1894         -
            mut self,
 1895         -
            input: ::std::option::Option<
 1896         -
                ::std::collections::HashMap<::std::string::String, ::std::string::String>,
 1897         -
            >,
 1898         -
        ) -> Self {
 1899         -
            self.map_field = input;
 1900         -
            self
 1901         -
        }
 1902         -
        #[allow(missing_docs)] // documentation missing in model
 1903         -
        pub fn message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1904         -
            self.message = input;
 1905         -
            self
 1906         -
        }
 1907         -
        /// abc
 1908         -
        pub fn string_field(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
 1909         -
            self.string_field = input;
 1910         -
            self
 1911         -
        }
 1912         -
        /// Consumes the builder and constructs a [`ErrorWithMembers`](crate::error::ErrorWithMembers).
 1913         -
        pub fn build(self) -> crate::error::ErrorWithMembers {
        1920  +
        /// Consumes the builder and constructs a [`FooError`](crate::error::FooError).
        1921  +
        pub fn build(self) -> crate::error::FooError {
 1914   1922   
            self.build_enforcing_required_and_enum_traits()
 1915   1923   
        }
 1916         -
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::ErrorWithMembers {
 1917         -
            crate::error::ErrorWithMembers {
 1918         -
                code: self.code,
 1919         -
                complex_data: self.complex_data,
 1920         -
                integer_field: self.integer_field,
 1921         -
                list_field: self.list_field,
 1922         -
                map_field: self.map_field,
 1923         -
                message: self.message,
 1924         -
                string_field: self.string_field,
 1925         -
            }
        1924  +
        fn build_enforcing_required_and_enum_traits(self) -> crate::error::FooError {
        1925  +
            crate::error::FooError {}
 1926   1926   
        }
 1927   1927   
    }
 1928   1928   
}