AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/operation/create_token_with_iam/_create_token_with_iam_output.rs

@@ -63,63 +301,357 @@
   83     83   
    "com.amazonaws.ssooidc.synthetic",
   84     84   
    "CreateTokenWithIAMOutput",
   85     85   
);
   86     86   
static CREATETOKENWITHIAMOUTPUT_MEMBER_ACCESS_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   87     87   
    ::aws_smithy_schema::ShapeId::from_static(
   88     88   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$accessToken",
   89     89   
        "com.amazonaws.ssooidc.synthetic",
   90     90   
        "CreateTokenWithIAMOutput",
   91     91   
    ),
   92     92   
    ::aws_smithy_schema::ShapeType::String,
   93         -
    "access_token",
          93  +
    "accessToken",
   94     94   
    0,
   95     95   
);
   96     96   
static CREATETOKENWITHIAMOUTPUT_MEMBER_TOKEN_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static(
   98     98   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$tokenType",
   99     99   
        "com.amazonaws.ssooidc.synthetic",
  100    100   
        "CreateTokenWithIAMOutput",
  101    101   
    ),
  102    102   
    ::aws_smithy_schema::ShapeType::String,
  103         -
    "token_type",
         103  +
    "tokenType",
  104    104   
    1,
  105    105   
);
  106    106   
static CREATETOKENWITHIAMOUTPUT_MEMBER_EXPIRES_IN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$expiresIn",
  109    109   
        "com.amazonaws.ssooidc.synthetic",
  110    110   
        "CreateTokenWithIAMOutput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::Integer,
  113         -
    "expires_in",
         113  +
    "expiresIn",
  114    114   
    2,
  115    115   
);
  116    116   
static CREATETOKENWITHIAMOUTPUT_MEMBER_REFRESH_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$refreshToken",
  119    119   
        "com.amazonaws.ssooidc.synthetic",
  120    120   
        "CreateTokenWithIAMOutput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::String,
  123         -
    "refresh_token",
         123  +
    "refreshToken",
  124    124   
    3,
  125    125   
);
  126    126   
static CREATETOKENWITHIAMOUTPUT_MEMBER_ID_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$idToken",
  129    129   
        "com.amazonaws.ssooidc.synthetic",
  130    130   
        "CreateTokenWithIAMOutput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::String,
  133         -
    "id_token",
         133  +
    "idToken",
  134    134   
    4,
  135    135   
);
  136    136   
static CREATETOKENWITHIAMOUTPUT_MEMBER_ISSUED_TOKEN_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  137    137   
    ::aws_smithy_schema::ShapeId::from_static(
  138    138   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$issuedTokenType",
  139    139   
        "com.amazonaws.ssooidc.synthetic",
  140    140   
        "CreateTokenWithIAMOutput",
  141    141   
    ),
  142    142   
    ::aws_smithy_schema::ShapeType::String,
  143         -
    "issued_token_type",
         143  +
    "issuedTokenType",
  144    144   
    5,
  145    145   
);
  146    146   
static CREATETOKENWITHIAMOUTPUT_MEMBER_SCOPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$scope",
  149    149   
        "com.amazonaws.ssooidc.synthetic",
  150    150   
        "CreateTokenWithIAMOutput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::List,
  153    153   
    "scope",
  154    154   
    6,
  155    155   
);
  156    156   
static CREATETOKENWITHIAMOUTPUT_MEMBER_AWS_ADDITIONAL_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  157    157   
    ::aws_smithy_schema::ShapeId::from_static(
  158    158   
        "com.amazonaws.ssooidc.synthetic#CreateTokenWithIAMOutput$awsAdditionalDetails",
  159    159   
        "com.amazonaws.ssooidc.synthetic",
  160    160   
        "CreateTokenWithIAMOutput",
  161    161   
    ),
  162    162   
    ::aws_smithy_schema::ShapeType::Structure,
  163         -
    "aws_additional_details",
         163  +
    "awsAdditionalDetails",
  164    164   
    7,
  165    165   
);
         166  +
static CREATETOKENWITHIAMOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         167  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         168  +
    ::aws_smithy_schema::ShapeType::String,
         169  +
    "request_id",
         170  +
    8,
         171  +
)
         172  +
.with_http_header("x-amzn-requestid");
  166    173   
static CREATETOKENWITHIAMOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  167    174   
    CREATETOKENWITHIAMOUTPUT_SCHEMA_ID,
  168    175   
    ::aws_smithy_schema::ShapeType::Structure,
  169    176   
    &[
  170    177   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_ACCESS_TOKEN,
  171    178   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_TOKEN_TYPE,
  172    179   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_EXPIRES_IN,
  173    180   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_REFRESH_TOKEN,
  174    181   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_ID_TOKEN,
  175    182   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_ISSUED_TOKEN_TYPE,
  176    183   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_SCOPE,
  177    184   
        &CREATETOKENWITHIAMOUTPUT_MEMBER_AWS_ADDITIONAL_DETAILS,
         185  +
        &CREATETOKENWITHIAMOUTPUT_MEMBER__REQUEST_ID,
  178    186   
    ],
  179    187   
);
  180    188   
impl CreateTokenWithIamOutput {
  181    189   
    /// The schema for this shape.
  182    190   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATETOKENWITHIAMOUTPUT_SCHEMA;
  183    191   
}
  184    192   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateTokenWithIamOutput {
  185    193   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  186    194   
    fn serialize_members(
  187    195   
        &self,
  188    196   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  189    197   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  190    198   
        if let Some(ref val) = self.access_token {
  191    199   
            ser.write_string(&CREATETOKENWITHIAMOUTPUT_MEMBER_ACCESS_TOKEN, val)?;
  192    200   
        }
  193    201   
        if let Some(ref val) = self.token_type {
  194    202   
            ser.write_string(&CREATETOKENWITHIAMOUTPUT_MEMBER_TOKEN_TYPE, val)?;
  195    203   
        }
  196    204   
        {
  197    205   
            let val = &self.expires_in;
  198    206   
            ser.write_integer(&CREATETOKENWITHIAMOUTPUT_MEMBER_EXPIRES_IN, *val)?;
  199    207   
        }
  200    208   
        if let Some(ref val) = self.refresh_token {
  201    209   
            ser.write_string(&CREATETOKENWITHIAMOUTPUT_MEMBER_REFRESH_TOKEN, val)?;
  202    210   
        }
  203    211   
        if let Some(ref val) = self.id_token {
  204    212   
            ser.write_string(&CREATETOKENWITHIAMOUTPUT_MEMBER_ID_TOKEN, val)?;
  205    213   
        }
  206    214   
        if let Some(ref val) = self.issued_token_type {
  207    215   
            ser.write_string(&CREATETOKENWITHIAMOUTPUT_MEMBER_ISSUED_TOKEN_TYPE, val)?;
  208    216   
        }
  209    217   
        if let Some(ref val) = self.scope {
  210    218   
            ser.write_list(
  211    219   
                &CREATETOKENWITHIAMOUTPUT_MEMBER_SCOPE,
  212    220   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  213    221   
                    for item in val {
  214    222   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  215    223   
                    }
  216    224   
                    Ok(())
  217    225   
                },
  218    226   
            )?;
  219    227   
        }
  220    228   
        if let Some(ref val) = self.aws_additional_details {
  221    229   
            ser.write_struct(&CREATETOKENWITHIAMOUTPUT_MEMBER_AWS_ADDITIONAL_DETAILS, val)?;
  222    230   
        }
  223    231   
        Ok(())
  224    232   
    }
  225    233   
}
  226    234   
