Client Test

Client Test

rev. 645b1734ce74ebbc529fecda676baac60fe4d581 (ignoring whitespace)

Files changed:

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

@@ -204,204 +265,267 @@
  224    224   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  225    225   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  226    226   
        let _input = context
  227    227   
            .input()
  228    228   
            .downcast_ref::<MalformedContentTypeWithPayloadInput>()
  229    229   
            .ok_or("failed to downcast to MalformedContentTypeWithPayloadInput")?;
  230    230   
  231    231   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  232    232   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  233    233   
        })?;
         234  +
  234    235   
        cfg.interceptor_state()
  235    236   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         237  +
  236    238   
        ::std::result::Result::Ok(())
  237    239   
    }
  238    240   
}
  239    241   
  240    242   
// The get_* functions below are generated from JMESPath expressions in the
  241    243   
// operationContextParams trait. They target the operation's input shape.
  242    244   
  243    245   
/// Error type for the `MalformedContentTypeWithPayloadError` operation.
  244    246   
#[non_exhaustive]
  245    247   
#[derive(::std::fmt::Debug)]

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

@@ -198,198 +259,261 @@
  218    218   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  219    219   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  220    220   
        let _input = context
  221    221   
            .input()
  222    222   
            .downcast_ref::<MalformedContentTypeWithoutBodyInput>()
  223    223   
            .ok_or("failed to downcast to MalformedContentTypeWithoutBodyInput")?;
  224    224   
  225    225   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  226    226   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  227    227   
        })?;
         228  +
  228    229   
        cfg.interceptor_state()
  229    230   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         231  +
  230    232   
        ::std::result::Result::Ok(())
  231    233   
    }
  232    234   
}
  233    235   
  234    236   
// The get_* functions below are generated from JMESPath expressions in the
  235    237   
// operationContextParams trait. They target the operation's input shape.
  236    238   
  237    239   
/// Error type for the `MalformedContentTypeWithoutBodyError` operation.
  238    240   
#[non_exhaustive]
  239    241   
#[derive(::std::fmt::Debug)]

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

@@ -198,198 +259,261 @@
  218    218   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  219    219   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  220    220   
        let _input = context
  221    221   
            .input()
  222    222   
            .downcast_ref::<MalformedContentTypeWithoutBodyEmptyInputInput>()
  223    223   
            .ok_or("failed to downcast to MalformedContentTypeWithoutBodyEmptyInputInput")?;
  224    224   
  225    225   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  226    226   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  227    227   
        })?;
         228  +
  228    229   
        cfg.interceptor_state()
  229    230   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         231  +
  230    232   
        ::std::result::Result::Ok(())
  231    233   
    }
  232    234   
}
  233    235   
  234    236   
// The get_* functions below are generated from JMESPath expressions in the
  235    237   
// operationContextParams trait. They target the operation's input shape.
  236    238   
  237    239   
/// Error type for the `MalformedContentTypeWithoutBodyEmptyInputError` operation.
  238    240   
#[non_exhaustive]
  239    241   
#[derive(::std::fmt::Debug)]

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

@@ -226,226 +287,289 @@
  246    246   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  247    247   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  248    248   
        let _input = context
  249    249   
            .input()
  250    250   
            .downcast_ref::<MalformedDoubleInput>()
  251    251   
            .ok_or("failed to downcast to MalformedDoubleInput")?;
  252    252   
  253    253   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  254    254   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  255    255   
        })?;
         256  +
  256    257   
        cfg.interceptor_state()
  257    258   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         259  +
  258    260   
        ::std::result::Result::Ok(())
  259    261   
    }
  260    262   
}
  261    263   
  262    264   
// The get_* functions below are generated from JMESPath expressions in the
  263    265   
// operationContextParams trait. They target the operation's input shape.
  264    266   
  265    267   
/// Error type for the `MalformedDoubleError` operation.
  266    268   
#[non_exhaustive]
  267    269   
#[derive(::std::fmt::Debug)]

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

@@ -220,220 +281,283 @@
  240    240   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  241    241   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  242    242   
        let _input = context
  243    243   
            .input()
  244    244   
            .downcast_ref::<MalformedFloatInput>()
  245    245   
            .ok_or("failed to downcast to MalformedFloatInput")?;
  246    246   
  247    247   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  248    248   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  249    249   
        })?;
         250  +
  250    251   
        cfg.interceptor_state()
  251    252   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         253  +
  252    254   
        ::std::result::Result::Ok(())
  253    255   
    }
  254    256   
}
  255    257   
  256    258   
// The get_* functions below are generated from JMESPath expressions in the
  257    259   
// operationContextParams trait. They target the operation's input shape.
  258    260   
  259    261   
/// Error type for the `MalformedFloatError` operation.
  260    262   
#[non_exhaustive]
  261    263   
#[derive(::std::fmt::Debug)]

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

