Client Test

Client Test

rev. f8d13a6a02b3f39647c7cd888916368722759a0a

Files changed:

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

@@ -1214,1214 +1274,1275 @@
 1234   1234   
    {
 1235   1235   
        if config.behavior_version.is_none() {
 1236   1236   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1237   1237   
        }
 1238   1238   
    }
 1239   1239   
 1240   1240   
    let default_retry_partition = "restjsonprotocol";
 1241   1241   
 1242   1242   
    let scope = "rest_json";
 1243   1243   
 1244         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1244  +
    #[allow(deprecated)]
        1245  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1245   1246   
                        // defaults
 1246   1247   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1247   1248   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1248   1249   
                                .with_retry_partition_name(default_retry_partition)
 1249   1250   
                                .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."))
 1250   1251   
                        ))
 1251   1252   
                        // user config
 1252   1253   
                        .with_client_plugin(
 1253   1254   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1254   1255   
                                .with_config(config.config.clone())

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

@@ -1198,1198 +1258,1259 @@
 1218   1218   
    {
 1219   1219   
        if config.behavior_version.is_none() {
 1220   1220   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1221   1221   
        }
 1222   1222   
    }
 1223   1223   
 1224   1224   
    let default_retry_partition = "restjsonprotocol";
 1225   1225   
 1226   1226   
    let scope = "rest_json_extras";
 1227   1227   
 1228         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1228  +
    #[allow(deprecated)]
        1229  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1229   1230   
                        // defaults
 1230   1231   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1231   1232   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1232   1233   
                                .with_retry_partition_name(default_retry_partition)
 1233   1234   
                                .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   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())

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

@@ -1214,1214 +1274,1275 @@
 1234   1234   
    {
 1235   1235   
        if config.behavior_version.is_none() {
 1236   1236   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1237   1237   
        }
 1238   1238   
    }
 1239   1239   
 1240   1240   
    let default_retry_partition = "restxmlprotocol";
 1241   1241   
 1242   1242   
    let scope = "rest_xml";
 1243   1243   
 1244         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1244  +
    #[allow(deprecated)]
        1245  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1245   1246   
                        // defaults
 1246   1247   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1247   1248   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1248   1249   
                                .with_retry_partition_name(default_retry_partition)
 1249   1250   
                                .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."))
 1250   1251   
                        ))
 1251   1252   
                        // user config
 1252   1253   
                        .with_client_plugin(
 1253   1254   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1254   1255   
                                .with_config(config.config.clone())

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

@@ -1198,1198 +1258,1259 @@
 1218   1218   
    {
 1219   1219   
        if config.behavior_version.is_none() {
 1220   1220   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1221   1221   
        }
 1222   1222   
    }
 1223   1223   
 1224   1224   
    let default_retry_partition = "restxmlprotocol";
 1225   1225   
 1226   1226   
    let scope = "rest_xml_extras";
 1227   1227   
 1228         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1228  +
    #[allow(deprecated)]
        1229  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1229   1230   
                        // defaults
 1230   1231   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1231   1232   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1232   1233   
                                .with_retry_partition_name(default_retry_partition)
 1233   1234   
                                .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   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())

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

@@ -1198,1198 +1258,1259 @@
 1218   1218   
    {
 1219   1219   
        if config.behavior_version.is_none() {
 1220   1220   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1221   1221   
        }
 1222   1222   
    }
 1223   1223   
 1224   1224   
    let default_retry_partition = "restxmlprotocol";
 1225   1225   
 1226   1226   
    let scope = "rest_xml_extras_unwrapped";
 1227   1227   
 1228         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1228  +
    #[allow(deprecated)]
        1229  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1229   1230   
                        // defaults
 1230   1231   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1231   1232   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1232   1233   
                                .with_retry_partition_name(default_retry_partition)
 1233   1234   
                                .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   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())

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

@@ -1198,1198 +1258,1259 @@
 1218   1218   
    {
 1219   1219   
        if config.behavior_version.is_none() {
 1220   1220   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1221   1221   
        }
 1222   1222   
    }
 1223   1223   
 1224   1224   
    let default_retry_partition = "restxmlprotocolnamespace";
 1225   1225   
 1226   1226   
    let scope = "rest_xml_namespace";
 1227   1227   
 1228         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1228  +
    #[allow(deprecated)]
        1229  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1229   1230   
                        // defaults
 1230   1231   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1231   1232   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1232   1233   
                                .with_retry_partition_name(default_retry_partition)
 1233   1234   
                                .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   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())

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

