Client Test

Client Test

rev. 952324e59b3c96d0dfa0092f8e72b9444a71a2d3

Files changed:

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

@@ -40,40 +100,101 @@
   60     60   
    pub fn as_input(&self) -> &crate::operation::response_code_default_operation::builders::ResponseCodeDefaultOperationInputBuilder {
   61     61   
        &self.inner
   62     62   
    }
   63     63   
    /// Sends the request and returns the response.
   64     64   
    ///
   65     65   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     66   
    /// can be matched against.
   67     67   
    ///
   68     68   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     69   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70         -
    /// set when configuring the client.
          70  +
    /// set when configuring the client. Note: retries are enabled by default when using
          71  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   71     72   
    pub async fn send(
   72     73   
        self,
   73     74   
    ) -> ::std::result::Result<
   74     75   
        crate::operation::response_code_default_operation::ResponseCodeDefaultOperationOutput,
   75     76   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     77   
            crate::operation::response_code_default_operation::ResponseCodeDefaultOperationError,
   77     78   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     79   
        >,
   79     80   
    > {
   80     81   
        let input = self

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

@@ -40,40 +100,101 @@
   60     60   
    pub fn as_input(&self) -> &crate::operation::response_code_http_fallback_operation::builders::ResponseCodeHttpFallbackOperationInputBuilder {
   61     61   
        &self.inner
   62     62   
    }
   63     63   
    /// Sends the request and returns the response.
   64     64   
    ///
   65     65   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     66   
    /// can be matched against.
   67     67   
    ///
   68     68   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     69   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70         -
    /// set when configuring the client.
          70  +
    /// set when configuring the client. Note: retries are enabled by default when using
          71  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   71     72   
    pub async fn send(
   72     73   
        self,
   73     74   
    ) -> ::std::result::Result<
   74     75   
        crate::operation::response_code_http_fallback_operation::ResponseCodeHttpFallbackOperationOutput,
   75     76   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     77   
            crate::operation::response_code_http_fallback_operation::ResponseCodeHttpFallbackOperationError,
   77     78   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     79   
        >,
   79     80   
    > {
   80     81   
        let input = self

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

@@ -40,40 +100,101 @@
   60     60   
    pub fn as_input(&self) -> &crate::operation::response_code_required_operation::builders::ResponseCodeRequiredOperationInputBuilder {
   61     61   
        &self.inner
   62     62   
    }
   63     63   
    /// Sends the request and returns the response.
   64     64   
    ///
   65     65   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     66   
    /// can be matched against.
   67     67   
    ///
   68     68   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     69   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70         -
    /// set when configuring the client.
          70  +
    /// set when configuring the client. Note: retries are enabled by default when using
          71  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   71     72   
    pub async fn send(
   72     73   
        self,
   73     74   
    ) -> ::std::result::Result<
   74     75   
        crate::operation::response_code_required_operation::ResponseCodeRequiredOperationOutput,
   75     76   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     77   
            crate::operation::response_code_required_operation::ResponseCodeRequiredOperationError,
   77     78   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     79   
        >,
   79     80   
    > {
   80     81   
        let input = self

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

@@ -40,40 +100,101 @@
   60     60   
    pub fn as_input(&self) -> &crate::operation::type_complexity_operation::builders::TypeComplexityOperationInputBuilder {
   61     61   
        &self.inner
   62     62   
    }
   63     63   
    /// Sends the request and returns the response.
   64     64   
    ///
   65     65   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   66     66   
    /// can be matched against.
   67     67   
    ///
   68     68   
    /// By default, any retryable failures will be retried twice. Retry behavior
   69     69   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   70         -
    /// set when configuring the client.
          70  +
    /// set when configuring the client. Note: retries are enabled by default when using
          71  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   71     72   
    pub async fn send(
   72     73   
        self,
   73     74   
    ) -> ::std::result::Result<
   74     75   
        crate::operation::type_complexity_operation::TypeComplexityOperationOutput,
   75     76   
        ::aws_smithy_runtime_api::client::result::SdkError<
   76     77   
            crate::operation::type_complexity_operation::TypeComplexityOperationError,
   77     78   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   78     79   
        >,
   79     80   
    > {
   80     81   
        let input = self

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

@@ -1204,1204 +1263,1264 @@
 1224   1224   
    let default_retry_partition = "acronyminside_service";
 1225   1225   
 1226   1226   
    let scope = "naming_test_casing";
 1227   1227   
 1228   1228   
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1229   1229   
                        // defaults
 1230   1230   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1231   1231   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1232   1232   
                                .with_retry_partition_name(default_retry_partition)
 1233   1233   
                                .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
        1234  +
                                
 1234   1235   
                        ))
 1235   1236   
                        // user config
 1236   1237   
                        .with_client_plugin(
 1237   1238   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1238   1239   
                                .with_config(config.config.clone())
 1239   1240   
                                .with_runtime_components(config.runtime_components.clone())
 1240   1241   
                        )
 1241   1242   
                        // codegen config
 1242   1243   
                        .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
 1243   1244   
                        .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())

tmp-codegen-diff/codegen-client-test/naming_test_casing/rust-client-codegen/src/operation/do_nothing/builders.rs

@@ -33,33 +93,94 @@
   53     53   
    pub fn as_input(&self) -> &crate::operation::do_nothing::builders::DoNothingInputBuilder {
   54     54   
        &self.inner
   55     55   
    }
   56     56   
    /// Sends the request and returns the response.
   57     57   
    ///
   58     58   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   59     59   
    /// can be matched against.
   60     60   
    ///
   61     61   
    /// By default, any retryable failures will be retried twice. Retry behavior
   62     62   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   63         -
    /// set when configuring the client.
          63  +
    /// set when configuring the client. Note: retries are enabled by default when using
          64  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   64     65   
    pub async fn send(
   65     66   
        self,
   66     67   
    ) -> ::std::result::Result<
   67     68   
        crate::operation::do_nothing::DoNothingOutput,
   68     69   
        ::aws_smithy_runtime_api::client::result::SdkError<
   69     70   
            crate::operation::do_nothing::DoNothingError,
   70     71   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   71     72   
        >,
   72     73   
    > {
   73     74   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/config.rs

@@ -1204,1204 +1263,1264 @@
 1224   1224   
    let default_retry_partition = "config";
 1225   1225   
 1226   1226   
    let scope = "naming_test_ops";
 1227   1227   
 1228   1228   
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1229   1229   
                        // defaults
 1230   1230   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1231   1231   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1232   1232   
                                .with_retry_partition_name(default_retry_partition)
 1233   1233   
                                .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
        1234  +
                                
 1234   1235   
                        ))
 1235   1236   
                        // user config
 1236   1237   
                        .with_client_plugin(
 1237   1238   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1238   1239   
                                .with_config(config.config.clone())
 1239   1240   
                                .with_runtime_components(config.runtime_components.clone())
 1240   1241   
                        )
 1241   1242   
                        // codegen config
 1242   1243   
                        .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
 1243   1244   
                        .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/err_collisions/builders.rs

