AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/get_dev_environment/_get_dev_environment_input.rs

@@ -9,9 +159,178 @@
   29     29   
    "com.amazonaws.codecatalyst.synthetic",
   30     30   
    "GetDevEnvironmentInput",
   31     31   
);
   32     32   
static GETDEVENVIRONMENTINPUT_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#GetDevEnvironmentInput$spaceName",
   35     35   
        "com.amazonaws.codecatalyst.synthetic",
   36     36   
        "GetDevEnvironmentInput",
   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 GETDEVENVIRONMENTINPUT_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#GetDevEnvironmentInput$projectName",
   46     46   
        "com.amazonaws.codecatalyst.synthetic",
   47     47   
        "GetDevEnvironmentInput",
   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 GETDEVENVIRONMENTINPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentInput$id",
   57     57   
        "com.amazonaws.codecatalyst.synthetic",
   58     58   
        "GetDevEnvironmentInput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61     61   
    "id",
   62     62   
    2,
   63     63   
)
   64     64   
.with_http_label();
   65     65   
static GETDEVENVIRONMENTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   66     66   
    GETDEVENVIRONMENTINPUT_SCHEMA_ID,
   67     67   
    ::aws_smithy_schema::ShapeType::Structure,
   68     68   
    &[
   69     69   
        &GETDEVENVIRONMENTINPUT_MEMBER_SPACE_NAME,
   70     70   
        &GETDEVENVIRONMENTINPUT_MEMBER_PROJECT_NAME,
   71     71   
        &GETDEVENVIRONMENTINPUT_MEMBER_ID,
   72     72   
    ],
   73         -
);
          73  +
)
          74  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          75  +
    "GET",
          76  +
    "/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}",
          77  +
    None,
          78  +
));
   74     79   
impl GetDevEnvironmentInput {
   75     80   
    /// The schema for this shape.
   76     81   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDEVENVIRONMENTINPUT_SCHEMA;
   77     82   
}
   78     83   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDevEnvironmentInput {
   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(&GETDEVENVIRONMENTINPUT_MEMBER_SPACE_NAME, val)?;
   86     91   
        }
   87     92   
        if let Some(ref val) = self.project_name {
   88     93   
            ser.write_string(&GETDEVENVIRONMENTINPUT_MEMBER_PROJECT_NAME, val)?;
   89     94   
        }
   90     95   
        if let Some(ref val) = self.id {
   91     96   
            ser.write_string(&GETDEVENVIRONMENTINPUT_MEMBER_ID, val)?;
   92     97   
        }
   93     98   
        Ok(())
   94     99   
    }
   95    100   
}
   96    101   
impl GetDevEnvironmentInput {
   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(&GETDEVENVIRONMENTINPUT_SCHEMA, (), |_, member, deser| {
         115  +
        deserializer.read_struct(&GETDEVENVIRONMENTINPUT_SCHEMA, &mut |member, deser| {
  111    116   
            match member.member_index() {
  112    117   
                Some(0) => {
  113    118   
                    builder.space_name = Some(deser.read_string(member)?);
  114    119   
                }
  115    120   
                Some(1) => {
  116    121   
                    builder.project_name = Some(deser.read_string(member)?);
  117    122   
                }
  118    123   
                Some(2) => {
  119    124   
                    builder.id = Some(deser.read_string(member)?);
  120    125   
                }
  121    126   
                _ => {}
  122    127   
            }
  123    128   
            Ok(())
  124    129   
        })?;
         130  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         131  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         132  +
        builder.id = builder.id.or(Some(String::new()));
  125    133   
        builder
  126    134   
            .build()
  127    135   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  128    136   
    }
  129    137   
}
         138  +
impl GetDevEnvironmentInput {
         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 GetDevEnvironmentInput {
  131    150   
    /// Creates a new builder-style object to manufacture [`GetDevEnvironmentInput`](crate::operation::get_dev_environment::GetDevEnvironmentInput).
  132    151   
    pub fn builder() -> crate::operation::get_dev_environment::builders::GetDevEnvironmentInputBuilder {
  133    152   
        crate::operation::get_dev_environment::builders::GetDevEnvironmentInputBuilder::default()
  134    153   
    }
  135    154   
}
  136    155   
  137    156   
/// A builder for [`GetDevEnvironmentInput`](crate::operation::get_dev_environment::GetDevEnvironmentInput).
  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/get_dev_environment/_get_dev_environment_output.rs

@@ -83,83 +294,302 @@
  103    103   
    "com.amazonaws.codecatalyst.synthetic",
  104    104   
    "GetDevEnvironmentOutput",
  105    105   
);
  106    106   
static GETDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$spaceName",
  109    109   
        "com.amazonaws.codecatalyst.synthetic",
  110    110   
        "GetDevEnvironmentOutput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::String,
  113         -
    "space_name",
         113  +
    "spaceName",
  114    114   
    0,
  115    115   
);
  116    116   
static GETDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$projectName",
  119    119   
        "com.amazonaws.codecatalyst.synthetic",
  120    120   
        "GetDevEnvironmentOutput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::String,
  123         -
    "project_name",
         123  +
    "projectName",
  124    124   
    1,
  125    125   
);
  126    126   
static GETDEVENVIRONMENTOUTPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$id",
  129    129   
        "com.amazonaws.codecatalyst.synthetic",
  130    130   
        "GetDevEnvironmentOutput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::String,
  133    133   
    "id",
  134    134   
    2,
  135    135   
);
  136    136   
static GETDEVENVIRONMENTOUTPUT_MEMBER_LAST_UPDATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  137    137   
    ::aws_smithy_schema::ShapeId::from_static(
  138    138   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$lastUpdatedTime",
  139    139   
        "com.amazonaws.codecatalyst.synthetic",
  140    140   
        "GetDevEnvironmentOutput",
  141    141   
    ),
  142    142   
    ::aws_smithy_schema::ShapeType::Timestamp,
  143         -
    "last_updated_time",
         143  +
    "lastUpdatedTime",
  144    144   
    3,
  145    145   
)
  146    146   
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
  147    147   
