Client Test

Client Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/operation_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_defaults::_operation_with_defaults_output::OperationWithDefaultsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::operation_with_defaults::_operation_with_defaults_input::OperationWithDefaultsInputBuilder;
    5      3   
           4  +
pub use crate::operation::operation_with_defaults::_operation_with_defaults_output::OperationWithDefaultsOutputBuilder;
           5  +
    6      6   
impl crate::operation::operation_with_defaults::builders::OperationWithDefaultsInputBuilder {
    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_defaults::OperationWithDefaultsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::operation_with_defaults::OperationWithDefaultsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/optional_input_output.rs

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/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::optional_input_output::_optional_input_output_output::OptionalInputOutputOutputBuilder;
    3         -
    4      2   
pub use crate::operation::optional_input_output::_optional_input_output_input::OptionalInputOutputInputBuilder;
    5      3   
           4  +
pub use crate::operation::optional_input_output::_optional_input_output_output::OptionalInputOutputOutputBuilder;
           5  +
    6      6   
impl crate::operation::optional_input_output::builders::OptionalInputOutputInputBuilder {
    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::optional_input_output::OptionalInputOutputOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::optional_input_output::OptionalInputOutputError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/recursive_shapes.rs

@@ -491,491 +530,530 @@
  511    511   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  512    512   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  513    513   
    ) -> Self {
  514    514   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  515    515   
            source,
  516    516   
            meta: meta.unwrap_or_default(),
  517    517   
        })
  518    518   
    }
  519    519   
}
  520    520   
  521         -
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutput;
  522         -
  523    521   
pub use crate::operation::recursive_shapes::_recursive_shapes_input::RecursiveShapesInput;
  524    522   
         523  +
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutput;
         524  +
  525    525   
mod _recursive_shapes_input;
  526    526   
  527    527   
mod _recursive_shapes_output;
  528    528   
  529    529   
/// Builders
  530    530   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/recursive_shapes/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::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutputBuilder;
    3         -
    4      2   
pub use crate::operation::recursive_shapes::_recursive_shapes_input::RecursiveShapesInputBuilder;
    5      3   
           4  +
pub use crate::operation::recursive_shapes::_recursive_shapes_output::RecursiveShapesOutputBuilder;
           5  +
    6      6   
impl crate::operation::recursive_shapes::builders::RecursiveShapesInputBuilder {
    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::recursive_shapes::RecursiveShapesOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::recursive_shapes::RecursiveShapesError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_dense_maps.rs

@@ -772,772 +811,811 @@
  792    792   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  793    793   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  794    794   
    ) -> Self {
  795    795   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  796    796   
            source,
  797    797   
            meta: meta.unwrap_or_default(),
  798    798   
        })
  799    799   
    }
  800    800   
}
  801    801   
  802         -
pub use crate::operation::rpc_v2_cbor_dense_maps::_rpc_v2_cbor_dense_maps_output::RpcV2CborDenseMapsOutput;
  803         -
  804    802   
pub use crate::operation::rpc_v2_cbor_dense_maps::_rpc_v2_cbor_dense_maps_input::RpcV2CborDenseMapsInput;
  805    803   
         804  +
pub use crate::operation::rpc_v2_cbor_dense_maps::_rpc_v2_cbor_dense_maps_output::RpcV2CborDenseMapsOutput;
         805  +
  806    806   
mod _rpc_v2_cbor_dense_maps_input;
  807    807   
  808    808   
mod _rpc_v2_cbor_dense_maps_output;
  809    809   
  810    810   
/// Builders
  811    811   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_dense_maps/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::rpc_v2_cbor_dense_maps::_rpc_v2_cbor_dense_maps_output::RpcV2CborDenseMapsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::rpc_v2_cbor_dense_maps::_rpc_v2_cbor_dense_maps_input::RpcV2CborDenseMapsInputBuilder;
    5      3   
           4  +
pub use crate::operation::rpc_v2_cbor_dense_maps::_rpc_v2_cbor_dense_maps_output::RpcV2CborDenseMapsOutputBuilder;
           5  +
    6      6   
impl crate::operation::rpc_v2_cbor_dense_maps::builders::RpcV2CborDenseMapsInputBuilder {
    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::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::rpc_v2_cbor_dense_maps::RpcV2CborDenseMapsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_lists.rs

@@ -766,766 +805,805 @@
  786    786   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  787    787   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  788    788   
    ) -> Self {
  789    789   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  790    790   
            source,
  791    791   
            meta: meta.unwrap_or_default(),
  792    792   
        })
  793    793   
    }
  794    794   
}
  795    795   
  796         -
pub use crate::operation::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_output::RpcV2CborListsOutput;
  797         -
  798    796   
pub use crate::operation::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_input::RpcV2CborListsInput;
  799    797   
         798  +
pub use crate::operation::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_output::RpcV2CborListsOutput;
         799  +
  800    800   
mod _rpc_v2_cbor_lists_input;
  801    801   
  802    802   
