Client Test

Client Test

rev. d838bf488731ae5e751cce0fe13f339a5b9be858 (ignoring whitespace)

Files changed:

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

@@ -379,379 +418,418 @@
  399    399   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  400    400   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  401    401   
    ) -> Self {
  402    402   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  403    403   
            source,
  404    404   
            meta: meta.unwrap_or_default(),
  405    405   
        })
  406    406   
    }
  407    407   
}
  408    408   
  409         -
pub use crate::operation::put_snapshot_block::_put_snapshot_block_output::PutSnapshotBlockOutput;
  410         -
  411    409   
pub use crate::operation::put_snapshot_block::_put_snapshot_block_input::PutSnapshotBlockInput;
  412    410   
         411  +
pub use crate::operation::put_snapshot_block::_put_snapshot_block_output::PutSnapshotBlockOutput;
         412  +
  413    413   
mod _put_snapshot_block_input;
  414    414   
  415    415   
mod _put_snapshot_block_output;
  416    416   
  417    417   
/// Builders
  418    418   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ebs/rust-client-codegen/src/operation/put_snapshot_block/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_snapshot_block::_put_snapshot_block_output::PutSnapshotBlockOutputBuilder;
    3         -
    4      2   
pub use crate::operation::put_snapshot_block::_put_snapshot_block_input::PutSnapshotBlockInputBuilder;
    5      3   
           4  +
pub use crate::operation::put_snapshot_block::_put_snapshot_block_output::PutSnapshotBlockOutputBuilder;
           5  +
    6      6   
impl crate::operation::put_snapshot_block::builders::PutSnapshotBlockInputBuilder {
    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_snapshot_block::PutSnapshotBlockOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::put_snapshot_block::PutSnapshotBlockError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -377,377 +416,416 @@
  397    397   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  398    398   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  399    399   
    ) -> Self {
  400    400   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  401    401   
            source,
  402    402   
            meta: meta.unwrap_or_default(),
  403    403   
        })
  404    404   
    }
  405    405   
}
  406    406   
  407         -
pub use crate::operation::start_snapshot::_start_snapshot_output::StartSnapshotOutput;
  408         -
  409    407   
pub use crate::operation::start_snapshot::_start_snapshot_input::StartSnapshotInput;
  410    408   
         409  +
pub use crate::operation::start_snapshot::_start_snapshot_output::StartSnapshotOutput;
         410  +
  411    411   
mod _start_snapshot_input;
  412    412   
  413    413   
mod _start_snapshot_output;
  414    414   
  415    415   
/// Builders
  416    416   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ebs/rust-client-codegen/src/operation/start_snapshot/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::start_snapshot::_start_snapshot_output::StartSnapshotOutputBuilder;
    3         -
    4      2   
pub use crate::operation::start_snapshot::_start_snapshot_input::StartSnapshotInputBuilder;
    5      3   
           4  +
pub use crate::operation::start_snapshot::_start_snapshot_output::StartSnapshotOutputBuilder;
           5  +
    6      6   