static GETDEVENVIRONMENTOUTPUT_MEMBER_CREATOR_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  148    148   
    ::aws_smithy_schema::ShapeId::from_static(
  149    149   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$creatorId",
  150    150   
        "com.amazonaws.codecatalyst.synthetic",
  151    151   
        "GetDevEnvironmentOutput",
  152    152   
    ),
  153    153   
    ::aws_smithy_schema::ShapeType::String,
  154         -
    "creator_id",
         154  +
    "creatorId",
  155    155   
    4,
  156    156   
);
  157    157   
static GETDEVENVIRONMENTOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  158    158   
    ::aws_smithy_schema::ShapeId::from_static(
  159    159   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$status",
  160    160   
        "com.amazonaws.codecatalyst.synthetic",
  161    161   
        "GetDevEnvironmentOutput",
  162    162   
    ),
  163    163   
    ::aws_smithy_schema::ShapeType::String,
  164    164   
    "status",
  165    165   
    5,
  166    166   
);
  167    167   
static GETDEVENVIRONMENTOUTPUT_MEMBER_STATUS_REASON: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  168    168   
    ::aws_smithy_schema::ShapeId::from_static(
  169    169   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$statusReason",
  170    170   
        "com.amazonaws.codecatalyst.synthetic",
  171    171   
        "GetDevEnvironmentOutput",
  172    172   
    ),
  173    173   
    ::aws_smithy_schema::ShapeType::String,
  174         -
    "status_reason",
         174  +
    "statusReason",
  175    175   
    6,
  176    176   
);
  177    177   
static GETDEVENVIRONMENTOUTPUT_MEMBER_REPOSITORIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  178    178   
    ::aws_smithy_schema::ShapeId::from_static(
  179    179   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$repositories",
  180    180   
        "com.amazonaws.codecatalyst.synthetic",
  181    181   
        "GetDevEnvironmentOutput",
  182    182   
    ),
  183    183   
    ::aws_smithy_schema::ShapeType::List,
  184    184   
    "repositories",
  185    185   
    7,
  186    186   
);
  187    187   
static GETDEVENVIRONMENTOUTPUT_MEMBER_ALIAS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  188    188   
    ::aws_smithy_schema::ShapeId::from_static(
  189    189   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$alias",
  190    190   
        "com.amazonaws.codecatalyst.synthetic",
  191    191   
        "GetDevEnvironmentOutput",
  192    192   
    ),
  193    193   
    ::aws_smithy_schema::ShapeType::String,
  194    194   
    "alias",
  195    195   
    8,
  196    196   
);
  197    197   
static GETDEVENVIRONMENTOUTPUT_MEMBER_IDES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  198    198   
    ::aws_smithy_schema::ShapeId::from_static(
  199    199   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$ides",
  200    200   
        "com.amazonaws.codecatalyst.synthetic",
  201    201   
        "GetDevEnvironmentOutput",
  202    202   
    ),
  203    203   
    ::aws_smithy_schema::ShapeType::List,
  204    204   
    "ides",
  205    205   
    9,
  206    206   
);
  207    207   
static GETDEVENVIRONMENTOUTPUT_MEMBER_INSTANCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  208    208   
    ::aws_smithy_schema::ShapeId::from_static(
  209    209   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$instanceType",
  210    210   
        "com.amazonaws.codecatalyst.synthetic",
  211    211   
        "GetDevEnvironmentOutput",
  212    212   
    ),
  213    213   
    ::aws_smithy_schema::ShapeType::String,
  214         -
    "instance_type",
         214  +
    "instanceType",
  215    215   
    10,
  216    216   
);
  217    217   
static GETDEVENVIRONMENTOUTPUT_MEMBER_INACTIVITY_TIMEOUT_MINUTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  218    218   
    ::aws_smithy_schema::ShapeId::from_static(
  219    219   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$inactivityTimeoutMinutes",
  220    220   
        "com.amazonaws.codecatalyst.synthetic",
  221    221   
        "GetDevEnvironmentOutput",
  222    222   
    ),
  223    223   
    ::aws_smithy_schema::ShapeType::Integer,
  224         -
    "inactivity_timeout_minutes",
         224  +
    "inactivityTimeoutMinutes",
  225    225   
    11,
  226    226   
);
  227    227   
static GETDEVENVIRONMENTOUTPUT_MEMBER_PERSISTENT_STORAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  228    228   
    ::aws_smithy_schema::ShapeId::from_static(
  229    229   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$persistentStorage",
  230    230   
        "com.amazonaws.codecatalyst.synthetic",
  231    231   
        "GetDevEnvironmentOutput",
  232    232   
    ),
  233    233   
    ::aws_smithy_schema::ShapeType::Structure,
  234         -
    "persistent_storage",
         234  +
    "persistentStorage",
  235    235   
    12,
  236    236   
);
  237    237   
static GETDEVENVIRONMENTOUTPUT_MEMBER_VPC_CONNECTION_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  238    238   
    ::aws_smithy_schema::ShapeId::from_static(
  239    239   
        "com.amazonaws.codecatalyst.synthetic#GetDevEnvironmentOutput$vpcConnectionName",
  240    240   
        "com.amazonaws.codecatalyst.synthetic",
  241    241   
        "GetDevEnvironmentOutput",
  242    242   
    ),
  243    243   
    ::aws_smithy_schema::ShapeType::String,
  244         -
    "vpc_connection_name",
         244  +
    "vpcConnectionName",
  245    245   
    13,
  246    246   
);
         247  +
static GETDEVENVIRONMENTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         248  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         249  +
    ::aws_smithy_schema::ShapeType::String,
         250  +
    "request_id",
         251  +
    14,
         252  +
)
         253  +
.with_http_header("x-amzn-requestid");
  247    254   
static GETDEVENVIRONMENTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  248    255   
    GETDEVENVIRONMENTOUTPUT_SCHEMA_ID,
  249    256   
    ::aws_smithy_schema::ShapeType::Structure,
  250    257   
    &[
  251    258   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_SPACE_NAME,
  252    259   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_PROJECT_NAME,
  253    260   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_ID,
  254    261   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_LAST_UPDATED_TIME,
  255    262   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_CREATOR_ID,
  256    263   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_STATUS,
  257    264   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_STATUS_REASON,
  258    265   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_REPOSITORIES,
  259    266   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_ALIAS,
  260    267   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_IDES,
  261    268   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_INSTANCE_TYPE,
  262    269   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_INACTIVITY_TIMEOUT_MINUTES,
  263    270   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_PERSISTENT_STORAGE,
  264    271   
        &GETDEVENVIRONMENTOUTPUT_MEMBER_VPC_CONNECTION_NAME,
         272  +
        &GETDEVENVIRONMENTOUTPUT_MEMBER__REQUEST_ID,
  265    273   
    ],
  266    274   
);
  267    275   
