Client Test

Client Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e

Files changed:

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_nested_structure/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::operation_with_nested_structure::_operation_with_nested_structure_output::OperationWithNestedStructureOutputBuilder;
    3         -
    4      2   
pub use crate::operation::operation_with_nested_structure::_operation_with_nested_structure_input::OperationWithNestedStructureInputBuilder;
    5      3   
           4  +
pub use crate::operation::operation_with_nested_structure::_operation_with_nested_structure_output::OperationWithNestedStructureOutputBuilder;
           5  +
    6      6   
impl crate::operation::operation_with_nested_structure::builders::OperationWithNestedStructureInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::operation_with_nested_structure::OperationWithNestedStructureOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::operation_with_nested_structure::OperationWithNestedStructureError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_required_members.rs

@@ -419,419 +458,458 @@
  439    439   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  440    440   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  441    441   
    ) -> Self {
  442    442   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  443    443   
            source,
  444    444   
            meta: meta.unwrap_or_default(),
  445    445   
        })
  446    446   
    }
  447    447   
}
  448    448   
  449         -
pub use crate::operation::operation_with_required_members::_operation_with_required_members_output::OperationWithRequiredMembersOutput;
  450         -
  451    449   
pub use crate::operation::operation_with_required_members::_operation_with_required_members_input::OperationWithRequiredMembersInput;
  452    450   
         451  +
pub use crate::operation::operation_with_required_members::_operation_with_required_members_output::OperationWithRequiredMembersOutput;
         452  +
  453    453   
mod _operation_with_required_members_input;
  454    454   
  455    455   
mod _operation_with_required_members_output;
  456    456   
  457    457   
/// Builders
  458    458   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_required_members/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::operation_with_required_members::_operation_with_required_members_output::OperationWithRequiredMembersOutputBuilder;
    3         -
    4      2   
pub use crate::operation::operation_with_required_members::_operation_with_required_members_input::OperationWithRequiredMembersInputBuilder;
    5      3   
           4  +
pub use crate::operation::operation_with_required_members::_operation_with_required_members_output::OperationWithRequiredMembersOutputBuilder;
           5  +
    6      6   
impl crate::operation::operation_with_required_members::builders::OperationWithRequiredMembersInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::operation_with_required_members::OperationWithRequiredMembersOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::operation_with_required_members::OperationWithRequiredMembersError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_required_members_with_defaults.rs

@@ -440,440 +479,479 @@
  460    460   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  461    461   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  462    462   
    ) -> Self {
  463    463   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  464    464   
            source,
  465    465   
            meta: meta.unwrap_or_default(),
  466    466   
        })
  467    467   
    }
  468    468   
}
  469    469   
  470         -
pub use crate::operation::operation_with_required_members_with_defaults::_operation_with_required_members_with_defaults_output::OperationWithRequiredMembersWithDefaultsOutput;
  471         -
  472    470   
pub use crate::operation::operation_with_required_members_with_defaults::_operation_with_required_members_with_defaults_input::OperationWithRequiredMembersWithDefaultsInput;
  473    471   
         472  +
pub use crate::operation::operation_with_required_members_with_defaults::_operation_with_required_members_with_defaults_output::OperationWithRequiredMembersWithDefaultsOutput;
         473  +
  474    474   
mod _operation_with_required_members_with_defaults_input;
  475    475   
  476    476   
mod _operation_with_required_members_with_defaults_output;
  477    477   
  478    478   
/// Builders
  479    479   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/operation_with_required_members_with_defaults/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::operation_with_required_members_with_defaults::_operation_with_required_members_with_defaults_output::OperationWithRequiredMembersWithDefaultsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::operation_with_required_members_with_defaults::_operation_with_required_members_with_defaults_input::OperationWithRequiredMembersWithDefaultsInputBuilder;
    5      3   
           4  +
pub use crate::operation::operation_with_required_members_with_defaults::_operation_with_required_members_with_defaults_output::OperationWithRequiredMembersWithDefaultsOutputBuilder;
           5  +
    6      6   
