Client Test

Client Test

rev. 7254d43655ed63111c94f599437f2b0d3f55446e (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/operation/query_precedence.rs

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

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/operation/query_precedence/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_precedence::_query_precedence_output::QueryPrecedenceOutputBuilder;
    3         -
    4      2   
pub use crate::operation::query_precedence::_query_precedence_input::QueryPrecedenceInputBuilder;
    5      3   
           4  +
pub use crate::operation::query_precedence::_query_precedence_output::QueryPrecedenceOutputBuilder;
           5  +
    6      6   
impl crate::operation::query_precedence::builders::QueryPrecedenceInputBuilder {
    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_precedence::QueryPrecedenceOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::query_precedence::QueryPrecedenceError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/operation/status_response.rs

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

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/operation/status_response/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::status_response::_status_response_output::StatusResponseOutputBuilder;
    3         -
    4      2   
pub use crate::operation::status_response::_status_response_input::StatusResponseInputBuilder;
    5      3   
           4  +
pub use crate::operation::status_response::_status_response_output::StatusResponseOutputBuilder;
           5  +
    6      6   
impl crate::operation::status_response::builders::StatusResponseInputBuilder {
    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::status_response::StatusResponseOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::status_response::StatusResponseError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/operation/string_payload.rs

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

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/operation/string_payload/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::string_payload::_string_payload_output::StringPayloadOutputBuilder;
    3         -
    4      2   
pub use crate::operation::string_payload::_string_payload_input::StringPayloadInputBuilder;
    5      3   
           4  +
pub use crate::operation::string_payload::_string_payload_output::StringPayloadOutputBuilder;
           5  +
    6      6   
impl crate::operation::string_payload::builders::StringPayloadInputBuilder {
    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::string_payload::StringPayloadOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::string_payload::StringPayloadError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/rest_json_extras/rust-client-codegen/src/protocol_serde.rs

@@ -4,4 +65,63 @@
   24     24   
}
   25     25   
   26     26   
pub(crate) mod shape_case_insensitive_error_operation;
   27     27   
   28     28   
pub(crate) mod shape_empty_struct_with_content_on_wire_op;
   29     29   
   30     30   
pub(crate) mod shape_enum_query;
   31     31   
   32     32   
pub(crate) mod shape_escaped_string_values;
   33     33   
   34         -
pub(crate) mod shape_http_query_params_only_operation;
   35         -
   36     34   
pub(crate) mod shape_map_with_enum_key_op;
   37     35   
   38     36   
pub(crate) mod shape_null_in_non_sparse;
   39     37   
   40     38   
pub(crate) mod shape_primitive_int_header;
   41     39   
   42     40   
pub(crate) mod shape_primitive_int_op;
   43     41   
   44     42   
pub(crate) mod shape_query_precedence;
   45     43   

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

@@ -1,1 +26,26 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_empty_struct::EmptyStruct;
           2  +
pub use crate::types::_string_enum::StringEnum;
    3      3   
    4         -
pub use crate::types::_single_element_union::SingleElementUnion;
           4  +
pub use crate::types::_enum_with_escaped_chars::EnumWithEscapedChars;
    5      5   
    6         -
pub use crate::types::_validation_exception_field::ValidationExceptionField;
           6  +
pub use crate::types::_single_element_union::SingleElementUnion;
    7      7   
    8         -
pub use crate::types::_enum_with_escaped_chars::EnumWithEscapedChars;
           8  +
pub use crate::types::_empty_struct::EmptyStruct;
    9      9   
   10         -
pub use crate::types::_string_enum::StringEnum;
          10  +
pub use crate::types::_validation_exception_field::ValidationExceptionField;
   11     11   
   12     12   
mod _empty_struct;
   13     13   
   14     14   
mod _enum_with_escaped_chars;
   15     15   
   16     16   
mod _single_element_union;
   17     17   
   18     18   
mod _string_enum;
   19     19   
   20     20   
mod _validation_exception_field;

tmp-codegen-diff/codegen-client-test/rest_json_extras/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      2   
pub use crate::types::error::_extra_error::ExtraError;
    3      3   
    4         -
pub use crate::types::error::_case_insensitive_error::CaseInsensitiveError;
    5         -
    6      4   
pub use crate::types::error::_validation_exception::ValidationError;
    7      5   
           6  +
pub use crate::types::error::_case_insensitive_error::CaseInsensitiveError;
           7  +
    8      8   
mod _case_insensitive_error;
    9      9   
   10     10   
mod _extra_error;
   11     11   
   12     12   
mod _validation_exception;
   13     13   
   14     14   
/// Builders
   15     15   
pub mod builders;

tmp-codegen-diff/codegen-client-test/rest_json_extras/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      2   
pub use crate::types::error::_extra_error::ExtraErrorBuilder;
    3      3   
    4         -
pub use crate::types::error::_case_insensitive_error::CaseInsensitiveErrorBuilder;
    5         -
    6      4   
pub use crate::types::error::_validation_exception::ValidationErrorBuilder;
           5  +
           6  +
pub use crate::types::error::_case_insensitive_error::CaseInsensitiveErrorBuilder;

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/client.rs

@@ -202,202 +260,262 @@
  222    222   
mod query_precedence;
  223    223   
  224    224   
mod recursive_shapes;
  225    225   
  226    226   
mod simple_scalar_properties;
  227    227   
  228    228   
mod timestamp_format_headers;
  229    229   
  230    230   
mod xml_attributes;
  231    231   
         232  +
mod xml_attributes_in_middle;
         233  +
  232    234   
mod xml_attributes_on_payload;
  233    235   
  234    236   
mod xml_blobs;
  235    237   
  236    238   
mod xml_empty_blobs;
  237    239   
  238    240   
mod xml_empty_lists;
  239    241   
  240    242   
mod xml_empty_maps;
  241    243   

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/client/xml_attributes_in_middle.rs

@@ -0,1 +0,13 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
impl super::Client {
           3  +
    /// Constructs a fluent builder for the [`XmlAttributesInMiddle`](crate::operation::xml_attributes_in_middle::builders::XmlAttributesInMiddleFluentBuilder) operation.
           4  +
    ///
           5  +
    /// - The fluent builder is configurable:
           6  +
    ///   - [`payload(XmlAttributesInMiddlePayloadRequest)`](crate::operation::xml_attributes_in_middle::builders::XmlAttributesInMiddleFluentBuilder::payload) / [`set_payload(Option<XmlAttributesInMiddlePayloadRequest>)`](crate::operation::xml_attributes_in_middle::builders::XmlAttributesInMiddleFluentBuilder::set_payload):<br>required: **false**<br>(undocumented)<br>
           7  +
    /// - On success, responds with [`XmlAttributesInMiddleOutput`](crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleOutput) with field(s):
           8  +
    ///   - [`payload(Option<XmlAttributesInMiddlePayloadResponse>)`](crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleOutput::payload): (undocumented)
           9  +
    /// - On failure, responds with [`SdkError<XmlAttributesInMiddleError>`](crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleError)
          10  +
    pub fn xml_attributes_in_middle(&self) -> crate::operation::xml_attributes_in_middle::builders::XmlAttributesInMiddleFluentBuilder {
          11  +
        crate::operation::xml_attributes_in_middle::builders::XmlAttributesInMiddleFluentBuilder::new(self.handle.clone())
          12  +
    }
          13  +
}

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/error_meta.rs

@@ -1246,1246 +1305,1328 @@
 1266   1266   
        }
 1267   1267   
    }
 1268   1268   
}
 1269   1269   