impl crate::operation::start_snapshot::builders::StartSnapshotInputBuilder {
    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::start_snapshot::StartSnapshotOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::start_snapshot::StartSnapshotError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -1,1 +50,50 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_validation_exception_reason::ValidationExceptionReason;
    3         -
    4         -
pub use crate::types::_service_quota_exceeded_exception_reason::ServiceQuotaExceededExceptionReason;
           2  +
pub use crate::types::_checksum_aggregation_method::ChecksumAggregationMethod;
    5      3   
    6         -
pub use crate::types::_resource_not_found_exception_reason::ResourceNotFoundExceptionReason;
           4  +
pub use crate::types::_checksum_algorithm::ChecksumAlgorithm;
    7      5   
    8         -
pub use crate::types::_request_throttled_exception_reason::RequestThrottledExceptionReason;
           6  +
pub use crate::types::_status::Status;
    9      7   
   10      8   
pub use crate::types::_access_denied_exception_reason::AccessDeniedExceptionReason;
   11      9   
   12         -
pub use crate::types::_status::Status;
          10  +
pub use crate::types::_request_throttled_exception_reason::RequestThrottledExceptionReason;
   13     11   
   14         -
pub use crate::types::_tag::Tag;
          12  +
pub use crate::types::_resource_not_found_exception_reason::ResourceNotFoundExceptionReason;
   15     13   
   16         -
pub use crate::types::_checksum_algorithm::ChecksumAlgorithm;
          14  +
pub use crate::types::_service_quota_exceeded_exception_reason::ServiceQuotaExceededExceptionReason;
   17     15   
   18         -
pub use crate::types::_block::Block;
          16  +
pub use crate::types::_validation_exception_reason::ValidationExceptionReason;
   19     17   
   20     18   
pub use crate::types::_changed_block::ChangedBlock;
   21     19   
   22         -
pub use crate::types::_checksum_aggregation_method::ChecksumAggregationMethod;
          20  +
pub use crate::types::_block::Block;
          21  +
          22  +
pub use crate::types::_tag::Tag;
   23     23   
   24     24   
mod _access_denied_exception_reason;
   25     25   
   26     26   
mod _block;
   27     27   
   28     28   
mod _changed_block;
   29     29   
   30     30   
mod _checksum_aggregation_method;
   31     31   
   32     32   
mod _checksum_algorithm;

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

@@ -1,1 +0,6 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::_tag::TagBuilder;
           2  +
pub use crate::types::_changed_block::ChangedBlockBuilder;
    3      3   
    4      4   
pub use crate::types::_block::BlockBuilder;
    5      5   
    6         -
pub use crate::types::_changed_block::ChangedBlockBuilder;
           6  +
pub use crate::types::_tag::TagBuilder;

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

@@ -1,1 +35,35 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_validation_exception::ValidationError;
    3         -
    4         -
pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededError;
           2  +
pub use crate::types::error::_access_denied_exception::AccessDeniedError;
    5      3   
    6         -
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundError;
           4  +
pub use crate::types::error::_internal_server_exception::InternalServerError;
    7      5   
    8      6   
pub use crate::types::error::_request_throttled_exception::RequestThrottledError;
    9      7   
   10         -
pub use crate::types::error::_internal_server_exception::InternalServerError;
           8  +
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundError;
   11      9   
   12         -
pub use crate::types::error::_conflict_exception::ConflictError;
          10  +
pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededError;
          11  +
          12  +
pub use crate::types::error::_validation_exception::ValidationError;
   13     13   
   14     14   
pub use crate::types::error::_concurrent_limit_exceeded_exception::ConcurrentLimitExceededError;
   15     15   
   16         -
pub use crate::types::error::_access_denied_exception::AccessDeniedError;
          16  +
pub use crate::types::error::_conflict_exception::ConflictError;
   17     17   
   18     18   
mod _access_denied_exception;
   19     19   
   20     20   
mod _concurrent_limit_exceeded_exception;
   21     21   
   22     22   
mod _conflict_exception;
   23     23   
   24     24   
mod _internal_server_exception;
   25     25   
   26     26   
mod _request_throttled_exception;

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

@@ -1,1 +0,16 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub use crate::types::error::_validation_exception::ValidationErrorBuilder;
    3         -
    4         -
pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededErrorBuilder;
           2  +
pub use crate::types::error::_access_denied_exception::AccessDeniedErrorBuilder;
    5      3   
    6         -
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundErrorBuilder;
           4  +
pub use crate::types::error::_internal_server_exception::InternalServerErrorBuilder;
    7      5   
    8      6   
pub use crate::types::error::_request_throttled_exception::RequestThrottledErrorBuilder;
    9      7   
   10         -
pub use crate::types::error::_internal_server_exception::InternalServerErrorBuilder;
           8  +
pub use crate::types::error::_resource_not_found_exception::ResourceNotFoundErrorBuilder;
   11      9   
   12         -
pub use crate::types::error::_conflict_exception::ConflictErrorBuilder;
          10  +
pub use crate::types::error::_service_quota_exceeded_exception::ServiceQuotaExceededErrorBuilder;
          11  +
          12  +
pub use crate::types::error::_validation_exception::ValidationErrorBuilder;
   13     13   
   14     14   
pub use crate::types::error::_concurrent_limit_exceeded_exception::ConcurrentLimitExceededErrorBuilder;
   15     15   
   16         -
pub use crate::types::error::_access_denied_exception::AccessDeniedErrorBuilder;
          16  +
pub use crate::types::error::_conflict_exception::ConflictErrorBuilder;

tmp-codegen-diff/codegen-client-test/ec2_query/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   
//! An EC2 query service that sends query requests and XML responses.
   24     25   
//!

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

@@ -381,381 +420,420 @@
  401    401   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  402    402   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  403    403   
    ) -> Self {
  404    404   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  405    405   
            source,
  406    406   
            meta: meta.unwrap_or_default(),
  407    407   
        })
  408    408   
    }
  409    409   
}
  410    410   
  411         -
pub use crate::operation::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutput;
  412         -
  413    411   
pub use crate::operation::datetime_offsets::_datetime_offsets_input::DatetimeOffsetsInput;
  414    412   
         413  +