impl CreateTokenWithIamOutput {
  227    235   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  228         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  229         -
        deserializer: &mut D,
         236  +
    pub fn deserialize(
         237  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  230    238   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  231    239   
        #[allow(unused_variables, unused_mut)]
  232    240   
        let mut builder = Self::builder();
  233    241   
        #[allow(
  234    242   
            unused_variables,
  235    243   
            unreachable_code,
  236    244   
            clippy::single_match,
  237    245   
            clippy::match_single_binding,
  238    246   
            clippy::diverging_sub_expression
  239    247   
        )]
  240         -
        deserializer.read_struct(&CREATETOKENWITHIAMOUTPUT_SCHEMA, (), |_, member, deser| {
         248  +
        deserializer.read_struct(&CREATETOKENWITHIAMOUTPUT_SCHEMA, &mut |member, deser| {
         249  +
            match member.member_index() {
         250  +
                Some(0) => {
         251  +
                    builder.access_token = Some(deser.read_string(member)?);
         252  +
                }
         253  +
                Some(1) => {
         254  +
                    builder.token_type = Some(deser.read_string(member)?);
         255  +
                }
         256  +
                Some(2) => {
         257  +
                    builder.expires_in = Some(deser.read_integer(member)?);
         258  +
                }
         259  +
                Some(3) => {
         260  +
                    builder.refresh_token = Some(deser.read_string(member)?);
         261  +
                }
         262  +
                Some(4) => {
         263  +
                    builder.id_token = Some(deser.read_string(member)?);
         264  +
                }
         265  +
                Some(5) => {
         266  +
                    builder.issued_token_type = Some(deser.read_string(member)?);
         267  +
                }
         268  +
                Some(6) => {
         269  +
                    builder.scope = Some(deser.read_string_list(member)?);
         270  +
                }
         271  +
                Some(7) => {
         272  +
                    builder.aws_additional_details = Some(crate::types::AwsAdditionalDetails::deserialize(deser)?);
         273  +
                }
         274  +
                Some(8) => {
         275  +
                    builder._request_id = Some(deser.read_string(member)?);
         276  +
                }
         277  +
                _ => {}
         278  +
            }
         279  +
            Ok(())
         280  +
        })?;
         281  +
        Ok(builder.build())
         282  +
    }
         283  +
}
         284  +
impl CreateTokenWithIamOutput {
         285  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         286  +
    /// Header-bound members are read directly from headers, avoiding runtime
         287  +
    /// member iteration overhead. Body members are read via the deserializer.
         288  +
    pub fn deserialize_with_response(
         289  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         290  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         291  +
        _status: u16,
         292  +
        _body: &[u8],
         293  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         294  +
        #[allow(unused_variables, unused_mut)]
         295  +
        let mut builder = Self::builder();
         296  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         297  +
            builder._request_id = Some(val.to_string());
         298  +
        }
         299  +
        #[allow(
         300  +
            unused_variables,
         301  +
            unreachable_code,
         302  +
            clippy::single_match,
         303  +
            clippy::match_single_binding,
         304  +
            clippy::diverging_sub_expression
         305  +
        )]
         306  +
        deserializer.read_struct(&CREATETOKENWITHIAMOUTPUT_SCHEMA, &mut |member, deser| {
  241    307   
            match member.member_index() {
  242    308   
                Some(0) => {
  243    309   
                    builder.access_token = Some(deser.read_string(member)?);
  244    310   
                }
  245    311   
                Some(1) => {
  246    312   
                    builder.token_type = Some(deser.read_string(member)?);
  247    313   
                }
  248    314   
                Some(2) => {
  249    315   
                    builder.expires_in = Some(deser.read_integer(member)?);
  250    316   
                }
  251    317   
                Some(3) => {
  252    318   
                    builder.refresh_token = Some(deser.read_string(member)?);
  253    319   
                }
  254    320   
                Some(4) => {
  255    321   
                    builder.id_token = Some(deser.read_string(member)?);
  256    322   
                }
  257    323   
                Some(5) => {
  258    324   
                    builder.issued_token_type = Some(deser.read_string(member)?);
  259    325   
                }
  260    326   
                Some(6) => {
  261         -
                    builder.scope = Some({
  262         -
                        let container = if let Some(cap) = deser.container_size() {
  263         -
                            Vec::with_capacity(cap)
  264         -
                        } else {
  265         -
                            Vec::new()
  266         -
                        };
  267         -
                        deser.read_list(member, container, |mut list, deser| {
  268         -
                            list.push(deser.read_string(member)?);
  269         -
                            Ok(list)
  270         -
                        })?
  271         -
                    });
         327  +
                    builder.scope = Some(deser.read_string_list(member)?);
  272    328   
                }
  273    329   
                Some(7) => {
  274    330   
                    builder.aws_additional_details = Some(crate::types::AwsAdditionalDetails::deserialize(deser)?);
  275    331   
                }
  276    332   
                _ => {}
  277    333   
            }
  278    334   
            Ok(())
  279    335   
        })?;
  280    336   
        Ok(builder.build())
  281    337   
    }

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/operation/register_client.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 `RegisterClient`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct RegisterClient;
    6      6   
impl RegisterClient {
    7      7   
    /// Creates a new `RegisterClient`
    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::register_client::RegisterClientInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::register_client::RegisterClientOutput::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::register_client::RegisterClientInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::register_client::RegisterClientOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::register_client::RegisterClientError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -109,113 +231,421 @@
  129    133   
                crate::operation::register_client::RegisterClientError,
  130    134   
            >::new());
  131    135   
  132    136   
        ::std::borrow::Cow::Owned(rcb)
  133    137   
    }
  134    138   
}
  135    139   
  136    140   
#[derive(Debug)]
  137    141   
