AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045

Files changed:

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/set_vault_access_policy/_set_vault_access_policy_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct SetVaultAccessPolicyOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static SETVAULTACCESSPOLICYOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.glacier.synthetic#SetVaultAccessPolicyOutput",
   10     10   
    "com.amazonaws.glacier.synthetic",
   11     11   
    "SetVaultAccessPolicyOutput",
   12     12   
);
   13         -
static SETVAULTACCESSPOLICYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(SETVAULTACCESSPOLICYOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static SETVAULTACCESSPOLICYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static SETVAULTACCESSPOLICYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    SETVAULTACCESSPOLICYOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&SETVAULTACCESSPOLICYOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl SetVaultAccessPolicyOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SETVAULTACCESSPOLICYOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for SetVaultAccessPolicyOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl SetVaultAccessPolicyOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&SETVAULTACCESSPOLICYOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&SETVAULTACCESSPOLICYOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl SetVaultAccessPolicyOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for SetVaultAccessPolicyOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl SetVaultAccessPolicyOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`SetVaultAccessPolicyOutput`](crate::operation::set_vault_access_policy::SetVaultAccessPolicyOutput).
   58     89   
    pub fn builder() -> crate::operation::set_vault_access_policy::builders::SetVaultAccessPolicyOutputBuilder {
   59     90   
        crate::operation::set_vault_access_policy::builders::SetVaultAccessPolicyOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/set_vault_notifications.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `SetVaultNotifications`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct SetVaultNotifications;
    6      6   
impl SetVaultNotifications {
    7      7   
    /// Creates a new `SetVaultNotifications`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::set_vault_notifications::SetVaultNotificationsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::set_vault_notifications::SetVaultNotificationsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::set_vault_notifications::SetVaultNotificationsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::set_vault_notifications::SetVaultNotificationsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::set_vault_notifications::SetVaultNotificationsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +273,400 @@
  141    145   
                crate::operation::set_vault_notifications::SetVaultNotificationsError,
  142    146   
            >::new());
  143    147   
  144    148   
        ::std::borrow::Cow::Owned(rcb)
  145    149   
    }
  146    150   
}
  147    151   
  148    152   
#[derive(Debug)]
  149    153   
struct SetVaultNotificationsResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for SetVaultNotificationsResponseDeserializer {
  151         -
    fn deserialize_nonstreaming(
         155  +
    fn deserialize_nonstreaming_with_config(
  152    156   
        &self,
  153    157   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         158  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    159   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    160   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156         -
        let headers = response.headers();
  157         -
        let body = response.body().bytes().expect("body loaded");
  158    161   
        #[allow(unused_mut)]
  159    162   
        let mut force_error = false;
  160    163   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  161         -
        let parse_result = if !success && status != 204 || force_error {
  162         -
            crate::protocol_serde::shape_set_vault_notifications::de_set_vault_notifications_http_error(status, headers, body)
         164  +
        if !success && status != 204 || force_error {
         165  +
            let headers = response.headers();
         166  +
            let body = response.body().bytes().expect("body loaded");
         167  +
            #[allow(unused_mut)]
         168  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         169  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         170  +
            })?;
         171  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         172  +
            let generic = generic_builder.build();
         173  +
            let error_code = match generic.code() {
         174  +
                ::std::option::Option::Some(code) => code,
         175  +
                ::std::option::Option::None => {
         176  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         177  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         178  +
                            crate::operation::set_vault_notifications::SetVaultNotificationsError::unhandled(generic),
         179  +
                        ),
         180  +
                    ))
         181  +
                }
         182  +
            };
         183  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         184  +
            let protocol = _cfg
         185  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         186  +
                .expect("a SharedClientProtocol is required");
         187  +
            let err = match error_code {
         188  +
                "InvalidParameterValueException" => {
         189  +
                    crate::operation::set_vault_notifications::SetVaultNotificationsError::InvalidParameterValueException({
         190  +
                        let mut tmp = match protocol
         191  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         192  +
                            .and_then(|mut deser| {
         193  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         194  +
                                    &mut *deser,
         195  +
                                    response.headers(),
         196  +
                                    response.status().into(),
         197  +
                                    body,
         198  +
                                )
         199  +
                            }) {
         200  +
                            ::std::result::Result::Ok(val) => val,
         201  +
                            ::std::result::Result::Err(e) => {
         202  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         203  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         204  +
                                ))
         205  +
                            }
         206  +
                        };
         207  +
                        tmp.meta = generic;
         208  +
                        if tmp.message.is_none() {
         209  +
                            tmp.message = _error_message;
         210  +
                        }
         211  +
                        tmp
         212  +
                    })
         213  +
                }
         214  +
                "MissingParameterValueException" => {
         215  +
                    crate::operation::set_vault_notifications::SetVaultNotificationsError::MissingParameterValueException({
         216  +
                        let mut tmp = match protocol
         217  +
                            .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         218  +
                            .and_then(|mut deser| {
         219  +
                                crate::types::error::MissingParameterValueException::deserialize_with_response(
         220  +
                                    &mut *deser,
         221  +
                                    response.headers(),
         222  +
                                    response.status().into(),
         223  +
                                    body,
         224  +
                                )
         225  +
                            }) {
         226  +
                            ::std::result::Result::Ok(val) => val,
         227  +
                            ::std::result::Result::Err(e) => {
         228  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         229  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         230  +
                                ))
         231  +
                            }
         232  +
                        };
         233  +
                        tmp.meta = generic;
         234  +
                        if tmp.message.is_none() {
         235  +
                            tmp.message = _error_message;
         236  +
                        }
         237  +
                        tmp
         238  +
                    })
         239  +
                }
         240  +
                "ResourceNotFoundException" => crate::operation::set_vault_notifications::SetVaultNotificationsError::ResourceNotFoundException({
         241  +
                    let mut tmp = match protocol
         242  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         243  +
                        .and_then(|mut deser| {
         244  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         245  +
                                &mut *deser,
         246  +
                                response.headers(),
         247  +
                                response.status().into(),
         248  +
                                body,
         249  +
                            )
         250  +
                        }) {
         251  +
                        ::std::result::Result::Ok(val) => val,
         252  +
                        ::std::result::Result::Err(e) => {
         253  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         254  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         255  +
                            ))
         256  +
                        }
         257  +
                    };
         258  +
                    tmp.meta = generic;
         259  +
                    if tmp.message.is_none() {
         260  +
                        tmp.message = _error_message;
         261  +
                    }
         262  +
                    tmp
         263  +
                }),
         264  +
                "ServiceUnavailableException" => {
         265  +
                    crate::operation::set_vault_notifications::SetVaultNotificationsError::ServiceUnavailableException({
         266  +
                        let mut tmp = match protocol
         267  +
                            .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         268  +
                            .and_then(|mut deser| {
         269  +
                                crate::types::error::ServiceUnavailableException::deserialize_with_response(
         270  +
                                    &mut *deser,
         271  +
                                    response.headers(),
         272  +
                                    response.status().into(),
         273  +
                                    body,
         274  +
                                )
         275  +
                            }) {
         276  +
                            ::std::result::Result::Ok(val) => val,
         277  +
                            ::std::result::Result::Err(e) => {
         278  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         279  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         280  +
                                ))
         281  +
                            }
         282  +
                        };
         283  +
                        tmp.meta = generic;
         284  +
                        if tmp.message.is_none() {
         285  +
                            tmp.message = _error_message;
         286  +
                        }
         287  +
                        tmp
         288  +
                    })
         289  +
                }
         290  +
                _ => crate::operation::set_vault_notifications::SetVaultNotificationsError::generic(generic),
         291  +
            };
         292  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         293  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         294  +
            ))
  163    295   
        } else {
  164         -
            crate::protocol_serde::shape_set_vault_notifications::de_set_vault_notifications_http_response(status, headers, body)
  165         -
        };
  166         -
        crate::protocol_serde::type_erase_result(parse_result)
         296  +
            let protocol = _cfg
         297  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         298  +
                .expect("a SharedClientProtocol is required");
         299  +
            let mut deser = protocol
         300  +
                .deserialize_response(response, SetVaultNotifications::OUTPUT_SCHEMA, _cfg)
         301  +
                .map_err(|e| {
         302  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         303  +
                })?;
         304  +
            let body = response.body().bytes().expect("body loaded");
         305  +
            let output = crate::operation::set_vault_notifications::SetVaultNotificationsOutput::deserialize_with_response(
         306  +
                &mut *deser,
         307  +
                response.headers(),
         308  +
                response.status().into(),
         309  +
                body,
         310  +
            )
         311  +
            .map_err(|e| {
         312  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         313  +
            })?;
         314  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         315  +
        }
  167    316   
    }
  168    317   
}
  169    318   
