Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

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

@@ -375,375 +414,414 @@
  395    395   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  396    396   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  397    397   
    ) -> Self {
  398    398   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  399    399   
            source,
  400    400   
            meta: meta.unwrap_or_default(),
  401    401   
        })
  402    402   
    }
  403    403   
}
  404    404   
  405         -
pub use crate::operation::null_operation::_null_operation_output::NullOperationOutput;
  406         -
  407    405   
pub use crate::operation::null_operation::_null_operation_input::NullOperationInput;
  408    406   
         407  +
pub use crate::operation::null_operation::_null_operation_output::NullOperationOutput;
         408  +
  409    409   
mod _null_operation_input;
  410    410   
  411    411   
mod _null_operation_output;
  412    412   
  413    413   
/// Builders
  414    414   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/null_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::null_operation::_null_operation_output::NullOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::null_operation::_null_operation_input::NullOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::null_operation::_null_operation_output::NullOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::null_operation::builders::NullOperationInputBuilder {
    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::null_operation::NullOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::null_operation::NullOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -384,384 +423,423 @@
  404    404   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  405    405   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  406    406   
    ) -> Self {
  407    407   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  408    408   
            source,
  409    409   
            meta: meta.unwrap_or_default(),
  410    410   
        })
  411    411   
    }
  412    412   
}
  413    413   
  414         -
pub use crate::operation::operation_with_optional_input_output::_operation_with_optional_input_output_output::OperationWithOptionalInputOutputOutput;
  415         -
  416    414   
pub use crate::operation::operation_with_optional_input_output::_operation_with_optional_input_output_input::OperationWithOptionalInputOutputInput;
  417    415   
         416  +
pub use crate::operation::operation_with_optional_input_output::_operation_with_optional_input_output_output::OperationWithOptionalInputOutputOutput;
         417  +
  418    418   
mod _operation_with_optional_input_output_input;
  419    419   
  420    420   
mod _operation_with_optional_input_output_output;
  421    421   
  422    422   
/// Builders
  423    423   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/operation_with_optional_input_output/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_optional_input_output::_operation_with_optional_input_output_output::OperationWithOptionalInputOutputOutputBuilder;
    3         -
    4      2   
pub use crate::operation::operation_with_optional_input_output::_operation_with_optional_input_output_input::OperationWithOptionalInputOutputInputBuilder;
    5      3   
           4  +
pub use crate::operation::operation_with_optional_input_output::_operation_with_optional_input_output_output::OperationWithOptionalInputOutputOutputBuilder;
           5  +
    6      6   
impl crate::operation::operation_with_optional_input_output::builders::OperationWithOptionalInputOutputInputBuilder {
    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_optional_input_output::OperationWithOptionalInputOutputOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::operation_with_optional_input_output::OperationWithOptionalInputOutputError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -409,409 +448,448 @@
  429    429   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  430    430   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  431    431   
    ) -> Self {
  432    432   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  433    433   
            source,
  434    434   
            meta: meta.unwrap_or_default(),
  435    435   
        })
  436    436   
    }
  437    437   
}
  438    438   
  439         -
pub use crate::operation::put_and_get_inline_documents::_put_and_get_inline_documents_output::PutAndGetInlineDocumentsOutput;
  440         -
  441    439   
pub use crate::operation::put_and_get_inline_documents::_put_and_get_inline_documents_input::PutAndGetInlineDocumentsInput;
  442    440   
         441  +
pub use crate::operation::put_and_get_inline_documents::_put_and_get_inline_documents_output::PutAndGetInlineDocumentsOutput;
         442  +
  443    443   
mod _put_and_get_inline_documents_input;
  444    444   
  445    445   
mod _put_and_get_inline_documents_output;
  446    446   
  447    447   
/// Builders
  448    448   
pub mod builders;

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/put_and_get_inline_documents/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_and_get_inline_documents::_put_and_get_inline_documents_output::PutAndGetInlineDocumentsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::put_and_get_inline_documents::_put_and_get_inline_documents_input::PutAndGetInlineDocumentsInputBuilder;
    5      3   
           4  +
pub use crate::operation::put_and_get_inline_documents::_put_and_get_inline_documents_output::PutAndGetInlineDocumentsOutputBuilder;
           5  +
    6      6   
impl crate::operation::put_and_get_inline_documents::builders::PutAndGetInlineDocumentsInputBuilder {
    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_and_get_inline_documents::PutAndGetInlineDocumentsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::put_and_get_inline_documents::PutAndGetInlineDocumentsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/json_rpc11/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_rpc11/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_rpc11/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_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;