struct RegisterClientResponseDeserializer;
  138    142   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RegisterClientResponseDeserializer {
  139         -
    fn deserialize_nonstreaming(
         143  +
    fn deserialize_nonstreaming_with_config(
  140    144   
        &self,
  141    145   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         146  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  142    147   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  143    148   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  144         -
        let headers = response.headers();
  145         -
        let body = response.body().bytes().expect("body loaded");
  146    149   
        #[allow(unused_mut)]
  147    150   
        let mut force_error = false;
  148    151   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  149         -
        let parse_result = if !success && status != 200 || force_error {
  150         -
            crate::protocol_serde::shape_register_client::de_register_client_http_error(status, headers, body)
  151         -
        } else {
  152         -
            crate::protocol_serde::shape_register_client::de_register_client_http_response(status, headers, body)
         152  +
        if !success && status != 200 || force_error {
         153  +
            let headers = response.headers();
         154  +
            let body = response.body().bytes().expect("body loaded");
         155  +
            #[allow(unused_mut)]
         156  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         157  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         158  +
            })?;
         159  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         160  +
            let generic = generic_builder.build();
         161  +
            let error_code = match generic.code() {
         162  +
                ::std::option::Option::Some(code) => code,
         163  +
                ::std::option::Option::None => {
         164  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         165  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::register_client::RegisterClientError::unhandled(
         166  +
                            generic,
         167  +
                        )),
         168  +
                    ))
         169  +
                }
         170  +
            };
         171  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         172  +
            let protocol = _cfg
         173  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         174  +
                .expect("a SharedClientProtocol is required");
         175  +
            let err = match error_code {
         176  +
                "InternalServerException" => crate::operation::register_client::RegisterClientError::InternalServerException({
         177  +
                    let mut tmp = match protocol
         178  +
                        .deserialize_response(response, crate::types::error::InternalServerException::SCHEMA, _cfg)
         179  +
                        .and_then(|mut deser| {
         180  +
                            crate::types::error::InternalServerException::deserialize_with_response(
         181  +
                                &mut *deser,
         182  +
                                response.headers(),
         183  +
                                response.status().into(),
         184  +
                                body,
         185  +
                            )
         186  +
                        }) {
         187  +
                        ::std::result::Result::Ok(val) => val,
         188  +
                        ::std::result::Result::Err(e) => {
         189  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         190  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         191  +
                            ))
         192  +
                        }
  153    193   
                    };
  154         -
        crate::protocol_serde::type_erase_result(parse_result)
         194  +
                    tmp.meta = generic;
         195  +
                    if tmp.message.is_none() {
         196  +
                        tmp.message = _error_message;
         197  +
                    }
         198  +
                    tmp
         199  +
                }),
         200  +
                "InvalidClientMetadataException" => crate::operation::register_client::RegisterClientError::InvalidClientMetadataException({
         201  +
                    let mut tmp = match protocol
         202  +
                        .deserialize_response(response, crate::types::error::InvalidClientMetadataException::SCHEMA, _cfg)
         203  +
                        .and_then(|mut deser| {
         204  +
                            crate::types::error::InvalidClientMetadataException::deserialize_with_response(
         205  +
                                &mut *deser,
         206  +
                                response.headers(),
         207  +
                                response.status().into(),
         208  +
                                body,
         209  +
                            )
         210  +
                        }) {
         211  +
                        ::std::result::Result::Ok(val) => val,
         212  +
                        ::std::result::Result::Err(e) => {
         213  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         214  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         215  +
                            ))
         216  +
                        }
         217  +
                    };
         218  +
                    tmp.meta = generic;
         219  +
                    if tmp.message.is_none() {
         220  +
                        tmp.message = _error_message;
         221  +
                    }
         222  +
                    tmp
         223  +
                }),
         224  +
                "InvalidRedirectUriException" => crate::operation::register_client::RegisterClientError::InvalidRedirectUriException({
         225  +
                    let mut tmp = match protocol
         226  +
                        .deserialize_response(response, crate::types::error::InvalidRedirectUriException::SCHEMA, _cfg)
         227  +
                        .and_then(|mut deser| {
         228  +
                            crate::types::error::InvalidRedirectUriException::deserialize_with_response(
         229  +
                                &mut *deser,
         230  +
                                response.headers(),
         231  +
                                response.status().into(),
         232  +
                                body,
         233  +
                            )
         234  +
                        }) {
         235  +
                        ::std::result::Result::Ok(val) => val,
         236  +
                        ::std::result::Result::Err(e) => {
         237  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         238  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         239  +
                            ))
         240  +
                        }
         241  +
                    };
         242  +
                    tmp.meta = generic;
         243  +
                    if tmp.message.is_none() {
         244  +
                        tmp.message = _error_message;
         245  +
                    }
         246  +
                    tmp
         247  +
                }),
         248  +
                "InvalidRequestException" => crate::operation::register_client::RegisterClientError::InvalidRequestException({
         249  +
                    let mut tmp = match protocol
         250  +
                        .deserialize_response(response, crate::types::error::InvalidRequestException::SCHEMA, _cfg)
         251  +
                        .and_then(|mut deser| {
         252  +
                            crate::types::error::InvalidRequestException::deserialize_with_response(
         253  +
                                &mut *deser,
         254  +
                                response.headers(),
         255  +
                                response.status().into(),
         256  +
                                body,
         257  +
                            )
         258  +
                        }) {
         259  +
                        ::std::result::Result::Ok(val) => val,
         260  +
                        ::std::result::Result::Err(e) => {
         261  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         262  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         263  +
                            ))
         264  +
                        }
         265  +
                    };
         266  +
                    tmp.meta = generic;
         267  +
                    if tmp.message.is_none() {
         268  +
                        tmp.message = _error_message;
         269  +
                    }
         270  +
                    tmp
         271  +
                }),
         272  +
                "InvalidScopeException" => crate::operation::register_client::RegisterClientError::InvalidScopeException({
         273  +
                    let mut tmp = match protocol
         274  +
                        .deserialize_response(response, crate::types::error::InvalidScopeException::SCHEMA, _cfg)
         275  +
                        .and_then(|mut deser| {
         276  +
                            crate::types::error::InvalidScopeException::deserialize_with_response(
         277  +
                                &mut *deser,
         278  +
                                response.headers(),
         279  +
                                response.status().into(),
         280  +
                                body,
         281  +
                            )
         282  +
                        }) {
         283  +
                        ::std::result::Result::Ok(val) => val,
         284  +
                        ::std::result::Result::Err(e) => {
         285  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         286  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         287  +
                            ))
         288  +
                        }
         289  +
                    };
         290  +
                    tmp.meta = generic;
         291  +
                    if tmp.message.is_none() {
         292  +
                        tmp.message = _error_message;
         293  +
                    }
         294  +
                    tmp
         295  +
                }),
         296  +
                "SlowDownException" => crate::operation::register_client::RegisterClientError::SlowDownException({
         297  +
                    let mut tmp = match protocol
         298  +
                        .deserialize_response(response, crate::types::error::SlowDownException::SCHEMA, _cfg)
         299  +
                        .and_then(|mut deser| {
         300  +
                            crate::types::error::SlowDownException::deserialize_with_response(
         301  +
                                &mut *deser,
         302  +
                                response.headers(),
         303  +
                                response.status().into(),
         304  +
                                body,
         305  +
                            )
         306  +
                        }) {
         307  +
                        ::std::result::Result::Ok(val) => val,
         308  +
                        ::std::result::Result::Err(e) => {
         309  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         310  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         311  +
                            ))
         312  +
                        }
         313  +
                    };
         314  +
                    tmp.meta = generic;
         315  +
                    if tmp.message.is_none() {
         316  +
                        tmp.message = _error_message;
         317  +
                    }
         318  +
                    tmp
         319  +
                }),
         320  +
                "UnsupportedGrantTypeException" => crate::operation::register_client::RegisterClientError::UnsupportedGrantTypeException({
         321  +
                    let mut tmp = match protocol
         322  +
                        .deserialize_response(response, crate::types::error::UnsupportedGrantTypeException::SCHEMA, _cfg)
         323  +
                        .and_then(|mut deser| {
         324  +
                            crate::types::error::UnsupportedGrantTypeException::deserialize_with_response(
         325  +
                                &mut *deser,
         326  +
                                response.headers(),
         327  +
                                response.status().into(),
         328  +
                                body,
         329  +
                            )
         330  +
                        }) {
         331  +
                        ::std::result::Result::Ok(val) => val,
         332  +
                        ::std::result::Result::Err(e) => {
         333  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         334  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         335  +
                            ))
         336  +
                        }
         337  +
                    };
         338  +
                    tmp.meta = generic;
         339  +
                    if tmp.message.is_none() {
         340  +
                        tmp.message = _error_message;
         341  +
                    }
         342  +
                    tmp
         343  +
                }),
         344  +
                _ => crate::operation::register_client::RegisterClientError::generic(generic),
         345  +
            };
         346  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         347  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         348  +
            ))
         349  +
        } else {
         350  +
            let protocol = _cfg
         351  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         352  +
                .expect("a SharedClientProtocol is required");
         353  +
            let mut deser = protocol
         354  +
                .deserialize_response(response, RegisterClient::OUTPUT_SCHEMA, _cfg)
         355  +
                .map_err(|e| {
         356  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         357  +
                })?;
         358  +
            let body = response.body().bytes().expect("body loaded");
         359  +
            let output = crate::operation::register_client::RegisterClientOutput::deserialize_with_response(
         360  +
                &mut *deser,
         361  +
                response.headers(),
         362  +
                response.status().into(),
         363  +
                body,
         364  +
            )
         365  +
            .map_err(|e| {
         366  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         367  +
            })?;
         368  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         369  +
        }
  155    370   
    }
  156    371   
}
  157    372   
#[derive(Debug)]
  158    373   
struct RegisterClientRequestSerializer;
  159    374   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RegisterClientRequestSerializer {
  160    375   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  161    376   
    fn serialize_input(
  162    377   
        &self,
  163    378   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  164    379   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  165    380   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  166    381   
        let input = input
  167    382   
            .downcast::<crate::operation::register_client::RegisterClientInput>()
  168    383   
            .expect("correct type");
  169         -
        let _header_serialization_settings = _cfg
  170         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  171         -
            .cloned()
  172         -
            .unwrap_or_default();
  173         -
        let mut request_builder = {
  174         -
            #[allow(clippy::uninlined_format_args)]
  175         -
            fn uri_base(
  176         -
                _input: &crate::operation::register_client::RegisterClientInput,
  177         -
                output: &mut ::std::string::String,
  178         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  179         -
                use ::std::fmt::Write as _;
  180         -
                ::std::write!(output, "/client/register").expect("formatting should succeed");
  181         -
                ::std::result::Result::Ok(())
  182         -
            }
  183         -
            #[allow(clippy::unnecessary_wraps)]
  184         -
            fn update_http_builder(
  185         -
                input: &crate::operation::register_client::RegisterClientInput,
  186         -
                builder: ::http_1x::request::Builder,
  187         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  188         -
                let mut uri = ::std::string::String::new();
  189         -
                uri_base(input, &mut uri)?;
  190         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  191         -
            }
  192         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  193         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  194         -
            builder
  195         -
        };
  196         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_register_client::ser_register_client_input(&input)?);
  197         -
        if let Some(content_length) = body.content_length() {
  198         -
            let content_length = content_length.to_string();
  199         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  200         -
        }
  201         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         384  +
        let protocol = _cfg
         385  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         386  +
            .expect("a SharedClientProtocol is required");
         387  +
        let mut request = protocol
         388  +
            .serialize_request(&input, RegisterClient::INPUT_SCHEMA, "", _cfg)
         389  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         390  +
         391  +
        return ::std::result::Result::Ok(request);
  202    392   
    }
  203    393   
}
  204    394   
#[derive(Debug)]
  205    395   
struct RegisterClientEndpointParamsInterceptor;
  206    396   
  207    397   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RegisterClientEndpointParamsInterceptor {
  208    398   
    fn name(&self) -> &'static str {
  209    399   
        "RegisterClientEndpointParamsInterceptor"
  210    400   
    }
  211    401   

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/operation/register_client/_register_client_input.rs

@@ -45,45 +314,298 @@
   65     65   
    "com.amazonaws.ssooidc.synthetic",
   66     66   
    "RegisterClientInput",
   67     67   
);
   68     68   