#[derive(Debug)]
  170    319   
struct SetVaultNotificationsRequestSerializer;
  171    320   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for SetVaultNotificationsRequestSerializer {
  172    321   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  173    322   
    fn serialize_input(
  174    323   
        &self,
  175    324   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  176    325   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  177    326   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  178    327   
        let input = input
  179    328   
            .downcast::<crate::operation::set_vault_notifications::SetVaultNotificationsInput>()
  180    329   
            .expect("correct type");
  181         -
        let _header_serialization_settings = _cfg
  182         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  183         -
            .cloned()
  184         -
            .unwrap_or_default();
  185         -
        let mut request_builder = {
  186         -
            #[allow(clippy::uninlined_format_args)]
  187         -
            fn uri_base(
  188         -
                _input: &crate::operation::set_vault_notifications::SetVaultNotificationsInput,
  189         -
                output: &mut ::std::string::String,
  190         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  191         -
                use ::std::fmt::Write as _;
  192         -
                let input_1 = &_input.account_id;
  193         -
                let input_1 = input_1
  194         -
                    .as_ref()
  195         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  196         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  197         -
                if account_id.is_empty() {
  198         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  199         -
                        "account_id",
  200         -
                        "cannot be empty or unset",
  201         -
                    ));
         330  +
        let protocol = _cfg
         331  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         332  +
            .expect("a SharedClientProtocol is required");
         333  +
        if protocol.supports_http_bindings() {
         334  +
            let mut request = protocol
         335  +
                .serialize_request(&input, SetVaultNotifications::INPUT_SCHEMA, "", _cfg)
         336  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         337  +
            {
         338  +
                let mut uri = "/{accountId}/vaults/{vaultName}/notification-configuration".to_string();
         339  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         340  +
                if let Some(ref val) = input.account_id {
         341  +
                    uri = uri.replace("{accountId}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  202    342   
                }
  203         -
                let input_2 = &_input.vault_name;
  204         -
                let input_2 = input_2
  205         -
                    .as_ref()
  206         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  207         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  208         -
                if vault_name.is_empty() {
  209         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  210         -
                        "vault_name",
  211         -
                        "cannot be empty or unset",
  212         -
                    ));
         343  +
                if let Some(ref val) = input.vault_name {
         344  +
                    uri = uri.replace("{vaultName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
  213    345   
                }
  214         -
                ::std::write!(
  215         -
                    output,
  216         -
                    "/{accountId}/vaults/{vaultName}/notification-configuration",
  217         -
                    accountId = account_id,
  218         -
                    vaultName = vault_name
  219         -
                )
  220         -
                .expect("formatting should succeed");
  221         -
                ::std::result::Result::Ok(())
  222         -
            }
  223         -
            #[allow(clippy::unnecessary_wraps)]
  224         -
            fn update_http_builder(
  225         -
                input: &crate::operation::set_vault_notifications::SetVaultNotificationsInput,
  226         -
                builder: ::http_1x::request::Builder,
  227         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  228         -
                let mut uri = ::std::string::String::new();
  229         -
                uri_base(input, &mut uri)?;
  230         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
         346  +
                if !query_params.is_empty() {
         347  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         348  +
                    let pairs: Vec<String> = query_params
         349  +
                        .iter()
         350  +
                        .map(|(k, v)| {
         351  +
                            format!(
         352  +
                                "{}={}",
         353  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         354  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         355  +
                            )
         356  +
                        })
         357  +
                        .collect();
         358  +
                    uri.push_str(&pairs.join("&"));
         359  +
                }
         360  +
                request.set_uri(uri.as_str()).expect("valid URI");
  231    361   
            }
  232         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  233         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  234         -
            builder
  235         -
        };
  236         -
        let body = ::aws_smithy_types::body::SdkBody::from(
  237         -
            crate::protocol_serde::shape_set_vault_notifications_input::ser_vault_notification_config_http_payload(&input.vault_notification_config)?,
  238         -
        );
  239         -
        if let Some(content_length) = body.content_length() {
  240         -
            let content_length = content_length.to_string();
  241         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         362  +
         363  +
            return ::std::result::Result::Ok(request);
         364  +
        } else {
         365  +
            let mut request = protocol
         366  +
                .serialize_request(&input, SetVaultNotifications::INPUT_SCHEMA, "", _cfg)
         367  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         368  +
         369  +
            return ::std::result::Result::Ok(request);
  242    370   
        }
  243         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  244    371   
    }
  245    372   
}
  246    373   
#[derive(Debug)]
  247    374   
struct SetVaultNotificationsEndpointParamsInterceptor;
  248    375   
  249    376   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SetVaultNotificationsEndpointParamsInterceptor {
  250    377   
    fn name(&self) -> &'static str {
  251    378   
        "SetVaultNotificationsEndpointParamsInterceptor"
  252    379   
    }
  253    380   

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/set_vault_notifications/_set_vault_notifications_input.rs

@@ -10,10 +155,182 @@
   30     30   
    "com.amazonaws.glacier.synthetic",
   31     31   
    "SetVaultNotificationsInput",
   32     32   
);
   33     33   
static SETVAULTNOTIFICATIONSINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   34     34   
    ::aws_smithy_schema::ShapeId::from_static(
   35     35   
        "com.amazonaws.glacier.synthetic#SetVaultNotificationsInput$accountId",
   36     36   
        "com.amazonaws.glacier.synthetic",
   37     37   
        "SetVaultNotificationsInput",
   38     38   
    ),
   39     39   
    ::aws_smithy_schema::ShapeType::String,
   40         -
    "account_id",
          40  +
    "accountId",
   41     41   
    0,
   42     42   
)
   43     43   
.with_http_label();
   44     44   
static SETVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.glacier.synthetic#SetVaultNotificationsInput$vaultName",
   47     47   
        "com.amazonaws.glacier.synthetic",
   48     48   
        "SetVaultNotificationsInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "vault_name",
          51  +
    "vaultName",
   52     52   
    1,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static SETVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NOTIFICATION_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.glacier.synthetic#SetVaultNotificationsInput$vaultNotificationConfig",
   58     58   
        "com.amazonaws.glacier.synthetic",
   59     59   
        "SetVaultNotificationsInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::Structure,
   62         -
    "vault_notification_config",
          62  +
    "vaultNotificationConfig",
   63     63   
    2,
   64     64   
)
   65     65   
.with_http_payload();
   66     66   
static SETVAULTNOTIFICATIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   67     67   
    SETVAULTNOTIFICATIONSINPUT_SCHEMA_ID,
   68     68   
    ::aws_smithy_schema::ShapeType::Structure,
   69     69   
    &[
   70     70   
        &SETVAULTNOTIFICATIONSINPUT_MEMBER_ACCOUNT_ID,
   71     71   
        &SETVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NAME,
   72     72   
        &SETVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NOTIFICATION_CONFIG,
   73     73   
    ],
   74         -
);
          74  +
)
          75  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          76  +
    "PUT",
          77  +
    "/{accountId}/vaults/{vaultName}/notification-configuration",
          78  +
    Some(204),
          79  +
));
   75     80   
impl SetVaultNotificationsInput {
   76     81   
    /// The schema for this shape.
   77     82   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SETVAULTNOTIFICATIONSINPUT_SCHEMA;
   78     83   
}
   79     84   
impl ::aws_smithy_schema::serde::SerializableStruct for SetVaultNotificationsInput {
   80     85   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   81     86   
    fn serialize_members(
   82     87   
        &self,
   83     88   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   84     89   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   85     90   
        if let Some(ref val) = self.account_id {
   86     91   
            ser.write_string(&SETVAULTNOTIFICATIONSINPUT_MEMBER_ACCOUNT_ID, val)?;
   87     92   
        }
   88     93   
        if let Some(ref val) = self.vault_name {
   89     94   
            ser.write_string(&SETVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NAME, val)?;
   90     95   
        }
   91     96   
        if let Some(ref val) = self.vault_notification_config {
   92     97   
            ser.write_struct(&SETVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NOTIFICATION_CONFIG, val)?;
   93     98   
        }
   94     99   
        Ok(())
   95    100   
    }
   96    101   
}
   97    102   
impl SetVaultNotificationsInput {
   98    103   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   99         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  100         -
        deserializer: &mut D,
         104  +
    pub fn deserialize(
         105  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  101    106   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  102    107   
        #[allow(unused_variables, unused_mut)]
  103    108   
        let mut builder = Self::builder();
  104    109   
        #[allow(
  105    110   
            unused_variables,
  106    111   
            unreachable_code,
  107    112   
            clippy::single_match,
  108    113   
            clippy::match_single_binding,
  109    114   
            clippy::diverging_sub_expression
  110    115   
        )]
  111         -
        deserializer.read_struct(&SETVAULTNOTIFICATIONSINPUT_SCHEMA, (), |_, member, deser| {
         116  +
        deserializer.read_struct(&SETVAULTNOTIFICATIONSINPUT_SCHEMA, &mut |member, deser| {
  112    117   
            match member.member_index() {
  113    118   
                Some(0) => {
  114    119   
                    builder.account_id = Some(deser.read_string(member)?);
  115    120   
                }
  116    121   
                Some(1) => {
  117    122   
                    builder.vault_name = Some(deser.read_string(member)?);
  118    123   
                }
  119    124   
                Some(2) => {
  120    125   
                    builder.vault_notification_config = Some(crate::types::VaultNotificationConfig::deserialize(deser)?);
  121    126   
                }
  122    127   
                _ => {}
  123    128   
            }
  124    129   
            Ok(())
  125    130   
        })?;
         131  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         132  +
        builder.vault_name = builder.vault_name.or(Some(String::new()));
         133  +
        builder
         134  +
            .build()
         135  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         136  +
    }
         137  +
}
         138  +
impl SetVaultNotificationsInput {
         139  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         140  +
    /// Header-bound members are read directly from headers, avoiding runtime
         141  +
    /// member iteration overhead. Body members are read via the deserializer.
         142  +
    pub fn deserialize_with_response(
         143  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         144  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         145  +
        _status: u16,
         146  +
        body: &[u8],
         147  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         148  +
        #[allow(unused_variables, unused_mut)]
         149  +
        let mut builder = Self::builder();
         150  +
        if !body.is_empty() {
         151  +
            builder.vault_notification_config = Some(crate::types::VaultNotificationConfig::deserialize(deserializer)?);
         152  +
        }
  126    153   
        builder
  127    154   
            .build()
  128    155   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  129    156   
    }
  130    157   
}
  131    158   
impl crate::glacier_interceptors::GlacierAccountId for SetVaultNotificationsInput {
  132    159   
    fn account_id_mut(&mut self) -> &mut Option<String> {
  133    160   
        &mut self.account_id
  134    161   
    }
  135    162   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/set_vault_notifications/_set_vault_notifications_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct SetVaultNotificationsOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static SETVAULTNOTIFICATIONSOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.glacier.synthetic#SetVaultNotificationsOutput",
   10     10   
    "com.amazonaws.glacier.synthetic",
   11     11   
    "SetVaultNotificationsOutput",
   12     12   
);
   13         -
static SETVAULTNOTIFICATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(SETVAULTNOTIFICATIONSOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static SETVAULTNOTIFICATIONSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static SETVAULTNOTIFICATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    SETVAULTNOTIFICATIONSOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&SETVAULTNOTIFICATIONSOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl SetVaultNotificationsOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &SETVAULTNOTIFICATIONSOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for SetVaultNotificationsOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl SetVaultNotificationsOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&SETVAULTNOTIFICATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&SETVAULTNOTIFICATIONSOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl SetVaultNotificationsOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for SetVaultNotificationsOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl SetVaultNotificationsOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`SetVaultNotificationsOutput`](crate::operation::set_vault_notifications::SetVaultNotificationsOutput).
   58     89   
    pub fn builder() -> crate::operation::set_vault_notifications::builders::SetVaultNotificationsOutputBuilder {
   59     90   
        crate::operation::set_vault_notifications::builders::SetVaultNotificationsOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/upload_archive.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `UploadArchive`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UploadArchive;
    6      6   
impl UploadArchive {
    7      7   
    /// Creates a new `UploadArchive`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::upload_archive::UploadArchiveInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::upload_archive::UploadArchiveOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::upload_archive::UploadArchiveInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::upload_archive::UploadArchiveOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::upload_archive::UploadArchiveError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -119,123 +270,385 @@
  139    143   
                crate::operation::upload_archive::UploadArchiveError,
  140    144   
            >::new());
  141    145   
  142    146   
        ::std::borrow::Cow::Owned(rcb)
  143    147   
    }
  144    148   
}
  145    149   
  146    150   
#[derive(Debug)]
  147    151   
