AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/create_source_repository_branch/_create_source_repository_branch_input.rs

@@ -21,21 +206,226 @@
   41     41   
    "com.amazonaws.codecatalyst.synthetic",
   42     42   
    "CreateSourceRepositoryBranchInput",
   43     43   
);
   44     44   
static CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchInput$spaceName",
   47     47   
        "com.amazonaws.codecatalyst.synthetic",
   48     48   
        "CreateSourceRepositoryBranchInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "space_name",
          51  +
    "spaceName",
   52     52   
    0,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchInput$projectName",
   58     58   
        "com.amazonaws.codecatalyst.synthetic",
   59     59   
        "CreateSourceRepositoryBranchInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "project_name",
          62  +
    "projectName",
   63     63   
    1,
   64     64   
)
   65     65   
.with_http_label();
   66     66   
static CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_SOURCE_REPOSITORY_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static(
   68     68   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchInput$sourceRepositoryName",
   69     69   
        "com.amazonaws.codecatalyst.synthetic",
   70     70   
        "CreateSourceRepositoryBranchInput",
   71     71   
    ),
   72     72   
    ::aws_smithy_schema::ShapeType::String,
   73         -
    "source_repository_name",
          73  +
    "sourceRepositoryName",
   74     74   
    2,
   75     75   
)
   76     76   
.with_http_label();
   77     77   
static CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchInput$name",
   80     80   
        "com.amazonaws.codecatalyst.synthetic",
   81     81   
        "CreateSourceRepositoryBranchInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::String,
   84     84   
    "name",
   85     85   
    3,
   86     86   
)
   87     87   
.with_http_label();
   88     88   
static CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_HEAD_COMMIT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   89     89   
    ::aws_smithy_schema::ShapeId::from_static(
   90     90   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchInput$headCommitId",
   91     91   
        "com.amazonaws.codecatalyst.synthetic",
   92     92   
        "CreateSourceRepositoryBranchInput",
   93     93   
    ),
   94     94   
    ::aws_smithy_schema::ShapeType::String,
   95         -
    "head_commit_id",
          95  +
    "headCommitId",
   96     96   
    4,
   97     97   
);
   98     98   
static CREATESOURCEREPOSITORYBRANCHINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   99     99   
    CREATESOURCEREPOSITORYBRANCHINPUT_SCHEMA_ID,
  100    100   
    ::aws_smithy_schema::ShapeType::Structure,
  101    101   
    &[
  102    102   
        &CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_SPACE_NAME,
  103    103   
        &CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_PROJECT_NAME,
  104    104   
        &CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_SOURCE_REPOSITORY_NAME,
  105    105   
        &CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_NAME,
  106    106   
        &CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_HEAD_COMMIT_ID,
  107    107   
    ],
  108         -
);
         108  +
)
         109  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         110  +
    "PUT",
         111  +
    "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}",
         112  +
    Some(201),
         113  +
));
  109    114   
impl CreateSourceRepositoryBranchInput {
  110    115   
    /// The schema for this shape.
  111    116   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATESOURCEREPOSITORYBRANCHINPUT_SCHEMA;
  112    117   
}
  113    118   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateSourceRepositoryBranchInput {
  114    119   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  115    120   
    fn serialize_members(
  116    121   
        &self,
  117    122   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  118    123   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  119    124   
        if let Some(ref val) = self.space_name {
  120    125   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_SPACE_NAME, val)?;
  121    126   
        }
  122    127   
        if let Some(ref val) = self.project_name {
  123    128   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_PROJECT_NAME, val)?;
  124    129   
        }
  125    130   
        if let Some(ref val) = self.source_repository_name {
  126    131   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_SOURCE_REPOSITORY_NAME, val)?;
  127    132   
        }
  128    133   
        if let Some(ref val) = self.name {
  129    134   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_NAME, val)?;
  130    135   
        }
  131    136   
        if let Some(ref val) = self.head_commit_id {
  132    137   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHINPUT_MEMBER_HEAD_COMMIT_ID, val)?;
  133    138   
        }
  134    139   
        Ok(())
  135    140   
    }
  136    141   
}
  137    142   
impl CreateSourceRepositoryBranchInput {
  138    143   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  139         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  140         -
        deserializer: &mut D,
         144  +
    pub fn deserialize(
         145  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  141    146   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  142    147   
        #[allow(unused_variables, unused_mut)]
  143    148   
        let mut builder = Self::builder();
  144    149   
        #[allow(
  145    150   
            unused_variables,
  146    151   
            unreachable_code,
  147    152   
            clippy::single_match,
  148    153   
            clippy::match_single_binding,
  149    154   
            clippy::diverging_sub_expression
  150    155   
        )]
  151         -
        deserializer.read_struct(&CREATESOURCEREPOSITORYBRANCHINPUT_SCHEMA, (), |_, member, deser| {
         156  +
        deserializer.read_struct(&CREATESOURCEREPOSITORYBRANCHINPUT_SCHEMA, &mut |member, deser| {
  152    157   
            match member.member_index() {
  153    158   
                Some(0) => {
  154    159   
                    builder.space_name = Some(deser.read_string(member)?);
  155    160   
                }
  156    161   
                Some(1) => {
  157    162   
                    builder.project_name = Some(deser.read_string(member)?);
  158    163   
                }
  159    164   
                Some(2) => {
  160    165   
                    builder.source_repository_name = Some(deser.read_string(member)?);
  161    166   
                }
  162    167   
                Some(3) => {
  163    168   
                    builder.name = Some(deser.read_string(member)?);
  164    169   
                }
  165    170   
                Some(4) => {
  166    171   
                    builder.head_commit_id = Some(deser.read_string(member)?);
  167    172   
                }
  168    173   
                _ => {}
  169    174   
            }
  170    175   
            Ok(())
  171    176   
        })?;
         177  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         178  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         179  +
        builder.source_repository_name = builder.source_repository_name.or(Some(String::new()));
         180  +
        builder.name = builder.name.or(Some(String::new()));
  172    181   
        builder
  173    182   
            .build()
  174    183   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  175    184   
    }
  176    185   
}
         186  +
impl CreateSourceRepositoryBranchInput {
         187  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         188  +
    pub fn deserialize_with_response(
         189  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         190  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         191  +
        _status: u16,
         192  +
        _body: &[u8],
         193  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         194  +
        Self::deserialize(deserializer)
         195  +
    }
         196  +
}
  177    197   
impl CreateSourceRepositoryBranchInput {
  178    198   
    /// Creates a new builder-style object to manufacture [`CreateSourceRepositoryBranchInput`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchInput).
  179    199   
    pub fn builder() -> crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchInputBuilder {
  180    200   
        crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchInputBuilder::default()
  181    201   
    }
  182    202   
}
  183    203   
  184    204   
/// A builder for [`CreateSourceRepositoryBranchInput`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchInput).
  185    205   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  186    206   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/create_source_repository_branch/_create_source_repository_branch_output.rs

@@ -16,16 +159,213 @@
   36     36   
    "com.amazonaws.codecatalyst.synthetic",
   37     37   
    "CreateSourceRepositoryBranchOutput",
   38     38   
);
   39     39   
static CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_REF: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchOutput$ref",
   42     42   
        "com.amazonaws.codecatalyst.synthetic",
   43     43   
        "CreateSourceRepositoryBranchOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "r##ref",
          46  +
    "ref",
   47     47   
    0,
   48     48   
);
   49     49   
static CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   50     50   
    ::aws_smithy_schema::ShapeId::from_static(
   51     51   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchOutput$name",
   52     52   
        "com.amazonaws.codecatalyst.synthetic",
   53     53   
        "CreateSourceRepositoryBranchOutput",
   54     54   
    ),
   55     55   
    ::aws_smithy_schema::ShapeType::String,
   56     56   
    "name",
   57     57   
    1,
   58     58   
);
   59     59   
static CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_LAST_UPDATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   60     60   
    ::aws_smithy_schema::ShapeId::from_static(
   61     61   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchOutput$lastUpdatedTime",
   62     62   
        "com.amazonaws.codecatalyst.synthetic",
   63     63   
        "CreateSourceRepositoryBranchOutput",
   64     64   
    ),
   65     65   
    ::aws_smithy_schema::ShapeType::Timestamp,
   66         -
    "last_updated_time",
          66  +
    "lastUpdatedTime",
   67     67   
    2,
   68     68   
)
   69     69   
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
   70     70   
static CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_HEAD_COMMIT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   71     71   
    ::aws_smithy_schema::ShapeId::from_static(
   72     72   
        "com.amazonaws.codecatalyst.synthetic#CreateSourceRepositoryBranchOutput$headCommitId",
   73     73   
        "com.amazonaws.codecatalyst.synthetic",
   74     74   
        "CreateSourceRepositoryBranchOutput",
   75     75   
    ),
   76     76   
    ::aws_smithy_schema::ShapeType::String,
   77         -
    "head_commit_id",
          77  +
    "headCommitId",
   78     78   
    3,
   79     79   
);
          80  +
static CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          81  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          82  +
    ::aws_smithy_schema::ShapeType::String,
          83  +
    "request_id",
          84  +
    4,
          85  +
)
          86  +
.with_http_header("x-amzn-requestid");
   80     87   
static CREATESOURCEREPOSITORYBRANCHOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   81     88   
    CREATESOURCEREPOSITORYBRANCHOUTPUT_SCHEMA_ID,
   82     89   
    ::aws_smithy_schema::ShapeType::Structure,
   83     90   
    &[
   84     91   
        &CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_REF,
   85     92   
        &CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_NAME,
   86     93   
        &CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_LAST_UPDATED_TIME,
   87     94   
        &CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_HEAD_COMMIT_ID,
          95  +
        &CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER__REQUEST_ID,
   88     96   
    ],
   89     97   
);
   90     98   
impl CreateSourceRepositoryBranchOutput {
   91     99   
    /// The schema for this shape.
   92    100   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATESOURCEREPOSITORYBRANCHOUTPUT_SCHEMA;
   93    101   
}
   94    102   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateSourceRepositoryBranchOutput {
   95    103   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   96    104   
    fn serialize_members(
   97    105   
        &self,
   98    106   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   99    107   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  100    108   
        if let Some(ref val) = self.r#ref {
  101    109   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_REF, val)?;
  102    110   
        }
  103    111   
        if let Some(ref val) = self.name {
  104    112   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_NAME, val)?;
  105    113   
        }
  106    114   
        if let Some(ref val) = self.last_updated_time {
  107    115   
            ser.write_timestamp(&CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_LAST_UPDATED_TIME, val)?;
  108    116   
        }
  109    117   
        if let Some(ref val) = self.head_commit_id {
  110    118   
            ser.write_string(&CREATESOURCEREPOSITORYBRANCHOUTPUT_MEMBER_HEAD_COMMIT_ID, val)?;
  111    119   
        }
  112    120   
        Ok(())
  113    121   
    }
  114    122   
}
  115    123   
impl CreateSourceRepositoryBranchOutput {
  116    124   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  117         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  118         -
        deserializer: &mut D,
         125  +
    pub fn deserialize(
         126  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  119    127   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  120    128   
        #[allow(unused_variables, unused_mut)]
  121    129   
        let mut builder = Self::builder();
  122    130   
        #[allow(
  123    131   
            unused_variables,
  124    132   
            unreachable_code,
  125    133   
            clippy::single_match,
  126    134   
            clippy::match_single_binding,
  127    135   
            clippy::diverging_sub_expression
  128    136   
        )]
  129         -
        deserializer.read_struct(&CREATESOURCEREPOSITORYBRANCHOUTPUT_SCHEMA, (), |_, member, deser| {
         137  +
        deserializer.read_struct(&CREATESOURCEREPOSITORYBRANCHOUTPUT_SCHEMA, &mut |member, deser| {
         138  +
            match member.member_index() {
         139  +
                Some(0) => {
         140  +
                    builder.r#ref = Some(deser.read_string(member)?);
         141  +
                }
         142  +
                Some(1) => {
         143  +
                    builder.name = Some(deser.read_string(member)?);
         144  +
                }
         145  +
                Some(2) => {
         146  +
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);
         147  +
                }
         148  +
                Some(3) => {
         149  +
                    builder.head_commit_id = Some(deser.read_string(member)?);
         150  +
                }
         151  +
                Some(4) => {
         152  +
                    builder._request_id = Some(deser.read_string(member)?);
         153  +
                }
         154  +
                _ => {}
         155  +
            }
         156  +
            Ok(())
         157  +
        })?;
         158  +
        Ok(builder.build())
         159  +
    }
         160  +
}
         161  +
impl CreateSourceRepositoryBranchOutput {
         162  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         163  +
    /// Header-bound members are read directly from headers, avoiding runtime
         164  +
    /// member iteration overhead. Body members are read via the deserializer.
         165  +
    pub fn deserialize_with_response(
         166  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         167  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         168  +
        _status: u16,
         169  +
        _body: &[u8],
         170  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         171  +
        #[allow(unused_variables, unused_mut)]
         172  +
        let mut builder = Self::builder();
         173  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         174  +
            builder._request_id = Some(val.to_string());
         175  +
        }
         176  +
        #[allow(
         177  +
            unused_variables,
         178  +
            unreachable_code,
         179  +
            clippy::single_match,
         180  +
            clippy::match_single_binding,
         181  +
            clippy::diverging_sub_expression
         182  +
        )]
         183  +
        deserializer.read_struct(&CREATESOURCEREPOSITORYBRANCHOUTPUT_SCHEMA, &mut |member, deser| {
  130    184   
            match member.member_index() {
  131    185   
                Some(0) => {
  132    186   
                    builder.r#ref = Some(deser.read_string(member)?);
  133    187   
                }
  134    188   
                Some(1) => {
  135    189   
                    builder.name = Some(deser.read_string(member)?);
  136    190   
                }
  137    191   
                Some(2) => {
  138    192   
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);
  139    193   
                }

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_access_token.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 `DeleteAccessToken`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteAccessToken;
    6      6   
impl DeleteAccessToken {
    7      7   
    /// Creates a new `DeleteAccessToken`
    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::delete_access_token::DeleteAccessTokenInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_access_token::DeleteAccessTokenOutput::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::delete_access_token::DeleteAccessTokenInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_access_token::DeleteAccessTokenOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_access_token::DeleteAccessTokenError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +237,378 @@
  128    132   
                crate::operation::delete_access_token::DeleteAccessTokenError,
  129    133   
            >::new());
  130    134   
  131    135   
        ::std::borrow::Cow::Owned(rcb)
  132    136   
    }
  133    137   
}
  134    138   
  135    139   