static REGISTERCLIENTINPUT_MEMBER_CLIENT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.ssooidc.synthetic#RegisterClientInput$clientName",
   71     71   
        "com.amazonaws.ssooidc.synthetic",
   72     72   
        "RegisterClientInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::String,
   75         -
    "client_name",
          75  +
    "clientName",
   76     76   
    0,
   77     77   
);
   78     78   
static REGISTERCLIENTINPUT_MEMBER_CLIENT_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.ssooidc.synthetic#RegisterClientInput$clientType",
   81     81   
        "com.amazonaws.ssooidc.synthetic",
   82     82   
        "RegisterClientInput",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::String,
   85         -
    "client_type",
          85  +
    "clientType",
   86     86   
    1,
   87     87   
);
   88     88   
static REGISTERCLIENTINPUT_MEMBER_SCOPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.ssooidc.synthetic#RegisterClientInput$scopes",
   91     91   
        "com.amazonaws.ssooidc.synthetic",
   92     92   
        "RegisterClientInput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::List,
   95     95   
    "scopes",
   96     96   
    2,
   97     97   
);
   98     98   
static REGISTERCLIENTINPUT_MEMBER_REDIRECT_URIS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.ssooidc.synthetic#RegisterClientInput$redirectUris",
  101    101   
        "com.amazonaws.ssooidc.synthetic",
  102    102   
        "RegisterClientInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::List,
  105         -
    "redirect_uris",
         105  +
    "redirectUris",
  106    106   
    3,
  107    107   
);
  108    108   
static REGISTERCLIENTINPUT_MEMBER_GRANT_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static(
  110    110   
        "com.amazonaws.ssooidc.synthetic#RegisterClientInput$grantTypes",
  111    111   
        "com.amazonaws.ssooidc.synthetic",
  112    112   
        "RegisterClientInput",
  113    113   
    ),
  114    114   
    ::aws_smithy_schema::ShapeType::List,
  115         -
    "grant_types",
         115  +
    "grantTypes",
  116    116   
    4,
  117    117   
);
  118    118   
static REGISTERCLIENTINPUT_MEMBER_ISSUER_URL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  119    119   
    ::aws_smithy_schema::ShapeId::from_static(
  120    120   
        "com.amazonaws.ssooidc.synthetic#RegisterClientInput$issuerUrl",
  121    121   
        "com.amazonaws.ssooidc.synthetic",
  122    122   
        "RegisterClientInput",
  123    123   
    ),
  124    124   
    ::aws_smithy_schema::ShapeType::String,
  125         -
    "issuer_url",
         125  +
    "issuerUrl",
  126    126   
    5,
  127    127   
);
  128    128   
static REGISTERCLIENTINPUT_MEMBER_ENTITLED_APPLICATION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  129    129   
    ::aws_smithy_schema::ShapeId::from_static(
  130    130   
        "com.amazonaws.ssooidc.synthetic#RegisterClientInput$entitledApplicationArn",
  131    131   
        "com.amazonaws.ssooidc.synthetic",
  132    132   
        "RegisterClientInput",
  133    133   
    ),
  134    134   
    ::aws_smithy_schema::ShapeType::String,
  135         -
    "entitled_application_arn",
         135  +
    "entitledApplicationArn",
  136    136   
    6,
  137    137   
);
  138    138   
static REGISTERCLIENTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  139    139   
    REGISTERCLIENTINPUT_SCHEMA_ID,
  140    140   
    ::aws_smithy_schema::ShapeType::Structure,
  141    141   
    &[
  142    142   
        &REGISTERCLIENTINPUT_MEMBER_CLIENT_NAME,
  143    143   
        &REGISTERCLIENTINPUT_MEMBER_CLIENT_TYPE,
  144    144   
        &REGISTERCLIENTINPUT_MEMBER_SCOPES,
  145    145   
        &REGISTERCLIENTINPUT_MEMBER_REDIRECT_URIS,
  146    146   
        &REGISTERCLIENTINPUT_MEMBER_GRANT_TYPES,
  147    147   
        &REGISTERCLIENTINPUT_MEMBER_ISSUER_URL,
  148    148   
        &REGISTERCLIENTINPUT_MEMBER_ENTITLED_APPLICATION_ARN,
  149    149   
    ],
  150         -
);
         150  +
)
         151  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("POST", "/client/register", None));
  151    152   
impl RegisterClientInput {
  152    153   
    /// The schema for this shape.
  153    154   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REGISTERCLIENTINPUT_SCHEMA;
  154    155   
}
  155    156   
impl ::aws_smithy_schema::serde::SerializableStruct for RegisterClientInput {
  156    157   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  157    158   
    fn serialize_members(
  158    159   
        &self,
  159    160   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  160    161   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  161    162   
        if let Some(ref val) = self.client_name {
  162    163   
            ser.write_string(&REGISTERCLIENTINPUT_MEMBER_CLIENT_NAME, val)?;
  163    164   
        }
  164    165   
        if let Some(ref val) = self.client_type {
  165    166   
            ser.write_string(&REGISTERCLIENTINPUT_MEMBER_CLIENT_TYPE, val)?;
  166    167   
        }
  167    168   
        if let Some(ref val) = self.scopes {
  168    169   
            ser.write_list(
  169    170   
                &REGISTERCLIENTINPUT_MEMBER_SCOPES,
  170    171   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  171    172   
                    for item in val {
  172    173   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  173    174   
                    }
  174    175   
                    Ok(())
  175    176   
                },
  176    177   
            )?;
  177    178   
        }
  178    179   
        if let Some(ref val) = self.redirect_uris {
  179    180   
            ser.write_list(
  180    181   
                &REGISTERCLIENTINPUT_MEMBER_REDIRECT_URIS,
  181    182   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  182    183   
                    for item in val {
  183    184   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  184    185   
                    }
  185    186   
                    Ok(())
  186    187   
                },
  187    188   
            )?;
  188    189   
        }
  189    190   
        if let Some(ref val) = self.grant_types {
  190    191   
            ser.write_list(
  191    192   
                &REGISTERCLIENTINPUT_MEMBER_GRANT_TYPES,
  192    193   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  193    194   
                    for item in val {
  194    195   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  195    196   
                    }
  196    197   
                    Ok(())
  197    198   
                },
  198    199   
            )?;
  199    200   
        }
  200    201   
        if let Some(ref val) = self.issuer_url {
  201    202   
            ser.write_string(&REGISTERCLIENTINPUT_MEMBER_ISSUER_URL, val)?;
  202    203   
        }
  203    204   
        if let Some(ref val) = self.entitled_application_arn {
  204    205   
            ser.write_string(&REGISTERCLIENTINPUT_MEMBER_ENTITLED_APPLICATION_ARN, val)?;
  205    206   
        }
  206    207   
        Ok(())
  207    208   
    }
  208    209   
}
  209    210   
impl RegisterClientInput {
  210    211   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  211         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  212         -
        deserializer: &mut D,
         212  +
    pub fn deserialize(
         213  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  213    214   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  214    215   
        #[allow(unused_variables, unused_mut)]
  215    216   
        let mut builder = Self::builder();
  216    217   
        #[allow(
  217    218   
            unused_variables,
  218    219   
            unreachable_code,
  219    220   
            clippy::single_match,
  220    221   
            clippy::match_single_binding,
  221    222   
            clippy::diverging_sub_expression
  222    223   
        )]
  223         -
        deserializer.read_struct(&REGISTERCLIENTINPUT_SCHEMA, (), |_, member, deser| {
         224  +
        deserializer.read_struct(&REGISTERCLIENTINPUT_SCHEMA, &mut |member, deser| {
  224    225   
            match member.member_index() {
  225    226   
                Some(0) => {
  226    227   
                    builder.client_name = Some(deser.read_string(member)?);
  227    228   
                }
  228    229   
                Some(1) => {
  229    230   
                    builder.client_type = Some(deser.read_string(member)?);
  230    231   
                }
  231    232   
                Some(2) => {
  232         -
                    builder.scopes = Some({
  233         -
                        let container = if let Some(cap) = deser.container_size() {
  234         -
                            Vec::with_capacity(cap)
  235         -
                        } else {
  236         -
                            Vec::new()
  237         -
                        };
  238         -
                        deser.read_list(member, container, |mut list, deser| {
  239         -
                            list.push(deser.read_string(member)?);
  240         -
                            Ok(list)
  241         -
                        })?
  242         -
                    });
         233  +
                    builder.scopes = Some(deser.read_string_list(member)?);
  243    234   
                }
  244    235   
                Some(3) => {
  245         -
                    builder.redirect_uris = Some({
  246         -
                        let container = if let Some(cap) = deser.container_size() {
  247         -
                            Vec::with_capacity(cap)
  248         -
                        } else {
  249         -
                            Vec::new()
  250         -
                        };
  251         -
                        deser.read_list(member, container, |mut list, deser| {
  252         -
                            list.push(deser.read_string(member)?);
  253         -
                            Ok(list)
  254         -
                        })?
  255         -
                    });
         236  +
                    builder.redirect_uris = Some(deser.read_string_list(member)?);
  256    237   
                }
  257    238   
                Some(4) => {
  258         -
                    builder.grant_types = Some({
  259         -
                        let container = if let Some(cap) = deser.container_size() {
  260         -
                            Vec::with_capacity(cap)
  261         -
                        } else {
  262         -
                            Vec::new()
  263         -
                        };
  264         -
                        deser.read_list(member, container, |mut list, deser| {
  265         -
                            list.push(deser.read_string(member)?);
  266         -
                            Ok(list)
  267         -
                        })?
  268         -
                    });
         239  +
                    builder.grant_types = Some(deser.read_string_list(member)?);
  269    240   
                }
  270    241   
                Some(5) => {
  271    242   
                    builder.issuer_url = Some(deser.read_string(member)?);
  272    243   
                }
  273    244   
                Some(6) => {
  274    245   
                    builder.entitled_application_arn = Some(deser.read_string(member)?);
  275    246   
                }
  276    247   
                _ => {}
  277    248   
            }
  278    249   
            Ok(())
  279    250   
        })?;
         251  +
        builder.client_name = builder.client_name.or(Some(String::new()));
         252  +
        builder.client_type = builder.client_type.or(Some(String::new()));
  280    253   
        builder
  281    254   
            .build()
  282    255   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  283    256   
    }
  284    257   
}
         258  +