@@ -1197,1197 +1257,1258 @@
 1217   1217   
    {
 1218   1218   
        if config.behavior_version.is_none() {
 1219   1219   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1220   1220   
        }
 1221   1221   
    }
 1222   1222   
 1223   1223   
    let default_retry_partition = "rpcv2protocol";
 1224   1224   
 1225   1225   
    let scope = "rpcv2cbor";
 1226   1226   
 1227         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1227  +
    #[allow(deprecated)]
        1228  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1228   1229   
                        // defaults
 1229   1230   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1230   1231   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1231   1232   
                                .with_retry_partition_name(default_retry_partition)
 1232   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."))
 1233   1234   
                        ))
 1234   1235   
                        // user config
 1235   1236   
                        .with_client_plugin(
 1236   1237   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1237   1238   
                                .with_config(config.config.clone())

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

@@ -1199,1199 +1259,1260 @@
 1219   1219   
    {
 1220   1220   
        if config.behavior_version.is_none() {
 1221   1221   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1222   1222   
        }
 1223   1223   
    }
 1224   1224   
 1225   1225   
    let default_retry_partition = "rpcv2cborservice";
 1226   1226   
 1227   1227   
    let scope = "rpcv2cbor_extras";
 1228   1228   
 1229         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1229  +
    #[allow(deprecated)]
        1230  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1230   1231   
                        // defaults
 1231   1232   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1232   1233   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1233   1234   
                                .with_retry_partition_name(default_retry_partition)
 1234   1235   
                                .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."))
 1235   1236   
                        ))
 1236   1237   
                        // user config
 1237   1238   
                        .with_client_plugin(
 1238   1239   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1239   1240   
                                .with_config(config.config.clone())

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

@@ -1199,1199 +1259,1260 @@
 1219   1219   
    {
 1220   1220   
        if config.behavior_version.is_none() {
 1221   1221   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1222   1222   
        }
 1223   1223   
    }
 1224   1224   
 1225   1225   
    let default_retry_partition = "nonquerycompatiblerpcv2protocol";
 1226   1226   
 1227   1227   
    let scope = "rpcv2cbor_non_query_compatible";
 1228   1228   
 1229         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1229  +
    #[allow(deprecated)]
        1230  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1230   1231   
                        // defaults
 1231   1232   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1232   1233   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1233   1234   
                                .with_retry_partition_name(default_retry_partition)
 1234   1235   
                                .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."))
 1235   1236   
                        ))
 1236   1237   
                        // user config
 1237   1238   
                        .with_client_plugin(
 1238   1239   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1239   1240   
                                .with_config(config.config.clone())

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

@@ -1199,1199 +1259,1260 @@
 1219   1219   
    {
 1220   1220   
        if config.behavior_version.is_none() {
 1221   1221   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1222   1222   
        }
 1223   1223   
    }
 1224   1224   
 1225   1225   
    let default_retry_partition = "querycompatiblerpcv2protocol";
 1226   1226   
 1227   1227   
    let scope = "rpcv2cbor_query_compatible";
 1228   1228   
 1229         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1229  +
    #[allow(deprecated)]
        1230  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1230   1231   
                        // defaults
 1231   1232   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1232   1233   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1233   1234   
                                .with_retry_partition_name(default_retry_partition)
 1234   1235   
                                .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."))
 1235   1236   
                        ))
 1236   1237   
                        // user config
 1237   1238   
                        .with_client_plugin(
 1238   1239   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1239   1240   
                                .with_config(config.config.clone())

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

@@ -1196,1196 +1256,1257 @@
 1216   1216   
    {
 1217   1217   
        if config.behavior_version.is_none() {
 1218   1218   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1219   1219   
        }
 1220   1220   
    }
 1221   1221   
 1222   1222   
    let default_retry_partition = "simpleservice";
 1223   1223   
 1224   1224   
    let scope = "simple";
 1225   1225   
 1226         -
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
        1226  +
    #[allow(deprecated)]
        1227  +
                    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1227   1228   
                        // defaults
 1228   1229   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1229   1230   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1230   1231   
                                .with_retry_partition_name(default_retry_partition)
 1231   1232   
                                .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."))
 1232   1233   
                        ))
 1233   1234   
                        // user config
 1234   1235   
                        .with_client_plugin(
 1235   1236   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1236   1237   
                                .with_config(config.config.clone())