Client Test

Client Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e

Files changed:

tmp-codegen-diff/codegen-client-test/json_rpc11/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_rpc11/rust-client-codegen/src/operation/sparse_nulls_operation.rs

@@ -498,498 +537,537 @@
  518    518   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  519    519   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  520    520   
    ) -> Self {
  521    521   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  522    522   
            source,
  523    523   
            meta: meta.unwrap_or_default(),
  524    524   
        })
  525    525   
    }
  526    526   
}
  527    527   
  528         -
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutput;
  529         -
  530    528   
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_input::SparseNullsOperationInput;
  531    529   
         530  +
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutput;
         531  +
  532    532   
mod _sparse_nulls_operation_input;
  533    533   
  534    534   
mod _sparse_nulls_operation_output;
  535    535   
  536    536   
/// Builders
  537    537   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/sparse_nulls_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::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_input::SparseNullsOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::sparse_nulls_operation::_sparse_nulls_operation_output::SparseNullsOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::sparse_nulls_operation::builders::SparseNullsOperationInputBuilder {
    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::sparse_nulls_operation::SparseNullsOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::sparse_nulls_operation::SparseNullsOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +38,38 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_my_union::MyUnion;
           2  +
pub use crate::types::_empty_struct::EmptyStruct;
    3      3   
    4         -
pub use crate::types::_greeting_struct::GreetingStruct;
           4  +
pub use crate::types::_kitchen_sink::KitchenSink;
    5      5   
    6         -
pub use crate::types::_foo_enum::FooEnum;
           6  +
pub use crate::types::_simple_struct::SimpleStruct;
    7      7   
    8         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
           8  +
pub use crate::types::_struct_with_json_name::StructWithJsonName;
    9      9   
   10         -
pub use crate::types::_kitchen_sink::KitchenSink;
          10  +
pub use crate::types::_foo_enum::FooEnum;
   11     11   
   12         -
pub use crate::types::_struct_with_json_name::StructWithJsonName;
          12  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
   13     13   
   14         -
pub use crate::types::_simple_struct::SimpleStruct;
          14  +
pub use crate::types::_my_union::MyUnion;
   15     15   
   16         -
pub use crate::types::_empty_struct::EmptyStruct;
          16  +
pub use crate::types::_greeting_struct::GreetingStruct;
   17     17   
   18     18   
mod _complex_nested_error_data;
   19     19   
   20     20   
mod _empty_struct;
   21     21   
   22     22   
mod _foo_enum;
   23     23   
   24     24   
mod _greeting_struct;
   25     25   
   26     26   
mod _kitchen_sink;

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

@@ -1,1 +0,12 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_greeting_struct::GreetingStructBuilder;
    3         -
    4         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorDataBuilder;
           2  +
pub use crate::types::_empty_struct::EmptyStructBuilder;
    5      3   
    6      4   
pub use crate::types::_kitchen_sink::KitchenSinkBuilder;
    7      5   
           6  +
pub use crate::types::_simple_struct::SimpleStructBuilder;
           7  +
    8      8   
pub use crate::types::_struct_with_json_name::StructWithJsonNameBuilder;
    9      9   
   10         -
pub use crate::types::_simple_struct::SimpleStructBuilder;
          10  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorDataBuilder;
   11     11   
   12         -
pub use crate::types::_empty_struct::EmptyStructBuilder;
          12  +
pub use crate::types::_greeting_struct::GreetingStructBuilder;

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

@@ -1,1 +23,23 @@
    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::_error_with_members::ErrorWithMembers;
    3      3   
    4         -
pub use crate::types::error::_complex_error::ComplexError;
           4  +
pub use crate::types::error::_error_without_members::ErrorWithoutMembers;
    5      5   
    6      6   
pub use crate::types::error::_invalid_greeting::InvalidGreeting;
    7      7   
    8         -
pub use crate::types::error::_error_without_members::ErrorWithoutMembers;
           8  +
pub use crate::types::error::_complex_error::ComplexError;
    9      9   
   10         -
pub use crate::types::error::_error_with_members::ErrorWithMembers;
          10  +
pub use crate::types::error::_foo_error::FooError;
   11     11   
   12     12   
mod _complex_error;
   13     13   
   14     14   
mod _error_with_members;
   15     15   
   16     16   
mod _error_without_members;
   17     17   
   18     18   
mod _foo_error;
   19     19   
   20     20   
mod _invalid_greeting;

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

@@ -1,1 +0,10 @@
    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::_error_with_members::ErrorWithMembersBuilder;
    3      3   
    4         -
pub use crate::types::error::_complex_error::ComplexErrorBuilder;
           4  +
pub use crate::types::error::_error_without_members::ErrorWithoutMembersBuilder;
    5      5   
    6      6   
pub use crate::types::error::_invalid_greeting::InvalidGreetingBuilder;
    7      7   
    8         -
pub use crate::types::error::_error_without_members::ErrorWithoutMembersBuilder;
           8  +
pub use crate::types::error::_complex_error::ComplexErrorBuilder;
    9      9   
   10         -
pub use crate::types::error::_error_with_members::ErrorWithMembersBuilder;
          10  +
pub use crate::types::error::_foo_error::FooErrorBuilder;

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/required_header_collection_operation.rs

@@ -311,311 +350,350 @@
  331    331   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  332    332   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  333    333   
    ) -> Self {
  334    334   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  335    335   
            source,
  336    336   
            meta: meta.unwrap_or_default(),
  337    337   
        })
  338    338   
    }
  339    339   
}
  340    340   
  341         -
pub use crate::operation::required_header_collection_operation::_required_header_collection_operation_output::RequiredHeaderCollectionOperationOutput;
  342         -
  343    341   