struct UploadArchiveResponseDeserializer;
  148    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UploadArchiveResponseDeserializer {
  149         -
    fn deserialize_nonstreaming(
         153  +
    fn deserialize_nonstreaming_with_config(
  150    154   
        &self,
  151    155   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         156  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  152    157   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  153    158   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  154         -
        let headers = response.headers();
  155         -
        let body = response.body().bytes().expect("body loaded");
  156    159   
        #[allow(unused_mut)]
  157    160   
        let mut force_error = false;
  158    161   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  159         -
        let parse_result = if !success && status != 201 || force_error {
  160         -
            crate::protocol_serde::shape_upload_archive::de_upload_archive_http_error(status, headers, body)
         162  +
        if !success && status != 201 || force_error {
         163  +
            let headers = response.headers();
         164  +
            let body = response.body().bytes().expect("body loaded");
         165  +
            #[allow(unused_mut)]
         166  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         167  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         168  +
            })?;
         169  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         170  +
            let generic = generic_builder.build();
         171  +
            let error_code = match generic.code() {
         172  +
                ::std::option::Option::Some(code) => code,
         173  +
                ::std::option::Option::None => {
         174  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         175  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::upload_archive::UploadArchiveError::unhandled(generic)),
         176  +
                    ))
         177  +
                }
         178  +
            };
         179  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         180  +
            let protocol = _cfg
         181  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         182  +
                .expect("a SharedClientProtocol is required");
         183  +
            let err = match error_code {
         184  +
                "InvalidParameterValueException" => crate::operation::upload_archive::UploadArchiveError::InvalidParameterValueException({
         185  +
                    let mut tmp = match protocol
         186  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         187  +
                        .and_then(|mut deser| {
         188  +
                            crate::types::error::InvalidParameterValueException::deserialize_with_response(
         189  +
                                &mut *deser,
         190  +
                                response.headers(),
         191  +
                                response.status().into(),
         192  +
                                body,
         193  +
                            )
         194  +
                        }) {
         195  +
                        ::std::result::Result::Ok(val) => val,
         196  +
                        ::std::result::Result::Err(e) => {
         197  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         198  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         199  +
                            ))
         200  +
                        }
         201  +
                    };
         202  +
                    tmp.meta = generic;
         203  +
                    if tmp.message.is_none() {
         204  +
                        tmp.message = _error_message;
         205  +
                    }
         206  +
                    tmp
         207  +
                }),
         208  +
                "MissingParameterValueException" => crate::operation::upload_archive::UploadArchiveError::MissingParameterValueException({
         209  +
                    let mut tmp = match protocol
         210  +
                        .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         211  +
                        .and_then(|mut deser| {
         212  +
                            crate::types::error::MissingParameterValueException::deserialize_with_response(
         213  +
                                &mut *deser,
         214  +
                                response.headers(),
         215  +
                                response.status().into(),
         216  +
                                body,
         217  +
                            )
         218  +
                        }) {
         219  +
                        ::std::result::Result::Ok(val) => val,
         220  +
                        ::std::result::Result::Err(e) => {
         221  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         222  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         223  +
                            ))
         224  +
                        }
         225  +
                    };
         226  +
                    tmp.meta = generic;
         227  +
                    if tmp.message.is_none() {
         228  +
                        tmp.message = _error_message;
         229  +
                    }
         230  +
                    tmp
         231  +
                }),
         232  +
                "RequestTimeoutException" => crate::operation::upload_archive::UploadArchiveError::RequestTimeoutException({
         233  +
                    let mut tmp = match protocol
         234  +
                        .deserialize_response(response, crate::types::error::RequestTimeoutException::SCHEMA, _cfg)
         235  +
                        .and_then(|mut deser| {
         236  +
                            crate::types::error::RequestTimeoutException::deserialize_with_response(
         237  +
                                &mut *deser,
         238  +
                                response.headers(),
         239  +
                                response.status().into(),
         240  +
                                body,
         241  +
                            )
         242  +
                        }) {
         243  +
                        ::std::result::Result::Ok(val) => val,
         244  +
                        ::std::result::Result::Err(e) => {
         245  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         246  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         247  +
                            ))
         248  +
                        }
         249  +
                    };
         250  +
                    tmp.meta = generic;
         251  +
                    if tmp.message.is_none() {
         252  +
                        tmp.message = _error_message;
         253  +
                    }
         254  +
                    tmp
         255  +
                }),
         256  +
                "ResourceNotFoundException" => crate::operation::upload_archive::UploadArchiveError::ResourceNotFoundException({
         257  +
                    let mut tmp = match protocol
         258  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         259  +
                        .and_then(|mut deser| {
         260  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         261  +
                                &mut *deser,
         262  +
                                response.headers(),
         263  +
                                response.status().into(),
         264  +
                                body,
         265  +
                            )
         266  +
                        }) {
         267  +
                        ::std::result::Result::Ok(val) => val,
         268  +
                        ::std::result::Result::Err(e) => {
         269  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         270  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         271  +
                            ))
         272  +
                        }
         273  +
                    };
         274  +
                    tmp.meta = generic;
         275  +
                    if tmp.message.is_none() {
         276  +
                        tmp.message = _error_message;
         277  +
                    }
         278  +
                    tmp
         279  +
                }),
         280  +
                "ServiceUnavailableException" => crate::operation::upload_archive::UploadArchiveError::ServiceUnavailableException({
         281  +
                    let mut tmp = match protocol
         282  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         283  +
                        .and_then(|mut deser| {
         284  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         285  +
                                &mut *deser,
         286  +
                                response.headers(),
         287  +
                                response.status().into(),
         288  +
                                body,
         289  +
                            )
         290  +
                        }) {
         291  +
                        ::std::result::Result::Ok(val) => val,
         292  +
                        ::std::result::Result::Err(e) => {
         293  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         294  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         295  +
                            ))
         296  +
                        }
         297  +
                    };
         298  +
                    tmp.meta = generic;
         299  +
                    if tmp.message.is_none() {
         300  +
                        tmp.message = _error_message;
         301  +
                    }
         302  +
                    tmp
         303  +
                }),
         304  +
                _ => crate::operation::upload_archive::UploadArchiveError::generic(generic),
         305  +
            };
         306  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         307  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         308  +
            ))
  161    309   
        } else {
  162         -
            crate::protocol_serde::shape_upload_archive::de_upload_archive_http_response(status, headers, body)
  163         -
        };
  164         -
        crate::protocol_serde::type_erase_result(parse_result)
         310  +
            let protocol = _cfg
         311  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         312  +
                .expect("a SharedClientProtocol is required");
         313  +
            let mut deser = protocol.deserialize_response(response, UploadArchive::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         314  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         315  +
            })?;
         316  +
            let body = response.body().bytes().expect("body loaded");
         317  +
            let output = crate::operation::upload_archive::UploadArchiveOutput::deserialize_with_response(
         318  +
                &mut *deser,
         319  +
                response.headers(),
         320  +
                response.status().into(),
         321  +
                body,
         322  +
            )
         323  +
            .map_err(|e| {
         324  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         325  +
            })?;
         326  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         327  +
        }
  165    328   
    }
  166    329   
}
  167    330   
#[derive(Debug)]
  168    331   