impl RegisterClientInput {
         259  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         260  +
    pub fn deserialize_with_response(
         261  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         262  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         263  +
        _status: u16,
         264  +
        _body: &[u8],
         265  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         266  +
        Self::deserialize(deserializer)
         267  +
    }
         268  +
}
  285    269   
impl RegisterClientInput {
  286    270   
    /// Creates a new builder-style object to manufacture [`RegisterClientInput`](crate::operation::register_client::RegisterClientInput).
  287    271   
    pub fn builder() -> crate::operation::register_client::builders::RegisterClientInputBuilder {
  288    272   
        crate::operation::register_client::builders::RegisterClientInputBuilder::default()
  289    273   
    }
  290    274   
}
  291    275   
  292    276   
/// A builder for [`RegisterClientInput`](crate::operation::register_client::RegisterClientInput).
  293    277   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  294    278   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/operation/register_client/_register_client_output.rs

@@ -41,41 +213,273 @@
   61     61   
    "com.amazonaws.ssooidc.synthetic",
   62     62   
    "RegisterClientOutput",
   63     63   
);
   64     64   
static REGISTERCLIENTOUTPUT_MEMBER_CLIENT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static(
   66     66   
        "com.amazonaws.ssooidc.synthetic#RegisterClientOutput$clientId",
   67     67   
        "com.amazonaws.ssooidc.synthetic",
   68     68   
        "RegisterClientOutput",
   69     69   
    ),
   70     70   
    ::aws_smithy_schema::ShapeType::String,
   71         -
    "client_id",
          71  +
    "clientId",
   72     72   
    0,
   73     73   
);
   74     74   
static REGISTERCLIENTOUTPUT_MEMBER_CLIENT_SECRET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.ssooidc.synthetic#RegisterClientOutput$clientSecret",
   77     77   
        "com.amazonaws.ssooidc.synthetic",
   78     78   
        "RegisterClientOutput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "client_secret",
          81  +
    "clientSecret",
   82     82   
    1,
   83     83   
);
   84     84   
static REGISTERCLIENTOUTPUT_MEMBER_CLIENT_ID_ISSUED_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.ssooidc.synthetic#RegisterClientOutput$clientIdIssuedAt",
   87     87   
        "com.amazonaws.ssooidc.synthetic",
   88     88   
        "RegisterClientOutput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::Long,
   91         -
    "client_id_issued_at",
          91  +
    "clientIdIssuedAt",
   92     92   
    2,
   93     93   
);
   94     94   
static REGISTERCLIENTOUTPUT_MEMBER_CLIENT_SECRET_EXPIRES_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.ssooidc.synthetic#RegisterClientOutput$clientSecretExpiresAt",
   97     97   
        "com.amazonaws.ssooidc.synthetic",
   98     98   
        "RegisterClientOutput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::Long,
  101         -
    "client_secret_expires_at",
         101  +
    "clientSecretExpiresAt",
  102    102   
    3,
  103    103   
);
  104    104   
static REGISTERCLIENTOUTPUT_MEMBER_AUTHORIZATION_ENDPOINT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    105   
    ::aws_smithy_schema::ShapeId::from_static(
  106    106   
        "com.amazonaws.ssooidc.synthetic#RegisterClientOutput$authorizationEndpoint",
  107    107   
        "com.amazonaws.ssooidc.synthetic",
  108    108   
        "RegisterClientOutput",
  109    109   
    ),
  110    110   
    ::aws_smithy_schema::ShapeType::String,
  111         -
    "authorization_endpoint",
         111  +
    "authorizationEndpoint",
  112    112   
    4,
  113    113   
);
  114    114   
static REGISTERCLIENTOUTPUT_MEMBER_TOKEN_ENDPOINT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  115    115   
    ::aws_smithy_schema::ShapeId::from_static(
  116    116   
        "com.amazonaws.ssooidc.synthetic#RegisterClientOutput$tokenEndpoint",
  117    117   
        "com.amazonaws.ssooidc.synthetic",
  118    118   
        "RegisterClientOutput",
  119    119   
    ),
  120    120   
    ::aws_smithy_schema::ShapeType::String,
  121         -
    "token_endpoint",
         121  +
    "tokenEndpoint",
  122    122   
    5,
  123    123   
);
         124  +
static REGISTERCLIENTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         125  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         126  +
    ::aws_smithy_schema::ShapeType::String,
         127  +
    "request_id",
         128  +
    6,
         129  +
)
         130  +
.with_http_header("x-amzn-requestid");
  124    131   
static REGISTERCLIENTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  125    132   
    REGISTERCLIENTOUTPUT_SCHEMA_ID,
  126    133   
    ::aws_smithy_schema::ShapeType::Structure,
  127    134   
    &[
  128    135   
        &REGISTERCLIENTOUTPUT_MEMBER_CLIENT_ID,
  129    136   
        &REGISTERCLIENTOUTPUT_MEMBER_CLIENT_SECRET,
  130    137   
        &REGISTERCLIENTOUTPUT_MEMBER_CLIENT_ID_ISSUED_AT,
  131    138   
        &REGISTERCLIENTOUTPUT_MEMBER_CLIENT_SECRET_EXPIRES_AT,
  132    139   
        &REGISTERCLIENTOUTPUT_MEMBER_AUTHORIZATION_ENDPOINT,
  133    140   
        &REGISTERCLIENTOUTPUT_MEMBER_TOKEN_ENDPOINT,
         141  +
        &REGISTERCLIENTOUTPUT_MEMBER__REQUEST_ID,
  134    142   
    ],
  135    143   
);
  136    144   
impl RegisterClientOutput {
  137    145   
    /// The schema for this shape.
  138    146   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REGISTERCLIENTOUTPUT_SCHEMA;
  139    147   
}
  140    148   
impl ::aws_smithy_schema::serde::SerializableStruct for RegisterClientOutput {
  141    149   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  142    150   
    fn serialize_members(
  143    151   
        &self,
  144    152   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  145    153   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  146    154   
        if let Some(ref val) = self.client_id {
  147    155   
            ser.write_string(&REGISTERCLIENTOUTPUT_MEMBER_CLIENT_ID, val)?;
  148    156   
        }
  149    157   
        if let Some(ref val) = self.client_secret {
  150    158   
            ser.write_string(&REGISTERCLIENTOUTPUT_MEMBER_CLIENT_SECRET, val)?;
  151    159   
        }
  152    160   
        {
  153    161   
            let val = &self.client_id_issued_at;
  154    162   
            ser.write_long(&REGISTERCLIENTOUTPUT_MEMBER_CLIENT_ID_ISSUED_AT, *val)?;
  155    163   
        }
  156    164   
        {
  157    165   
            let val = &self.client_secret_expires_at;
  158    166   
            ser.write_long(&REGISTERCLIENTOUTPUT_MEMBER_CLIENT_SECRET_EXPIRES_AT, *val)?;
  159    167   
        }
  160    168   
        if let Some(ref val) = self.authorization_endpoint {
  161    169   
            ser.write_string(&REGISTERCLIENTOUTPUT_MEMBER_AUTHORIZATION_ENDPOINT, val)?;
  162    170   
        }
  163    171   
        if let Some(ref val) = self.token_endpoint {
  164    172   
            ser.write_string(&REGISTERCLIENTOUTPUT_MEMBER_TOKEN_ENDPOINT, val)?;
  165    173   
        }
  166    174   
        Ok(())
  167    175   
    }
  168    176   
}
  169    177   