impl GetDevEnvironmentOutput {
  268    276   
    /// The schema for this shape.
  269    277   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETDEVENVIRONMENTOUTPUT_SCHEMA;
  270    278   
}
  271    279   
impl ::aws_smithy_schema::serde::SerializableStruct for GetDevEnvironmentOutput {
  272    280   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  273    281   
    fn serialize_members(
  274    282   
        &self,
@@ -320,328 +441,542 @@
  340    348   
            ser.write_struct(&GETDEVENVIRONMENTOUTPUT_MEMBER_PERSISTENT_STORAGE, val)?;
  341    349   
        }
  342    350   
        if let Some(ref val) = self.vpc_connection_name {
  343    351   
            ser.write_string(&GETDEVENVIRONMENTOUTPUT_MEMBER_VPC_CONNECTION_NAME, val)?;
  344    352   
        }
  345    353   
        Ok(())
  346    354   
    }
  347    355   
}
  348    356   
impl GetDevEnvironmentOutput {
  349    357   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  350         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  351         -
        deserializer: &mut D,
         358  +
    pub fn deserialize(
         359  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         360  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         361  +
        #[allow(unused_variables, unused_mut)]
         362  +
        let mut builder = Self::builder();
         363  +
        #[allow(
         364  +
            unused_variables,
         365  +
            unreachable_code,
         366  +
            clippy::single_match,
         367  +
            clippy::match_single_binding,
         368  +
            clippy::diverging_sub_expression
         369  +
        )]
         370  +
        deserializer.read_struct(&GETDEVENVIRONMENTOUTPUT_SCHEMA, &mut |member, deser| {
         371  +
            match member.member_index() {
         372  +
                Some(0) => {
         373  +
                    builder.space_name = Some(deser.read_string(member)?);
         374  +
                }
         375  +
                Some(1) => {
         376  +
                    builder.project_name = Some(deser.read_string(member)?);
         377  +
                }
         378  +
                Some(2) => {
         379  +
                    builder.id = Some(deser.read_string(member)?);
         380  +
                }
         381  +
                Some(3) => {
         382  +
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);
         383  +
                }
         384  +
                Some(4) => {
         385  +
                    builder.creator_id = Some(deser.read_string(member)?);
         386  +
                }
         387  +
                Some(5) => {
         388  +
                    builder.status = Some(crate::types::DevEnvironmentStatus::from(deser.read_string(member)?.as_str()));
         389  +
                }
         390  +
                Some(6) => {
         391  +
                    builder.status_reason = Some(deser.read_string(member)?);
         392  +
                }
         393  +
                Some(7) => {
         394  +
                    builder.repositories = Some({
         395  +
                        let mut container = Vec::new();
         396  +
                        deser.read_list(member, &mut |deser| {
         397  +
                            container.push(crate::types::DevEnvironmentRepositorySummary::deserialize(deser)?);
         398  +
                            Ok(())
         399  +
                        })?;
         400  +
                        container
         401  +
                    });
         402  +
                }
         403  +
                Some(8) => {
         404  +
                    builder.alias = Some(deser.read_string(member)?);
         405  +
                }
         406  +
                Some(9) => {
         407  +
                    builder.ides = Some({
         408  +
                        let mut container = Vec::new();
         409  +
                        deser.read_list(member, &mut |deser| {
         410  +
                            container.push(crate::types::Ide::deserialize(deser)?);
         411  +
                            Ok(())
         412  +
                        })?;
         413  +
                        container
         414  +
                    });
         415  +
                }
         416  +
                Some(10) => {
         417  +
                    builder.instance_type = Some(crate::types::InstanceType::from(deser.read_string(member)?.as_str()));
         418  +
                }
         419  +
                Some(11) => {
         420  +
                    builder.inactivity_timeout_minutes = Some(deser.read_integer(member)?);
         421  +
                }
         422  +
                Some(12) => {
         423  +
                    builder.persistent_storage = Some(crate::types::PersistentStorage::deserialize(deser)?);
         424  +
                }
         425  +
                Some(13) => {
         426  +
                    builder.vpc_connection_name = Some(deser.read_string(member)?);
         427  +
                }
         428  +
                Some(14) => {
         429  +
                    builder._request_id = Some(deser.read_string(member)?);
         430  +
                }
         431  +
                _ => {}
         432  +
            }
         433  +
            Ok(())
         434  +
        })?;
         435  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         436  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         437  +
        builder.id = builder.id.or(Some(String::new()));
         438  +
        builder.last_updated_time = builder.last_updated_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
         439  +
        builder.creator_id = builder.creator_id.or(Some(String::new()));
         440  +
        builder.repositories = builder.repositories.or(Some(Vec::new()));
         441  +
        builder.inactivity_timeout_minutes = builder.inactivity_timeout_minutes.or(Some(0i32));
         442  +
        builder
         443  +
            .build()
         444  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         445  +
    }
         446  +
}
         447  +