pub use crate::operation::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutput;
         414  +
  415    415   
mod _datetime_offsets_input;
  416    416   
  417    417   
mod _datetime_offsets_output;
  418    418   
  419    419   
/// Builders
  420    420   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/datetime_offsets/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::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutputBuilder;
    3         -
    4      2   
pub use crate::operation::datetime_offsets::_datetime_offsets_input::DatetimeOffsetsInputBuilder;
    5      3   
           4  +
pub use crate::operation::datetime_offsets::_datetime_offsets_output::DatetimeOffsetsOutputBuilder;
           5  +
    6      6   
impl crate::operation::datetime_offsets::builders::DatetimeOffsetsInputBuilder {
    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::datetime_offsets::DatetimeOffsetsOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::datetime_offsets::DatetimeOffsetsError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -370,370 +409,409 @@
  390    390   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  391    391   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  392    392   
    ) -> Self {
  393    393   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  394    394   
            source,
  395    395   
            meta: meta.unwrap_or_default(),
  396    396   
        })
  397    397   
    }
  398    398   
}
  399    399   
  400         -
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutput;
  401         -
  402    400   
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_input::EmptyInputAndEmptyOutputInput;
  403    401   
         402  +
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutput;
         403  +
  404    404   
mod _empty_input_and_empty_output_input;
  405    405   
  406    406   
mod _empty_input_and_empty_output_output;
  407    407   
  408    408   
/// Builders
  409    409   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/empty_input_and_empty_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::empty_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutputBuilder;
    3         -
    4      2   
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_input::EmptyInputAndEmptyOutputInputBuilder;
    5      3   
           4  +
pub use crate::operation::empty_input_and_empty_output::_empty_input_and_empty_output_output::EmptyInputAndEmptyOutputOutputBuilder;
           5  +
    6      6   
impl crate::operation::empty_input_and_empty_output::builders::EmptyInputAndEmptyOutputInputBuilder {
    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::empty_input_and_empty_output::EmptyInputAndEmptyOutputOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -334,334 +373,373 @@
  354    354   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  355    355   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  356    356   
    ) -> Self {
  357    357   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  358    358   
            source,
  359    359   
            meta: meta.unwrap_or_default(),
  360    360   
        })
  361    361   
    }
  362    362   
}
  363    363   
  364         -
pub use crate::operation::endpoint_operation::_endpoint_operation_output::EndpointOperationOutput;
  365         -
  366    364   
pub use crate::operation::endpoint_operation::_endpoint_operation_input::EndpointOperationInput;
  367    365   
         366  +
pub use crate::operation::endpoint_operation::_endpoint_operation_output::EndpointOperationOutput;
         367  +
  368    368   
mod _endpoint_operation_input;
  369    369   
  370    370   
mod _endpoint_operation_output;
  371    371   
  372    372   
/// Builders
  373    373   
pub mod builders;

tmp-codegen-diff/codegen-client-test/ec2_query/rust-client-codegen/src/operation/endpoint_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::endpoint_operation::_endpoint_operation_output::EndpointOperationOutputBuilder;
    3         -
    4      2   
pub use crate::operation::endpoint_operation::_endpoint_operation_input::EndpointOperationInputBuilder;
    5      3   
           4  +
pub use crate::operation::endpoint_operation::_endpoint_operation_output::EndpointOperationOutputBuilder;
           5  +
    6      6   
impl crate::operation::endpoint_operation::builders::EndpointOperationInputBuilder {
    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::endpoint_operation::EndpointOperationOutput,
   13     13   
        ::aws_smithy_runtime_api::client::result::SdkError<
   14     14   
            crate::operation::endpoint_operation::EndpointOperationError,
   15     15   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,

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

@@ -361,361 +400,400 @@
  381    381   
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
  382    382   
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
  383    383   
    ) -> Self {
  384    384   
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
  385    385   
            source,
  386    386   
            meta: meta.unwrap_or_default(),
  387    387   
        })
  388    388   
    }
  389    389   
}
  390    390   
  391         -
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_output::EndpointWithHostLabelOperationOutput;
  392         -
  393    391   
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_input::EndpointWithHostLabelOperationInput;
  394    392   
         393  +
pub use crate::operation::endpoint_with_host_label_operation::_endpoint_with_host_label_operation_output::EndpointWithHostLabelOperationOutput;
         394  +
  395    395   
mod _endpoint_with_host_label_operation_input;
  396    396   
  397    397   
mod _endpoint_with_host_label_operation_output;
  398    398   
  399    399   
/// Builders
  400    400   
pub mod builders;