struct UploadArchiveRequestSerializer;
  169    332   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UploadArchiveRequestSerializer {
  170    333   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  171    334   
    fn serialize_input(
  172    335   
        &self,
  173    336   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  174    337   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  175    338   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  176    339   
        let input = input
  177    340   
            .downcast::<crate::operation::upload_archive::UploadArchiveInput>()
  178    341   
            .expect("correct type");
  179         -
        let _header_serialization_settings = _cfg
  180         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  181         -
            .cloned()
  182         -
            .unwrap_or_default();
  183         -
        let mut request_builder = {
  184         -
            #[allow(clippy::uninlined_format_args)]
  185         -
            fn uri_base(
  186         -
                _input: &crate::operation::upload_archive::UploadArchiveInput,
  187         -
                output: &mut ::std::string::String,
  188         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  189         -
                use ::std::fmt::Write as _;
  190         -
                let input_1 = &_input.account_id;
  191         -
                let input_1 = input_1
  192         -
                    .as_ref()
  193         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  194         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  195         -
                if account_id.is_empty() {
  196         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  197         -
                        "account_id",
  198         -
                        "cannot be empty or unset",
  199         -
                    ));
  200         -
                }
  201         -
                let input_2 = &_input.vault_name;
  202         -
                let input_2 = input_2
  203         -
                    .as_ref()
  204         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  205         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  206         -
                if vault_name.is_empty() {
  207         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  208         -
                        "vault_name",
  209         -
                        "cannot be empty or unset",
  210         -
                    ));
  211         -
                }
  212         -
                ::std::write!(
  213         -
                    output,
  214         -
                    "/{accountId}/vaults/{vaultName}/archives",
  215         -
                    accountId = account_id,
  216         -
                    vaultName = vault_name
  217         -
                )
  218         -
                .expect("formatting should succeed");
  219         -
                ::std::result::Result::Ok(())
  220         -
            }
  221         -
            #[allow(clippy::unnecessary_wraps)]
  222         -
            fn update_http_builder(
  223         -
                input: &crate::operation::upload_archive::UploadArchiveInput,
  224         -
                builder: ::http_1x::request::Builder,
  225         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  226         -
                let mut uri = ::std::string::String::new();
  227         -
                uri_base(input, &mut uri)?;
  228         -
                let builder = crate::protocol_serde::shape_upload_archive::ser_upload_archive_headers(input, builder)?;
  229         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  230         -
            }
  231         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  232         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/octet-stream");
  233         -
            builder
  234         -
        };
  235         -
        let body = crate::protocol_serde::shape_upload_archive_input::ser_body_http_payload(input.body)?.into_inner();
  236         -
        if let Some(content_length) = body.content_length() {
  237         -
            let content_length = content_length.to_string();
  238         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         342  +
        let protocol = _cfg
         343  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         344  +
            .expect("a SharedClientProtocol is required");
         345  +
        let mut request = protocol
         346  +
            .serialize_request(&input, UploadArchive::INPUT_SCHEMA, "", _cfg)
         347  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         348  +
        // Streaming blob payload: replace the body with the raw ByteStream.
         349  +
        *request.body_mut() = input.body.into_inner();
         350  +
        request.headers_mut().insert("Content-Type", "application/octet-stream");
         351  +
        if let ::std::option::Option::Some(content_length) = request.body().content_length() {
         352  +
            request.headers_mut().insert("Content-Length", content_length.to_string());
  239    353   
        }
  240         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         354  +
         355  +
        return ::std::result::Result::Ok(request);
  241    356   
    }
  242    357   
}
  243    358   
#[derive(Debug)]
  244    359   
struct UploadArchiveEndpointParamsInterceptor;
  245    360   
  246    361   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UploadArchiveEndpointParamsInterceptor {
  247    362   
    fn name(&self) -> &'static str {
  248    363   
        "UploadArchiveEndpointParamsInterceptor"
  249    364   
    }
  250    365   

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/upload_archive/_upload_archive_input.rs

@@ -22,22 +207,260 @@
   42     42   
    "com.amazonaws.glacier.synthetic",
   43     43   
    "UploadArchiveInput",
   44     44   
);
   45     45   
static UPLOADARCHIVEINPUT_MEMBER_VAULT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   46     46   
    ::aws_smithy_schema::ShapeId::from_static(
   47     47   
        "com.amazonaws.glacier.synthetic#UploadArchiveInput$vaultName",
   48     48   
        "com.amazonaws.glacier.synthetic",
   49     49   
        "UploadArchiveInput",
   50     50   
    ),
   51     51   
    ::aws_smithy_schema::ShapeType::String,
   52         -
    "vault_name",
          52  +
    "vaultName",
   53     53   
    0,
   54     54   
)
   55     55   
.with_http_label();
   56     56   
static UPLOADARCHIVEINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   57     57   
    ::aws_smithy_schema::ShapeId::from_static(
   58     58   
        "com.amazonaws.glacier.synthetic#UploadArchiveInput$accountId",
   59     59   
        "com.amazonaws.glacier.synthetic",
   60     60   
        "UploadArchiveInput",
   61     61   
    ),
   62     62   
    ::aws_smithy_schema::ShapeType::String,
   63         -
    "account_id",
          63  +
    "accountId",
   64     64   
    1,
   65     65   
)
   66     66   
.with_http_label();
   67     67   
static UPLOADARCHIVEINPUT_MEMBER_ARCHIVE_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.glacier.synthetic#UploadArchiveInput$archiveDescription",
   70     70   
        "com.amazonaws.glacier.synthetic",
   71     71   
        "UploadArchiveInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::String,
   74         -
    "archive_description",
          74  +
    "archiveDescription",
   75     75   
    2,
   76     76   
)
   77     77   
.with_http_header("x-amz-archive-description");
   78     78   
static UPLOADARCHIVEINPUT_MEMBER_CHECKSUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.glacier.synthetic#UploadArchiveInput$checksum",
   81     81   
        "com.amazonaws.glacier.synthetic",
   82     82   
        "UploadArchiveInput",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::String,
   85     85   
    "checksum",
   86     86   
    3,
   87     87   
)
   88     88   
.with_http_header("x-amz-sha256-tree-hash");
   89     89   
static UPLOADARCHIVEINPUT_MEMBER_BODY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   90     90   
    ::aws_smithy_schema::ShapeId::from_static(
   91     91   
        "com.amazonaws.glacier.synthetic#UploadArchiveInput$body",
   92     92   
        "com.amazonaws.glacier.synthetic",
   93     93   
        "UploadArchiveInput",
   94     94   
    ),
   95     95   
    ::aws_smithy_schema::ShapeType::Blob,
   96     96   
    "body",
   97     97   
    4,
   98     98   
)
   99     99   
.with_http_payload();
  100    100   
static UPLOADARCHIVEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  101    101   
    UPLOADARCHIVEINPUT_SCHEMA_ID,
  102    102   
    ::aws_smithy_schema::ShapeType::Structure,
  103    103   
    &[
  104    104   
        &UPLOADARCHIVEINPUT_MEMBER_VAULT_NAME,
  105    105   
        &UPLOADARCHIVEINPUT_MEMBER_ACCOUNT_ID,
  106    106   
        &UPLOADARCHIVEINPUT_MEMBER_ARCHIVE_DESCRIPTION,
  107    107   
        &UPLOADARCHIVEINPUT_MEMBER_CHECKSUM,
  108    108   
        &UPLOADARCHIVEINPUT_MEMBER_BODY,
  109    109   
    ],
  110         -
);
         110  +
)
         111  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         112  +
    "POST",
         113  +
    "/{accountId}/vaults/{vaultName}/archives",
         114  +
    Some(201),
         115  +
));
  111    116   
impl UploadArchiveInput {
  112    117   
    /// The schema for this shape.
  113    118   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPLOADARCHIVEINPUT_SCHEMA;
  114    119   
}
  115    120   
impl ::aws_smithy_schema::serde::SerializableStruct for UploadArchiveInput {
  116    121   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  117    122   
    fn serialize_members(
  118    123   
        &self,
  119    124   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  120    125   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  121    126   
        if let Some(ref val) = self.vault_name {
  122    127   
            ser.write_string(&UPLOADARCHIVEINPUT_MEMBER_VAULT_NAME, val)?;
  123    128   
        }
  124    129   
        if let Some(ref val) = self.account_id {
  125    130   
            ser.write_string(&UPLOADARCHIVEINPUT_MEMBER_ACCOUNT_ID, val)?;
  126    131   
        }
  127    132   
        if let Some(ref val) = self.archive_description {
  128    133   
            ser.write_string(&UPLOADARCHIVEINPUT_MEMBER_ARCHIVE_DESCRIPTION, val)?;
  129    134   
        }
  130    135   
        if let Some(ref val) = self.checksum {
  131    136   
            ser.write_string(&UPLOADARCHIVEINPUT_MEMBER_CHECKSUM, val)?;
  132    137   
        }
  133         -
        {
  134         -
            let val = &self.body;
  135         -
            // streaming blob is serialized as the HTTP body by the protocol, not the codec
  136         -
        }
  137    138   
        Ok(())
  138    139   
    }
  139    140   
}
  140    141   
