Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

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

@@ -1,1 +44,45 @@
    5      5   
#![allow(clippy::large_enum_variant)]
    6      6   
#![allow(clippy::wrong_self_convention)]
    7      7   
#![allow(clippy::should_implement_trait)]
    8      8   
#![allow(clippy::disallowed_names)]
    9      9   
#![allow(clippy::vec_init_then_push)]
   10     10   
#![allow(clippy::type_complexity)]
   11     11   
#![allow(clippy::needless_return)]
   12     12   
#![allow(clippy::derive_partial_eq_without_eq)]
   13     13   
#![allow(clippy::result_large_err)]
   14     14   
#![allow(clippy::unnecessary_map_on_constructor)]
          15  +
#![allow(clippy::useless_conversion)]
   15     16   
#![allow(clippy::deprecated_semver)]
   16     17   
#![allow(rustdoc::bare_urls)]
   17     18   
#![allow(rustdoc::redundant_explicit_links)]
   18     19   
#![allow(rustdoc::broken_intra_doc_links)]
   19     20   
#![allow(rustdoc::invalid_html_tags)]
   20     21   
#![forbid(unsafe_code)]
   21     22   
#![warn(missing_docs)]
   22     23   
#![cfg_attr(docsrs, feature(doc_cfg))]
   23     24   
//! A service to test miscellaneous aspects of code generation where protocol
   24     25   
//! selection is not relevant. If you want to test something protocol-specific,

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;

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/response_code_required_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_required_operation::_response_code_required_operation_output::ResponseCodeRequiredOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::response_code_required_operation::_response_code_required_operation_input::ResponseCodeRequiredOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::response_code_required_operation::_response_code_required_operation_output::ResponseCodeRequiredOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::response_code_required_operation::builders::ResponseCodeRequiredOperationInputBuilder {
    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_required_operation::ResponseCodeRequiredOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::response_code_required_operation::ResponseCodeRequiredOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -300,300 +339,339 @@
  320    320   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  321    321   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  322    322   
    ) -> Self {
  323    323   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  324    324   
            source,
  325    325   
            meta: meta.unwrap_or_default(),
  326    326   
        })
  327    327   
    }
  328    328   
}
  329    329   
  330         -
pub use crate::operation::type_complexity_operation::_type_complexity_operation_output::TypeComplexityOperationOutput;
  331         -
  332    330   
pub use crate::operation::type_complexity_operation::_type_complexity_operation_input::TypeComplexityOperationInput;
  333    331   
         332  +
pub use crate::operation::type_complexity_operation::_type_complexity_operation_output::TypeComplexityOperationOutput;
         333  +
  334    334   
mod _type_complexity_operation_input;
  335    335   
  336    336   
mod _type_complexity_operation_output;
  337    337   
  338    338   
/// Builders
  339    339   
pub mod builders;

tmp-codegen-diff/codegen-client-test/misc/rust-client-codegen/src/operation/type_complexity_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::type_complexity_operation::_type_complexity_operation_output::TypeComplexityOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::type_complexity_operation::_type_complexity_operation_input::TypeComplexityOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::type_complexity_operation::_type_complexity_operation_output::TypeComplexityOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::type_complexity_operation::builders::TypeComplexityOperationInputBuilder {
    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::type_complexity_operation::TypeComplexityOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::type_complexity_operation::TypeComplexityOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

tmp-codegen-diff/codegen-client-test/misc/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::_validation_exception_field::ValidationExceptionField;
    3         -
    4      2   
pub use crate::types::_inner_shape::InnerShape;
    5      3   
    6      4   
pub use crate::types::_innermost_shape::InnermostShape;
    7      5   
           6  +
pub use crate::types::_validation_exception_field::ValidationExceptionField;
           7  +
    8      8   
pub use crate::types::_a_union::AUnion;
    9      9   
   10     10   
pub use crate::types::_empty_structure::EmptyStructure;
   11     11   
   12     12   
mod _a_union;
   13     13   
   14     14   
mod _empty_structure;
   15     15   
   16     16   
mod _inner_shape;
   17     17   

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

@@ -1,1 +8,8 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_validation_exception_field::ValidationExceptionFieldBuilder;
    3         -
    4      2   
pub use crate::types::_inner_shape::InnerShapeBuilder;
    5      3   
    6      4   
pub use crate::types::_innermost_shape::InnermostShapeBuilder;
    7      5   
           6  +
pub use crate::types::_validation_exception_field::ValidationExceptionFieldBuilder;
           7  +
    8      8   
pub use crate::types::_empty_structure::EmptyStructureBuilder;

tmp-codegen-diff/codegen-client-test/naming_test_casing/rust-client-codegen/src/lib.rs

@@ -1,1 +44,45 @@
    5      5   
#![allow(clippy::large_enum_variant)]
    6      6   
#![allow(clippy::wrong_self_convention)]
    7      7   
#![allow(clippy::should_implement_trait)]
    8      8   
#![allow(clippy::disallowed_names)]
    9      9   
#![allow(clippy::vec_init_then_push)]
   10     10   
#![allow(clippy::type_complexity)]
   11     11   
#![allow(clippy::needless_return)]
   12     12   
#![allow(clippy::derive_partial_eq_without_eq)]
   13     13   
#![allow(clippy::result_large_err)]
   14     14   
#![allow(clippy::unnecessary_map_on_constructor)]
          15  +
#![allow(clippy::useless_conversion)]
   15     16   
#![allow(clippy::deprecated_semver)]
   16     17   
#![allow(rustdoc::bare_urls)]
   17     18   
#![allow(rustdoc::redundant_explicit_links)]
   18     19   
#![allow(rustdoc::broken_intra_doc_links)]
   19     20   
#![allow(rustdoc::invalid_html_tags)]
   20     21   
#![forbid(unsafe_code)]
   21     22   
#![warn(missing_docs)]
   22     23   
#![cfg_attr(docsrs, feature(doc_cfg))]
   23     24   
//! Confounds model generation machinery with lots of problematic casing
   24     25   
//!