AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_project/_delete_project_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_project/_delete_project_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_source_repository/_delete_source_repository_input.rs

@@ -9,9 +159,178 @@
   29     29   
    "com.amazonaws.codecatalyst.synthetic",
   30     30   
    "DeleteSourceRepositoryInput",
   31     31   
);
   32     32   
static DELETESOURCEREPOSITORYINPUT_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#DeleteSourceRepositoryInput$spaceName",
   35     35   
        "com.amazonaws.codecatalyst.synthetic",
   36     36   
        "DeleteSourceRepositoryInput",
   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 DELETESOURCEREPOSITORYINPUT_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#DeleteSourceRepositoryInput$projectName",
   46     46   
        "com.amazonaws.codecatalyst.synthetic",
   47     47   
        "DeleteSourceRepositoryInput",
   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 DELETESOURCEREPOSITORYINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.codecatalyst.synthetic#DeleteSourceRepositoryInput$name",
   57     57   
        "com.amazonaws.codecatalyst.synthetic",
   58     58   
        "DeleteSourceRepositoryInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61     61   
    "name",
   62     62   
    2,
   63     63   
)
   64     64   
.with_http_label();
   65     65   
static DELETESOURCEREPOSITORYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    DELETESOURCEREPOSITORYINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &DELETESOURCEREPOSITORYINPUT_MEMBER_SPACE_NAME,
   70     70   
        &DELETESOURCEREPOSITORYINPUT_MEMBER_PROJECT_NAME,
   71     71   
        &DELETESOURCEREPOSITORYINPUT_MEMBER_NAME,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "DELETE",
          76  +
    "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}",
          77  +
    None,
          78  +
));
   74     79   
impl DeleteSourceRepositoryInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETESOURCEREPOSITORYINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteSourceRepositoryInput {
   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(&DELETESOURCEREPOSITORYINPUT_MEMBER_SPACE_NAME, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.project_name {
   88     93   
            ser.write_string(&DELETESOURCEREPOSITORYINPUT_MEMBER_PROJECT_NAME, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.name {
   91     96   
            ser.write_string(&DELETESOURCEREPOSITORYINPUT_MEMBER_NAME, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl DeleteSourceRepositoryInput {
   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(&DELETESOURCEREPOSITORYINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&DELETESOURCEREPOSITORYINPUT_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.name = 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.name = builder.name.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 DeleteSourceRepositoryInput {
         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 DeleteSourceRepositoryInput {
  131    150   
    /// Creates a new builder-style object to manufacture [`DeleteSourceRepositoryInput`](crate::operation::delete_source_repository::DeleteSourceRepositoryInput).
  132    151   
    pub fn builder() -> crate::operation::delete_source_repository::builders::DeleteSourceRepositoryInputBuilder {
  133    152   
        crate::operation::delete_source_repository::builders::DeleteSourceRepositoryInputBuilder::default()
  134    153   
    }
  135    154   
}
  136    155   
  137    156   
/// A builder for [`DeleteSourceRepositoryInput`](crate::operation::delete_source_repository::DeleteSourceRepositoryInput).
  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_source_repository/_delete_source_repository_output.rs

@@ -13,13 +144,200 @@
   33     33   
    "com.amazonaws.codecatalyst.synthetic",
   34     34   
    "DeleteSourceRepositoryOutput",
   35     35   
);
   36     36   
static DELETESOURCEREPOSITORYOUTPUT_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#DeleteSourceRepositoryOutput$spaceName",
   39     39   
        "com.amazonaws.codecatalyst.synthetic",
   40     40   
        "DeleteSourceRepositoryOutput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::String,
   43         -
    "space_name",
          43  +
    "spaceName",
   44     44   
    0,
   45     45   
);
   46     46   
static DELETESOURCEREPOSITORYOUTPUT_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#DeleteSourceRepositoryOutput$projectName",
   49     49   
        "com.amazonaws.codecatalyst.synthetic",
   50     50   
        "DeleteSourceRepositoryOutput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::String,
   53         -
    "project_name",
          53  +
    "projectName",
   54     54   
    1,
   55     55   
);
   56     56   
static DELETESOURCEREPOSITORYOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   57     57   
    ::aws_smithy_schema::ShapeId::from_static(
   58     58   
        "com.amazonaws.codecatalyst.synthetic#DeleteSourceRepositoryOutput$name",
   59     59   
        "com.amazonaws.codecatalyst.synthetic",
   60     60   
        "DeleteSourceRepositoryOutput",
   61     61   
    ),
   62     62   
    ::aws_smithy_schema::ShapeType::String,
   63     63   
    "name",
   64     64   
    2,
   65     65   
);
          66  +
static DELETESOURCEREPOSITORYOUTPUT_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 DELETESOURCEREPOSITORYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   67     74   
    DELETESOURCEREPOSITORYOUTPUT_SCHEMA_ID,
   68     75   
    ::aws_smithy_schema::ShapeType::Structure,
   69     76   
    &[
   70     77   
        &DELETESOURCEREPOSITORYOUTPUT_MEMBER_SPACE_NAME,
   71     78   
        &DELETESOURCEREPOSITORYOUTPUT_MEMBER_PROJECT_NAME,
   72     79   
        &DELETESOURCEREPOSITORYOUTPUT_MEMBER_NAME,
          80  +
        &DELETESOURCEREPOSITORYOUTPUT_MEMBER__REQUEST_ID,
   73     81   
    ],
   74     82   
);
   75     83   
impl DeleteSourceRepositoryOutput {
   76     84   
    /// The schema for this shape.
   77     85   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETESOURCEREPOSITORYOUTPUT_SCHEMA;
   78     86   
}
   79     87   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteSourceRepositoryOutput {
   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(&DELETESOURCEREPOSITORYOUTPUT_MEMBER_SPACE_NAME, val)?;
   88     96   
        }
   89     97   
        {
   90     98   
            let val = &self.project_name;
   91     99   
            ser.write_string(&DELETESOURCEREPOSITORYOUTPUT_MEMBER_PROJECT_NAME, val)?;
   92    100   
        }
   93    101   
        {
   94    102   
            let val = &self.name;
   95    103   
            ser.write_string(&DELETESOURCEREPOSITORYOUTPUT_MEMBER_NAME, val)?;
   96    104   
        }
   97    105   
        Ok(())
   98    106   
    }
   99    107   
}
  100    108   
impl DeleteSourceRepositoryOutput {
  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(&DELETESOURCEREPOSITORYOUTPUT_SCHEMA, (), |_, member, deser| {
         122  +
        deserializer.read_struct(&DELETESOURCEREPOSITORYOUTPUT_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.name = 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.name = builder.name.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 DeleteSourceRepositoryOutput {
         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(&DELETESOURCEREPOSITORYOUTPUT_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.name = Some(deser.read_string(member)?);
  124    180   
                }

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_space.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 `DeleteSpace`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteSpace;
    6      6   
impl DeleteSpace {
    7      7   
    /// Creates a new `DeleteSpace`
    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_space::DeleteSpaceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::delete_space::DeleteSpaceOutput::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_space::DeleteSpaceInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::delete_space::DeleteSpaceOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::delete_space::DeleteSpaceError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +237,374 @@
  128    132   
                crate::operation::delete_space::DeleteSpaceError,
  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 DeleteSpaceResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteSpaceResponseDeserializer {
  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_space::de_delete_space_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_delete_space::de_delete_space_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_space::DeleteSpaceError::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_space::DeleteSpaceError::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_space::DeleteSpaceError::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_space::DeleteSpaceError::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_space::DeleteSpaceError::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_space::DeleteSpaceError::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  +
                        }
  152    274   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         275  +
                    tmp.meta = generic;
         276  +
                    tmp
         277  +
                }),
         278  +
                "ValidationException" => crate::operation::delete_space::DeleteSpaceError::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  +
                        }
         295  +
                    };
         296  +
                    tmp.meta = generic;
         297  +
                    tmp
         298  +
                }),
         299  +
                _ => crate::operation::delete_space::DeleteSpaceError::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, DeleteSpace::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_space::DeleteSpaceOutput::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 DeleteSpaceRequestSerializer;
  158    327   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteSpaceRequestSerializer {
  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_space::DeleteSpaceInput>()
  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_space::DeleteSpaceInput,
  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.name;
  180         -
                let input_1 = input_1
  181         -
                    .as_ref()
  182         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("name", "cannot be empty or unset"))?;
  183         -
                let name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  184         -
                if name.is_empty() {
  185         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  186         -
                        "name",
  187         -
                        "cannot be empty or unset",
  188         -
                    ));
  189         -
                }
  190         -
                ::std::write!(output, "/v1/spaces/{name}", name = name).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_space::DeleteSpaceInput,
  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("");
         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, DeleteSpace::INPUT_SCHEMA, "", _cfg)
         342  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  206    343   
  207         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         344  +
        return ::std::result::Result::Ok(request);
  208    345   
    }
  209    346   
}
  210    347   
#[derive(Debug)]
  211    348   
struct DeleteSpaceEndpointParamsInterceptor;
  212    349   
  213    350   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteSpaceEndpointParamsInterceptor {
  214    351   
    fn name(&self) -> &'static str {
  215    352   
        "DeleteSpaceEndpointParamsInterceptor"
  216    353   
    }
  217    354   

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/delete_space/_delete_space_input.rs