impl UploadArchiveInput {
  141    142   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  142         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  143         -
        deserializer: &mut D,
         143  +
    pub fn deserialize(
         144  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  144    145   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  145    146   
        #[allow(unused_variables, unused_mut)]
  146    147   
        let mut builder = Self::builder();
  147    148   
        #[allow(
  148    149   
            unused_variables,
  149    150   
            unreachable_code,
  150    151   
            clippy::single_match,
  151    152   
            clippy::match_single_binding,
  152    153   
            clippy::diverging_sub_expression
  153    154   
        )]
  154         -
        deserializer.read_struct(&UPLOADARCHIVEINPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&UPLOADARCHIVEINPUT_SCHEMA, &mut |member, deser| {
  155    156   
            match member.member_index() {
  156    157   
                Some(0) => {
  157    158   
                    builder.vault_name = Some(deser.read_string(member)?);
  158    159   
                }
  159    160   
                Some(1) => {
  160    161   
                    builder.account_id = Some(deser.read_string(member)?);
  161    162   
                }
  162    163   
                Some(2) => {
  163    164   
                    builder.archive_description = Some(deser.read_string(member)?);
  164    165   
                }
  165    166   
                Some(3) => {
  166    167   
                    builder.checksum = Some(deser.read_string(member)?);
  167    168   
                }
  168    169   
                Some(4) => {
  169    170   
                    builder.body = Some({
  170    171   
                        let _ = member;
  171    172   
                        ::aws_smithy_types::byte_stream::ByteStream::new(::aws_smithy_types::body::SdkBody::empty())
  172    173   
                    });
  173    174   
                }
  174    175   
                _ => {}
  175    176   
            }
  176    177   
            Ok(())
  177    178   
        })?;
         179  +
        builder.vault_name = builder.vault_name.or(Some(String::new()));
         180  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         181  +
        builder
         182  +
            .build()
         183  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         184  +
    }
         185  +
}
         186  +
impl UploadArchiveInput {
         187  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         188  +
    /// Header-bound members are read directly from headers, avoiding runtime
         189  +
    /// member iteration overhead. Body members are read via the deserializer.
         190  +
    pub fn deserialize_with_response(
         191  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         192  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         193  +
        _status: u16,
         194  +
        _body: &[u8],
         195  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         196  +
        #[allow(unused_variables, unused_mut)]
         197  +
        let mut builder = Self::builder();
         198  +
        if let Some(val) = headers.get("x-amz-archive-description") {
         199  +
            builder.archive_description = Some(val.to_string());
         200  +
        }
         201  +
        if let Some(val) = headers.get("x-amz-sha256-tree-hash") {
         202  +
            builder.checksum = Some(val.to_string());
         203  +
        }
         204  +
        #[allow(
         205  +
            unused_variables,
         206  +
            unreachable_code,
         207  +
            clippy::single_match,
         208  +
            clippy::match_single_binding,
         209  +
            clippy::diverging_sub_expression
         210  +
        )]
         211  +
        deserializer.read_struct(&UPLOADARCHIVEINPUT_SCHEMA, &mut |member, deser| {
         212  +
            match member.member_index() {
         213  +
                Some(0) => {
         214  +
                    builder.vault_name = Some(deser.read_string(member)?);
         215  +
                }
         216  +
                Some(1) => {
         217  +
                    builder.account_id = Some(deser.read_string(member)?);
         218  +
                }
         219  +
                Some(2) => { /* read from headers above */ }
         220  +
                Some(3) => { /* read from headers above */ }
         221  +
                Some(4) => {
         222  +
                    builder.body = Some({
         223  +
                        let _ = member;
         224  +
                        ::aws_smithy_types::byte_stream::ByteStream::new(::aws_smithy_types::body::SdkBody::empty())
         225  +
                    });
         226  +
                }
         227  +
                _ => {}
         228  +
            }
         229  +
            Ok(())
         230  +
        })?;
  178    231   
        builder
  179    232   
            .build()
  180    233   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  181    234   
    }
  182    235   
}
  183    236   
impl crate::glacier_interceptors::GlacierAccountId for UploadArchiveInput {
  184    237   
    fn account_id_mut(&mut self) -> &mut Option<String> {
  185    238   
        &mut self.account_id
  186    239   
    }
  187    240   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/upload_archive/_upload_archive_output.rs

@@ -34,34 +160,198 @@
   54     54   
    1,
   55     55   
)
   56     56   
.with_http_header("x-amz-sha256-tree-hash");
   57     57   
static UPLOADARCHIVEOUTPUT_MEMBER_ARCHIVE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.glacier.synthetic#UploadArchiveOutput$archiveId",
   60     60   
        "com.amazonaws.glacier.synthetic",
   61     61   
        "UploadArchiveOutput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::String,
   64         -
    "archive_id",
          64  +
    "archiveId",
   65     65   
    2,
   66     66   
)
   67     67   
.with_http_header("x-amz-archive-id");
          68  +
static UPLOADARCHIVEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          69  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          70  +
    ::aws_smithy_schema::ShapeType::String,
          71  +
    "request_id",
          72  +
    3,
          73  +
)
          74  +
.with_http_header("x-amzn-requestid");
   68     75   
static UPLOADARCHIVEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   69     76   
    UPLOADARCHIVEOUTPUT_SCHEMA_ID,
   70     77   
    ::aws_smithy_schema::ShapeType::Structure,
   71     78   
    &[
   72     79   
        &UPLOADARCHIVEOUTPUT_MEMBER_LOCATION,
   73     80   
        &UPLOADARCHIVEOUTPUT_MEMBER_CHECKSUM,
   74     81   
        &UPLOADARCHIVEOUTPUT_MEMBER_ARCHIVE_ID,
          82  +
        &UPLOADARCHIVEOUTPUT_MEMBER__REQUEST_ID,
   75     83   
    ],
   76     84   
);
   77     85   
impl UploadArchiveOutput {
   78     86   
    /// The schema for this shape.
   79     87   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPLOADARCHIVEOUTPUT_SCHEMA;
   80     88   
}
   81     89   
impl ::aws_smithy_schema::serde::SerializableStruct for UploadArchiveOutput {
   82     90   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   83     91   
    fn serialize_members(
   84     92   
        &self,
   85     93   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   86     94   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   87     95   
        if let Some(ref val) = self.location {
   88     96   
            ser.write_string(&UPLOADARCHIVEOUTPUT_MEMBER_LOCATION, val)?;
   89     97   
        }
   90     98   
        if let Some(ref val) = self.checksum {
   91     99   
            ser.write_string(&UPLOADARCHIVEOUTPUT_MEMBER_CHECKSUM, val)?;
   92    100   
        }
   93    101   
        if let Some(ref val) = self.archive_id {
   94    102   
            ser.write_string(&UPLOADARCHIVEOUTPUT_MEMBER_ARCHIVE_ID, val)?;
   95    103   
        }
   96    104   
        Ok(())
   97    105   
    }
   98    106   
}
   99    107   
impl UploadArchiveOutput {
  100    108   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  101         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  102         -
        deserializer: &mut D,
         109  +
    pub fn deserialize(
         110  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  103    111   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  104    112   
        #[allow(unused_variables, unused_mut)]
  105    113   
        let mut builder = Self::builder();
  106    114   
        #[allow(
  107    115   
            unused_variables,
  108    116   
            unreachable_code,
  109    117   
            clippy::single_match,
  110    118   
            clippy::match_single_binding,
  111    119   
            clippy::diverging_sub_expression
  112    120   
        )]
  113         -
        deserializer.read_struct(&UPLOADARCHIVEOUTPUT_SCHEMA, (), |_, member, deser| {
         121  +
        deserializer.read_struct(&UPLOADARCHIVEOUTPUT_SCHEMA, &mut |member, deser| {
  114    122   
            match member.member_index() {
  115    123   
                Some(0) => {
  116    124   
                    builder.location = Some(deser.read_string(member)?);
  117    125   
                }
  118    126   
                Some(1) => {
  119    127   
                    builder.checksum = Some(deser.read_string(member)?);
  120    128   
                }
  121    129   
                Some(2) => {
  122    130   
                    builder.archive_id = Some(deser.read_string(member)?);
  123    131   
                }
         132  +
                Some(3) => {
         133  +
                    builder._request_id = Some(deser.read_string(member)?);
         134  +
                }
  124    135   
                _ => {}
  125    136   
            }
  126    137   
            Ok(())
  127    138   
        })?;
  128    139   
        Ok(builder.build())
  129    140   
    }
  130    141   
}
         142  +