impl RegisterClientOutput {
  170    178   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  171         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  172         -
        deserializer: &mut D,
         179  +
    pub fn deserialize(
         180  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         181  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         182  +
        #[allow(unused_variables, unused_mut)]
         183  +
        let mut builder = Self::builder();
         184  +
        #[allow(
         185  +
            unused_variables,
         186  +
            unreachable_code,
         187  +
            clippy::single_match,
         188  +
            clippy::match_single_binding,
         189  +
            clippy::diverging_sub_expression
         190  +
        )]
         191  +
        deserializer.read_struct(&REGISTERCLIENTOUTPUT_SCHEMA, &mut |member, deser| {
         192  +
            match member.member_index() {
         193  +
                Some(0) => {
         194  +
                    builder.client_id = Some(deser.read_string(member)?);
         195  +
                }
         196  +
                Some(1) => {
         197  +
                    builder.client_secret = Some(deser.read_string(member)?);
         198  +
                }
         199  +
                Some(2) => {
         200  +
                    builder.client_id_issued_at = Some(deser.read_long(member)?);
         201  +
                }
         202  +
                Some(3) => {
         203  +
                    builder.client_secret_expires_at = Some(deser.read_long(member)?);
         204  +
                }
         205  +
                Some(4) => {
         206  +
                    builder.authorization_endpoint = Some(deser.read_string(member)?);
         207  +
                }
         208  +
                Some(5) => {
         209  +
                    builder.token_endpoint = Some(deser.read_string(member)?);
         210  +
                }
         211  +
                Some(6) => {
         212  +
                    builder._request_id = Some(deser.read_string(member)?);
         213  +
                }
         214  +
                _ => {}
         215  +
            }
         216  +
            Ok(())
         217  +
        })?;
         218  +
        Ok(builder.build())
         219  +
    }
         220  +
}
         221  +
impl RegisterClientOutput {
         222  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         223  +
    /// Header-bound members are read directly from headers, avoiding runtime
         224  +
    /// member iteration overhead. Body members are read via the deserializer.
         225  +
    pub fn deserialize_with_response(
         226  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         227  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         228  +
        _status: u16,
         229  +
        _body: &[u8],
  173    230   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  174    231   
        #[allow(unused_variables, unused_mut)]
  175    232   
        let mut builder = Self::builder();
         233  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         234  +
            builder._request_id = Some(val.to_string());
         235  +
        }
  176    236   
        #[allow(
  177    237   
            unused_variables,
  178    238   
            unreachable_code,
  179    239   
            clippy::single_match,
  180    240   
            clippy::match_single_binding,
  181    241   
            clippy::diverging_sub_expression
  182    242   
        )]
  183         -
        deserializer.read_struct(&REGISTERCLIENTOUTPUT_SCHEMA, (), |_, member, deser| {
         243  +
        deserializer.read_struct(&REGISTERCLIENTOUTPUT_SCHEMA, &mut |member, deser| {
  184    244   
            match member.member_index() {
  185    245   
                Some(0) => {
  186    246   
                    builder.client_id = Some(deser.read_string(member)?);
  187    247   
                }
  188    248   
                Some(1) => {
  189    249   
                    builder.client_secret = Some(deser.read_string(member)?);
  190    250   
                }
  191    251   
                Some(2) => {
  192    252   
                    builder.client_id_issued_at = Some(deser.read_long(member)?);
  193    253   
                }

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/operation/start_device_authorization.rs

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

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/operation/start_device_authorization/_start_device_authorization_input.rs

@@ -18,18 +165,180 @@
   38     38   
    "com.amazonaws.ssooidc.synthetic",
   39     39   
    "StartDeviceAuthorizationInput",
   40     40   
);
   41     41   
static STARTDEVICEAUTHORIZATIONINPUT_MEMBER_CLIENT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   42     42   
    ::aws_smithy_schema::ShapeId::from_static(
   43     43   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationInput$clientId",
   44     44   
        "com.amazonaws.ssooidc.synthetic",
   45     45   
        "StartDeviceAuthorizationInput",
   46     46   
    ),
   47     47   
    ::aws_smithy_schema::ShapeType::String,
   48         -
    "client_id",
          48  +
    "clientId",
   49     49   
    0,
   50     50   
);
   51     51   
static STARTDEVICEAUTHORIZATIONINPUT_MEMBER_CLIENT_SECRET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static(
   53     53   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationInput$clientSecret",
   54     54   
        "com.amazonaws.ssooidc.synthetic",
   55     55   
        "StartDeviceAuthorizationInput",
   56     56   
    ),
   57     57   
    ::aws_smithy_schema::ShapeType::String,
   58         -
    "client_secret",
          58  +
    "clientSecret",
   59     59   
    1,
   60     60   
);
   61     61   
static STARTDEVICEAUTHORIZATIONINPUT_MEMBER_START_URL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   62     62   
    ::aws_smithy_schema::ShapeId::from_static(
   63     63   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationInput$startUrl",
   64     64   
        "com.amazonaws.ssooidc.synthetic",
   65     65   
        "StartDeviceAuthorizationInput",
   66     66   
    ),
   67     67   
    ::aws_smithy_schema::ShapeType::String,
   68         -
    "start_url",
          68  +
    "startUrl",
   69     69   
    2,
   70     70   
);
   71     71   
static STARTDEVICEAUTHORIZATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   72     72   
    STARTDEVICEAUTHORIZATIONINPUT_SCHEMA_ID,
   73     73   
    ::aws_smithy_schema::ShapeType::Structure,
   74     74   
    &[
   75     75   
        &STARTDEVICEAUTHORIZATIONINPUT_MEMBER_CLIENT_ID,
   76     76   
        &STARTDEVICEAUTHORIZATIONINPUT_MEMBER_CLIENT_SECRET,
   77     77   
        &STARTDEVICEAUTHORIZATIONINPUT_MEMBER_START_URL,
   78     78   
    ],
   79         -
);
          79  +
)
          80  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("POST", "/device_authorization", None));
   80     81   
impl StartDeviceAuthorizationInput {
   81     82   
    /// The schema for this shape.
   82     83   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTDEVICEAUTHORIZATIONINPUT_SCHEMA;
   83     84   
}
   84     85   
impl ::aws_smithy_schema::serde::SerializableStruct for StartDeviceAuthorizationInput {
   85     86   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   86     87   
    fn serialize_members(
   87     88   
        &self,
   88     89   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   89     90   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   90     91   
        if let Some(ref val) = self.client_id {
   91     92   
            ser.write_string(&STARTDEVICEAUTHORIZATIONINPUT_MEMBER_CLIENT_ID, val)?;
   92     93   
        }
   93     94   
        if let Some(ref val) = self.client_secret {
   94     95   
            ser.write_string(&STARTDEVICEAUTHORIZATIONINPUT_MEMBER_CLIENT_SECRET, val)?;
   95     96   
        }
   96     97   
        if let Some(ref val) = self.start_url {
   97     98   
            ser.write_string(&STARTDEVICEAUTHORIZATIONINPUT_MEMBER_START_URL, val)?;
   98     99   
        }
   99    100   
        Ok(())
  100    101   
    }
  101    102   
}
  102    103   
impl StartDeviceAuthorizationInput {
  103    104   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  104         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  105         -
        deserializer: &mut D,
         105  +
    pub fn deserialize(
         106  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  106    107   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  107    108   
        #[allow(unused_variables, unused_mut)]
  108    109   
        let mut builder = Self::builder();
  109    110   
        #[allow(
  110    111   
            unused_variables,
  111    112   
            unreachable_code,
  112    113   
            clippy::single_match,
  113    114   
            clippy::match_single_binding,
  114    115   
            clippy::diverging_sub_expression
  115    116   
        )]
  116         -
        deserializer.read_struct(&STARTDEVICEAUTHORIZATIONINPUT_SCHEMA, (), |_, member, deser| {
         117  +
        deserializer.read_struct(&STARTDEVICEAUTHORIZATIONINPUT_SCHEMA, &mut |member, deser| {
  117    118   
            match member.member_index() {
  118    119   
                Some(0) => {
  119    120   
                    builder.client_id = Some(deser.read_string(member)?);
  120    121   
                }
  121    122   
                Some(1) => {
  122    123   
                    builder.client_secret = Some(deser.read_string(member)?);
  123    124   
                }
  124    125   
                Some(2) => {
  125    126   
                    builder.start_url = Some(deser.read_string(member)?);
  126    127   
                }
  127    128   
                _ => {}
  128    129   
            }
  129    130   
            Ok(())
  130    131   
        })?;
         132  +
        builder.client_id = builder.client_id.or(Some(String::new()));
         133  +
        builder.client_secret = builder.client_secret.or(Some(String::new()));
         134  +
        builder.start_url = builder.start_url.or(Some(String::new()));
  131    135   
        builder
  132    136   
            .build()
  133    137   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  134    138   
    }
  135    139   
}
         140  +