@@ -226,226 +287,289 @@
  246    246   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  247    247   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  248    248   
        let _input = context
  249    249   
            .input()
  250    250   
            .downcast_ref::<MalformedIntegerInput>()
  251    251   
            .ok_or("failed to downcast to MalformedIntegerInput")?;
  252    252   
  253    253   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  254    254   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  255    255   
        })?;
         256  +
  256    257   
        cfg.interceptor_state()
  257    258   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         259  +
  258    260   
        ::std::result::Result::Ok(())
  259    261   
    }
  260    262   
}
  261    263   
  262    264   
// The get_* functions below are generated from JMESPath expressions in the
  263    265   
// operationContextParams trait. They target the operation's input shape.
  264    266   
  265    267   
/// Error type for the `MalformedIntegerError` operation.
  266    268   
#[non_exhaustive]
  267    269   
#[derive(::std::fmt::Debug)]

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

@@ -194,194 +255,257 @@
  214    214   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  215    215   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  216    216   
        let _input = context
  217    217   
            .input()
  218    218   
            .downcast_ref::<MalformedListInput>()
  219    219   
            .ok_or("failed to downcast to MalformedListInput")?;
  220    220   
  221    221   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  222    222   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  223    223   
        })?;
         224  +
  224    225   
        cfg.interceptor_state()
  225    226   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         227  +
  226    228   
        ::std::result::Result::Ok(())
  227    229   
    }
  228    230   
}
  229    231   
  230    232   
// The get_* functions below are generated from JMESPath expressions in the
  231    233   
// operationContextParams trait. They target the operation's input shape.
  232    234   
  233    235   
/// Error type for the `MalformedListError` operation.
  234    236   
#[non_exhaustive]
  235    237   
#[derive(::std::fmt::Debug)]

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

@@ -220,220 +281,283 @@
  240    240   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  241    241   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  242    242   
        let _input = context
  243    243   
            .input()
  244    244   
            .downcast_ref::<MalformedLongInput>()
  245    245   
            .ok_or("failed to downcast to MalformedLongInput")?;
  246    246   
  247    247   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  248    248   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  249    249   
        })?;
         250  +
  250    251   
        cfg.interceptor_state()
  251    252   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         253  +
  252    254   
        ::std::result::Result::Ok(())
  253    255   
    }
  254    256   
}
  255    257   
  256    258   
// The get_* functions below are generated from JMESPath expressions in the
  257    259   
// operationContextParams trait. They target the operation's input shape.
  258    260   
  259    261   
/// Error type for the `MalformedLongError` operation.
  260    262   
#[non_exhaustive]
  261    263   
#[derive(::std::fmt::Debug)]

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

@@ -194,194 +255,257 @@
  214    214   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  215    215   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  216    216   
        let _input = context
  217    217   
            .input()
  218    218   
            .downcast_ref::<MalformedMapInput>()
  219    219   
            .ok_or("failed to downcast to MalformedMapInput")?;
  220    220   
  221    221   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  222    222   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  223    223   
        })?;
         224  +
  224    225   
        cfg.interceptor_state()
  225    226   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         227  +
  226    228   
        ::std::result::Result::Ok(())
  227    229   
    }
  228    230   
}
  229    231   
  230    232   
// The get_* functions below are generated from JMESPath expressions in the
  231    233   
// operationContextParams trait. They target the operation's input shape.
  232    234   
  233    235   
/// Error type for the `MalformedMapError` operation.
  234    236   
#[non_exhaustive]
  235    237   
#[derive(::std::fmt::Debug)]

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

@@ -202,202 +263,265 @@
  222    222   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  223    223   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  224    224   
        let _input = context
  225    225   
            .input()
  226    226   
            .downcast_ref::<MalformedRequestBodyInput>()
  227    227   
            .ok_or("failed to downcast to MalformedRequestBodyInput")?;
  228    228   
  229    229   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  230    230   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  231    231   
        })?;
         232  +
  232    233   
        cfg.interceptor_state()
  233    234   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         235  +
  234    236   
        ::std::result::Result::Ok(())
  235    237   
    }
  236    238   
}
  237    239   
  238    240   
// The get_* functions below are generated from JMESPath expressions in the
  239    241   
// operationContextParams trait. They target the operation's input shape.
  240    242   
  241    243   
/// Error type for the `MalformedRequestBodyError` operation.
  242    244   
#[non_exhaustive]
  243    245   
#[derive(::std::fmt::Debug)]

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

@@ -220,220 +281,283 @@
  240    240   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  241    241   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  242    242   
        let _input = context
  243    243   
            .input()
  244    244   
            .downcast_ref::<MalformedShortInput>()
  245    245   
            .ok_or("failed to downcast to MalformedShortInput")?;
  246    246   
  247    247   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  248    248   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  249    249   
        })?;
         250  +
  250    251   
        cfg.interceptor_state()
  251    252   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         253  +
  252    254   
        ::std::result::Result::Ok(())
  253    255   
    }
  254    256   
}
  255    257   
  256    258   
// The get_* functions below are generated from JMESPath expressions in the
  257    259   