impl UploadArchiveOutput {
         143  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         144  +
    /// Header-bound members are read directly from headers, avoiding runtime
         145  +
    /// member iteration overhead. Body members are read via the deserializer.
         146  +
    pub fn deserialize_with_response(
         147  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         148  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         149  +
        _status: u16,
         150  +
        _body: &[u8],
         151  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         152  +
        #[allow(unused_variables, unused_mut)]
         153  +
        let mut builder = Self::builder();
         154  +
        if let Some(val) = headers.get("Location") {
         155  +
            builder.location = Some(val.to_string());
         156  +
        }
         157  +
        if let Some(val) = headers.get("x-amz-sha256-tree-hash") {
         158  +
            builder.checksum = Some(val.to_string());
         159  +
        }
         160  +
        if let Some(val) = headers.get("x-amz-archive-id") {
         161  +
            builder.archive_id = Some(val.to_string());
         162  +
        }
         163  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         164  +
            builder._request_id = Some(val.to_string());
         165  +
        }
         166  +
        Ok(builder.build())
         167  +
    }
         168  +
}
  131    169   
impl ::aws_types::request_id::RequestId for UploadArchiveOutput {
  132    170   
    fn request_id(&self) -> Option<&str> {
  133    171   
        self._request_id.as_deref()
  134    172   
    }
  135    173   
}
  136    174   
impl UploadArchiveOutput {
  137    175   
    /// Creates a new builder-style object to manufacture [`UploadArchiveOutput`](crate::operation::upload_archive::UploadArchiveOutput).
  138    176   
    pub fn builder() -> crate::operation::upload_archive::builders::UploadArchiveOutputBuilder {
  139    177   
        crate::operation::upload_archive::builders::UploadArchiveOutputBuilder::default()
  140    178   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/upload_multipart_part.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `UploadMultipartPart`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UploadMultipartPart;
    6      6   
impl UploadMultipartPart {
    7      7   
    /// Creates a new `UploadMultipartPart`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::upload_multipart_part::UploadMultipartPartInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::upload_multipart_part::UploadMultipartPartOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::upload_multipart_part::UploadMultipartPartInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::upload_multipart_part::UploadMultipartPartOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::upload_multipart_part::UploadMultipartPartError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -122,126 +285,396 @@
  142    146   
                crate::operation::upload_multipart_part::UploadMultipartPartError,
  143    147   
            >::new());
  144    148   
  145    149   
        ::std::borrow::Cow::Owned(rcb)
  146    150   
    }
  147    151   
}
  148    152   
  149    153   
#[derive(Debug)]
  150    154   
struct UploadMultipartPartResponseDeserializer;
  151    155   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UploadMultipartPartResponseDeserializer {
  152         -
    fn deserialize_nonstreaming(
         156  +
    fn deserialize_nonstreaming_with_config(
  153    157   
        &self,
  154    158   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         159  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  155    160   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  156    161   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  157         -
        let headers = response.headers();
  158         -
        let body = response.body().bytes().expect("body loaded");
  159    162   
        #[allow(unused_mut)]
  160    163   
        let mut force_error = false;
  161    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  162         -
        let parse_result = if !success && status != 204 || force_error {
  163         -
            crate::protocol_serde::shape_upload_multipart_part::de_upload_multipart_part_http_error(status, headers, body)
         165  +
        if !success && status != 204 || force_error {
         166  +
            let headers = response.headers();
         167  +
            let body = response.body().bytes().expect("body loaded");
         168  +
            #[allow(unused_mut)]
         169  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         170  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         171  +
            })?;
         172  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         173  +
            let generic = generic_builder.build();
         174  +
            let error_code = match generic.code() {
         175  +
                ::std::option::Option::Some(code) => code,
         176  +
                ::std::option::Option::None => {
         177  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         178  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         179  +
                            crate::operation::upload_multipart_part::UploadMultipartPartError::unhandled(generic),
         180  +
                        ),
         181  +
                    ))
         182  +
                }
         183  +
            };
         184  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         185  +
            let protocol = _cfg
         186  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         187  +
                .expect("a SharedClientProtocol is required");
         188  +
            let err = match error_code {
         189  +
                "InvalidParameterValueException" => {
         190  +
                    crate::operation::upload_multipart_part::UploadMultipartPartError::InvalidParameterValueException({
         191  +
                        let mut tmp = match protocol
         192  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         193  +
                            .and_then(|mut deser| {
         194  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         195  +
                                    &mut *deser,
         196  +
                                    response.headers(),
         197  +
                                    response.status().into(),
         198  +
                                    body,
         199  +
                                )
         200  +
                            }) {
         201  +
                            ::std::result::Result::Ok(val) => val,
         202  +
                            ::std::result::Result::Err(e) => {
         203  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         204  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         205  +
                                ))
         206  +
                            }
         207  +
                        };
         208  +
                        tmp.meta = generic;
         209  +
                        if tmp.message.is_none() {
         210  +
                            tmp.message = _error_message;
         211  +
                        }
         212  +
                        tmp
         213  +
                    })
         214  +
                }
         215  +
                "MissingParameterValueException" => {
         216  +
                    crate::operation::upload_multipart_part::UploadMultipartPartError::MissingParameterValueException({
         217  +
                        let mut tmp = match protocol
         218  +
                            .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         219  +
                            .and_then(|mut deser| {
         220  +
                                crate::types::error::MissingParameterValueException::deserialize_with_response(
         221  +
                                    &mut *deser,
         222  +
                                    response.headers(),
         223  +
                                    response.status().into(),
         224  +
                                    body,
         225  +
                                )
         226  +
                            }) {
         227  +
                            ::std::result::Result::Ok(val) => val,
         228  +
                            ::std::result::Result::Err(e) => {
         229  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         230  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         231  +
                                ))
         232  +
                            }
         233  +
                        };
         234  +
                        tmp.meta = generic;
         235  +
                        if tmp.message.is_none() {
         236  +
                            tmp.message = _error_message;
         237  +
                        }
         238  +
                        tmp
         239  +
                    })
         240  +
                }
         241  +
                "RequestTimeoutException" => crate::operation::upload_multipart_part::UploadMultipartPartError::RequestTimeoutException({
         242  +
                    let mut tmp = match protocol
         243  +
                        .deserialize_response(response, crate::types::error::RequestTimeoutException::SCHEMA, _cfg)
         244  +
                        .and_then(|mut deser| {
         245  +
                            crate::types::error::RequestTimeoutException::deserialize_with_response(
         246  +
                                &mut *deser,
         247  +
                                response.headers(),
         248  +
                                response.status().into(),
         249  +
                                body,
         250  +
                            )
         251  +
                        }) {
         252  +
                        ::std::result::Result::Ok(val) => val,
         253  +
                        ::std::result::Result::Err(e) => {
         254  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         255  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         256  +
                            ))
         257  +
                        }
         258  +
                    };
         259  +
                    tmp.meta = generic;
         260  +
                    if tmp.message.is_none() {
         261  +
                        tmp.message = _error_message;
         262  +
                    }
         263  +
                    tmp
         264  +
                }),
         265  +
                "ResourceNotFoundException" => crate::operation::upload_multipart_part::UploadMultipartPartError::ResourceNotFoundException({
         266  +
                    let mut tmp = match protocol
         267  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         268  +
                        .and_then(|mut deser| {
         269  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         270  +
                                &mut *deser,
         271  +
                                response.headers(),
         272  +
                                response.status().into(),
         273  +
                                body,
         274  +
                            )
         275  +
                        }) {
         276  +
                        ::std::result::Result::Ok(val) => val,
         277  +
                        ::std::result::Result::Err(e) => {
         278  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         279  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         280  +
                            ))
         281  +
                        }
         282  +
                    };
         283  +
                    tmp.meta = generic;
         284  +
                    if tmp.message.is_none() {
         285  +
                        tmp.message = _error_message;
         286  +
                    }
         287  +
                    tmp
         288  +
                }),
         289  +
                "ServiceUnavailableException" => crate::operation::upload_multipart_part::UploadMultipartPartError::ServiceUnavailableException({
         290  +
                    let mut tmp = match protocol
         291  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         292  +
                        .and_then(|mut deser| {
         293  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         294  +
                                &mut *deser,
         295  +
                                response.headers(),
         296  +
                                response.status().into(),
         297  +
                                body,
         298  +
                            )
         299  +
                        }) {
         300  +
                        ::std::result::Result::Ok(val) => val,
         301  +
                        ::std::result::Result::Err(e) => {
         302  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         303  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         304  +
                            ))
         305  +
                        }
         306  +
                    };
         307  +
                    tmp.meta = generic;
         308  +
                    if tmp.message.is_none() {
         309  +
                        tmp.message = _error_message;
         310  +
                    }
         311  +
                    tmp
         312  +
                }),
         313  +
                _ => crate::operation::upload_multipart_part::UploadMultipartPartError::generic(generic),
         314  +
            };
         315  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         316  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         317  +
            ))
  164    318   
        } else {
  165         -
            crate::protocol_serde::shape_upload_multipart_part::de_upload_multipart_part_http_response(status, headers, body)
  166         -
        };
  167         -
        crate::protocol_serde::type_erase_result(parse_result)
         319  +
            let protocol = _cfg
         320  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         321  +
                .expect("a SharedClientProtocol is required");
         322  +
            let mut deser = protocol
         323  +
                .deserialize_response(response, UploadMultipartPart::OUTPUT_SCHEMA, _cfg)
         324  +
                .map_err(|e| {
         325  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         326  +
                })?;
         327  +
            let body = response.body().bytes().expect("body loaded");
         328  +
            let output = crate::operation::upload_multipart_part::UploadMultipartPartOutput::deserialize_with_response(
         329  +
                &mut *deser,
         330  +
                response.headers(),
         331  +
                response.status().into(),
         332  +
                body,
         333  +
            )
         334  +
            .map_err(|e| {
         335  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         336  +
            })?;
         337  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         338  +
        }
  168    339   
    }
  169    340   
}
  170    341   