#[derive(Debug)]
  136    140   
struct DeleteAccessTokenResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteAccessTokenResponseDeserializer {
  138         -
    fn deserialize_nonstreaming(
         142  +
    fn deserialize_nonstreaming_with_config(
  139    143   
        &self,
  140    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         145  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  141    146   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  142    147   
        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    148   
        #[allow(unused_mut)]
  146    149   
        let mut force_error = false;
  147    150   
        ::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_delete_access_token::de_delete_access_token_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_delete_access_token::de_delete_access_token_http_response(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         165  +
                            crate::operation::delete_access_token::DeleteAccessTokenError::unhandled(generic),
         166  +
                        ),
         167  +
                    ))
         168  +
                }
         169  +
            };
         170  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         171  +
            let protocol = _cfg
         172  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         173  +
                .expect("a SharedClientProtocol is required");
         174  +
            let err = match error_code {
         175  +
                "AccessDeniedException" => crate::operation::delete_access_token::DeleteAccessTokenError::AccessDeniedException({
         176  +
                    let mut tmp = match protocol
         177  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         178  +
                        .and_then(|mut deser| {
         179  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         180  +
                                &mut *deser,
         181  +
                                response.headers(),
         182  +
                                response.status().into(),
         183  +
                                body,
         184  +
                            )
         185  +
                        }) {
         186  +
                        ::std::result::Result::Ok(val) => val,
         187  +
                        ::std::result::Result::Err(e) => {
         188  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         189  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         190  +
                            ))
         191  +
                        }
         192  +
                    };
         193  +
                    tmp.meta = generic;
         194  +
                    tmp
         195  +
                }),
         196  +
                "ConflictException" => crate::operation::delete_access_token::DeleteAccessTokenError::ConflictException({
         197  +
                    let mut tmp = match protocol
         198  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         199  +
                        .and_then(|mut deser| {
         200  +
                            crate::types::error::ConflictException::deserialize_with_response(
         201  +
                                &mut *deser,
         202  +
                                response.headers(),
         203  +
                                response.status().into(),
         204  +
                                body,
         205  +
                            )
         206  +
                        }) {
         207  +
                        ::std::result::Result::Ok(val) => val,
         208  +
                        ::std::result::Result::Err(e) => {
         209  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         210  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         211  +
                            ))
         212  +
                        }
         213  +
                    };
         214  +
                    tmp.meta = generic;
         215  +
                    tmp
         216  +
                }),
         217  +
                "ResourceNotFoundException" => crate::operation::delete_access_token::DeleteAccessTokenError::ResourceNotFoundException({
         218  +
                    let mut tmp = match protocol
         219  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         220  +
                        .and_then(|mut deser| {
         221  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         222  +
                                &mut *deser,
         223  +
                                response.headers(),
         224  +
                                response.status().into(),
         225  +
                                body,
         226  +
                            )
         227  +
                        }) {
         228  +
                        ::std::result::Result::Ok(val) => val,
         229  +
                        ::std::result::Result::Err(e) => {
         230  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                            ))
         233  +
                        }
         234  +
                    };
         235  +
                    tmp.meta = generic;
         236  +
                    tmp
         237  +
                }),
         238  +
                "ServiceQuotaExceededException" => crate::operation::delete_access_token::DeleteAccessTokenError::ServiceQuotaExceededException({
         239  +
                    let mut tmp = match protocol
         240  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         241  +
                        .and_then(|mut deser| {
         242  +
                            crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         243  +
                                &mut *deser,
         244  +
                                response.headers(),
         245  +
                                response.status().into(),
         246  +
                                body,
         247  +
                            )
         248  +
                        }) {
         249  +
                        ::std::result::Result::Ok(val) => val,
         250  +
                        ::std::result::Result::Err(e) => {
         251  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                            ))
         254  +
                        }
         255  +
                    };
         256  +
                    tmp.meta = generic;
         257  +
                    tmp
         258  +
                }),
         259  +
                "ThrottlingException" => crate::operation::delete_access_token::DeleteAccessTokenError::ThrottlingException({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
  152    276   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         277  +
                    tmp.meta = generic;
         278  +
                    tmp
         279  +
                }),
         280  +
                "ValidationException" => crate::operation::delete_access_token::DeleteAccessTokenError::ValidationException({
         281  +
                    let mut tmp = match protocol
         282  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         283  +
                        .and_then(|mut deser| {
         284  +
                            crate::types::error::ValidationException::deserialize_with_response(
         285  +
                                &mut *deser,
         286  +
                                response.headers(),
         287  +
                                response.status().into(),
         288  +
                                body,
         289  +
                            )
         290  +
                        }) {
         291  +
                        ::std::result::Result::Ok(val) => val,
         292  +
                        ::std::result::Result::Err(e) => {
         293  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         294  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         295  +
                            ))
         296  +
                        }
         297  +
                    };
         298  +
                    tmp.meta = generic;
         299  +
                    tmp
         300  +
                }),
         301  +
                _ => crate::operation::delete_access_token::DeleteAccessTokenError::generic(generic),
         302  +
            };
         303  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         304  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         305  +
            ))
         306  +
        } else {
         307  +
            let protocol = _cfg
         308  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         309  +
                .expect("a SharedClientProtocol is required");
         310  +
            let mut deser = protocol
         311  +
                .deserialize_response(response, DeleteAccessToken::OUTPUT_SCHEMA, _cfg)
         312  +
                .map_err(|e| {
         313  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         314  +
                })?;
         315  +
            let body = response.body().bytes().expect("body loaded");
         316  +
            let output = crate::operation::delete_access_token::DeleteAccessTokenOutput::deserialize_with_response(
         317  +
                &mut *deser,
         318  +
                response.headers(),
         319  +
                response.status().into(),
         320  +
                body,
         321  +
            )
         322  +
            .map_err(|e| {
         323  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         324  +
            })?;
         325  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         326  +
        }
  154    327   
    }
  155    328   
}
  156    329   
#[derive(Debug)]
  157    330   