// operationContextParams trait. They target the operation's input shape.
  258    260   
  259    261   
/// Error type for the `MalformedShortError` operation.
  260    262   
#[non_exhaustive]
  261    263   
#[derive(::std::fmt::Debug)]

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

@@ -197,197 +258,260 @@
  217    217   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  218    218   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  219    219   
        let _input = context
  220    220   
            .input()
  221    221   
            .downcast_ref::<MalformedStringInput>()
  222    222   
            .ok_or("failed to downcast to MalformedStringInput")?;
  223    223   
  224    224   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  225    225   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  226    226   
        })?;
         227  +
  227    228   
        cfg.interceptor_state()
  228    229   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         230  +
  229    231   
        ::std::result::Result::Ok(())
  230    232   
    }
  231    233   
}
  232    234   
  233    235   
// The get_* functions below are generated from JMESPath expressions in the
  234    236   
// operationContextParams trait. They target the operation's input shape.
  235    237   
  236    238   
/// Error type for the `MalformedStringError` operation.
  237    239   
#[non_exhaustive]
  238    240   
#[derive(::std::fmt::Debug)]

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

@@ -204,204 +265,267 @@
  224    224   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  225    225   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  226    226   
        let _input = context
  227    227   
            .input()
  228    228   
            .downcast_ref::<MalformedTimestampBodyDateTimeInput>()
  229    229   
            .ok_or("failed to downcast to MalformedTimestampBodyDateTimeInput")?;
  230    230   
  231    231   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  232    232   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  233    233   
        })?;
         234  +
  234    235   
        cfg.interceptor_state()
  235    236   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         237  +
  236    238   
        ::std::result::Result::Ok(())
  237    239   
    }
  238    240   
}
  239    241   
  240    242   
// The get_* functions below are generated from JMESPath expressions in the
  241    243   
// operationContextParams trait. They target the operation's input shape.
  242    244   
  243    245   
/// Error type for the `MalformedTimestampBodyDateTimeError` operation.
  244    246   
#[non_exhaustive]
  245    247   
#[derive(::std::fmt::Debug)]

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

@@ -202,202 +263,265 @@
  222    222   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  223    223   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  224    224   
        let _input = context
  225    225   
            .input()
  226    226   
            .downcast_ref::<MalformedTimestampBodyDefaultInput>()
  227    227   
            .ok_or("failed to downcast to MalformedTimestampBodyDefaultInput")?;
  228    228   
  229    229   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  230    230   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  231    231   
        })?;
         232  +
  232    233   
        cfg.interceptor_state()
  233    234   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         235  +
  234    236   
        ::std::result::Result::Ok(())
  235    237   
    }
  236    238   
}
  237    239   
  238    240   
// The get_* functions below are generated from JMESPath expressions in the
  239    241   
// operationContextParams trait. They target the operation's input shape.
  240    242   
  241    243   
/// Error type for the `MalformedTimestampBodyDefaultError` operation.
  242    244   
#[non_exhaustive]
  243    245   
#[derive(::std::fmt::Debug)]

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

@@ -204,204 +265,267 @@
  224    224   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  225    225   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  226    226   
        let _input = context
  227    227   
            .input()
  228    228   
            .downcast_ref::<MalformedTimestampBodyHttpDateInput>()
  229    229   
            .ok_or("failed to downcast to MalformedTimestampBodyHttpDateInput")?;
  230    230   
  231    231   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  232    232   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  233    233   
        })?;
         234  +
  234    235   
        cfg.interceptor_state()
  235    236   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         237  +
  236    238   
        ::std::result::Result::Ok(())
  237    239   
    }
  238    240   
}
  239    241   
  240    242   
// The get_* functions below are generated from JMESPath expressions in the
  241    243   
// operationContextParams trait. They target the operation's input shape.
  242    244   
  243    245   
/// Error type for the `MalformedTimestampBodyHttpDateError` operation.
  244    246   
#[non_exhaustive]
  245    247   
#[derive(::std::fmt::Debug)]

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

@@ -203,203 +264,266 @@
  223    223   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  224    224   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  225    225   
        let _input = context
  226    226   
            .input()
  227    227   
            .downcast_ref::<MalformedTimestampHeaderDateTimeInput>()
  228    228   
            .ok_or("failed to downcast to MalformedTimestampHeaderDateTimeInput")?;
  229    229   
  230    230   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  231    231   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  232    232   
        })?;
         233  +
  233    234   
        cfg.interceptor_state()
  234    235   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         236  +
  235    237   
        ::std::result::Result::Ok(())
  236    238   
    }
  237    239   
}
  238    240   
  239    241   
// The get_* functions below are generated from JMESPath expressions in the
  240    242   
// operationContextParams trait. They target the operation's input shape.
  241    243   
  242    244   
/// Error type for the `MalformedTimestampHeaderDateTimeError` operation.
  243    245   
#[non_exhaustive]
  244    246   
#[derive(::std::fmt::Debug)]