impl GetDevEnvironmentOutput {
         448  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         449  +
    /// Header-bound members are read directly from headers, avoiding runtime
         450  +
    /// member iteration overhead. Body members are read via the deserializer.
         451  +
    pub fn deserialize_with_response(
         452  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         453  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         454  +
        _status: u16,
         455  +
        _body: &[u8],
  352    456   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  353    457   
        #[allow(unused_variables, unused_mut)]
  354    458   
        let mut builder = Self::builder();
         459  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         460  +
            builder._request_id = Some(val.to_string());
         461  +
        }
  355    462   
        #[allow(
  356    463   
            unused_variables,
  357    464   
            unreachable_code,
  358    465   
            clippy::single_match,
  359    466   
            clippy::match_single_binding,
  360    467   
            clippy::diverging_sub_expression
  361    468   
        )]
  362         -
        deserializer.read_struct(&GETDEVENVIRONMENTOUTPUT_SCHEMA, (), |_, member, deser| {
         469  +
        deserializer.read_struct(&GETDEVENVIRONMENTOUTPUT_SCHEMA, &mut |member, deser| {
  363    470   
            match member.member_index() {
  364    471   
                Some(0) => {
  365    472   
                    builder.space_name = Some(deser.read_string(member)?);
  366    473   
                }
  367    474   
                Some(1) => {
  368    475   
                    builder.project_name = Some(deser.read_string(member)?);
  369    476   
                }
  370    477   
                Some(2) => {
  371    478   
                    builder.id = Some(deser.read_string(member)?);
  372    479   
                }
  373    480   
                Some(3) => {
  374    481   
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);
  375    482   
                }
  376    483   
                Some(4) => {
  377    484   
                    builder.creator_id = Some(deser.read_string(member)?);
  378    485   
                }
  379    486   
                Some(5) => {
  380    487   
                    builder.status = Some(crate::types::DevEnvironmentStatus::from(deser.read_string(member)?.as_str()));
  381    488   
                }
  382    489   
                Some(6) => {
  383    490   
                    builder.status_reason = Some(deser.read_string(member)?);
  384    491   
                }
  385    492   
                Some(7) => {
  386    493   
                    builder.repositories = Some({
  387         -
                        let container = if let Some(cap) = deser.container_size() {
  388         -
                            Vec::with_capacity(cap)
  389         -
                        } else {
  390         -
                            Vec::new()
  391         -
                        };
  392         -
                        deser.read_list(member, container, |mut list, deser| {
  393         -
                            list.push(crate::types::DevEnvironmentRepositorySummary::deserialize(deser)?);
  394         -
                            Ok(list)
  395         -
                        })?
         494  +
                        let mut container = Vec::new();
         495  +
                        deser.read_list(member, &mut |deser| {
         496  +
                            container.push(crate::types::DevEnvironmentRepositorySummary::deserialize(deser)?);
         497  +
                            Ok(())
         498  +
                        })?;
         499  +
                        container
  396    500   
                    });
  397    501   
                }
  398    502   
                Some(8) => {
  399    503   
                    builder.alias = Some(deser.read_string(member)?);
  400    504   
                }
  401    505   
                Some(9) => {
  402    506   
                    builder.ides = Some({
  403         -
                        let container = if let Some(cap) = deser.container_size() {
  404         -
                            Vec::with_capacity(cap)
  405         -
                        } else {
  406         -
                            Vec::new()
  407         -
                        };
  408         -
                        deser.read_list(member, container, |mut list, deser| {
  409         -
                            list.push(crate::types::Ide::deserialize(deser)?);
  410         -
                            Ok(list)
  411         -
                        })?
         507  +
                        let mut container = Vec::new();
         508  +
                        deser.read_list(member, &mut |deser| {
         509  +
                            container.push(crate::types::Ide::deserialize(deser)?);
         510  +
                            Ok(())
         511  +
                        })?;
         512  +
                        container
  412    513   
                    });
  413    514   
                }
  414    515   
                Some(10) => {
  415    516   
                    builder.instance_type = Some(crate::types::InstanceType::from(deser.read_string(member)?.as_str()));
  416    517   
                }
  417    518   
                Some(11) => {
  418    519   
                    builder.inactivity_timeout_minutes = Some(deser.read_integer(member)?);
  419    520   
                }
  420    521   
                Some(12) => {
  421    522   
                    builder.persistent_storage = Some(crate::types::PersistentStorage::deserialize(deser)?);

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetProject`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetProject;
    6      6   
impl GetProject {
    7      7   
    /// Creates a new `GetProject`
    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_project::GetProjectInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_project::GetProjectOutput::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_project::GetProjectInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_project::GetProjectOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_project::GetProjectError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +247,372 @@
  128    132   
                crate::operation::get_project::GetProjectError,
  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 GetProjectResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetProjectResponseDeserializer {
  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_project::de_get_project_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_get_project::de_get_project_http_response(status, headers, body)
         151  +
        if !success && status != 200 || force_error {
         152  +
            let headers = response.headers();
         153  +
            let body = response.body().bytes().expect("body loaded");
         154  +
            #[allow(unused_mut)]
         155  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         156  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         157  +
            })?;
         158  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         159  +
            let generic = generic_builder.build();
         160  +
            let error_code = match generic.code() {
         161  +
                ::std::option::Option::Some(code) => code,
         162  +
                ::std::option::Option::None => {
         163  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         164  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::get_project::GetProjectError::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::get_project::GetProjectError::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::get_project::GetProjectError::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::get_project::GetProjectError::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::get_project::GetProjectError::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::get_project::GetProjectError::ThrottlingException({
         258  +
                    let mut tmp = match protocol
         259  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         260  +
                        .and_then(|mut deser| {
         261  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         262  +
                                &mut *deser,
         263  +
                                response.headers(),
         264  +
                                response.status().into(),
         265  +
                                body,
         266  +
                            )
         267  +
                        }) {
         268  +
                        ::std::result::Result::Ok(val) => val,
         269  +
                        ::std::result::Result::Err(e) => {
         270  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         271  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         272  +
                            ))
         273  +
                        }
         274  +
                    };
         275  +
                    tmp.meta = generic;
         276  +
                    tmp
         277  +
                }),
         278  +
                "ValidationException" => crate::operation::get_project::GetProjectError::ValidationException({
         279  +
                    let mut tmp = match protocol
         280  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         281  +
                        .and_then(|mut deser| {
         282  +
                            crate::types::error::ValidationException::deserialize_with_response(
         283  +
                                &mut *deser,
         284  +
                                response.headers(),
         285  +
                                response.status().into(),
         286  +
                                body,
         287  +
                            )
         288  +
                        }) {
         289  +
                        ::std::result::Result::Ok(val) => val,
         290  +
                        ::std::result::Result::Err(e) => {
         291  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         292  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         293  +
                            ))
         294  +
                        }
  152    295   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         296  +
                    tmp.meta = generic;
         297  +
                    tmp
         298  +
                }),
         299  +
                _ => crate::operation::get_project::GetProjectError::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, GetProject::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::get_project::GetProjectOutput::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 GetProjectRequestSerializer;
  158    327   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetProjectRequestSerializer {
  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.downcast::<crate::operation::get_project::GetProjectInput>().expect("correct type");
  166         -
        let _header_serialization_settings = _cfg
  167         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  168         -
            .cloned()
  169         -
            .unwrap_or_default();
  170         -
        let mut request_builder = {
  171         -
            #[allow(clippy::uninlined_format_args)]
  172         -
            fn uri_base(
  173         -
                _input: &crate::operation::get_project::GetProjectInput,
  174         -
                output: &mut ::std::string::String,
  175         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  176         -
                use ::std::fmt::Write as _;
  177         -
                let input_1 = &_input.space_name;
  178         -
                let input_1 = input_1
  179         -
                    .as_ref()
  180         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("space_name", "cannot be empty or unset"))?;
  181         -
                let space_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  182         -
                if space_name.is_empty() {
  183         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  184         -
                        "space_name",
  185         -
                        "cannot be empty or unset",
  186         -
                    ));
  187         -
                }
  188         -
                let input_2 = &_input.name;
  189         -
                let input_2 = input_2
  190         -
                    .as_ref()
  191         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("name", "cannot be empty or unset"))?;
  192         -
                let name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  193         -
                if name.is_empty() {
  194         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  195         -
                        "name",
  196         -
                        "cannot be empty or unset",
  197         -
                    ));
  198         -
                }
  199         -
                ::std::write!(output, "/v1/spaces/{spaceName}/projects/{name}", spaceName = space_name, name = name)
  200         -
                    .expect("formatting should succeed");
  201         -
                ::std::result::Result::Ok(())
  202         -
            }
  203         -
            #[allow(clippy::unnecessary_wraps)]
  204         -
            fn update_http_builder(
  205         -
                input: &crate::operation::get_project::GetProjectInput,
  206         -
                builder: ::http_1x::request::Builder,
  207         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  208         -
                let mut uri = ::std::string::String::new();
  209         -
                uri_base(input, &mut uri)?;
  210         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  211         -
            }
  212         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  213         -
            builder
  214         -
        };
  215         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
         335  +
        let protocol = _cfg
         336  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         337  +
            .expect("a SharedClientProtocol is required");
         338  +
        let mut request = protocol
         339  +
            .serialize_request(&input, GetProject::INPUT_SCHEMA, "", _cfg)
         340  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  216    341   
  217         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         342  +
        return ::std::result::Result::Ok(request);
  218    343   
    }
  219    344   
}
  220    345   
#[derive(Debug)]
  221    346   
struct GetProjectEndpointParamsInterceptor;
  222    347   
  223    348   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetProjectEndpointParamsInterceptor {
  224    349   
    fn name(&self) -> &'static str {
  225    350   
        "GetProjectEndpointParamsInterceptor"
  226    351   
    }
  227    352   

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/get_project/_get_project_input.rs

@@ -3,3 +132,150 @@
   23     23   
    "com.amazonaws.codecatalyst.synthetic",
   24     24   
    "GetProjectInput",
   25     25   
);
   26     26   
static GETPROJECTINPUT_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#GetProjectInput$spaceName",
   29     29   
        "com.amazonaws.codecatalyst.synthetic",
   30     30   
        "GetProjectInput",
   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 GETPROJECTINPUT_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#GetProjectInput$name",
   40     40   
        "com.amazonaws.codecatalyst.synthetic",
   41     41   
        "GetProjectInput",
   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 GETPROJECTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    GETPROJECTINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&GETPROJECTINPUT_MEMBER_SPACE_NAME, &GETPROJECTINPUT_MEMBER_NAME],
   52         -
);
          52  +
)
          53  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          54  +
    "GET",
          55  +
    "/v1/spaces/{spaceName}/projects/{name}",
          56  +
    None,
          57  +
));
   53     58   
impl GetProjectInput {
   54     59   
    /// The schema for this shape.
   55     60   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETPROJECTINPUT_SCHEMA;
   56     61   
}
   57     62   
impl ::aws_smithy_schema::serde::SerializableStruct for GetProjectInput {
   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(&GETPROJECTINPUT_MEMBER_SPACE_NAME, val)?;
   65     70   
        }
   66     71   
        if let Some(ref val) = self.name {
   67     72   
            ser.write_string(&GETPROJECTINPUT_MEMBER_NAME, val)?;
   68     73   
        }
   69     74   
        Ok(())
   70     75   
    }
   71     76   
}
   72     77   
impl GetProjectInput {
   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(&GETPROJECTINPUT_SCHEMA, (), |_, member, deser| {
          91  +
        deserializer.read_struct(&GETPROJECTINPUT_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 GetProjectInput {
         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 GetProjectInput {
  104    122   
    /// Creates a new builder-style object to manufacture [`GetProjectInput`](crate::operation::get_project::GetProjectInput).
  105    123   
    pub fn builder() -> crate::operation::get_project::builders::GetProjectInputBuilder {
  106    124   
        crate::operation::get_project::builders::GetProjectInputBuilder::default()
  107    125   
    }
  108    126   
}
  109    127   
  110    128   
/// A builder for [`GetProjectInput`](crate::operation::get_project::GetProjectInput).
  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/get_project/_get_project_output.rs

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

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/get_source_repository/_get_source_repository_input.rs

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

@@ -31,31 +206,275 @@
   51     51   
    "com.amazonaws.codecatalyst.synthetic",
   52     52   
    "GetSourceRepositoryOutput",
   53     53   
);
   54     54   
static GETSOURCEREPOSITORYOUTPUT_MEMBER_SPACE_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#GetSourceRepositoryOutput$spaceName",
   57     57   
        "com.amazonaws.codecatalyst.synthetic",
   58     58   
        "GetSourceRepositoryOutput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61         -
    "space_name",
          61  +
    "spaceName",
   62     62   
    0,
   63     63   
);
   64     64   
static GETSOURCEREPOSITORYOUTPUT_MEMBER_PROJECT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static(
   66     66   
        "com.amazonaws.codecatalyst.synthetic#GetSourceRepositoryOutput$projectName",
   67     67   
        "com.amazonaws.codecatalyst.synthetic",
   68     68   
        "GetSourceRepositoryOutput",
   69     69   
    ),
   70     70   
    ::aws_smithy_schema::ShapeType::String,
   71         -
    "project_name",
          71  +
    "projectName",
   72     72   
    1,
   73     73   
);
   74     74   
static GETSOURCEREPOSITORYOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.codecatalyst.synthetic#GetSourceRepositoryOutput$name",
   77     77   
        "com.amazonaws.codecatalyst.synthetic",
   78     78   
        "GetSourceRepositoryOutput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81     81   
    "name",
   82     82   
    2,
   83     83   
);
   84     84   
static GETSOURCEREPOSITORYOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.codecatalyst.synthetic#GetSourceRepositoryOutput$description",
   87     87   
        "com.amazonaws.codecatalyst.synthetic",
   88     88   
        "GetSourceRepositoryOutput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::String,
   91     91   
    "description",
   92     92   
    3,
   93     93   
);
   94     94   
static GETSOURCEREPOSITORYOUTPUT_MEMBER_LAST_UPDATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.codecatalyst.synthetic#GetSourceRepositoryOutput$lastUpdatedTime",
   97     97   
        "com.amazonaws.codecatalyst.synthetic",
   98     98   
        "GetSourceRepositoryOutput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::Timestamp,
  101         -
    "last_updated_time",
         101  +
    "lastUpdatedTime",
  102    102   
    4,
  103         -
);
         103  +
)
         104  +
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
  104    105   
static GETSOURCEREPOSITORYOUTPUT_MEMBER_CREATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    106   
    ::aws_smithy_schema::ShapeId::from_static(
  106    107   
        "com.amazonaws.codecatalyst.synthetic#GetSourceRepositoryOutput$createdTime",
  107    108   
        "com.amazonaws.codecatalyst.synthetic",
  108    109   
        "GetSourceRepositoryOutput",
  109    110   
    ),
  110    111   
    ::aws_smithy_schema::ShapeType::Timestamp,
  111         -
    "created_time",
         112  +
    "createdTime",
  112    113   
    5,
  113         -
);
         114  +
)
         115  +
.with_timestamp_format(aws_smithy_schema::traits::TimestampFormat::DateTime);
         116  +
static GETSOURCEREPOSITORYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         117  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         118  +
    ::aws_smithy_schema::ShapeType::String,
         119  +
    "request_id",
         120  +
    6,
         121  +
)
         122  +
.with_http_header("x-amzn-requestid");
  114    123   
static GETSOURCEREPOSITORYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  115    124   
    GETSOURCEREPOSITORYOUTPUT_SCHEMA_ID,
  116    125   
    ::aws_smithy_schema::ShapeType::Structure,
  117    126   
    &[
  118    127   
        &GETSOURCEREPOSITORYOUTPUT_MEMBER_SPACE_NAME,
  119    128   
        &GETSOURCEREPOSITORYOUTPUT_MEMBER_PROJECT_NAME,
  120    129   
        &GETSOURCEREPOSITORYOUTPUT_MEMBER_NAME,
  121    130   
        &GETSOURCEREPOSITORYOUTPUT_MEMBER_DESCRIPTION,
  122    131   
        &GETSOURCEREPOSITORYOUTPUT_MEMBER_LAST_UPDATED_TIME,
  123    132   
        &GETSOURCEREPOSITORYOUTPUT_MEMBER_CREATED_TIME,
         133  +
        &GETSOURCEREPOSITORYOUTPUT_MEMBER__REQUEST_ID,
  124    134   
    ],
  125    135   
);
  126    136   
impl GetSourceRepositoryOutput {
  127    137   
    /// The schema for this shape.
  128    138   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETSOURCEREPOSITORYOUTPUT_SCHEMA;
  129    139   
}
  130    140   
impl ::aws_smithy_schema::serde::SerializableStruct for GetSourceRepositoryOutput {
  131    141   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  132    142   
    fn serialize_members(
  133    143   
        &self,
  134    144   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  135    145   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  136    146   
        {
  137    147   
            let val = &self.space_name;
  138    148   
            ser.write_string(&GETSOURCEREPOSITORYOUTPUT_MEMBER_SPACE_NAME, val)?;
  139    149   
        }
  140    150   
        {
  141    151   
            let val = &self.project_name;
  142    152   
            ser.write_string(&GETSOURCEREPOSITORYOUTPUT_MEMBER_PROJECT_NAME, val)?;
  143    153   
        }
  144    154   
        {
  145    155   
            let val = &self.name;
  146    156   
            ser.write_string(&GETSOURCEREPOSITORYOUTPUT_MEMBER_NAME, val)?;
  147    157   
        }
  148    158   
        if let Some(ref val) = self.description {
  149    159   
            ser.write_string(&GETSOURCEREPOSITORYOUTPUT_MEMBER_DESCRIPTION, val)?;
  150    160   
        }
  151    161   
        {
  152    162   
            let val = &self.last_updated_time;
  153    163   
            ser.write_timestamp(&GETSOURCEREPOSITORYOUTPUT_MEMBER_LAST_UPDATED_TIME, val)?;
  154    164   
        }
  155    165   
        {
  156    166   
            let val = &self.created_time;
  157    167   
            ser.write_timestamp(&GETSOURCEREPOSITORYOUTPUT_MEMBER_CREATED_TIME, val)?;
  158    168   
        }
  159    169   
        Ok(())
  160    170   
    }
  161    171   
}
  162    172   
impl GetSourceRepositoryOutput {
  163    173   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  164         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  165         -
        deserializer: &mut D,
         174  +
    pub fn deserialize(
         175  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         176  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         177  +
        #[allow(unused_variables, unused_mut)]
         178  +
        let mut builder = Self::builder();
         179  +
        #[allow(
         180  +
            unused_variables,
         181  +
            unreachable_code,
         182  +
            clippy::single_match,
         183  +
            clippy::match_single_binding,
         184  +
            clippy::diverging_sub_expression
         185  +
        )]
         186  +
        deserializer.read_struct(&GETSOURCEREPOSITORYOUTPUT_SCHEMA, &mut |member, deser| {
         187  +
            match member.member_index() {
         188  +
                Some(0) => {
         189  +
                    builder.space_name = Some(deser.read_string(member)?);
         190  +
                }
         191  +
                Some(1) => {
         192  +
                    builder.project_name = Some(deser.read_string(member)?);
         193  +
                }
         194  +
                Some(2) => {
         195  +
                    builder.name = Some(deser.read_string(member)?);
         196  +
                }
         197  +
                Some(3) => {
         198  +
                    builder.description = Some(deser.read_string(member)?);
         199  +
                }
         200  +
                Some(4) => {
         201  +
                    builder.last_updated_time = Some(deser.read_timestamp(member)?);
         202  +
                }
         203  +
                Some(5) => {
         204  +
                    builder.created_time = Some(deser.read_timestamp(member)?);
         205  +
                }
         206  +
                Some(6) => {
         207  +
                    builder._request_id = Some(deser.read_string(member)?);
         208  +
                }
         209  +
                _ => {}
         210  +
            }
         211  +
            Ok(())
         212  +
        })?;
         213  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         214  +
        builder.project_name = builder.project_name.or(Some(String::new()));
         215  +
        builder.name = builder.name.or(Some(String::new()));
         216  +
        builder.last_updated_time = builder.last_updated_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
         217  +
        builder.created_time = builder.created_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
         218  +
        builder
         219  +
            .build()
         220  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         221  +
    }
         222  +
}
         223  +
impl GetSourceRepositoryOutput {
         224  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         225  +
    /// Header-bound members are read directly from headers, avoiding runtime
         226  +
    /// member iteration overhead. Body members are read via the deserializer.
         227  +
    pub fn deserialize_with_response(
         228  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         229  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         230  +
        _status: u16,
         231  +
        _body: &[u8],
  166    232   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  167    233   
        #[allow(unused_variables, unused_mut)]
  168    234   
        let mut builder = Self::builder();
         235  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         236  +
            builder._request_id = Some(val.to_string());
         237  +
        }
  169    238   
        #[allow(
  170    239   
            unused_variables,
  171    240   
            unreachable_code,
  172    241   
            clippy::single_match,
  173    242   
            clippy::match_single_binding,
  174    243   
            clippy::diverging_sub_expression
  175    244   
        )]
  176         -
        deserializer.read_struct(&GETSOURCEREPOSITORYOUTPUT_SCHEMA, (), |_, member, deser| {
         245  +
        deserializer.read_struct(&GETSOURCEREPOSITORYOUTPUT_SCHEMA, &mut |member, deser| {
  177    246   
            match member.member_index() {
  178    247   
                Some(0) => {
  179    248   
                    builder.space_name = Some(deser.read_string(member)?);
  180    249   
                }
  181    250   
                Some(1) => {
  182    251   
                    builder.project_name = Some(deser.read_string(member)?);
  183    252   
                }
  184    253   
                Some(2) => {
  185    254   
                    builder.name = Some(deser.read_string(member)?);
  186    255   
                }

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

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetSourceRepositoryCloneUrls`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetSourceRepositoryCloneUrls;
    6      6   
impl GetSourceRepositoryCloneUrls {
    7      7   
    /// Creates a new `GetSourceRepositoryCloneUrls`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -114,120 +272,396 @@
  134    140   
                crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError,
  135    141   
            >::new());
  136    142   
  137    143   
        ::std::borrow::Cow::Owned(rcb)
  138    144   
    }
  139    145   
}
  140    146   
  141    147   
#[derive(Debug)]
  142    148   
struct GetSourceRepositoryCloneUrlsResponseDeserializer;
  143    149   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetSourceRepositoryCloneUrlsResponseDeserializer {
  144         -
    fn deserialize_nonstreaming(
         150  +
    fn deserialize_nonstreaming_with_config(
  145    151   
        &self,
  146    152   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         153  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  147    154   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  148    155   
        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    156   
        #[allow(unused_mut)]
  152    157   
        let mut force_error = false;
  153    158   
        ::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_get_source_repository_clone_urls::de_get_source_repository_clone_urls_http_error(status, headers, body)
  156         -
        } else {
  157         -
            crate::protocol_serde::shape_get_source_repository_clone_urls::de_get_source_repository_clone_urls_http_response(status, headers, body)
         159  +
        if !success && status != 200 || force_error {
         160  +
            let headers = response.headers();
         161  +
            let body = response.body().bytes().expect("body loaded");
         162  +
            #[allow(unused_mut)]
         163  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         164  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         165  +
            })?;
         166  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         167  +
            let generic = generic_builder.build();
         168  +
            let error_code = match generic.code() {
         169  +
                ::std::option::Option::Some(code) => code,
         170  +
                ::std::option::Option::None => {
         171  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         172  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         173  +
                            crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::unhandled(generic),
         174  +
                        ),
         175  +
                    ))
         176  +
                }
         177  +
            };
         178  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         179  +
            let protocol = _cfg
         180  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         181  +
                .expect("a SharedClientProtocol is required");
         182  +
            let err = match error_code {
         183  +
                "AccessDeniedException" => {
         184  +
                    crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::AccessDeniedException({
         185  +
                        let mut tmp = match protocol
         186  +
                            .deserialize_response(response, crate::types::error::AccessDeniedException::SCHEMA, _cfg)
         187  +
                            .and_then(|mut deser| {
         188  +
                                crate::types::error::AccessDeniedException::deserialize_with_response(
         189  +
                                    &mut *deser,
         190  +
                                    response.headers(),
         191  +
                                    response.status().into(),
         192  +
                                    body,
         193  +
                                )
         194  +
                            }) {
         195  +
                            ::std::result::Result::Ok(val) => val,
         196  +
                            ::std::result::Result::Err(e) => {
         197  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         198  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         199  +
                                ))
         200  +
                            }
         201  +
                        };
         202  +
                        tmp.meta = generic;
         203  +
                        tmp
         204  +
                    })
         205  +
                }
         206  +
                "ConflictException" => crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ConflictException({
         207  +
                    let mut tmp = match protocol
         208  +
                        .deserialize_response(response, crate::types::error::ConflictException::SCHEMA, _cfg)
         209  +
                        .and_then(|mut deser| {
         210  +
                            crate::types::error::ConflictException::deserialize_with_response(
         211  +
                                &mut *deser,
         212  +
                                response.headers(),
         213  +
                                response.status().into(),
         214  +
                                body,
         215  +
                            )
         216  +
                        }) {
         217  +
                        ::std::result::Result::Ok(val) => val,
         218  +
                        ::std::result::Result::Err(e) => {
         219  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         220  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         221  +
                            ))
         222  +
                        }
         223  +
                    };
         224  +
                    tmp.meta = generic;
         225  +
                    tmp
         226  +
                }),
         227  +
                "ResourceNotFoundException" => {
         228  +
                    crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ResourceNotFoundException({
         229  +
                        let mut tmp = match protocol
         230  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         231  +
                            .and_then(|mut deser| {
         232  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         233  +
                                    &mut *deser,
         234  +
                                    response.headers(),
         235  +
                                    response.status().into(),
         236  +
                                    body,
         237  +
                                )
         238  +
                            }) {
         239  +
                            ::std::result::Result::Ok(val) => val,
         240  +
                            ::std::result::Result::Err(e) => {
         241  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         242  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         243  +
                                ))
         244  +
                            }
         245  +
                        };
         246  +
                        tmp.meta = generic;
         247  +
                        tmp
         248  +
                    })
         249  +
                }
         250  +
                "ServiceQuotaExceededException" => {
         251  +
                    crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ServiceQuotaExceededException({
         252  +
                        let mut tmp = match protocol
         253  +
                            .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         254  +
                            .and_then(|mut deser| {
         255  +
                                crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         256  +
                                    &mut *deser,
         257  +
                                    response.headers(),
         258  +
                                    response.status().into(),
         259  +
                                    body,
         260  +
                                )
         261  +
                            }) {
         262  +
                            ::std::result::Result::Ok(val) => val,
         263  +
                            ::std::result::Result::Err(e) => {
         264  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         265  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         266  +
                                ))
         267  +
                            }
         268  +
                        };
         269  +
                        tmp.meta = generic;
         270  +
                        tmp
         271  +
                    })
         272  +
                }
         273  +
                "ThrottlingException" => {
         274  +
                    crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ThrottlingException({
         275  +
                        let mut tmp = match protocol
         276  +
                            .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         277  +
                            .and_then(|mut deser| {
         278  +
                                crate::types::error::ThrottlingException::deserialize_with_response(
         279  +
                                    &mut *deser,
         280  +
                                    response.headers(),
         281  +
                                    response.status().into(),
         282  +
                                    body,
         283  +
                                )
         284  +
                            }) {
         285  +
                            ::std::result::Result::Ok(val) => val,
         286  +
                            ::std::result::Result::Err(e) => {
         287  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         288  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         289  +
                                ))
         290  +
                            }
         291  +
                        };
         292  +
                        tmp.meta = generic;
         293  +
                        tmp
         294  +
                    })
         295  +
                }
         296  +
                "ValidationException" => {
         297  +
                    crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::ValidationException({
         298  +
                        let mut tmp = match protocol
         299  +
                            .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         300  +
                            .and_then(|mut deser| {
         301  +
                                crate::types::error::ValidationException::deserialize_with_response(
         302  +
                                    &mut *deser,
         303  +
                                    response.headers(),
         304  +
                                    response.status().into(),
         305  +
                                    body,
         306  +
                                )
         307  +
                            }) {
         308  +
                            ::std::result::Result::Ok(val) => val,
         309  +
                            ::std::result::Result::Err(e) => {
         310  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         311  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         312  +
                                ))
         313  +
                            }
  158    314   
                        };
  159         -
        crate::protocol_serde::type_erase_result(parse_result)
         315  +
                        tmp.meta = generic;
         316  +
                        tmp
         317  +
                    })
         318  +
                }
         319  +
                _ => crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsError::generic(generic),
         320  +
            };
         321  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         322  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         323  +
            ))
         324  +
        } else {
         325  +
            let protocol = _cfg
         326  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         327  +
                .expect("a SharedClientProtocol is required");
         328  +
            let mut deser = protocol
         329  +
                .deserialize_response(response, GetSourceRepositoryCloneUrls::OUTPUT_SCHEMA, _cfg)
         330  +
                .map_err(|e| {
         331  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         332  +
                })?;
         333  +
            let body = response.body().bytes().expect("body loaded");
         334  +
            let output = crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsOutput::deserialize_with_response(
         335  +
                &mut *deser,
         336  +
                response.headers(),
         337  +
                response.status().into(),
         338  +
                body,
         339  +
            )
         340  +
            .map_err(|e| {
         341  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         342  +
            })?;
         343  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         344  +
        }
  160    345   
    }
  161    346   
}
  162    347   