struct DeleteAccessTokenRequestSerializer;
  158    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteAccessTokenRequestSerializer {
  159    332   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    333   
    fn serialize_input(
  161    334   
        &self,
  162    335   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    336   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    337   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    338   
        let input = input
  166    339   
            .downcast::<crate::operation::delete_access_token::DeleteAccessTokenInput>()
  167    340   
            .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::delete_access_token::DeleteAccessTokenInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                let input_1 = &_input.id;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("id", "cannot be empty or unset"))?;
  183         -
                let id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if id.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "id",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                ::std::write!(output, "/v1/accessTokens/{id}", id = id).expect("formatting should succeed");
  191         -
                ::std::result::Result::Ok(())
  192         -
            }
  193         -
            #[allow(clippy::unnecessary_wraps)]
  194         -
            fn update_http_builder(
  195         -
                input: &crate::operation::delete_access_token::DeleteAccessTokenInput,
  196         -
                builder: ::http_1x::request::Builder,
  197         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  198         -
                let mut uri = ::std::string::String::new();
  199         -
                uri_base(input, &mut uri)?;
  200         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  201         -
            }
  202         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  203         -
            builder
  204         -
        };
  205         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         341  +
        let protocol = _cfg
         342  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         343  +
            .expect("a SharedClientProtocol is required");
         344  +
        let mut request = protocol
         345  +
            .serialize_request(&input, DeleteAccessToken::INPUT_SCHEMA, "", _cfg)
         346  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  206    347   
  207         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         348  +
        return ::std::result::Result::Ok(request);
  208    349   
    }
  209    350   
}
  210    351   
#[derive(Debug)]
  211    352   
struct DeleteAccessTokenEndpointParamsInterceptor;
  212    353   
  213    354   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteAccessTokenEndpointParamsInterceptor {
  214    355   
    fn name(&self) -> &'static str {
  215    356   
        "DeleteAccessTokenEndpointParamsInterceptor"
  216    357   
    }
  217    358   

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_access_token/_delete_access_token_input.rs

@@ -5,5 +109,122 @@
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27     27   
    "id",
   28     28   
    0,
   29     29   
)
   30     30   
.with_http_label();
   31     31   
static DELETEACCESSTOKENINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     32   
    DELETEACCESSTOKENINPUT_SCHEMA_ID,
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34     34   
    &[&DELETEACCESSTOKENINPUT_MEMBER_ID],
   35         -
);
          35  +
)
          36  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("DELETE", "/v1/accessTokens/{id}", None));
   36     37   
impl DeleteAccessTokenInput {
   37     38   
    /// The schema for this shape.
   38     39   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEACCESSTOKENINPUT_SCHEMA;
   39     40   
}
   40     41   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteAccessTokenInput {
   41     42   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     43   
    fn serialize_members(
   43     44   
        &self,
   44     45   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     46   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     47   
        if let Some(ref val) = self.id {
   47     48   
            ser.write_string(&DELETEACCESSTOKENINPUT_MEMBER_ID, val)?;
   48     49   
        }
   49     50   
        Ok(())
   50     51   
    }
   51     52   
}
   52     53   
impl DeleteAccessTokenInput {
   53     54   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          55  +
    pub fn deserialize(
          56  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     57   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     58   
        #[allow(unused_variables, unused_mut)]
   58     59   
        let mut builder = Self::builder();
   59     60   
        #[allow(
   60     61   
            unused_variables,
   61     62   
            unreachable_code,
   62     63   
            clippy::single_match,
   63     64   
            clippy::match_single_binding,
   64     65   
            clippy::diverging_sub_expression
   65     66   
        )]
   66         -
        deserializer.read_struct(&DELETEACCESSTOKENINPUT_SCHEMA, (), |_, member, deser| {
          67  +
        deserializer.read_struct(&DELETEACCESSTOKENINPUT_SCHEMA, &mut |member, deser| {
   67     68   
            match member.member_index() {
   68     69   
                Some(0) => {
   69     70   
                    builder.id = Some(deser.read_string(member)?);
   70     71   
                }
   71     72   
                _ => {}
   72     73   
            }
   73     74   
            Ok(())
   74     75   
        })?;
          76  +
        builder.id = builder.id.or(Some(String::new()));
   75     77   
        builder
   76     78   
            .build()
   77     79   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   78     80   
    }
   79     81   
}
          82  +
impl DeleteAccessTokenInput {
          83  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          84  +
    pub fn deserialize_with_response(
          85  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          86  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          87  +
        _status: u16,
          88  +
        _body: &[u8],
          89  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          90  +
        Self::deserialize(deserializer)
          91  +
    }
          92  +
}
   80     93   
impl DeleteAccessTokenInput {
   81     94   
    /// Creates a new builder-style object to manufacture [`DeleteAccessTokenInput`](crate::operation::delete_access_token::DeleteAccessTokenInput).
   82     95   
    pub fn builder() -> crate::operation::delete_access_token::builders::DeleteAccessTokenInputBuilder {
   83     96   
        crate::operation::delete_access_token::builders::DeleteAccessTokenInputBuilder::default()
   84     97   
    }
   85     98   
}
   86     99   
   87    100   
/// A builder for [`DeleteAccessTokenInput`](crate::operation::delete_access_token::DeleteAccessTokenInput).
   88    101   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   89    102   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_access_token/_delete_access_token_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_dev_environment.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 `DeleteDevEnvironment`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteDevEnvironment;
    6      6   
impl DeleteDevEnvironment {
    7      7   
    /// Creates a new `DeleteDevEnvironment`
    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::delete_dev_environment::DeleteDevEnvironmentInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_dev_environment::DeleteDevEnvironmentOutput::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::delete_dev_environment::DeleteDevEnvironmentInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_dev_environment::DeleteDevEnvironmentOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_dev_environment::DeleteDevEnvironmentError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +266,380 @@
  128    132   
                crate::operation::delete_dev_environment::DeleteDevEnvironmentError,
  129    133   
            >::new());
  130    134   
  131    135   
        ::std::borrow::Cow::Owned(rcb)
  132    136   
    }
  133    137   
}
  134    138   
  135    139   
#[derive(Debug)]
  136    140   
struct DeleteDevEnvironmentResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteDevEnvironmentResponseDeserializer {
  138         -
    fn deserialize_nonstreaming(
         142  +
    fn deserialize_nonstreaming_with_config(
  139    143   
        &self,
  140    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         145  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  141    146   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  142    147   
        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    148   
        #[allow(unused_mut)]
  146    149   
        let mut force_error = false;
  147    150   
        ::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_delete_dev_environment::de_delete_dev_environment_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_delete_dev_environment::de_delete_dev_environment_http_response(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         165  +
                            crate::operation::delete_dev_environment::DeleteDevEnvironmentError::unhandled(generic),
         166  +
                        ),
         167  +
                    ))
         168  +
                }
  152    169   
            };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         170  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         171  +
            let protocol = _cfg
         172  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         173  +
                .expect("a SharedClientProtocol is required");
         174  +
            let err = match error_code {
         175  +
                "AccessDeniedException" => crate::operation::delete_dev_environment::DeleteDevEnvironmentError::AccessDeniedException({
         176  +
                    let mut tmp = match protocol
         177  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         178  +
                        .and_then(|mut deser| {
         179  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         180  +
                                &mut *deser,
         181  +
                                response.headers(),
         182  +
                                response.status().into(),
         183  +
                                body,
         184  +
                            )
         185  +
                        }) {
         186  +
                        ::std::result::Result::Ok(val) => val,
         187  +
                        ::std::result::Result::Err(e) => {
         188  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         189  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         190  +
                            ))
         191  +
                        }
         192  +
                    };
         193  +
                    tmp.meta = generic;
         194  +
                    tmp
         195  +
                }),
         196  +
                "ConflictException" => crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ConflictException({
         197  +
                    let mut tmp = match protocol
         198  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         199  +
                        .and_then(|mut deser| {
         200  +
                            crate::types::error::ConflictException::deserialize_with_response(
         201  +
                                &mut *deser,
         202  +
                                response.headers(),
         203  +
                                response.status().into(),
         204  +
                                body,
         205  +
                            )
         206  +
                        }) {
         207  +
                        ::std::result::Result::Ok(val) => val,
         208  +
                        ::std::result::Result::Err(e) => {
         209  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         210  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         211  +
                            ))
         212  +
                        }
         213  +
                    };
         214  +
                    tmp.meta = generic;
         215  +
                    tmp
         216  +
                }),
         217  +
                "ResourceNotFoundException" => crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ResourceNotFoundException({
         218  +
                    let mut tmp = match protocol
         219  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         220  +
                        .and_then(|mut deser| {
         221  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         222  +
                                &mut *deser,
         223  +
                                response.headers(),
         224  +
                                response.status().into(),
         225  +
                                body,
         226  +
                            )
         227  +
                        }) {
         228  +
                        ::std::result::Result::Ok(val) => val,
         229  +
                        ::std::result::Result::Err(e) => {
         230  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                            ))
         233  +
                        }
         234  +
                    };
         235  +
                    tmp.meta = generic;
         236  +
                    tmp
         237  +
                }),
         238  +
                "ServiceQuotaExceededException" => {
         239  +
                    crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ServiceQuotaExceededException({
         240  +
                        let mut tmp = match protocol
         241  +
                            .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         242  +
                            .and_then(|mut deser| {
         243  +
                                crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         244  +
                                    &mut *deser,
         245  +
                                    response.headers(),
         246  +
                                    response.status().into(),
         247  +
                                    body,
         248  +
                                )
         249  +
                            }) {
         250  +
                            ::std::result::Result::Ok(val) => val,
         251  +
                            ::std::result::Result::Err(e) => {
         252  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         253  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         254  +
                                ))
         255  +
                            }
         256  +
                        };
         257  +
                        tmp.meta = generic;
         258  +
                        tmp
         259  +
                    })
         260  +
                }
         261  +
                "ThrottlingException" => crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ThrottlingException({
         262  +
                    let mut tmp = match protocol
         263  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         264  +
                        .and_then(|mut deser| {
         265  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         266  +
                                &mut *deser,
         267  +
                                response.headers(),
         268  +
                                response.status().into(),
         269  +
                                body,
         270  +
                            )
         271  +
                        }) {
         272  +
                        ::std::result::Result::Ok(val) => val,
         273  +
                        ::std::result::Result::Err(e) => {
         274  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         275  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         276  +
                            ))
         277  +
                        }
         278  +
                    };
         279  +
                    tmp.meta = generic;
         280  +
                    tmp
         281  +
                }),
         282  +
                "ValidationException" => crate::operation::delete_dev_environment::DeleteDevEnvironmentError::ValidationException({
         283  +
                    let mut tmp = match protocol
         284  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         285  +
                        .and_then(|mut deser| {
         286  +
                            crate::types::error::ValidationException::deserialize_with_response(
         287  +
                                &mut *deser,
         288  +
                                response.headers(),
         289  +
                                response.status().into(),
         290  +
                                body,
         291  +
                            )
         292  +
                        }) {
         293  +
                        ::std::result::Result::Ok(val) => val,
         294  +
                        ::std::result::Result::Err(e) => {
         295  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         296  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         297  +
                            ))
         298  +
                        }
         299  +
                    };
         300  +
                    tmp.meta = generic;
         301  +
                    tmp
         302  +
                }),
         303  +
                _ => crate::operation::delete_dev_environment::DeleteDevEnvironmentError::generic(generic),
         304  +
            };
         305  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         306  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         307  +
            ))
         308  +
        } else {
         309  +
            let protocol = _cfg
         310  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         311  +
                .expect("a SharedClientProtocol is required");
         312  +
            let mut deser = protocol
         313  +
                .deserialize_response(response, DeleteDevEnvironment::OUTPUT_SCHEMA, _cfg)
         314  +
                .map_err(|e| {
         315  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         316  +
                })?;
         317  +
            let body = response.body().bytes().expect("body loaded");
         318  +
            let output = crate::operation::delete_dev_environment::DeleteDevEnvironmentOutput::deserialize_with_response(
         319  +
                &mut *deser,
         320  +
                response.headers(),
         321  +
                response.status().into(),
         322  +
                body,
         323  +
            )
         324  +
            .map_err(|e| {
         325  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         326  +
            })?;
         327  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         328  +
        }
  154    329   
    }
  155    330   
}
  156    331   
#[derive(Debug)]
  157    332   
struct DeleteDevEnvironmentRequestSerializer;
  158    333   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteDevEnvironmentRequestSerializer {
  159    334   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    335   
    fn serialize_input(
  161    336   
        &self,
  162    337   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    338   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    339   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    340   
        let input = input
  166    341   
            .downcast::<crate::operation::delete_dev_environment::DeleteDevEnvironmentInput>()
  167    342   
            .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::delete_dev_environment::DeleteDevEnvironmentInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                let input_1 = &_input.space_name;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  183         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if space_name.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "space_name",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                let input_2 = &_input.project_name;
  191         -
                let input_2 = input_2
  192         -
                    .as_ref()
  193         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("project_name", "cannot be empty or unset"))?;
  194         -
                let project_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  195         -
                if project_name.is_empty() {
  196         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  197         -
                        "project_name",
  198         -
                        "cannot be empty or unset",
  199         -
                    ));
  200         -
                }
  201         -
                let input_3 = &_input.id;
  202         -
                let input_3 = input_3
  203         -
                    .as_ref()
  204         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("id", "cannot be empty or unset"))?;
  205         -
                let id = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  206         -
                if id.is_empty() {
  207         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  208         -
                        "id",
  209         -
                        "cannot be empty or unset",
  210         -
                    ));
  211         -
                }
  212         -
                ::std::write!(
  213         -
                    output,
  214         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}",
  215         -
                    spaceName = space_name,
  216         -
                    projectName = project_name,
  217         -
                    id = id
  218         -
                )
  219         -
                .expect("formatting should succeed");
  220         -
                ::std::result::Result::Ok(())
  221         -
            }
  222         -
            #[allow(clippy::unnecessary_wraps)]
  223         -
            fn update_http_builder(
  224         -
                input: &crate::operation::delete_dev_environment::DeleteDevEnvironmentInput,
  225         -
                builder: ::http_1x::request::Builder,
  226         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  227         -
                let mut uri = ::std::string::String::new();
  228         -
                uri_base(input, &mut uri)?;
  229         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  230         -
            }
  231         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  232         -
            builder
  233         -
        };
  234         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         343  +
        let protocol = _cfg
         344  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         345  +
            .expect("a SharedClientProtocol is required");
         346  +
        let mut request = protocol
         347  +
            .serialize_request(&input, DeleteDevEnvironment::INPUT_SCHEMA, "", _cfg)
         348  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  235    349   
  236         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         350  +
        return ::std::result::Result::Ok(request);
  237    351   
    }
  238    352   
}
  239    353   