impl crate::operation::operation_with_required_members_with_defaults::builders::OperationWithRequiredMembersWithDefaultsInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::operation_with_required_members_with_defaults::OperationWithRequiredMembersWithDefaultsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::operation_with_required_members_with_defaults::OperationWithRequiredMembersWithDefaultsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/put_with_content_encoding.rs

@@ -378,378 +417,417 @@
  398    398   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  399    399   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  400    400   
    ) -> Self {
  401    401   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  402    402   
            source,
  403    403   
            meta: meta.unwrap_or_default(),
  404    404   
        })
  405    405   
    }
  406    406   
}
  407    407   
  408         -
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutput;
  409         -
  410    408   
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_input::PutWithContentEncodingInput;
  411    409   
         410  +
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutput;
         411  +
  412    412   
mod _put_with_content_encoding_input;
  413    413   
  414    414   
mod _put_with_content_encoding_output;
  415    415   
  416    416   
/// Builders
  417    417   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/put_with_content_encoding/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutputBuilder;
    3         -
    4      2   
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_input::PutWithContentEncodingInputBuilder;
    5      3   
           4  +
pub use crate::operation::put_with_content_encoding::_put_with_content_encoding_output::PutWithContentEncodingOutputBuilder;
           5  +
    6      6   
impl crate::operation::put_with_content_encoding::builders::PutWithContentEncodingInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::put_with_content_encoding::PutWithContentEncodingOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::put_with_content_encoding::PutWithContentEncodingError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/query_incompatible_operation.rs

@@ -340,340 +379,379 @@
  360    360   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  361    361   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  362    362   
    ) -> Self {
  363    363   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  364    364   
            source,
  365    365   
            meta: meta.unwrap_or_default(),
  366    366   
        })
  367    367   
    }
  368    368   
}
  369    369   
  370         -
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_output::QueryIncompatibleOperationOutput;
  371         -
  372    370   
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_input::QueryIncompatibleOperationInput;
  373    371   
         372  +
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_output::QueryIncompatibleOperationOutput;
         373  +
  374    374   
mod _query_incompatible_operation_input;
  375    375   
  376    376   
mod _query_incompatible_operation_output;
  377    377   
  378    378   
/// Builders
  379    379   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/query_incompatible_operation/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_output::QueryIncompatibleOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_input::QueryIncompatibleOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::query_incompatible_operation::_query_incompatible_operation_output::QueryIncompatibleOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::query_incompatible_operation::builders::QueryIncompatibleOperationInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::query_incompatible_operation::QueryIncompatibleOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::query_incompatible_operation::QueryIncompatibleOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/simple_scalar_properties.rs

@@ -617,617 +656,656 @@
  637    637   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  638    638   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  639    639   
    ) -> Self {
  640    640   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  641    641   
            source,
  642    642   
            meta: meta.unwrap_or_default(),
  643    643   
        })
  644    644   
    }
  645    645   
}
  646    646   
  647         -
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
  648         -
  649    647   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
  650    648   
         649  +
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
         650  +
  651    651   
mod _simple_scalar_properties_input;
  652    652   
  653    653   
mod _simple_scalar_properties_output;
  654    654   
  655    655   
/// Builders
  656    656   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/operation/simple_scalar_properties/builders.rs

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutputBuilder;
    3         -
    4      2   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInputBuilder;
    5      3   
           4  +
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutputBuilder;
           5  +
    6      6   