@@ -39,39 +99,100 @@
   59     59   
    pub fn as_input(&self) -> &crate::operation::err_collisions::builders::ErrCollisionsInputBuilder {
   60     60   
        &self.inner
   61     61   
    }
   62     62   
    /// Sends the request and returns the response.
   63     63   
    ///
   64     64   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     65   
    /// can be matched against.
   66     66   
    ///
   67     67   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     68   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69         -
    /// set when configuring the client.
          69  +
    /// set when configuring the client. Note: retries are enabled by default when using
          70  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   70     71   
    pub async fn send(
   71     72   
        self,
   72     73   
    ) -> ::std::result::Result<
   73     74   
        crate::operation::err_collisions::ErrCollisionsOutput,
   74     75   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     76   
            crate::operation::err_collisions::ErrCollisionsError,
   76     77   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     78   
        >,
   78     79   
    > {
   79     80   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/match_/builders.rs

@@ -33,33 +93,94 @@
   53     53   
    pub fn as_input(&self) -> &crate::operation::match_::builders::MatchInputBuilder {
   54     54   
        &self.inner
   55     55   
    }
   56     56   
    /// Sends the request and returns the response.
   57     57   
    ///
   58     58   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   59     59   
    /// can be matched against.
   60     60   
    ///
   61     61   
    /// By default, any retryable failures will be retried twice. Retry behavior
   62     62   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   63         -
    /// set when configuring the client.
          63  +
    /// set when configuring the client. Note: retries are enabled by default when using
          64  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   64     65   
    pub async fn send(
   65     66   
        self,
   66     67   
    ) -> ::std::result::Result<
   67     68   
        crate::operation::match_::MatchOutput,
   68     69   
        ::aws_smithy_runtime_api::client::result::SdkError<
   69     70   
            crate::operation::match_::MatchError,
   70     71   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   71     72   
        >,
   72     73   
    > {
   73     74   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/option/builders.rs

@@ -33,33 +93,94 @@
   53     53   
    pub fn as_input(&self) -> &crate::operation::option::builders::OptionInputBuilder {
   54     54   
        &self.inner
   55     55   
    }
   56     56   
    /// Sends the request and returns the response.
   57     57   
    ///
   58     58   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   59     59   
    /// can be matched against.
   60     60   
    ///
   61     61   
    /// By default, any retryable failures will be retried twice. Retry behavior
   62     62   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   63         -
    /// set when configuring the client.
          63  +
    /// set when configuring the client. Note: retries are enabled by default when using
          64  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   64     65   
    pub async fn send(
   65     66   
        self,
   66     67   
    ) -> ::std::result::Result<
   67     68   
        crate::operation::option::OptionOutput,
   68     69   
        ::aws_smithy_runtime_api::client::result::SdkError<
   69     70   
            crate::operation::option::OptionError,
   70     71   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   71     72   
        >,
   72     73   
    > {
   73     74   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/reserved_words_as_members/builders.rs

@@ -39,39 +99,100 @@
   59     59   
    pub fn as_input(&self) -> &crate::operation::reserved_words_as_members::builders::ReservedWordsAsMembersInputBuilder {
   60     60   
        &self.inner
   61     61   
    }
   62     62   
    /// Sends the request and returns the response.
   63     63   
    ///
   64     64   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     65   
    /// can be matched against.
   66     66   
    ///
   67     67   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     68   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69         -
    /// set when configuring the client.
          69  +
    /// set when configuring the client. Note: retries are enabled by default when using
          70  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   70     71   
    pub async fn send(
   71     72   
        self,
   72     73   
    ) -> ::std::result::Result<
   73     74   
        crate::operation::reserved_words_as_members::ReservedWordsAsMembersOutput,
   74     75   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     76   
            crate::operation::reserved_words_as_members::ReservedWordsAsMembersError,
   76     77   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     78   
        >,
   78     79   
    > {
   79     80   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/result/builders.rs

@@ -33,33 +93,94 @@
   53     53   
    pub fn as_input(&self) -> &crate::operation::result::builders::ResultInputBuilder {
   54     54   
        &self.inner
   55     55   
    }
   56     56   
    /// Sends the request and returns the response.
   57     57   
    ///
   58     58   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   59     59   
    /// can be matched against.
   60     60   
    ///
   61     61   
    /// By default, any retryable failures will be retried twice. Retry behavior
   62     62   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   63         -
    /// set when configuring the client.
          63  +
    /// set when configuring the client. Note: retries are enabled by default when using
          64  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   64     65   
    pub async fn send(
   65     66   
        self,
   66     67   
    ) -> ::std::result::Result<
   67     68   
        crate::operation::result::ResultOutput,
   68     69   
        ::aws_smithy_runtime_api::client::result::SdkError<
   69     70   
            crate::operation::result::ResultError,
   70     71   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   71     72   
        >,
   72     73   
    > {
   73     74   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/rpc_echo/builders.rs

@@ -33,33 +93,94 @@
   53     53   
    pub fn as_input(&self) -> &crate::operation::rpc_echo::builders::RpcEchoInputBuilder {
   54     54   
        &self.inner
   55     55   
    }
   56     56   
    /// Sends the request and returns the response.
   57     57   
    ///
   58     58   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   59     59   
    /// can be matched against.
   60     60   
    ///
   61     61   
    /// By default, any retryable failures will be retried twice. Retry behavior
   62     62   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   63         -
    /// set when configuring the client.
          63  +
    /// set when configuring the client. Note: retries are enabled by default when using
          64  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   64     65   
    pub async fn send(
   65     66   
        self,
   66     67   
    ) -> ::std::result::Result<
   67     68   
        crate::operation::rpc_echo::RpcEchoOutput,
   68     69   
        ::aws_smithy_runtime_api::client::result::SdkError<
   69     70   
            crate::operation::rpc_echo::RPCEchoError,
   70     71   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   71     72   
        >,
   72     73   
    > {
   73     74   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_ops/rust-client-codegen/src/operation/structure_name_punning/builders.rs

@@ -39,39 +99,100 @@
   59     59   
    pub fn as_input(&self) -> &crate::operation::structure_name_punning::builders::StructureNamePunningInputBuilder {
   60     60   
        &self.inner
   61     61   
    }
   62     62   
    /// Sends the request and returns the response.
   63     63   
    ///
   64     64   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   65     65   
    /// can be matched against.
   66     66   
    ///
   67     67   
    /// By default, any retryable failures will be retried twice. Retry behavior
   68     68   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   69         -
    /// set when configuring the client.
          69  +
    /// set when configuring the client. Note: retries are enabled by default when using
          70  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   70     71   
    pub async fn send(
   71     72   
        self,
   72     73   
    ) -> ::std::result::Result<
   73     74   
        crate::operation::structure_name_punning::StructureNamePunningOutput,
   74     75   
        ::aws_smithy_runtime_api::client::result::SdkError<
   75     76   
            crate::operation::structure_name_punning::StructureNamePunningError,
   76     77   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   77     78   
        >,
   78     79   
    > {
   79     80   
        let input = self

tmp-codegen-diff/codegen-client-test/naming_test_structs/rust-client-codegen/src/config.rs

@@ -1204,1204 +1263,1264 @@
 1224   1224   
    let default_retry_partition = "namingobstaclecoursestructs";
 1225   1225   
 1226   1226   
    let scope = "naming_test_structs";
 1227   1227   
 1228   1228   
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1229   1229   
                        // defaults
 1230   1230   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1231   1231   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1232   1232   
                                .with_retry_partition_name(default_retry_partition)
 1233   1233   
                                .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
        1234  +
                                
 1234   1235   
                        ))
 1235   1236   
                        // user config
 1236   1237   
                        .with_client_plugin(
 1237   1238   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1238   1239   
                                .with_config(config.config.clone())
 1239   1240   
                                .with_runtime_components(config.runtime_components.clone())
 1240   1241   
                        )
 1241   1242   
                        // codegen config
 1242   1243   
                        .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
 1243   1244   
                        .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())

tmp-codegen-diff/codegen-client-test/naming_test_structs/rust-client-codegen/src/operation/structs/builders.rs

@@ -33,33 +93,94 @@
   53     53   
    pub fn as_input(&self) -> &crate::operation::structs::builders::StructsInputBuilder {
   54     54   
        &self.inner
   55     55   
    }
   56     56   
    /// Sends the request and returns the response.
   57     57   
    ///
   58     58   
    /// If an error occurs, an `SdkError` will be returned with additional details that
   59     59   
    /// can be matched against.
   60     60   
    ///
   61     61   
    /// By default, any retryable failures will be retried twice. Retry behavior
   62     62   
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
   63         -
    /// set when configuring the client.
          63  +
    /// set when configuring the client. Note: retries are enabled by default when using
          64  +
    /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
   64     65   
    pub async fn send(
   65     66   
        self,
   66     67   
    ) -> ::std::result::Result<
   67     68   
        crate::operation::structs::StructsOutput,
   68     69   
        ::aws_smithy_runtime_api::client::result::SdkError<
   69     70   
            crate::operation::structs::StructsError,
   70     71   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   71     72   
        >,
   72     73   
    > {
   73     74   
        let input = self