#[derive(Debug)]
  240    354   
struct DeleteDevEnvironmentEndpointParamsInterceptor;
  241    355   
  242    356   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteDevEnvironmentEndpointParamsInterceptor {
  243    357   
    fn name(&self) -> &'static str {
  244    358   
        "DeleteDevEnvironmentEndpointParamsInterceptor"
  245    359   
    }
  246    360   

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_dev_environment/_delete_dev_environment_input.rs

@@ -9,9 +159,178 @@
   29     29   
    "com.amazonaws.codecatalyst.synthetic",
   30     30   
    "DeleteDevEnvironmentInput",
   31     31   
);
   32     32   
static DELETEDEVENVIRONMENTINPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   33     33   
    ::aws_smithy_schema::ShapeId::from_static(
   34     34   
        "com.amazonaws.codecatalyst.synthetic#DeleteDevEnvironmentInput$spaceName",
   35     35   
        "com.amazonaws.codecatalyst.synthetic",
   36     36   
        "DeleteDevEnvironmentInput",
   37     37   
    ),
   38     38   
    ::aws_smithy_schema::ShapeType::String,
   39         -
    "space_name",
          39  +
    "spaceName",
   40     40   
    0,
   41     41   
)
   42     42   
.with_http_label();
   43     43   
static DELETEDEVENVIRONMENTINPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   44     44   
    ::aws_smithy_schema::ShapeId::from_static(
   45     45   
        "com.amazonaws.codecatalyst.synthetic#DeleteDevEnvironmentInput$projectName",
   46     46   
        "com.amazonaws.codecatalyst.synthetic",
   47     47   
        "DeleteDevEnvironmentInput",
   48     48   
    ),
   49     49   
    ::aws_smithy_schema::ShapeType::String,
   50         -
    "project_name",
          50  +
    "projectName",
   51     51   
    1,
   52     52   
)
   53     53   
.with_http_label();
   54     54   
static DELETEDEVENVIRONMENTINPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.codecatalyst.synthetic#DeleteDevEnvironmentInput$id",
   57     57   
        "com.amazonaws.codecatalyst.synthetic",
   58     58   
        "DeleteDevEnvironmentInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61     61   
    "id",
   62     62   
    2,
   63     63   
)
   64     64   
.with_http_label();
   65     65   
static DELETEDEVENVIRONMENTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    DELETEDEVENVIRONMENTINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &DELETEDEVENVIRONMENTINPUT_MEMBER_SPACE_NAME,
   70     70   
        &DELETEDEVENVIRONMENTINPUT_MEMBER_PROJECT_NAME,
   71     71   
        &DELETEDEVENVIRONMENTINPUT_MEMBER_ID,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "DELETE",
          76  +
    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}",
          77  +
    None,
          78  +
));
   74     79   
impl DeleteDevEnvironmentInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEDEVENVIRONMENTINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteDevEnvironmentInput {
   79     84   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   80     85   
    fn serialize_members(
   81     86   
        &self,
   82     87   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   83     88   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   84     89   
        if let Some(ref val) = self.space_name {
   85     90   
            ser.write_string(&DELETEDEVENVIRONMENTINPUT_MEMBER_SPACE_NAME, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.project_name {
   88     93   
            ser.write_string(&DELETEDEVENVIRONMENTINPUT_MEMBER_PROJECT_NAME, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.id {
   91     96   
            ser.write_string(&DELETEDEVENVIRONMENTINPUT_MEMBER_ID, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl DeleteDevEnvironmentInput {
   97    102   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   98         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   99         -
        deserializer: &mut D,
         103  +
    pub fn deserialize(
         104  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  100    105   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  101    106   
        #[allow(unused_variables, unused_mut)]
  102    107   
        let mut builder = Self::builder();
  103    108   
        #[allow(
  104    109   
            unused_variables,
  105    110   
            unreachable_code,
  106    111   
            clippy::single_match,
  107    112   
            clippy::match_single_binding,
  108    113   
            clippy::diverging_sub_expression
  109    114   
        )]
  110         -
        deserializer.read_struct(&DELETEDEVENVIRONMENTINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&DELETEDEVENVIRONMENTINPUT_SCHEMA, &mut |member, deser| {
  111    116   
            match member.member_index() {
  112    117   
                Some(0) => {
  113    118   
                    builder.space_name = Some(deser.read_string(member)?);
  114    119   
                }
  115    120   
                Some(1) => {
  116    121   
                    builder.project_name = Some(deser.read_string(member)?);
  117    122   
                }
  118    123   
                Some(2) => {
  119    124   
                    builder.id = Some(deser.read_string(member)?);
  120    125   
                }
  121    126   
                _ => {}
  122    127   
            }
  123    128   
            Ok(())
  124    129   
        })?;
         130  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         131  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         132  +
        builder.id = builder.id.or(Some(String::new()));
  125    133   
        builder
  126    134   
            .build()
  127    135   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  128    136   
    }
  129    137   
}
         138  +
impl DeleteDevEnvironmentInput {
         139  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         140  +
    pub fn deserialize_with_response(
         141  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         142  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         143  +
        _status: u16,
         144  +
        _body: &[u8],
         145  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         146  +
        Self::deserialize(deserializer)
         147  +
    }
         148  +
}
  130    149   
impl DeleteDevEnvironmentInput {
  131    150   
    /// Creates a new builder-style object to manufacture [`DeleteDevEnvironmentInput`](crate::operation::delete_dev_environment::DeleteDevEnvironmentInput).
  132    151   
    pub fn builder() -> crate::operation::delete_dev_environment::builders::DeleteDevEnvironmentInputBuilder {
  133    152   
        crate::operation::delete_dev_environment::builders::DeleteDevEnvironmentInputBuilder::default()
  134    153   
    }
  135    154   
}
  136    155   
  137    156   
/// A builder for [`DeleteDevEnvironmentInput`](crate::operation::delete_dev_environment::DeleteDevEnvironmentInput).
  138    157   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  139    158   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_dev_environment/_delete_dev_environment_output.rs

@@ -13,13 +144,200 @@
   33     33   
    "com.amazonaws.codecatalyst.synthetic",
   34     34   
    "DeleteDevEnvironmentOutput",
   35     35   
);
   36     36   
static DELETEDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.codecatalyst.synthetic#DeleteDevEnvironmentOutput$spaceName",
   39     39   
        "com.amazonaws.codecatalyst.synthetic",
   40     40   
        "DeleteDevEnvironmentOutput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "space_name",
          43  +
    "spaceName",
   44     44   
    0,
   45     45   
);
   46     46   
static DELETEDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.codecatalyst.synthetic#DeleteDevEnvironmentOutput$projectName",
   49     49   
        "com.amazonaws.codecatalyst.synthetic",
   50     50   
        "DeleteDevEnvironmentOutput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::String,
   53         -
    "project_name",
          53  +
    "projectName",
   54     54   
    1,
   55     55   
);
   56     56   
static DELETEDEVENVIRONMENTOUTPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   57     57   
    ::aws_smithy_schema::ShapeId::from_static(
   58     58   
        "com.amazonaws.codecatalyst.synthetic#DeleteDevEnvironmentOutput$id",
   59     59   
        "com.amazonaws.codecatalyst.synthetic",
   60     60   
        "DeleteDevEnvironmentOutput",
   61     61   
    ),
   62     62   
    ::aws_smithy_schema::ShapeType::String,
   63     63   
    "id",
   64     64   
    2,
   65     65   
);
          66  +
static DELETEDEVENVIRONMENTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          67  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          68  +
    ::aws_smithy_schema::ShapeType::String,
          69  +
    "request_id",
          70  +
    3,
          71  +
)
          72  +
.with_http_header("x-amzn-requestid");
   66     73   
static DELETEDEVENVIRONMENTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   67     74   
    DELETEDEVENVIRONMENTOUTPUT_SCHEMA_ID,
   68     75   
    ::aws_smithy_schema::ShapeType::Structure,
   69     76   
    &[
   70     77   
        &DELETEDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME,
   71     78   
        &DELETEDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME,
   72     79   
        &DELETEDEVENVIRONMENTOUTPUT_MEMBER_ID,
          80  +
        &DELETEDEVENVIRONMENTOUTPUT_MEMBER__REQUEST_ID,
   73     81   
    ],
   74     82   
);
   75     83   