#[derive(Debug)]
  171    342   
struct UploadMultipartPartRequestSerializer;
  172    343   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UploadMultipartPartRequestSerializer {
  173    344   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  174    345   
    fn serialize_input(
  175    346   
        &self,
  176    347   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  177    348   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  178    349   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  179    350   
        let input = input
  180    351   
            .downcast::<crate::operation::upload_multipart_part::UploadMultipartPartInput>()
  181    352   
            .expect("correct type");
  182         -
        let _header_serialization_settings = _cfg
  183         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  184         -
            .cloned()
  185         -
            .unwrap_or_default();
  186         -
        let mut request_builder = {
  187         -
            #[allow(clippy::uninlined_format_args)]
  188         -
            fn uri_base(
  189         -
                _input: &crate::operation::upload_multipart_part::UploadMultipartPartInput,
  190         -
                output: &mut ::std::string::String,
  191         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  192         -
                use ::std::fmt::Write as _;
  193         -
                let input_1 = &_input.account_id;
  194         -
                let input_1 = input_1
  195         -
                    .as_ref()
  196         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  197         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  198         -
                if account_id.is_empty() {
  199         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  200         -
                        "account_id",
  201         -
                        "cannot be empty or unset",
  202         -
                    ));
  203         -
                }
  204         -
                let input_2 = &_input.vault_name;
  205         -
                let input_2 = input_2
  206         -
                    .as_ref()
  207         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  208         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  209         -
                if vault_name.is_empty() {
  210         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  211         -
                        "vault_name",
  212         -
                        "cannot be empty or unset",
  213         -
                    ));
  214         -
                }
  215         -
                let input_3 = &_input.upload_id;
  216         -
                let input_3 = input_3
  217         -
                    .as_ref()
  218         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("upload_id", "cannot be empty or unset"))?;
  219         -
                let upload_id = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  220         -
                if upload_id.is_empty() {
  221         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  222         -
                        "upload_id",
  223         -
                        "cannot be empty or unset",
  224         -
                    ));
  225         -
                }
  226         -
                ::std::write!(
  227         -
                    output,
  228         -
                    "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}",
  229         -
                    accountId = account_id,
  230         -
                    vaultName = vault_name,
  231         -
                    uploadId = upload_id
  232         -
                )
  233         -
                .expect("formatting should succeed");
  234         -
                ::std::result::Result::Ok(())
  235         -
            }
  236         -
            #[allow(clippy::unnecessary_wraps)]
  237         -
            fn update_http_builder(
  238         -
                input: &crate::operation::upload_multipart_part::UploadMultipartPartInput,
  239         -
                builder: ::http_1x::request::Builder,
  240         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  241         -
                let mut uri = ::std::string::String::new();
  242         -
                uri_base(input, &mut uri)?;
  243         -
                let builder = crate::protocol_serde::shape_upload_multipart_part::ser_upload_multipart_part_headers(input, builder)?;
  244         -
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  245         -
            }
  246         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  247         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/octet-stream");
  248         -
            builder
  249         -
        };
  250         -
        let body = crate::protocol_serde::shape_upload_multipart_part_input::ser_body_http_payload(input.body)?.into_inner();
  251         -
        if let Some(content_length) = body.content_length() {
  252         -
            let content_length = content_length.to_string();
  253         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         353  +
        let protocol = _cfg
         354  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         355  +
            .expect("a SharedClientProtocol is required");
         356  +
        let mut request = protocol
         357  +
            .serialize_request(&input, UploadMultipartPart::INPUT_SCHEMA, "", _cfg)
         358  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         359  +
        // Streaming blob payload: replace the body with the raw ByteStream.
         360  +
        *request.body_mut() = input.body.into_inner();
         361  +
        request.headers_mut().insert("Content-Type", "application/octet-stream");
         362  +
        if let ::std::option::Option::Some(content_length) = request.body().content_length() {
         363  +
            request.headers_mut().insert("Content-Length", content_length.to_string());
  254    364   
        }
  255         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         365  +
         366  +
        return ::std::result::Result::Ok(request);
  256    367   
    }
  257    368   
}
  258    369   
#[derive(Debug)]
  259    370   
struct UploadMultipartPartEndpointParamsInterceptor;
  260    371   
  261    372   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UploadMultipartPartEndpointParamsInterceptor {
  262    373   
    fn name(&self) -> &'static str {
  263    374   
        "UploadMultipartPartEndpointParamsInterceptor"
  264    375   
    }
  265    376