@@ -5,5 +109,122 @@
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::String,
   27     27   
    "name",
   28     28   
    0,
   29     29   
)
   30     30   
.with_http_label();
   31     31   
static DELETESPACEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     32   
    DELETESPACEINPUT_SCHEMA_ID,
   33     33   
    ::aws_smithy_schema::ShapeType::Structure,
   34     34   
    &[&DELETESPACEINPUT_MEMBER_NAME],
   35         -
);
          35  +
)
          36  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("DELETE", "/v1/spaces/{name}", None));
   36     37   
impl DeleteSpaceInput {
   37     38   
    /// The schema for this shape.
   38     39   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETESPACEINPUT_SCHEMA;
   39     40   
}
   40     41   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteSpaceInput {
   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.name {
   47     48   
            ser.write_string(&DELETESPACEINPUT_MEMBER_NAME, val)?;
   48     49   
        }
   49     50   
        Ok(())
   50     51   
    }
   51     52   
}
   52     53   
impl DeleteSpaceInput {
   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(&DELETESPACEINPUT_SCHEMA, (), |_, member, deser| {
          67  +
        deserializer.read_struct(&DELETESPACEINPUT_SCHEMA, &mut |member, deser| {
   67     68   
            match member.member_index() {
   68     69   
                Some(0) => {
   69     70   
                    builder.name = Some(deser.read_string(member)?);
   70     71   
                }
   71     72   
                _ => {}
   72     73   
            }
   73     74   
            Ok(())
   74     75   
        })?;
          76  +
        builder.name = builder.name.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 DeleteSpaceInput {
          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 DeleteSpaceInput {
   81     94   
    /// Creates a new builder-style object to manufacture [`DeleteSpaceInput`](crate::operation::delete_space::DeleteSpaceInput).
   82     95   
    pub fn builder() -> crate::operation::delete_space::builders::DeleteSpaceInputBuilder {
   83     96   
        crate::operation::delete_space::builders::DeleteSpaceInputBuilder::default()
   84     97   
    }
   85     98   
}
   86     99   
   87    100   
/// A builder for [`DeleteSpaceInput`](crate::operation::delete_space::DeleteSpaceInput).
   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_space/_delete_space_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/get_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 `GetDevEnvironment`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetDevEnvironment;
    6      6   
impl GetDevEnvironment {
    7      7   
    /// Creates a new `GetDevEnvironment`
    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::get_dev_environment::GetDevEnvironmentInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_dev_environment::GetDevEnvironmentOutput::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::get_dev_environment::GetDevEnvironmentInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_dev_environment::GetDevEnvironmentOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_dev_environment::GetDevEnvironmentError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +266,378 @@
  128    132   
                crate::operation::get_dev_environment::GetDevEnvironmentError,
  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 GetDevEnvironmentResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetDevEnvironmentResponseDeserializer {
  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_get_dev_environment::de_get_dev_environment_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_get_dev_environment::de_get_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::get_dev_environment::GetDevEnvironmentError::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::get_dev_environment::GetDevEnvironmentError::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  +
                        }
  152    192   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         193  +
                    tmp.meta = generic;
         194  +
                    tmp
         195  +
                }),
         196  +
                "ConflictException" => crate::operation::get_dev_environment::GetDevEnvironmentError::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::get_dev_environment::GetDevEnvironmentError::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::get_dev_environment::GetDevEnvironmentError::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::get_dev_environment::GetDevEnvironmentError::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  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    tmp
         279  +
                }),
         280  +
                "ValidationException" => crate::operation::get_dev_environment::GetDevEnvironmentError::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::get_dev_environment::GetDevEnvironmentError::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, GetDevEnvironment::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::get_dev_environment::GetDevEnvironmentOutput::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 GetDevEnvironmentRequestSerializer;
  158    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetDevEnvironmentRequestSerializer {
  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::get_dev_environment::GetDevEnvironmentInput>()
  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::get_dev_environment::GetDevEnvironmentInput,
  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::get_dev_environment::GetDevEnvironmentInput,
  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("GET").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("");
         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, GetDevEnvironment::INPUT_SCHEMA, "", _cfg)
         346  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  235    347   
  236         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         348  +
        return ::std::result::Result::Ok(request);
  237    349   
    }
  238    350   
}
  239    351   
#[derive(Debug)]
  240    352   
struct GetDevEnvironmentEndpointParamsInterceptor;
  241    353   
  242    354   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetDevEnvironmentEndpointParamsInterceptor {
  243    355   
    fn name(&self) -> &'static str {
  244    356   
        "GetDevEnvironmentEndpointParamsInterceptor"
  245    357   
    }
  246    358