Client Test
rev. daaaaae30b6928be97b33eccac35ffadde7c457d
Files changed:
@@ -1220,1220 +1279,1280 @@
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 = "queryprotocol";
|
1241 1241 |
|
1242 1242 | let scope = "aws_query";
|
1243 1243 |
|
1244 1244 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1245 1245 | // defaults
|
1246 1246 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1247 1247 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1248 1248 | .with_retry_partition_name(default_retry_partition)
|
1249 1249 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1274 1275 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1275 1276 |
|
1276 1277 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1277 1278 |
|
1278 1279 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1279 1280 |
|
@@ -1220,1220 +1279,1280 @@
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 = "dynamodb";
|
1241 1241 |
|
1242 1242 | let scope = "dynamo";
|
1243 1243 |
|
1244 1244 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1245 1245 | // defaults
|
1246 1246 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1247 1247 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1248 1248 | .with_retry_partition_name(default_retry_partition)
|
1249 1249 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1274 1275 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1275 1276 |
|
1276 1277 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1277 1278 |
|
1278 1279 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1279 1280 |
|
@@ -1220,1220 +1279,1280 @@
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 = "ebs";
|
1241 1241 |
|
1242 1242 | let scope = "ebs";
|
1243 1243 |
|
1244 1244 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1245 1245 | // defaults
|
1246 1246 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1247 1247 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1248 1248 | .with_retry_partition_name(default_retry_partition)
|
1249 1249 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1274 1275 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1275 1276 |
|
1276 1277 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1277 1278 |
|
1278 1279 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1279 1280 |
|
@@ -1220,1220 +1279,1280 @@
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 = "ec2protocol";
|
1241 1241 |
|
1242 1242 | let scope = "ec2_query";
|
1243 1243 |
|
1244 1244 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1245 1245 | // defaults
|
1246 1246 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1247 1247 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1248 1248 | .with_retry_partition_name(default_retry_partition)
|
1249 1249 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1274 1275 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1275 1276 |
|
1276 1277 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1277 1278 |
|
1278 1279 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1279 1280 |
|
@@ -1214,1214 +1273,1274 @@
1214 1214 | ::std::borrow::Cow::Borrowed(&self.components)
|
1215 1215 | }
|
1216 1216 | }
|
1217 1217 |
|
1218 1218 | pub use ::aws_smithy_runtime::client::identity::IdentityCache;
|
1219 1219 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
|
1220 1220 | pub use ::aws_smithy_types::config_bag::ConfigBag;
|
1221 1221 |
|
1222 1222 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1223 1223 |
|
1224 1224 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1225 1225 | let mut configured_plugins = ::std::vec::Vec::new();
|
1226 1226 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1227 1227 | #[cfg(feature = "behavior-version-latest")]
|
1228 1228 | {
|
1229 1229 | if config.behavior_version.is_none() {
|
1230 1230 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1231 1231 | }
|
1232 1232 | }
|
1233 1233 |
|
1234 1234 | let default_retry_partition = "testservice";
|
1235 1235 |
|
1236 1236 | let scope = "endpoint-rules";
|
1237 1237 |
|
1238 1238 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1239 1239 | // defaults
|
1240 1240 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1241 1241 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1242 1242 | .with_retry_partition_name(default_retry_partition)
|
1243 1243 | .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."))
|
1244 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1244 1245 | ))
|
1245 1246 | // user config
|
1246 1247 | .with_client_plugin(
|
1247 1248 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1248 1249 | .with_config(config.config.clone())
|
1249 1250 | .with_runtime_components(config.runtime_components.clone())
|
1250 1251 | )
|
1251 1252 | // codegen config
|
1252 1253 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1253 1254 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1254 1255 | .with_client_plugin(
|
1255 1256 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1256 1257 | .with_scope(scope)
|
1257 1258 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1258 1259 | .build()
|
1259 1260 | .expect("All required fields have been set")
|
1260 1261 | );
|
1261 1262 |
|
1262 1263 | for plugin in configured_plugins {
|
1263 1264 | plugins = plugins.with_client_plugin(plugin);
|
1264 1265 | }
|
1265 1266 | plugins
|
1266 1267 | }
|
1267 1268 |
|
1268 1269 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1269 1270 |
|
1270 1271 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1271 1272 |
|
1272 1273 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1273 1274 |
|
@@ -1202,1202 +1261,1262 @@
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 = "jsonrpc10";
|
1223 1223 |
|
1224 1224 | let scope = "json_rpc10";
|
1225 1225 |
|
1226 1226 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1227 1227 | // defaults
|
1228 1228 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1229 1229 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1230 1230 | .with_retry_partition_name(default_retry_partition)
|
1231 1231 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1256 1257 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1257 1258 |
|
1258 1259 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1261 1262 |
|
@@ -1202,1202 +1261,1262 @@
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 = "jsonprotocol";
|
1223 1223 |
|
1224 1224 | let scope = "json_rpc11";
|
1225 1225 |
|
1226 1226 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1227 1227 | // defaults
|
1228 1228 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1229 1229 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1230 1230 | .with_retry_partition_name(default_retry_partition)
|
1231 1231 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1256 1257 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1257 1258 |
|
1258 1259 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1261 1262 |
|
@@ -1202,1202 +1261,1262 @@
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 = "miscservice";
|
1223 1223 |
|
1224 1224 | let scope = "misc";
|
1225 1225 |
|
1226 1226 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1227 1227 | // defaults
|
1228 1228 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1229 1229 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1230 1230 | .with_retry_partition_name(default_retry_partition)
|
1231 1231 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1256 1257 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1257 1258 |
|
1258 1259 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1261 1262 |
|
@@ -1204,1204 +1263,1264 @@
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 = "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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1258 1259 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1261 1262 |
|
1262 1263 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1263 1264 |
|
@@ -1204,1204 +1263,1264 @@
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 = "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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1258 1259 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1261 1262 |
|
1262 1263 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1263 1264 |
|
@@ -1204,1204 +1263,1264 @@
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 = "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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1258 1259 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1261 1262 |
|
1262 1263 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1263 1264 |
|
@@ -1204,1204 +1263,1264 @@
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 = "pokemonservice";
|
1225 1225 |
|
1226 1226 | let scope = "pokemon-service-awsjson-client";
|
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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1258 1259 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1261 1262 |
|
1262 1263 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1263 1264 |
|
@@ -1204,1204 +1263,1264 @@
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 = "pokemonservice";
|
1225 1225 |
|
1226 1226 | let scope = "pokemon-service-client";
|
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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1258 1259 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1261 1262 |
|
1262 1263 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1263 1264 |
|
@@ -1204,1204 +1263,1264 @@
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 = "querycompatservice";
|
1225 1225 |
|
1226 1226 | let scope = "query-compat-test";
|
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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1258 1259 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1259 1260 |
|
1260 1261 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1261 1262 |
|
1262 1263 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1263 1264 |
|
@@ -1220,1220 +1279,1280 @@
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 1244 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1245 1245 | // defaults
|
1246 1246 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1247 1247 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1248 1248 | .with_retry_partition_name(default_retry_partition)
|
1249 1249 | .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 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
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 |
|
1274 1275 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1275 1276 |
|
1276 1277 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1277 1278 |
|
1278 1279 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1279 1280 |
|