impl From<crate::operation::xml_attributes::XmlAttributesError> for Error {
 1270   1270   
    fn from(err: crate::operation::xml_attributes::XmlAttributesError) -> Self {
 1271   1271   
        match err {
 1272   1272   
            crate::operation::xml_attributes::XmlAttributesError::Unhandled(inner) => Error::Unhandled(inner),
 1273   1273   
        }
 1274   1274   
    }
 1275   1275   
}
        1276  +
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleError, R>> for Error
        1277  +
where
        1278  +
    R: Send + Sync + std::fmt::Debug + 'static,
        1279  +
{
        1280  +
    fn from(
        1281  +
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleError, R>,
        1282  +
    ) -> Self {
        1283  +
        match err {
        1284  +
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1285  +
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
        1286  +
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
        1287  +
                source: err.into(),
        1288  +
            }),
        1289  +
        }
        1290  +
    }
        1291  +
}
        1292  +
impl From<crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleError> for Error {
        1293  +
    fn from(err: crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleError) -> Self {
        1294  +
        match err {
        1295  +
            crate::operation::xml_attributes_in_middle::XmlAttributesInMiddleError::Unhandled(inner) => Error::Unhandled(inner),
        1296  +
        }
        1297  +
    }
        1298  +
}
 1276   1299   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_attributes_on_payload::XmlAttributesOnPayloadError, R>>
 1277   1300   
    for Error
 1278   1301   
where
 1279   1302   
    R: Send + Sync + std::fmt::Debug + 'static,
 1280   1303   
{
 1281   1304   
    fn from(
 1282   1305   
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_attributes_on_payload::XmlAttributesOnPayloadError, R>,
 1283   1306   
    ) -> Self {
 1284   1307   
        match err {
 1285   1308   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),

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

@@ -120,120 +179,182 @@
  140    140   
  141    141   
/// Types for the `SimpleScalarProperties` operation.
  142    142   
pub mod simple_scalar_properties;
  143    143   
  144    144   
/// Types for the `TimestampFormatHeaders` operation.
  145    145   
pub mod timestamp_format_headers;
  146    146   
  147    147   
/// Types for the `XmlAttributes` operation.
  148    148   
pub mod xml_attributes;
  149    149   
         150  +
/// Types for the `XmlAttributesInMiddle` operation.
         151  +
pub mod xml_attributes_in_middle;
         152  +
  150    153   
/// Types for the `XmlAttributesOnPayload` operation.
  151    154   
pub mod xml_attributes_on_payload;
  152    155   
  153    156   
/// Types for the `XmlBlobs` operation.
  154    157   
pub mod xml_blobs;
  155    158   
  156    159   
/// Types for the `XmlEmptyBlobs` operation.
  157    160   
pub mod xml_empty_blobs;
  158    161   
  159    162   
/// Types for the `XmlEmptyLists` operation.

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/all_query_string_types.rs

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

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/all_query_string_types/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::all_query_string_types::_all_query_string_types_output::AllQueryStringTypesOutputBuilder;
    3         -
    4      2   
pub use crate::operation::all_query_string_types::_all_query_string_types_input::AllQueryStringTypesInputBuilder;
    5      3   
           4  +
pub use crate::operation::all_query_string_types::_all_query_string_types_output::AllQueryStringTypesOutputBuilder;
           5  +
    6      6   
impl crate::operation::all_query_string_types::builders::AllQueryStringTypesInputBuilder {
    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::all_query_string_types::AllQueryStringTypesOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::all_query_string_types::AllQueryStringTypesError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,