impl DeleteDevEnvironmentOutput {
   76     84   
    /// The schema for this shape.
   77     85   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEDEVENVIRONMENTOUTPUT_SCHEMA;
   78     86   
}
   79     87   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteDevEnvironmentOutput {
   80     88   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   81     89   
    fn serialize_members(
   82     90   
        &self,
   83     91   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   84     92   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   85     93   
        {
   86     94   
            let val = &self.space_name;
   87     95   
            ser.write_string(&DELETEDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME, val)?;
   88     96   
        }
   89     97   
        {
   90     98   
            let val = &self.project_name;
   91     99   
            ser.write_string(&DELETEDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME, val)?;
   92    100   
        }
   93    101   
        {
   94    102   
            let val = &self.id;
   95    103   
            ser.write_string(&DELETEDEVENVIRONMENTOUTPUT_MEMBER_ID, val)?;
   96    104   
        }
   97    105   
        Ok(())
   98    106   
    }
   99    107   
}
  100    108   
impl DeleteDevEnvironmentOutput {
  101    109   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  102         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  103         -
        deserializer: &mut D,
         110  +
    pub fn deserialize(
         111  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  104    112   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  105    113   
        #[allow(unused_variables, unused_mut)]
  106    114   
        let mut builder = Self::builder();
  107    115   
        #[allow(
  108    116   
            unused_variables,
  109    117   
            unreachable_code,
  110    118   
            clippy::single_match,
  111    119   
            clippy::match_single_binding,
  112    120   
            clippy::diverging_sub_expression
  113    121   
        )]
  114         -
        deserializer.read_struct(&DELETEDEVENVIRONMENTOUTPUT_SCHEMA, (), |_, member, deser| {
         122  +
        deserializer.read_struct(&DELETEDEVENVIRONMENTOUTPUT_SCHEMA, &mut |member, deser| {
         123  +
            match member.member_index() {
         124  +
                Some(0) => {
         125  +
                    builder.space_name = Some(deser.read_string(member)?);
         126  +
                }
         127  +
                Some(1) => {
         128  +
                    builder.project_name = Some(deser.read_string(member)?);
         129  +
                }
         130  +
                Some(2) => {
         131  +
                    builder.id = Some(deser.read_string(member)?);
         132  +
                }
         133  +
                Some(3) => {
         134  +
                    builder._request_id = Some(deser.read_string(member)?);
         135  +
                }
         136  +
                _ => {}
         137  +
            }
         138  +
            Ok(())
         139  +
        })?;
         140  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         141  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         142  +
        builder.id = builder.id.or(Some(String::new()));
         143  +
        builder
         144  +
            .build()
         145  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         146  +
    }
         147  +
}
         148  +