#[derive(Debug)]
  163    348   
struct GetSourceRepositoryCloneUrlsRequestSerializer;
  164    349   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetSourceRepositoryCloneUrlsRequestSerializer {
  165    350   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  166    351   
    fn serialize_input(
  167    352   
        &self,
  168    353   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  169    354   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  170    355   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  171    356   
        let input = input
  172    357   
            .downcast::<crate::operation::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsInput>()
  173    358   
            .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::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsInput,
  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.source_repository_name;
  208         -
                let input_3 = input_3.as_ref().ok_or_else(|| {
  209         -
                    ::aws_smithy_types::error::operation::BuildError::missing_field("source_repository_name", "cannot be empty or unset")
  210         -
                })?;
  211         -
                let source_repository_name = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  212         -
                if source_repository_name.is_empty() {
  213         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  214         -
                        "source_repository_name",
  215         -
                        "cannot be empty or unset",
  216         -
                    ));
  217         -
                }
  218         -
                ::std::write!(
  219         -
                    output,
  220         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/cloneUrls",
  221         -
                    spaceName = space_name,
  222         -
                    projectName = project_name,
  223         -
                    sourceRepositoryName = source_repository_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::get_source_repository_clone_urls::GetSourceRepositoryCloneUrlsInput,
  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("GET").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("");
         359  +
        let protocol = _cfg
         360  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         361  +
            .expect("a SharedClientProtocol is required");
         362  +
        let mut request = protocol
         363  +
            .serialize_request(&input, GetSourceRepositoryCloneUrls::INPUT_SCHEMA, "", _cfg)
         364  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  241    365   
  242         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         366  +
        return ::std::result::Result::Ok(request);
  243    367   
    }
  244    368   
}
  245    369   
#[derive(Debug)]
  246    370   
struct GetSourceRepositoryCloneUrlsEndpointParamsInterceptor;
  247    371   
  248    372   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetSourceRepositoryCloneUrlsEndpointParamsInterceptor {
  249    373   
    fn name(&self) -> &'static str {
  250    374   
        "GetSourceRepositoryCloneUrlsEndpointParamsInterceptor"
  251    375   
    }
  252    376