impl StartDeviceAuthorizationInput {
         141  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         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  +
        Self::deserialize(deserializer)
         149  +
    }
         150  +
}
  136    151   
impl StartDeviceAuthorizationInput {
  137    152   
    /// Creates a new builder-style object to manufacture [`StartDeviceAuthorizationInput`](crate::operation::start_device_authorization::StartDeviceAuthorizationInput).
  138    153   
    pub fn builder() -> crate::operation::start_device_authorization::builders::StartDeviceAuthorizationInputBuilder {
  139    154   
        crate::operation::start_device_authorization::builders::StartDeviceAuthorizationInputBuilder::default()
  140    155   
    }
  141    156   
}
  142    157   
  143    158   
/// A builder for [`StartDeviceAuthorizationInput`](crate::operation::start_device_authorization::StartDeviceAuthorizationInput).
  144    159   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  145    160   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/operation/start_device_authorization/_start_device_authorization_output.rs

@@ -28,28 +200,260 @@
   48     48   
    "com.amazonaws.ssooidc.synthetic",
   49     49   
    "StartDeviceAuthorizationOutput",
   50     50   
);
   51     51   
static STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_DEVICE_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static(
   53     53   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationOutput$deviceCode",
   54     54   
        "com.amazonaws.ssooidc.synthetic",
   55     55   
        "StartDeviceAuthorizationOutput",
   56     56   
    ),
   57     57   
    ::aws_smithy_schema::ShapeType::String,
   58         -
    "device_code",
          58  +
    "deviceCode",
   59     59   
    0,
   60     60   
);
   61     61   
static STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_USER_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   62     62   
    ::aws_smithy_schema::ShapeId::from_static(
   63     63   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationOutput$userCode",
   64     64   
        "com.amazonaws.ssooidc.synthetic",
   65     65   
        "StartDeviceAuthorizationOutput",
   66     66   
    ),
   67     67   
    ::aws_smithy_schema::ShapeType::String,
   68         -
    "user_code",
          68  +
    "userCode",
   69     69   
    1,
   70     70   
);
   71     71   
static STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_VERIFICATION_URI: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   72     72   
    ::aws_smithy_schema::ShapeId::from_static(
   73     73   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationOutput$verificationUri",
   74     74   
        "com.amazonaws.ssooidc.synthetic",
   75     75   
        "StartDeviceAuthorizationOutput",
   76     76   
    ),
   77     77   
    ::aws_smithy_schema::ShapeType::String,
   78         -
    "verification_uri",
          78  +
    "verificationUri",
   79     79   
    2,
   80     80   
);
   81     81   
static STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_VERIFICATION_URI_COMPLETE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   82     82   
    ::aws_smithy_schema::ShapeId::from_static(
   83     83   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationOutput$verificationUriComplete",
   84     84   
        "com.amazonaws.ssooidc.synthetic",
   85     85   
        "StartDeviceAuthorizationOutput",
   86     86   
    ),
   87     87   
    ::aws_smithy_schema::ShapeType::String,
   88         -
    "verification_uri_complete",
          88  +
    "verificationUriComplete",
   89     89   
    3,
   90     90   
);
   91     91   
static STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_EXPIRES_IN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   92     92   
    ::aws_smithy_schema::ShapeId::from_static(
   93     93   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationOutput$expiresIn",
   94     94   
        "com.amazonaws.ssooidc.synthetic",
   95     95   
        "StartDeviceAuthorizationOutput",
   96     96   
    ),
   97     97   
    ::aws_smithy_schema::ShapeType::Integer,
   98         -
    "expires_in",
          98  +
    "expiresIn",
   99     99   
    4,
  100    100   
);
  101    101   
static STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_INTERVAL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  102    102   
    ::aws_smithy_schema::ShapeId::from_static(
  103    103   
        "com.amazonaws.ssooidc.synthetic#StartDeviceAuthorizationOutput$interval",
  104    104   
        "com.amazonaws.ssooidc.synthetic",
  105    105   
        "StartDeviceAuthorizationOutput",
  106    106   
    ),
  107    107   
    ::aws_smithy_schema::ShapeType::Integer,
  108    108   
    "interval",
  109    109   
    5,
  110    110   
);
         111  +
static STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         112  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         113  +
    ::aws_smithy_schema::ShapeType::String,
         114  +
    "request_id",
         115  +
    6,
         116  +
)
         117  +
.with_http_header("x-amzn-requestid");
  111    118   
static STARTDEVICEAUTHORIZATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  112    119   
    STARTDEVICEAUTHORIZATIONOUTPUT_SCHEMA_ID,
  113    120   
    ::aws_smithy_schema::ShapeType::Structure,
  114    121   
    &[
  115    122   
        &STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_DEVICE_CODE,
  116    123   
        &STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_USER_CODE,
  117    124   
        &STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_VERIFICATION_URI,
  118    125   
        &STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_VERIFICATION_URI_COMPLETE,
  119    126   
        &STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_EXPIRES_IN,
  120    127   
        &STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_INTERVAL,
         128  +
        &STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER__REQUEST_ID,
  121    129   
    ],
  122    130   
);
  123    131   
impl StartDeviceAuthorizationOutput {
  124    132   
    /// The schema for this shape.
  125    133   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &STARTDEVICEAUTHORIZATIONOUTPUT_SCHEMA;
  126    134   
}
  127    135   
impl ::aws_smithy_schema::serde::SerializableStruct for StartDeviceAuthorizationOutput {
  128    136   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  129    137   
    fn serialize_members(
  130    138   
        &self,
  131    139   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  132    140   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  133    141   
        if let Some(ref val) = self.device_code {
  134    142   
            ser.write_string(&STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_DEVICE_CODE, val)?;
  135    143   
        }
  136    144   
        if let Some(ref val) = self.user_code {
  137    145   
            ser.write_string(&STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_USER_CODE, val)?;
  138    146   
        }
  139    147   
        if let Some(ref val) = self.verification_uri {
  140    148   
            ser.write_string(&STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_VERIFICATION_URI, val)?;
  141    149   
        }
  142    150   
        if let Some(ref val) = self.verification_uri_complete {
  143    151   
            ser.write_string(&STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_VERIFICATION_URI_COMPLETE, val)?;
  144    152   
        }
  145    153   
        {
  146    154   
            let val = &self.expires_in;
  147    155   
            ser.write_integer(&STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_EXPIRES_IN, *val)?;
  148    156   
        }
  149    157   
        {
  150    158   
            let val = &self.interval;
  151    159   
            ser.write_integer(&STARTDEVICEAUTHORIZATIONOUTPUT_MEMBER_INTERVAL, *val)?;
  152    160   
        }
  153    161   
        Ok(())
  154    162   
    }
  155    163   
}
  156    164   
impl StartDeviceAuthorizationOutput {
  157    165   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  158         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  159         -
        deserializer: &mut D,
         166  +
    pub fn deserialize(
         167  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         168  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         169  +
        #[allow(unused_variables, unused_mut)]
         170  +
        let mut builder = Self::builder();
         171  +
        #[allow(
         172  +
            unused_variables,
         173  +
            unreachable_code,
         174  +
            clippy::single_match,
         175  +
            clippy::match_single_binding,
         176  +
            clippy::diverging_sub_expression
         177  +
        )]
         178  +
        deserializer.read_struct(&STARTDEVICEAUTHORIZATIONOUTPUT_SCHEMA, &mut |member, deser| {
         179  +
            match member.member_index() {
         180  +
                Some(0) => {
         181  +
                    builder.device_code = Some(deser.read_string(member)?);
         182  +
                }
         183  +
                Some(1) => {
         184  +
                    builder.user_code = Some(deser.read_string(member)?);
         185  +
                }
         186  +
                Some(2) => {
         187  +
                    builder.verification_uri = Some(deser.read_string(member)?);
         188  +
                }
         189  +
                Some(3) => {
         190  +
                    builder.verification_uri_complete = Some(deser.read_string(member)?);
         191  +
                }
         192  +
                Some(4) => {
         193  +
                    builder.expires_in = Some(deser.read_integer(member)?);
         194  +
                }
         195  +
                Some(5) => {
         196  +
                    builder.interval = Some(deser.read_integer(member)?);
         197  +
                }
         198  +
                Some(6) => {
         199  +
                    builder._request_id = Some(deser.read_string(member)?);
         200  +
                }
         201  +
                _ => {}
         202  +
            }
         203  +
            Ok(())
         204  +
        })?;
         205  +
        Ok(builder.build())
         206  +
    }
         207  +
}
         208  +