impl DeleteDevEnvironmentOutput {
         149  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         150  +
    /// Header-bound members are read directly from headers, avoiding runtime
         151  +
    /// member iteration overhead. Body members are read via the deserializer.
         152  +
    pub fn deserialize_with_response(
         153  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         154  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         155  +
        _status: u16,
         156  +
        _body: &[u8],
         157  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         158  +
        #[allow(unused_variables, unused_mut)]
         159  +
        let mut builder = Self::builder();
         160  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         161  +
            builder._request_id = Some(val.to_string());
         162  +
        }
         163  +
        #[allow(
         164  +
            unused_variables,
         165  +
            unreachable_code,
         166  +
            clippy::single_match,
         167  +
            clippy::match_single_binding,
         168  +
            clippy::diverging_sub_expression
         169  +
        )]
         170  +
        deserializer.read_struct(&DELETEDEVENVIRONMENTOUTPUT_SCHEMA, &mut |member, deser| {
  115    171   
            match member.member_index() {
  116    172   
                Some(0) => {
  117    173   
                    builder.space_name = Some(deser.read_string(member)?);
  118    174   
                }
  119    175   
                Some(1) => {
  120    176   
                    builder.project_name = Some(deser.read_string(member)?);
  121    177   
                }
  122    178   
                Some(2) => {
  123    179   
                    builder.id = Some(deser.read_string(member)?);
  124    180   
                }

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_project.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 `DeleteProject`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteProject;
    6      6   
impl DeleteProject {
    7      7   
    /// Creates a new `DeleteProject`
    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::delete_project::DeleteProjectInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_project::DeleteProjectOutput::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::delete_project::DeleteProjectInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_project::DeleteProjectOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_project::DeleteProjectError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +249,374 @@
  128    132   
                crate::operation::delete_project::DeleteProjectError,
  129    133   
            >::new());
  130    134   
  131    135   
        ::std::borrow::Cow::Owned(rcb)
  132    136   
    }
  133    137   
}
  134    138   
  135    139   
#[derive(Debug)]
  136    140   
struct DeleteProjectResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteProjectResponseDeserializer {
  138         -
    fn deserialize_nonstreaming(
         142  +
    fn deserialize_nonstreaming_with_config(
  139    143   
        &self,
  140    144   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         145  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  141    146   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  142    147   
        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    148   
        #[allow(unused_mut)]
  146    149   
        let mut force_error = false;
  147    150   
        ::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_delete_project::de_delete_project_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_delete_project::de_delete_project_http_response(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::delete_project::DeleteProjectError::unhandled(generic)),
         165  +
                    ))
         166  +
                }
         167  +
            };
         168  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         169  +
            let protocol = _cfg
         170  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         171  +
                .expect("a SharedClientProtocol is required");
         172  +
            let err = match error_code {
         173  +
                "AccessDeniedException" => crate::operation::delete_project::DeleteProjectError::AccessDeniedException({
         174  +
                    let mut tmp = match protocol
         175  +
                        .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         176  +
                        .and_then(|mut deser| {
         177  +
                            crate::types::error::AccessDeniedException::deserialize_with_response(
         178  +
                                &mut *deser,
         179  +
                                response.headers(),
         180  +
                                response.status().into(),
         181  +
                                body,
         182  +
                            )
         183  +
                        }) {
         184  +
                        ::std::result::Result::Ok(val) => val,
         185  +
                        ::std::result::Result::Err(e) => {
         186  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         187  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         188  +
                            ))
         189  +
                        }
         190  +
                    };
         191  +
                    tmp.meta = generic;
         192  +
                    tmp
         193  +
                }),
         194  +
                "ConflictException" => crate::operation::delete_project::DeleteProjectError::ConflictException({
         195  +
                    let mut tmp = match protocol
         196  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         197  +
                        .and_then(|mut deser| {
         198  +
                            crate::types::error::ConflictException::deserialize_with_response(
         199  +
                                &mut *deser,
         200  +
                                response.headers(),
         201  +
                                response.status().into(),
         202  +
                                body,
         203  +
                            )
         204  +
                        }) {
         205  +
                        ::std::result::Result::Ok(val) => val,
         206  +
                        ::std::result::Result::Err(e) => {
         207  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         208  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         209  +
                            ))
         210  +
                        }
         211  +
                    };
         212  +
                    tmp.meta = generic;
         213  +
                    tmp
         214  +
                }),
         215  +
                "ResourceNotFoundException" => crate::operation::delete_project::DeleteProjectError::ResourceNotFoundException({
         216  +
                    let mut tmp = match protocol
         217  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         218  +
                        .and_then(|mut deser| {
         219  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         220  +
                                &mut *deser,
         221  +
                                response.headers(),
         222  +
                                response.status().into(),
         223  +
                                body,
         224  +
                            )
         225  +
                        }) {
         226  +
                        ::std::result::Result::Ok(val) => val,
         227  +
                        ::std::result::Result::Err(e) => {
         228  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         229  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         230  +
                            ))
         231  +
                        }
         232  +
                    };
         233  +
                    tmp.meta = generic;
         234  +
                    tmp
         235  +
                }),
         236  +
                "ServiceQuotaExceededException" => crate::operation::delete_project::DeleteProjectError::ServiceQuotaExceededException({
         237  +
                    let mut tmp = match protocol
         238  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         239  +
                        .and_then(|mut deser| {
         240  +
                            crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         241  +
                                &mut *deser,
         242  +
                                response.headers(),
         243  +
                                response.status().into(),
         244  +
                                body,
         245  +
                            )
         246  +
                        }) {
         247  +
                        ::std::result::Result::Ok(val) => val,
         248  +
                        ::std::result::Result::Err(e) => {
         249  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         250  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         251  +
                            ))
         252  +
                        }
         253  +
                    };
         254  +
                    tmp.meta = generic;
         255  +
                    tmp
         256  +
                }),
         257  +
                "ThrottlingException" => crate::operation::delete_project::DeleteProjectError::ThrottlingException({
         258  +
                    let mut tmp = match protocol
         259  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         260  +
                        .and_then(|mut deser| {
         261  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         262  +
                                &mut *deser,
         263  +
                                response.headers(),
         264  +
                                response.status().into(),
         265  +
                                body,
         266  +
                            )
         267  +
                        }) {
         268  +
                        ::std::result::Result::Ok(val) => val,
         269  +
                        ::std::result::Result::Err(e) => {
         270  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         271  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         272  +
                            ))
         273  +
                        }
         274  +
                    };
         275  +
                    tmp.meta = generic;
         276  +
                    tmp
         277  +
                }),
         278  +
                "ValidationException" => crate::operation::delete_project::DeleteProjectError::ValidationException({
         279  +
                    let mut tmp = match protocol
         280  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         281  +
                        .and_then(|mut deser| {
         282  +
                            crate::types::error::ValidationException::deserialize_with_response(
         283  +
                                &mut *deser,
         284  +
                                response.headers(),
         285  +
                                response.status().into(),
         286  +
                                body,
         287  +
                            )
         288  +
                        }) {
         289  +
                        ::std::result::Result::Ok(val) => val,
         290  +
                        ::std::result::Result::Err(e) => {
         291  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         292  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         293  +
                            ))
         294  +
                        }
  152    295   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         296  +
                    tmp.meta = generic;
         297  +
                    tmp
         298  +
                }),
         299  +
                _ => crate::operation::delete_project::DeleteProjectError::generic(generic),
         300  +
            };
         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.deserialize_response(response, DeleteProject::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         309  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         310  +
            })?;
         311  +
            let body = response.body().bytes().expect("body loaded");
         312  +
            let output = crate::operation::delete_project::DeleteProjectOutput::deserialize_with_response(
         313  +
                &mut *deser,
         314  +
                response.headers(),
         315  +
                response.status().into(),
         316  +
                body,
         317  +
            )
         318  +
            .map_err(|e| {
         319  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         320  +
            })?;
         321  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         322  +
        }
  154    323   
    }
  155    324   
}
  156    325   
#[derive(Debug)]
  157    326   
struct DeleteProjectRequestSerializer;
  158    327   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteProjectRequestSerializer {
  159    328   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    329   
    fn serialize_input(
  161    330   
        &self,
  162    331   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    332   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    333   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    334   
        let input = input
  166    335   
            .downcast::<crate::operation::delete_project::DeleteProjectInput>()
  167    336   
            .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::delete_project::DeleteProjectInput,
  176         -
                output: &mut ::std::string::String,
  177         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  178         -
                use ::std::fmt::Write as _;
  179         -
                let input_1 = &_input.space_name;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  183         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if space_name.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "space_name",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                let input_2 = &_input.name;
  191         -
                let input_2 = input_2
  192         -
                    .as_ref()
  193         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("name", "cannot be empty or unset"))?;
  194         -
                let name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  195         -
                if name.is_empty() {
  196         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  197         -
                        "name",
  198         -
                        "cannot be empty or unset",
  199         -
                    ));
  200         -
                }
  201         -
                ::std::write!(output, "/v1/spaces/{spaceName}/projects/{name}", spaceName = space_name, name = name)
  202         -
                    .expect("formatting should succeed");
  203         -
                ::std::result::Result::Ok(())
  204         -
            }
  205         -
            #[allow(clippy::unnecessary_wraps)]
  206         -
            fn update_http_builder(
  207         -
                input: &crate::operation::delete_project::DeleteProjectInput,
  208         -
                builder: ::http_1x::request::Builder,
  209         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  210         -
                let mut uri = ::std::string::String::new();
  211         -
                uri_base(input, &mut uri)?;
  212         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  213         -
            }
  214         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  215         -
            builder
  216         -
        };
  217         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         337  +
        let protocol = _cfg
         338  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         339  +
            .expect("a SharedClientProtocol is required");
         340  +
        let mut request = protocol
         341  +
            .serialize_request(&input, DeleteProject::INPUT_SCHEMA, "", _cfg)
         342  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  218    343   
  219         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         344  +
        return ::std::result::Result::Ok(request);
  220    345   
    }
  221    346   
}
  222    347   
#[derive(Debug)]
  223    348   
struct DeleteProjectEndpointParamsInterceptor;
  224    349   
  225    350   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteProjectEndpointParamsInterceptor {
  226    351   
    fn name(&self) -> &'static str {
  227    352   
        "DeleteProjectEndpointParamsInterceptor"
  228    353   
    }
  229    354