pub use crate::operation::required_header_collection_operation::_required_header_collection_operation_input::RequiredHeaderCollectionOperationInput;
  344    342   
         343  +
pub use crate::operation::required_header_collection_operation::_required_header_collection_operation_output::RequiredHeaderCollectionOperationOutput;
         344  +
  345    345   
mod _required_header_collection_operation_input;
  346    346   
  347    347   
mod _required_header_collection_operation_output;
  348    348   
  349    349   
/// Builders
  350    350   
pub mod builders;

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/required_header_collection_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::required_header_collection_operation::_required_header_collection_operation_output::RequiredHeaderCollectionOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::required_header_collection_operation::_required_header_collection_operation_input::RequiredHeaderCollectionOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::required_header_collection_operation::_required_header_collection_operation_output::RequiredHeaderCollectionOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::required_header_collection_operation::builders::RequiredHeaderCollectionOperationInputBuilder {
    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::required_header_collection_operation::RequiredHeaderCollectionOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::required_header_collection_operation::RequiredHeaderCollectionOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/required_inner_shape_operation.rs

@@ -310,310 +349,349 @@
  330    330   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  331    331   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  332    332   
    ) -> Self {
  333    333   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  334    334   
            source,
  335    335   
            meta: meta.unwrap_or_default(),
  336    336   
        })
  337    337   
    }
  338    338   
}
  339    339   
  340         -
pub use crate::operation::required_inner_shape_operation::_required_inner_shape_operation_output::RequiredInnerShapeOperationOutput;
  341         -
  342    340   
pub use crate::operation::required_inner_shape_operation::_required_inner_shape_operation_input::RequiredInnerShapeOperationInput;
  343    341   
         342  +
pub use crate::operation::required_inner_shape_operation::_required_inner_shape_operation_output::RequiredInnerShapeOperationOutput;
         343  +
  344    344   
mod _required_inner_shape_operation_input;
  345    345   
  346    346   
mod _required_inner_shape_operation_output;
  347    347   
  348    348   
/// Builders
  349    349   
pub mod builders;

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/required_inner_shape_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::required_inner_shape_operation::_required_inner_shape_operation_output::RequiredInnerShapeOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::required_inner_shape_operation::_required_inner_shape_operation_input::RequiredInnerShapeOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::required_inner_shape_operation::_required_inner_shape_operation_output::RequiredInnerShapeOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::required_inner_shape_operation::builders::RequiredInnerShapeOperationInputBuilder {
    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::required_inner_shape_operation::RequiredInnerShapeOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::required_inner_shape_operation::RequiredInnerShapeOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/response_code_default_operation.rs

@@ -336,336 +375,375 @@
  356    356   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  357    357   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  358    358   
    ) -> Self {
  359    359   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  360    360   
            source,
  361    361   
            meta: meta.unwrap_or_default(),
  362    362   
        })
  363    363   
    }
  364    364   
}
  365    365   
  366         -
pub use crate::operation::response_code_default_operation::_response_code_default_operation_output::ResponseCodeDefaultOperationOutput;
  367         -
  368    366   
pub use crate::operation::response_code_default_operation::_response_code_default_operation_input::ResponseCodeDefaultOperationInput;
  369    367   
         368  +
pub use crate::operation::response_code_default_operation::_response_code_default_operation_output::ResponseCodeDefaultOperationOutput;
         369  +
  370    370   
mod _response_code_default_operation_input;
  371    371   
  372    372   
mod _response_code_default_operation_output;
  373    373   
  374    374   
/// Builders
  375    375   
pub mod builders;

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/response_code_default_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::response_code_default_operation::_response_code_default_operation_output::ResponseCodeDefaultOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::response_code_default_operation::_response_code_default_operation_input::ResponseCodeDefaultOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::response_code_default_operation::_response_code_default_operation_output::ResponseCodeDefaultOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::response_code_default_operation::builders::ResponseCodeDefaultOperationInputBuilder {
    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::response_code_default_operation::ResponseCodeDefaultOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::response_code_default_operation::ResponseCodeDefaultOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/response_code_http_fallback_operation.rs

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

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/response_code_http_fallback_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::response_code_http_fallback_operation::_response_code_http_fallback_operation_output::ResponseCodeHttpFallbackOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::response_code_http_fallback_operation::_response_code_http_fallback_operation_input::ResponseCodeHttpFallbackOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::response_code_http_fallback_operation::_response_code_http_fallback_operation_output::ResponseCodeHttpFallbackOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::response_code_http_fallback_operation::builders::ResponseCodeHttpFallbackOperationInputBuilder {
    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::response_code_http_fallback_operation::ResponseCodeHttpFallbackOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::response_code_http_fallback_operation::ResponseCodeHttpFallbackOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/response_code_required_operation.rs

@@ -345,345 +384,384 @@
  365    365   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  366    366   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  367    367   
    ) -> Self {
  368    368   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  369    369   
            source,
  370    370   
            meta: meta.unwrap_or_default(),
  371    371   
        })
  372    372   
    }
  373    373   
}
  374    374   
  375         -
pub use crate::operation::response_code_required_operation::_response_code_required_operation_output::ResponseCodeRequiredOperationOutput;
  376         -
  377    375   
pub use crate::operation::response_code_required_operation::_response_code_required_operation_input::ResponseCodeRequiredOperationInput;
  378    376   
         377  +
pub use crate::operation::response_code_required_operation::_response_code_required_operation_output::ResponseCodeRequiredOperationOutput;
         378  +
  379    379   
mod _response_code_required_operation_input;
  380    380   
  381    381   
mod _response_code_required_operation_output;
  382    382   
  383    383   
/// Builders
  384    384   
pub mod builders;