mod _rpc_v2_cbor_lists_output;
  803    803   
  804    804   
/// Builders
  805    805   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_lists/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::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_output::RpcV2CborListsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_input::RpcV2CborListsInputBuilder;
    5      3   
           4  +
pub use crate::operation::rpc_v2_cbor_lists::_rpc_v2_cbor_lists_output::RpcV2CborListsOutputBuilder;
           5  +
    6      6   
impl crate::operation::rpc_v2_cbor_lists::builders::RpcV2CborListsInputBuilder {
    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::rpc_v2_cbor_lists::RpcV2CborListsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::rpc_v2_cbor_lists::RpcV2CborListsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_sparse_maps.rs

@@ -973,973 +1012,1012 @@
  993    993   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  994    994   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  995    995   
    ) -> Self {
  996    996   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  997    997   
            source,
  998    998   
            meta: meta.unwrap_or_default(),
  999    999   
        })
 1000   1000   
    }
 1001   1001   
}
 1002   1002   
 1003         -
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutput;
 1004         -
 1005   1003   
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_input::RpcV2CborSparseMapsInput;
 1006   1004   
        1005  +
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutput;
        1006  +
 1007   1007   
mod _rpc_v2_cbor_sparse_maps_input;
 1008   1008   
 1009   1009   
mod _rpc_v2_cbor_sparse_maps_output;
 1010   1010   
 1011   1011   
/// Builders
 1012   1012   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/rust-client-codegen/src/operation/rpc_v2_cbor_sparse_maps/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::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_input::RpcV2CborSparseMapsInputBuilder;
    5      3   
           4  +
pub use crate::operation::rpc_v2_cbor_sparse_maps::_rpc_v2_cbor_sparse_maps_output::RpcV2CborSparseMapsOutputBuilder;
           5  +
    6      6   
impl crate::operation::rpc_v2_cbor_sparse_maps::builders::RpcV2CborSparseMapsInputBuilder {
    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::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::rpc_v2_cbor_sparse_maps::RpcV2CborSparseMapsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1193,1193 +1232,1232 @@
 1213   1213   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
 1214   1214   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
 1215   1215   
    ) -> Self {
 1216   1216   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
 1217   1217   
            source,
 1218   1218   
            meta: meta.unwrap_or_default(),
 1219   1219   
        })
 1220   1220   
    }
 1221   1221   
}
 1222   1222   
 1223         -
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
 1224         -
 1225   1223   
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_input::SimpleScalarPropertiesInput;
 1226   1224   
        1225  +
pub use crate::operation::simple_scalar_properties::_simple_scalar_properties_output::SimpleScalarPropertiesOutput;
        1226  +
 1227   1227   
mod _simple_scalar_properties_input;
 1228   1228   
 1229   1229   
mod _simple_scalar_properties_output;
 1230   1230   
 1231   1231   
/// Builders
 1232   1232   
pub mod builders;

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

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

tmp-codegen-diff/codegen-client-test/rpcv2Cbor/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/rpcv2Cbor/rust-client-codegen/src/types.rs

@@ -1,1 +46,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_validation_exception_field::ValidationExceptionField;
           2  +
pub use crate::types::_recursive_shapes_input_output_nested1::RecursiveShapesInputOutputNested1;
    3      3   
    4         -
pub use crate::types::_test_enum::TestEnum;
           4  +
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
           5  +
           6  +
pub use crate::types::_defaults::Defaults;
    5      7   
    6      8   
pub use crate::types::_client_optional_defaults::ClientOptionalDefaults;
    7      9   
    8         -
pub use crate::types::_defaults::Defaults;
          10  +
pub use crate::types::_test_enum::TestEnum;
    9     11   
   10         -
pub use crate::types::_complex_nested_error_data::ComplexNestedErrorData;
          12  +
pub use crate::types::_foo_enum::FooEnum;
   11     13   
   12         -
pub use crate::types::_recursive_shapes_input_output_nested1::RecursiveShapesInputOutputNested1;
          14  +
pub use crate::types::_structure_list_member::StructureListMember;
   13     15   
   14         -
pub use crate::types::_recursive_shapes_input_output_nested2::RecursiveShapesInputOutputNested2;
          16  +
pub use crate::types::_validation_exception_field::ValidationExceptionField;
   15     17   
   16     18   
pub use crate::types::_greeting_struct::GreetingStruct;
   17     19   
   18         -
pub use crate::types::_structure_list_member::StructureListMember;
   19         -
   20         -
pub use crate::types::_foo_enum::FooEnum;
          20  +
pub use crate::types::_recursive_shapes_input_output_nested2::RecursiveShapesInputOutputNested2;
   21     21   
   22     22   
mod _client_optional_defaults;
   23     23   
   24     24   
mod _complex_nested_error_data;
   25     25   
   26     26   
mod _defaults;
   27     27   
   28     28   
mod _foo_enum;
   29     29   
   30     30   
mod _greeting_struct;