impl crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesInputBuilder {
    7      7   
    /// Sends a request with this input using the given client.
    8      8   
    pub async fn send_with(
    9      9   
        self,
   10     10   
        client: &crate::Client,
   11     11   
    ) -> ::std::result::Result<
   12     12   
        crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types.rs

@@ -1,1 +50,50 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_required_enum::RequiredEnum;
           2  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
    3      3   
    4         -
pub use crate::types::_dialog::Dialog;
           4  +
pub use crate::types::_my_union::MyUnion;
    5      5   
    6         -
pub use crate::types::_farewell::Farewell;
           6  +
pub use crate::types::_defaults::Defaults;
    7      7   
    8         -
pub use crate::types::_top_level::TopLevel;
           8  +
pub use crate::types::_client_optional_defaults::ClientOptionalDefaults;
    9      9   
   10     10   
pub use crate::types::_test_enum::TestEnum;
   11     11   
   12         -
pub use crate::types::_client_optional_defaults::ClientOptionalDefaults;
   13         -
   14         -
pub use crate::types::_defaults::Defaults;
          12  +
pub use crate::types::_top_level::TopLevel;
   15     13   
   16         -
pub use crate::types::_my_union::MyUnion;
          14  +
pub use crate::types::_dialog::Dialog;
   17     15   
   18         -
pub use crate::types::_greeting_struct::GreetingStruct;
          16  +
pub use crate::types::_required_enum::RequiredEnum;
   19     17   
   20     18   
pub use crate::types::_foo_enum::FooEnum;
   21     19   
   22         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
          20  +
pub use crate::types::_greeting_struct::GreetingStruct;
          21  +
          22  +
pub use crate::types::_farewell::Farewell;
   23     23   
   24     24   
mod _client_optional_defaults;
   25     25   
   26     26   
mod _complex_nested_error_data;
   27     27   
   28     28   
mod _defaults;
   29     29   
   30     30   
mod _dialog;
   31     31   
   32     32   
mod _farewell;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types/builders.rs

@@ -1,1 +0,14 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_dialog::DialogBuilder;
    3         -
    4         -
pub use crate::types::_farewell::FarewellBuilder;
           2  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorDataBuilder;
    5      3   
    6         -
pub use crate::types::_top_level::TopLevelBuilder;
           4  +
pub use crate::types::_defaults::DefaultsBuilder;
    7      5   
    8      6   
pub use crate::types::_client_optional_defaults::ClientOptionalDefaultsBuilder;
    9      7   
   10         -
pub use crate::types::_defaults::DefaultsBuilder;
           8  +
pub use crate::types::_top_level::TopLevelBuilder;
           9  +
          10  +
pub use crate::types::_dialog::DialogBuilder;
   11     11   
   12     12   
pub use crate::types::_greeting_struct::GreetingStructBuilder;
   13     13   
   14         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorDataBuilder;
          14  +
pub use crate::types::_farewell::FarewellBuilder;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types/error.rs

@@ -1,1 +15,15 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_foo_error::FooError;
           2  +
pub use crate::types::error::_invalid_greeting::InvalidGreeting;
    3      3   
    4      4   
pub use crate::types::error::_complex_error::ComplexError;
    5      5   
    6         -
pub use crate::types::error::_invalid_greeting::InvalidGreeting;
           6  +
pub use crate::types::error::_foo_error::FooError;
    7      7   
    8      8   
mod _complex_error;
    9      9   
   10     10   
mod _foo_error;
   11     11   
   12     12   
mod _invalid_greeting;
   13     13   
   14     14   
/// Builders
   15     15   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc10/rust-client-codegen/src/types/error/builders.rs

@@ -1,1 +0,6 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_foo_error::FooErrorBuilder;
           2  +
pub use crate::types::error::_invalid_greeting::InvalidGreetingBuilder;
    3      3   
    4      4   
pub use crate::types::error::_complex_error::ComplexErrorBuilder;
    5      5   
    6         -
pub use crate::types::error::_invalid_greeting::InvalidGreetingBuilder;
           6  +
pub use crate::types::error::_foo_error::FooErrorBuilder;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/content_type_parameters.rs

@@ -305,305 +344,344 @@
  325    325   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  326    326   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  327    327   
    ) -> Self {
  328    328   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  329    329   
            source,
  330    330   
            meta: meta.unwrap_or_default(),
  331    331   
        })
  332    332   
    }
  333    333   
}
  334    334   
  335         -
pub use crate::operation::content_type_parameters::_content_type_parameters_output::ContentTypeParametersOutput;
  336         -
  337    335   
pub use crate::operation::content_type_parameters::_content_type_parameters_input::ContentTypeParametersInput;
  338    336   
         337  +
pub use crate::operation::content_type_parameters::_content_type_parameters_output::ContentTypeParametersOutput;
         338  +
  339    339   
mod _content_type_parameters_input;
  340    340   
  341    341   
mod _content_type_parameters_output;
  342    342   
  343    343   
/// Builders
  344    344   
pub mod builders;