Client Test
rev. f8d13a6a02b3f39647c7cd888916368722759a0a (ignoring whitespace)
Files changed:
@@ -1214,1214 +1273,1274 @@
1214 1214 | }
|
1215 1215 |
|
1216 1216 | fn runtime_components(
|
1217 1217 | &self,
|
1218 1218 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1219 1219 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1220 1220 | ::std::borrow::Cow::Borrowed(&self.components)
|
1221 1221 | }
|
1222 1222 | }
|
1223 1223 |
|
1224 1224 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1225 1225 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1226 1226 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1227 1227 |
|
1228 1228 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1229 1229 |
|
1230 1230 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1231 1231 | let mut configured_plugins = ::std::vec::Vec::new();
|
1232 1232 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1233 1233 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1244 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())
|
1255 1256 | .with_runtime_components(config.runtime_components.clone())
|
1256 1257 | )
|
1257 1258 | // codegen config
|
1258 1259 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1259 1260 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1260 1261 | .with_client_plugin(
|
1261 1262 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1262 1263 | .with_scope(scope)
|
1263 1264 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1264 1265 | .build()
|
1265 1266 | .expect("All required fields have been set")
|
1266 1267 | );
|
1267 1268 |
|
1268 1269 | for plugin in configured_plugins {
|
1269 1270 | plugins = plugins.with_client_plugin(plugin);
|
1270 1271 | }
|
1271 1272 | plugins
|
1272 1273 | }
|
1273 1274 |
|
@@ -1198,1198 +1257,1258 @@
1198 1198 | }
|
1199 1199 |
|
1200 1200 | fn runtime_components(
|
1201 1201 | &self,
|
1202 1202 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1203 1203 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1204 1204 | ::std::borrow::Cow::Borrowed(&self.components)
|
1205 1205 | }
|
1206 1206 | }
|
1207 1207 |
|
1208 1208 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1209 1209 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1210 1210 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1211 1211 |
|
1212 1212 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1213 1213 |
|
1214 1214 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1215 1215 | let mut configured_plugins = ::std::vec::Vec::new();
|
1216 1216 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1217 1217 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1228 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())
|
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())
|
1244 1245 | .with_client_plugin(
|
1245 1246 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1246 1247 | .with_scope(scope)
|
1247 1248 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1248 1249 | .build()
|
1249 1250 | .expect("All required fields have been set")
|
1250 1251 | );
|
1251 1252 |
|
1252 1253 | for plugin in configured_plugins {
|
1253 1254 | plugins = plugins.with_client_plugin(plugin);
|
1254 1255 | }
|
1255 1256 | plugins
|
1256 1257 | }
|
1257 1258 |
|
@@ -1214,1214 +1273,1274 @@
1214 1214 | }
|
1215 1215 |
|
1216 1216 | fn runtime_components(
|
1217 1217 | &self,
|
1218 1218 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1219 1219 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1220 1220 | ::std::borrow::Cow::Borrowed(&self.components)
|
1221 1221 | }
|
1222 1222 | }
|
1223 1223 |
|
1224 1224 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1225 1225 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1226 1226 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1227 1227 |
|
1228 1228 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1229 1229 |
|
1230 1230 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1231 1231 | let mut configured_plugins = ::std::vec::Vec::new();
|
1232 1232 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1233 1233 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1244 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())
|
1255 1256 | .with_runtime_components(config.runtime_components.clone())
|
1256 1257 | )
|
1257 1258 | // codegen config
|
1258 1259 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1259 1260 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1260 1261 | .with_client_plugin(
|
1261 1262 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1262 1263 | .with_scope(scope)
|
1263 1264 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1264 1265 | .build()
|
1265 1266 | .expect("All required fields have been set")
|
1266 1267 | );
|
1267 1268 |
|
1268 1269 | for plugin in configured_plugins {
|
1269 1270 | plugins = plugins.with_client_plugin(plugin);
|
1270 1271 | }
|
1271 1272 | plugins
|
1272 1273 | }
|
1273 1274 |
|
@@ -1198,1198 +1257,1258 @@
1198 1198 | }
|
1199 1199 |
|
1200 1200 | fn runtime_components(
|
1201 1201 | &self,
|
1202 1202 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1203 1203 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1204 1204 | ::std::borrow::Cow::Borrowed(&self.components)
|
1205 1205 | }
|
1206 1206 | }
|
1207 1207 |
|
1208 1208 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1209 1209 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1210 1210 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1211 1211 |
|
1212 1212 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1213 1213 |
|
1214 1214 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1215 1215 | let mut configured_plugins = ::std::vec::Vec::new();
|
1216 1216 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1217 1217 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1228 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())
|
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())
|
1244 1245 | .with_client_plugin(
|
1245 1246 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1246 1247 | .with_scope(scope)
|
1247 1248 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1248 1249 | .build()
|
1249 1250 | .expect("All required fields have been set")
|
1250 1251 | );
|
1251 1252 |
|
1252 1253 | for plugin in configured_plugins {
|
1253 1254 | plugins = plugins.with_client_plugin(plugin);
|
1254 1255 | }
|
1255 1256 | plugins
|
1256 1257 | }
|
1257 1258 |
|
@@ -1198,1198 +1257,1258 @@
1198 1198 | }
|
1199 1199 |
|
1200 1200 | fn runtime_components(
|
1201 1201 | &self,
|
1202 1202 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1203 1203 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1204 1204 | ::std::borrow::Cow::Borrowed(&self.components)
|
1205 1205 | }
|
1206 1206 | }
|
1207 1207 |
|
1208 1208 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1209 1209 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1210 1210 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1211 1211 |
|
1212 1212 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1213 1213 |
|
1214 1214 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1215 1215 | let mut configured_plugins = ::std::vec::Vec::new();
|
1216 1216 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1217 1217 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1228 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())
|
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())
|
1244 1245 | .with_client_plugin(
|
1245 1246 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1246 1247 | .with_scope(scope)
|
1247 1248 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1248 1249 | .build()
|
1249 1250 | .expect("All required fields have been set")
|
1250 1251 | );
|
1251 1252 |
|
1252 1253 | for plugin in configured_plugins {
|
1253 1254 | plugins = plugins.with_client_plugin(plugin);
|
1254 1255 | }
|
1255 1256 | plugins
|
1256 1257 | }
|
1257 1258 |
|
@@ -1198,1198 +1257,1258 @@
1198 1198 | }
|
1199 1199 |
|
1200 1200 | fn runtime_components(
|
1201 1201 | &self,
|
1202 1202 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1203 1203 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1204 1204 | ::std::borrow::Cow::Borrowed(&self.components)
|
1205 1205 | }
|
1206 1206 | }
|
1207 1207 |
|
1208 1208 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1209 1209 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1210 1210 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1211 1211 |
|
1212 1212 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1213 1213 |
|
1214 1214 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1215 1215 | let mut configured_plugins = ::std::vec::Vec::new();
|
1216 1216 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1217 1217 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1228 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())
|
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())
|
1244 1245 | .with_client_plugin(
|
1245 1246 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1246 1247 | .with_scope(scope)
|
1247 1248 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1248 1249 | .build()
|
1249 1250 | .expect("All required fields have been set")
|
1250 1251 | );
|
1251 1252 |
|
1252 1253 | for plugin in configured_plugins {
|
1253 1254 | plugins = plugins.with_client_plugin(plugin);
|
1254 1255 | }
|
1255 1256 | plugins
|
1256 1257 | }
|
1257 1258 |
|
@@ -1197,1197 +1256,1257 @@
1197 1197 | }
|
1198 1198 |
|
1199 1199 | fn runtime_components(
|
1200 1200 | &self,
|
1201 1201 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1202 1202 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1203 1203 | ::std::borrow::Cow::Borrowed(&self.components)
|
1204 1204 | }
|
1205 1205 | }
|
1206 1206 |
|
1207 1207 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1208 1208 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1209 1209 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1210 1210 |
|
1211 1211 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1212 1212 |
|
1213 1213 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1214 1214 | let mut configured_plugins = ::std::vec::Vec::new();
|
1215 1215 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1216 1216 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1227 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())
|
1238 1239 | .with_runtime_components(config.runtime_components.clone())
|
1239 1240 | )
|
1240 1241 | // codegen config
|
1241 1242 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1242 1243 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1243 1244 | .with_client_plugin(
|
1244 1245 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1245 1246 | .with_scope(scope)
|
1246 1247 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1247 1248 | .build()
|
1248 1249 | .expect("All required fields have been set")
|
1249 1250 | );
|
1250 1251 |
|
1251 1252 | for plugin in configured_plugins {
|
1252 1253 | plugins = plugins.with_client_plugin(plugin);
|
1253 1254 | }
|
1254 1255 | plugins
|
1255 1256 | }
|
1256 1257 |
|
@@ -1199,1199 +1258,1259 @@
1199 1199 | }
|
1200 1200 |
|
1201 1201 | fn runtime_components(
|
1202 1202 | &self,
|
1203 1203 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1204 1204 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1205 1205 | ::std::borrow::Cow::Borrowed(&self.components)
|
1206 1206 | }
|
1207 1207 | }
|
1208 1208 |
|
1209 1209 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1210 1210 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1211 1211 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1212 1212 |
|
1213 1213 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1214 1214 |
|
1215 1215 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1216 1216 | let mut configured_plugins = ::std::vec::Vec::new();
|
1217 1217 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1218 1218 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1229 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())
|
1240 1241 | .with_runtime_components(config.runtime_components.clone())
|
1241 1242 | )
|
1242 1243 | // codegen config
|
1243 1244 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1244 1245 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1245 1246 | .with_client_plugin(
|
1246 1247 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1247 1248 | .with_scope(scope)
|
1248 1249 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1249 1250 | .build()
|
1250 1251 | .expect("All required fields have been set")
|
1251 1252 | );
|
1252 1253 |
|
1253 1254 | for plugin in configured_plugins {
|
1254 1255 | plugins = plugins.with_client_plugin(plugin);
|
1255 1256 | }
|
1256 1257 | plugins
|
1257 1258 | }
|
1258 1259 |
|
@@ -1199,1199 +1258,1259 @@
1199 1199 | }
|
1200 1200 |
|
1201 1201 | fn runtime_components(
|
1202 1202 | &self,
|
1203 1203 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1204 1204 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1205 1205 | ::std::borrow::Cow::Borrowed(&self.components)
|
1206 1206 | }
|
1207 1207 | }
|
1208 1208 |
|
1209 1209 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1210 1210 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1211 1211 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1212 1212 |
|
1213 1213 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1214 1214 |
|
1215 1215 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1216 1216 | let mut configured_plugins = ::std::vec::Vec::new();
|
1217 1217 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1218 1218 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1229 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())
|
1240 1241 | .with_runtime_components(config.runtime_components.clone())
|
1241 1242 | )
|
1242 1243 | // codegen config
|
1243 1244 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1244 1245 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1245 1246 | .with_client_plugin(
|
1246 1247 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1247 1248 | .with_scope(scope)
|
1248 1249 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1249 1250 | .build()
|
1250 1251 | .expect("All required fields have been set")
|
1251 1252 | );
|
1252 1253 |
|
1253 1254 | for plugin in configured_plugins {
|
1254 1255 | plugins = plugins.with_client_plugin(plugin);
|
1255 1256 | }
|
1256 1257 | plugins
|
1257 1258 | }
|
1258 1259 |
|
@@ -1199,1199 +1258,1259 @@
1199 1199 | }
|
1200 1200 |
|
1201 1201 | fn runtime_components(
|
1202 1202 | &self,
|
1203 1203 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1204 1204 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1205 1205 | ::std::borrow::Cow::Borrowed(&self.components)
|
1206 1206 | }
|
1207 1207 | }
|
1208 1208 |
|
1209 1209 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1210 1210 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1211 1211 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1212 1212 |
|
1213 1213 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1214 1214 |
|
1215 1215 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1216 1216 | let mut configured_plugins = ::std::vec::Vec::new();
|
1217 1217 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1218 1218 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1229 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())
|
1240 1241 | .with_runtime_components(config.runtime_components.clone())
|
1241 1242 | )
|
1242 1243 | // codegen config
|
1243 1244 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1244 1245 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1245 1246 | .with_client_plugin(
|
1246 1247 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1247 1248 | .with_scope(scope)
|
1248 1249 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1249 1250 | .build()
|
1250 1251 | .expect("All required fields have been set")
|
1251 1252 | );
|
1252 1253 |
|
1253 1254 | for plugin in configured_plugins {
|
1254 1255 | plugins = plugins.with_client_plugin(plugin);
|
1255 1256 | }
|
1256 1257 | plugins
|
1257 1258 | }
|
1258 1259 |
|
@@ -1196,1196 +1255,1256 @@
1196 1196 | }
|
1197 1197 |
|
1198 1198 | fn runtime_components(
|
1199 1199 | &self,
|
1200 1200 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
1201 1201 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
1202 1202 | ::std::borrow::Cow::Borrowed(&self.components)
|
1203 1203 | }
|
1204 1204 | }
|
1205 1205 |
|
1206 1206 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1207 1207 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1208 1208 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1209 1209 |
|
1210 1210 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1211 1211 |
|
1212 1212 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1213 1213 | let mut configured_plugins = ::std::vec::Vec::new();
|
1214 1214 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1215 1215 | #[cfg(feature = "behavior-version-latest")]
|
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 + | #[allow(deprecated)]
|
1226 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())
|
1237 1238 | .with_runtime_components(config.runtime_components.clone())
|
1238 1239 | )
|
1239 1240 | // codegen config
|
1240 1241 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1241 1242 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1242 1243 | .with_client_plugin(
|
1243 1244 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1244 1245 | .with_scope(scope)
|
1245 1246 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1246 1247 | .build()
|
1247 1248 | .expect("All required fields have been set")
|
1248 1249 | );
|
1249 1250 |
|
1250 1251 | for plugin in configured_plugins {
|
1251 1252 | plugins = plugins.with_client_plugin(plugin);
|
1252 1253 | }
|
1253 1254 | plugins
|
1254 1255 | }
|
1255 1256 |
|