impl StartDeviceAuthorizationOutput {
         209  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         210  +
    /// Header-bound members are read directly from headers, avoiding runtime
         211  +
    /// member iteration overhead. Body members are read via the deserializer.
         212  +
    pub fn deserialize_with_response(
         213  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         214  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         215  +
        _status: u16,
         216  +
        _body: &[u8],
  160    217   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  161    218   
        #[allow(unused_variables, unused_mut)]
  162    219   
        let mut builder = Self::builder();
         220  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         221  +
            builder._request_id = Some(val.to_string());
         222  +
        }
  163    223   
        #[allow(
  164    224   
            unused_variables,
  165    225   
            unreachable_code,
  166    226   
            clippy::single_match,
  167    227   
            clippy::match_single_binding,
  168    228   
            clippy::diverging_sub_expression
  169    229   
        )]
  170         -
        deserializer.read_struct(&STARTDEVICEAUTHORIZATIONOUTPUT_SCHEMA, (), |_, member, deser| {
         230  +
        deserializer.read_struct(&STARTDEVICEAUTHORIZATIONOUTPUT_SCHEMA, &mut |member, deser| {
  171    231   
            match member.member_index() {
  172    232   
                Some(0) => {
  173    233   
                    builder.device_code = Some(deser.read_string(member)?);
  174    234   
                }
  175    235   
                Some(1) => {
  176    236   
                    builder.user_code = Some(deser.read_string(member)?);
  177    237   
                }
  178    238   
                Some(2) => {
  179    239   
                    builder.verification_uri = Some(deser.read_string(member)?);
  180    240   
                }

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde.rs

@@ -1,1 +80,0 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn type_erase_result<O, E>(
    3         -
    result: ::std::result::Result<O, E>,
    4         -
) -> ::std::result::Result<
    5         -
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    6         -
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
    7         -
>
    8         -
where
    9         -
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   10         -
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
   11         -
{
   12         -
    result
   13         -
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
   14         -
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
   15         -
        .map_err(::std::convert::Into::into)
   16         -
}
   17         -
   18      2   
pub fn parse_http_error_metadata(
   19      3   
    _response_status: u16,
   20      4   
    response_headers: &::aws_smithy_runtime_api::http::Headers,
   21      5   
    response_body: &[u8],
   22      6   
) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
   23      7   
    crate::json_errors::parse_error_metadata(response_body, response_headers)
   24      8   
}
   25         -
   26         -
pub(crate) mod shape_create_token;
   27         -
   28         -
pub(crate) mod shape_create_token_with_iam;
   29         -
   30         -
pub(crate) mod shape_register_client;
   31         -
   32         -
pub(crate) mod shape_start_device_authorization;
   33         -
   34         -
pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
   35         -
    if data.is_empty() {
   36         -
        b"{}"
   37         -
    } else {
   38         -
        data
   39         -
    }
   40         -
}
   41         -
   42         -
pub(crate) mod shape_access_denied_exception;
   43         -
   44         -
pub(crate) mod shape_authorization_pending_exception;
   45         -
   46         -
pub(crate) mod shape_create_token_input;
   47         -
   48         -
pub(crate) mod shape_create_token_with_iam_input;
   49         -
   50         -
pub(crate) mod shape_expired_token_exception;
   51         -
   52         -
pub(crate) mod shape_internal_server_exception;
   53         -
   54         -
pub(crate) mod shape_invalid_client_exception;
   55         -
   56         -
pub(crate) mod shape_invalid_client_metadata_exception;
   57         -
   58         -
pub(crate) mod shape_invalid_grant_exception;
   59         -
   60         -
pub(crate) mod shape_invalid_redirect_uri_exception;
   61         -
   62         -
pub(crate) mod shape_invalid_request_exception;
   63         -
   64         -
pub(crate) mod shape_invalid_request_region_exception;
   65         -
   66         -
pub(crate) mod shape_invalid_scope_exception;
   67         -
   68         -
pub(crate) mod shape_register_client_input;
   69         -
   70         -
pub(crate) mod shape_slow_down_exception;
   71         -
   72         -
pub(crate) mod shape_start_device_authorization_input;
   73         -
   74         -
pub(crate) mod shape_unauthorized_client_exception;
   75         -
   76         -
pub(crate) mod shape_unsupported_grant_type_exception;
   77         -
   78         -
pub(crate) mod shape_aws_additional_details;
   79         -
   80         -
pub(crate) mod shape_scopes;

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_access_denied_exception.rs

@@ -1,0 +56,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_access_denied_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::AccessDeniedExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::AccessDeniedExceptionBuilder, ::aws_smithy_json::deserialize::error::DeserializeError> {
    6         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
    7         -
    let tokens = &mut tokens_owned;
    8         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
    9         -
    loop {
   10         -
        match tokens.next().transpose()? {
   11         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   12         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   13         -
                "error" => {
   14         -
                    builder = builder.set_error(
   15         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   16         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   17         -
                            .transpose()?,
   18         -
                    );
   19         -
                }
   20         -
                "reason" => {
   21         -
                    builder = builder.set_reason(
   22         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   23         -
                            .map(|s| s.to_unescaped().map(|u| crate::types::AccessDeniedExceptionReason::from(u.as_ref())))
   24         -
                            .transpose()?,
   25         -
                    );
   26         -
                }
   27         -
                "error_description" => {
   28         -
                    builder = builder.set_error_description(
   29         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   30         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   31         -
                            .transpose()?,
   32         -
                    );
   33         -
                }
   34         -
                "Message" => {
   35         -
                    builder = builder.set_message(
   36         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   37         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   38         -
                            .transpose()?,
   39         -
                    );
   40         -
                }
   41         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   42         -
            },
   43         -
            other => {
   44         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   45         -
                    "expected object key or end object, found: {other:?}"
   46         -
                )))
   47         -
            }
   48         -
        }
   49         -
    }
   50         -
    if tokens.next().is_some() {
   51         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   52         -
            "found more JSON tokens after completing parsing",
   53         -
        ));
   54         -
    }
   55         -
    Ok(builder)
   56         -
}

tmp-codegen-diff/aws-sdk/sdk/ssooidc/src/protocol_serde/shape_authorization_pending_exception.rs

@@ -1,0 +50,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub(crate) fn de_authorization_pending_exception_json_err(
    3         -
    _value: &[u8],
    4         -
    mut builder: crate::types::error::builders::AuthorizationPendingExceptionBuilder,
    5         -
) -> ::std::result::Result<crate::types::error::builders::AuthorizationPendingExceptionBuilder, ::aws_smithy_json::deserialize::error::DeserializeError>
    6         -
{
    7         -
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(_value)).peekable();
    8         -
    let tokens = &mut tokens_owned;
    9         -
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
   10         -
    loop {
   11         -
        match tokens.next().transpose()? {
   12         -
            Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   13         -
            Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
   14         -
                "error" => {
   15         -
                    builder = builder.set_error(
   16         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   17         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   18         -
                            .transpose()?,
   19         -
                    );
   20         -
                }
   21         -
                "error_description" => {
   22         -
                    builder = builder.set_error_description(
   23         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   24         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   25         -
                            .transpose()?,
   26         -
                    );
   27         -
                }
   28         -
                "Message" => {
   29         -
                    builder = builder.set_message(
   30         -
                        ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   31         -
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   32         -
                            .transpose()?,
   33         -
                    );
   34         -
                }
   35         -
                _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
   36         -
            },
   37         -
            other => {
   38         -
                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   39         -
                    "expected object key or end object, found: {other:?}"
   40         -
                )))
   41         -
            }
   42         -
        }
   43         -
    }
   44         -
    if tokens.next().is_some() {
   45         -
        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   46         -
            "found more JSON tokens after completing parsing",
   47         -
        ));
   48         -
    }
   49         -
    Ok(builder)
   50         -
}