173 173 | }
|
174 174 | #[derive(Debug)]
|
175 175 | struct DescribeNetworkInsightsAnalysesRequestSerializer;
|
176 176 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeNetworkInsightsAnalysesRequestSerializer {
|
177 177 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
178 178 | fn serialize_input(
|
179 179 | &self,
|
180 180 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
181 181 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
182 182 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
183 183 | let input = input
|
184 184 | .downcast::<crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesInput>()
|
185 185 | .expect("correct type");
|
186 186 | let _header_serialization_settings = _cfg
|
187 187 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
188 188 | .cloned()
|
189 189 | .unwrap_or_default();
|
190 190 | let mut request_builder = {
|
191 191 | #[allow(clippy::uninlined_format_args)]
|
192 192 | fn uri_base(
|
193 193 | _input: &crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesInput,
|
194 194 | output: &mut ::std::string::String,
|
195 195 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
196 196 | use ::std::fmt::Write as _;
|
197 197 | ::std::write!(output, "/").expect("formatting should succeed");
|
198 198 | ::std::result::Result::Ok(())
|
199 199 | }
|
200 200 | #[allow(clippy::unnecessary_wraps)]
|
201 201 | fn update_http_builder(
|
202 202 | input: &crate::operation::describe_network_insights_analyses::DescribeNetworkInsightsAnalysesInput,
|
203 - | builder: ::http::request::Builder,
|
204 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
203 + | builder: ::http_1x::request::Builder,
|
204 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
205 205 | let mut uri = ::std::string::String::new();
|
206 206 | uri_base(input, &mut uri)?;
|
207 207 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
208 208 | }
|
209 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
210 - | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
|
209 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
210 + | builder =
|
211 + | _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
|
211 212 | builder
|
212 213 | };
|
213 214 | let body = ::aws_smithy_types::body::SdkBody::from(
|
214 215 | crate::protocol_serde::shape_describe_network_insights_analyses_input::ser_describe_network_insights_analyses_input_input_input(&input)?,
|
215 216 | );
|
216 217 | if let Some(content_length) = body.content_length() {
|
217 218 | let content_length = content_length.to_string();
|
218 - | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
219 + | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
|
219 220 | }
|
220 221 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
221 222 | }
|
222 223 | }
|
223 224 | #[derive(Debug)]
|
224 225 | struct DescribeNetworkInsightsAnalysesEndpointParamsInterceptor;
|
225 226 |
|
226 227 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeNetworkInsightsAnalysesEndpointParamsInterceptor {
|
227 228 | fn name(&self) -> &'static str {
|
228 229 | "DescribeNetworkInsightsAnalysesEndpointParamsInterceptor"
|
229 230 | }
|
230 231 |
|
231 232 | fn read_before_execution(
|
232 233 | &self,
|
233 234 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
234 235 | '_,
|
235 236 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
236 237 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
237 238 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
238 239 | >,
|
239 240 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
240 241 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
241 242 | let _input = context
|
242 243 | .input()
|
243 244 | .downcast_ref::<DescribeNetworkInsightsAnalysesInput>()
|
244 245 | .ok_or("failed to downcast to DescribeNetworkInsightsAnalysesInput")?;
|
245 246 |
|
246 247 | let params = crate::config::endpoint::Params::builder()
|
247 248 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
248 249 | .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
|