AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_spaces.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 `ListSpaces`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListSpaces;
    6      6   
impl ListSpaces {
    7      7   
    /// Creates a new `ListSpaces`
    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::list_spaces::ListSpacesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_spaces::ListSpacesOutput::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::list_spaces::ListSpacesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_spaces::ListSpacesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_spaces::ListSpacesError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +228,372 @@
  128    132   
                crate::operation::list_spaces::ListSpacesError,
  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 ListSpacesResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListSpacesResponseDeserializer {
  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_list_spaces::de_list_spaces_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_list_spaces::de_list_spaces_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::list_spaces::ListSpacesError::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::list_spaces::ListSpacesError::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::list_spaces::ListSpacesError::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::list_spaces::ListSpacesError::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::list_spaces::ListSpacesError::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::list_spaces::ListSpacesError::ThrottlingException({
         258  +
                    let mut tmp = match protocol
         259  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         260  +
                        .and_then(|mut deser| {
         261  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         262  +
                                &mut *deser,
         263  +
                                response.headers(),
         264  +
                                response.status().into(),
         265  +
                                body,
         266  +
                            )
         267  +
                        }) {
         268  +
                        ::std::result::Result::Ok(val) => val,
         269  +
                        ::std::result::Result::Err(e) => {
         270  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         271  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         272  +
                            ))
         273  +
                        }
  152    274   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         275  +
                    tmp.meta = generic;
         276  +
                    tmp
         277  +
                }),
         278  +
                "ValidationException" => crate::operation::list_spaces::ListSpacesError::ValidationException({
         279  +
                    let mut tmp = match protocol
         280  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         281  +
                        .and_then(|mut deser| {
         282  +
                            crate::types::error::ValidationException::deserialize_with_response(
         283  +
                                &mut *deser,
         284  +
                                response.headers(),
         285  +
                                response.status().into(),
         286  +
                                body,
         287  +
                            )
         288  +
                        }) {
         289  +
                        ::std::result::Result::Ok(val) => val,
         290  +
                        ::std::result::Result::Err(e) => {
         291  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         292  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         293  +
                            ))
         294  +
                        }
         295  +
                    };
         296  +
                    tmp.meta = generic;
         297  +
                    tmp
         298  +
                }),
         299  +
                _ => crate::operation::list_spaces::ListSpacesError::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, ListSpaces::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::list_spaces::ListSpacesOutput::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 ListSpacesRequestSerializer;
  158    327   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListSpacesRequestSerializer {
  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::list_spaces::ListSpacesInput>().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::list_spaces::ListSpacesInput,
  174         -
                output: &mut ::std::string::String,
  175         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  176         -
                use ::std::fmt::Write as _;
  177         -
                ::std::write!(output, "/v1/spaces").expect("formatting should succeed");
  178         -
                ::std::result::Result::Ok(())
  179         -
            }
  180         -
            #[allow(clippy::unnecessary_wraps)]
  181         -
            fn update_http_builder(
  182         -
                input: &crate::operation::list_spaces::ListSpacesInput,
  183         -
                builder: ::http_1x::request::Builder,
  184         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  185         -
                let mut uri = ::std::string::String::new();
  186         -
                uri_base(input, &mut uri)?;
  187         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  188         -
            }
  189         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  190         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  191         -
            builder
  192         -
        };
  193         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_spaces::ser_list_spaces_input(&input)?);
  194         -
        if let Some(content_length) = body.content_length() {
  195         -
            let content_length = content_length.to_string();
  196         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  197         -
        }
  198         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         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, ListSpaces::INPUT_SCHEMA, "", _cfg)
         340  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         341  +
         342  +
        return ::std::result::Result::Ok(request);
  199    343   
    }
  200    344   
}
  201    345   
#[derive(Debug)]
  202    346   
struct ListSpacesEndpointParamsInterceptor;
  203    347   
  204    348   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListSpacesEndpointParamsInterceptor {
  205    349   
    fn name(&self) -> &'static str {
  206    350   
        "ListSpacesEndpointParamsInterceptor"
  207    351   
    }
  208    352   

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_workflow_runs.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 `ListWorkflowRuns`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListWorkflowRuns;
    6      6   
impl ListWorkflowRuns {
    7      7   
    /// Creates a new `ListWorkflowRuns`
    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::list_workflow_runs::ListWorkflowRunsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_workflow_runs::ListWorkflowRunsOutput::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::list_workflow_runs::ListWorkflowRunsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_workflow_runs::ListWorkflowRunsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_workflow_runs::ListWorkflowRunsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +281,420 @@
  128    132   
                crate::operation::list_workflow_runs::ListWorkflowRunsError,
  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 ListWorkflowRunsResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListWorkflowRunsResponseDeserializer {
  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_list_workflow_runs::de_list_workflow_runs_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_list_workflow_runs::de_list_workflow_runs_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::list_workflow_runs::ListWorkflowRunsError::unhandled(
         165  +
                            generic,
         166  +
                        )),
         167  +
                    ))
         168  +
                }
         169  +
            };
         170  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         171  +
            let protocol = _cfg
         172  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         173  +
                .expect("a SharedClientProtocol is required");
         174  +
            let err = match error_code {
         175  +
                "AccessDeniedException" => crate::operation::list_workflow_runs::ListWorkflowRunsError::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::list_workflow_runs::ListWorkflowRunsError::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::list_workflow_runs::ListWorkflowRunsError::ResourceNotFoundException({
         218  +
                    let mut tmp = match protocol
         219  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         220  +
                        .and_then(|mut deser| {
         221  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         222  +
                                &mut *deser,
         223  +
                                response.headers(),
         224  +
                                response.status().into(),
         225  +
                                body,
         226  +
                            )
         227  +
                        }) {
         228  +
                        ::std::result::Result::Ok(val) => val,
         229  +
                        ::std::result::Result::Err(e) => {
         230  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                            ))
         233  +
                        }
         234  +
                    };
         235  +
                    tmp.meta = generic;
         236  +
                    tmp
         237  +
                }),
         238  +
                "ServiceQuotaExceededException" => crate::operation::list_workflow_runs::ListWorkflowRunsError::ServiceQuotaExceededException({
         239  +
                    let mut tmp = match protocol
         240  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         241  +
                        .and_then(|mut deser| {
         242  +
                            crate::types::error::ServiceQuotaExceededException::deserialize_with_response(
         243  +
                                &mut *deser,
         244  +
                                response.headers(),
         245  +
                                response.status().into(),
         246  +
                                body,
         247  +
                            )
         248  +
                        }) {
         249  +
                        ::std::result::Result::Ok(val) => val,
         250  +
                        ::std::result::Result::Err(e) => {
         251  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                            ))
         254  +
                        }
         255  +
                    };
         256  +
                    tmp.meta = generic;
         257  +
                    tmp
         258  +
                }),
         259  +
                "ThrottlingException" => crate::operation::list_workflow_runs::ListWorkflowRunsError::ThrottlingException({
         260  +
                    let mut tmp = match protocol
         261  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         262  +
                        .and_then(|mut deser| {
         263  +
                            crate::types::error::ThrottlingException::deserialize_with_response(
         264  +
                                &mut *deser,
         265  +
                                response.headers(),
         266  +
                                response.status().into(),
         267  +
                                body,
         268  +
                            )
         269  +
                        }) {
         270  +
                        ::std::result::Result::Ok(val) => val,
         271  +
                        ::std::result::Result::Err(e) => {
         272  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         273  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         274  +
                            ))
         275  +
                        }
         276  +
                    };
         277  +
                    tmp.meta = generic;
         278  +
                    tmp
         279  +
                }),
         280  +
                "ValidationException" => crate::operation::list_workflow_runs::ListWorkflowRunsError::ValidationException({
         281  +
                    let mut tmp = match protocol
         282  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         283  +
                        .and_then(|mut deser| {
         284  +
                            crate::types::error::ValidationException::deserialize_with_response(
         285  +
                                &mut *deser,
         286  +
                                response.headers(),
         287  +
                                response.status().into(),
         288  +
                                body,
         289  +
                            )
         290  +
                        }) {
         291  +
                        ::std::result::Result::Ok(val) => val,
         292  +
                        ::std::result::Result::Err(e) => {
         293  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         294  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         295  +
                            ))
         296  +
                        }
  152    297   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         298  +
                    tmp.meta = generic;
         299  +
                    tmp
         300  +
                }),
         301  +
                _ => crate::operation::list_workflow_runs::ListWorkflowRunsError::generic(generic),
         302  +
            };
         303  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         304  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         305  +
            ))
         306  +
        } else {
         307  +
            let protocol = _cfg
         308  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         309  +
                .expect("a SharedClientProtocol is required");
         310  +
            let mut deser = protocol
         311  +
                .deserialize_response(response, ListWorkflowRuns::OUTPUT_SCHEMA, _cfg)
         312  +
                .map_err(|e| {
         313  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         314  +
                })?;
         315  +
            let body = response.body().bytes().expect("body loaded");
         316  +
            let output = crate::operation::list_workflow_runs::ListWorkflowRunsOutput::deserialize_with_response(
         317  +
                &mut *deser,
         318  +
                response.headers(),
         319  +
                response.status().into(),
         320  +
                body,
         321  +
            )
         322  +
            .map_err(|e| {
         323  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         324  +
            })?;
         325  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         326  +
        }
  154    327   
    }
  155    328   
}
  156    329   
#[derive(Debug)]
  157    330   
struct ListWorkflowRunsRequestSerializer;
  158    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListWorkflowRunsRequestSerializer {
  159    332   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    333   
    fn serialize_input(
  161    334   
        &self,
  162    335   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    336   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    337   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    338   
        let input = input
  166    339   
            .downcast::<crate::operation::list_workflow_runs::ListWorkflowRunsInput>()
  167    340   
            .expect("correct type");
  168         -
        let _header_serialization_settings = _cfg
  169         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  170         -
            .cloned()
  171         -
            .unwrap_or_default();
  172         -
        let mut request_builder = {
  173         -
            #[allow(clippy::uninlined_format_args)]
  174         -
            fn uri_base(
  175         -
                _input: &crate::operation::list_workflow_runs::ListWorkflowRunsInput,
  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         -
                ::std::write!(
  202         -
                    output,
  203         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns",
  204         -
                    spaceName = space_name,
  205         -
                    projectName = project_name
  206         -
                )
  207         -
                .expect("formatting should succeed");
  208         -
                ::std::result::Result::Ok(())
  209         -
            }
  210         -
            fn uri_query(
  211         -
                _input: &crate::operation::list_workflow_runs::ListWorkflowRunsInput,
  212         -
                mut output: &mut ::std::string::String,
  213         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  214         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  215         -
                if let ::std::option::Option::Some(inner_3) = &_input.workflow_id {
  216         -
                    {
  217         -
                        query.push_kv("workflowId", &::aws_smithy_http::query::fmt_string(inner_3));
  218         -
                    }
  219         -
                }
  220         -
                if let ::std::option::Option::Some(inner_4) = &_input.next_token {
         341  +
        let protocol = _cfg
         342  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         343  +
            .expect("a SharedClientProtocol is required");
         344  +
        if protocol.supports_http_bindings() {
         345  +
            let mut request = protocol
         346  +
                .serialize_body(&input, ListWorkflowRuns::INPUT_SCHEMA, "", _cfg)
         347  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  221    348   
            {
  222         -
                        query.push_kv("nextToken", &::aws_smithy_http::query::fmt_string(inner_4));
  223         -
                    }
  224         -
                }
  225         -
                if let ::std::option::Option::Some(inner_5) = &_input.max_results {
  226         -
                    {
  227         -
                        query.push_kv("maxResults", ::aws_smithy_types::primitive::Encoder::from(*inner_5).encode());
  228         -
                    }
         349  +
                let mut uri = "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns".to_string();
         350  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         351  +
                if let Some(ref val) = input.space_name {
         352  +
                    uri = uri.replace("{spaceName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         353  +
                }
         354  +
                if let Some(ref val) = input.workflow_id {
         355  +
                    query_params.push(("workflowId".to_string(), val.to_string()));
         356  +
                }
         357  +
                if let Some(ref val) = input.project_name {
         358  +
                    uri = uri.replace("{projectName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         359  +
                }
         360  +
                if let Some(ref val) = input.next_token {
         361  +
                    query_params.push(("nextToken".to_string(), val.to_string()));
         362  +
                }
         363  +
                if let Some(ref val) = input.max_results {
         364  +
                    query_params.push(("maxResults".to_string(), val.to_string()));
         365  +
                }
         366  +
                if !query_params.is_empty() {
         367  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         368  +
                    let pairs: Vec<String> = query_params
         369  +
                        .iter()
         370  +
                        .map(|(k, v)| {
         371  +
                            format!(
         372  +
                                "{}={}",
         373  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         374  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         375  +
                            )
         376  +
                        })
         377  +
                        .collect();
         378  +
                    uri.push_str(&pairs.join("&"));
  229    379   
                }
  230         -
                ::std::result::Result::Ok(())
         380  +
                request.set_uri(uri.as_str()).expect("valid URI");
  231    381   
            }
  232         -
            #[allow(clippy::unnecessary_wraps)]
  233         -
            fn update_http_builder(
  234         -
                input: &crate::operation::list_workflow_runs::ListWorkflowRunsInput,
  235         -
                builder: ::http_1x::request::Builder,
  236         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  237         -
                let mut uri = ::std::string::String::new();
  238         -
                uri_base(input, &mut uri)?;
  239         -
                uri_query(input, &mut uri)?;
  240         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  241         -
            }
  242         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  243         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  244         -
            builder
  245         -
        };
  246         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_workflow_runs::ser_list_workflow_runs_input(&input)?);
  247         -
        if let Some(content_length) = body.content_length() {
  248         -
            let content_length = content_length.to_string();
  249         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         382  +
         383  +
            return ::std::result::Result::Ok(request);
         384  +
        } else {
         385  +
            let mut request = protocol
         386  +
                .serialize_request(&input, ListWorkflowRuns::INPUT_SCHEMA, "", _cfg)
         387  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         388  +
         389  +
            return ::std::result::Result::Ok(request);
  250    390   
        }
  251         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  252    391   
    }
  253    392   
}
  254    393   
#[derive(Debug)]
  255    394   
struct ListWorkflowRunsEndpointParamsInterceptor;
  256    395   
  257    396   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListWorkflowRunsEndpointParamsInterceptor {
  258    397   
    fn name(&self) -> &'static str {
  259    398   
        "ListWorkflowRunsEndpointParamsInterceptor"
  260    399   
    }
  261    400   

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

@@ -29,29 +250,265 @@
   49     49   
    "com.amazonaws.codecatalyst.synthetic",
   50     50   
    "ListWorkflowRunsInput",
   51     51   
);
   52     52   
static LISTWORKFLOWRUNSINPUT_MEMBER_SPACE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   53     53   
    ::aws_smithy_schema::ShapeId::from_static(
   54     54   
        "com.amazonaws.codecatalyst.synthetic#ListWorkflowRunsInput$spaceName",
   55     55   
        "com.amazonaws.codecatalyst.synthetic",
   56     56   
        "ListWorkflowRunsInput",
   57     57   
    ),
   58     58   
    ::aws_smithy_schema::ShapeType::String,
   59         -
    "space_name",
          59  +
    "spaceName",
   60     60   
    0,
   61     61   
)
   62     62   
.with_http_label();
   63     63   
static LISTWORKFLOWRUNSINPUT_MEMBER_WORKFLOW_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   64     64   
    ::aws_smithy_schema::ShapeId::from_static(
   65     65   
        "com.amazonaws.codecatalyst.synthetic#ListWorkflowRunsInput$workflowId",
   66     66   
        "com.amazonaws.codecatalyst.synthetic",
   67     67   
        "ListWorkflowRunsInput",
   68     68   
    ),
   69     69   
    ::aws_smithy_schema::ShapeType::String,
   70         -
    "workflow_id",
          70  +
    "workflowId",
   71     71   
    1,
   72     72   
)
   73     73   
.with_http_query("workflowId");
   74     74   
static LISTWORKFLOWRUNSINPUT_MEMBER_PROJECT_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#ListWorkflowRunsInput$projectName",
   77     77   
        "com.amazonaws.codecatalyst.synthetic",
   78     78   
        "ListWorkflowRunsInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::String,
   81         -
    "project_name",
          81  +
    "projectName",
   82     82   
    2,
   83     83   
)
   84     84   
.with_http_label();
   85     85   
static LISTWORKFLOWRUNSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   86     86   
    ::aws_smithy_schema::ShapeId::from_static(
   87     87   
        "com.amazonaws.codecatalyst.synthetic#ListWorkflowRunsInput$nextToken",
   88     88   
        "com.amazonaws.codecatalyst.synthetic",
   89     89   
        "ListWorkflowRunsInput",
   90     90   
    ),
   91     91   
    ::aws_smithy_schema::ShapeType::String,
   92         -
    "next_token",
          92  +
    "nextToken",
   93     93   
    3,
   94     94   
)
   95     95   
.with_http_query("nextToken");
   96     96   
static LISTWORKFLOWRUNSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   97     97   
    ::aws_smithy_schema::ShapeId::from_static(
   98     98   
        "com.amazonaws.codecatalyst.synthetic#ListWorkflowRunsInput$maxResults",
   99     99   
        "com.amazonaws.codecatalyst.synthetic",
  100    100   
        "ListWorkflowRunsInput",
  101    101   
    ),
  102    102   
    ::aws_smithy_schema::ShapeType::Integer,
  103         -
    "max_results",
         103  +
    "maxResults",
  104    104   
    4,
  105    105   
)
  106    106   
.with_http_query("maxResults");
  107    107   
static LISTWORKFLOWRUNSINPUT_MEMBER_SORT_BY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  108    108   
    ::aws_smithy_schema::ShapeId::from_static(
  109    109   
        "com.amazonaws.codecatalyst.synthetic#ListWorkflowRunsInput$sortBy",
  110    110   
        "com.amazonaws.codecatalyst.synthetic",
  111    111   
        "ListWorkflowRunsInput",
  112    112   
    ),
  113    113   
    ::aws_smithy_schema::ShapeType::List,
  114         -
    "sort_by",
         114  +
    "sortBy",
  115    115   
    5,
  116    116   
);
  117    117   
static LISTWORKFLOWRUNSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  118    118   
    LISTWORKFLOWRUNSINPUT_SCHEMA_ID,
  119    119   
    ::aws_smithy_schema::ShapeType::Structure,
  120    120   
    &[
  121    121   
        &LISTWORKFLOWRUNSINPUT_MEMBER_SPACE_NAME,
  122    122   
        &LISTWORKFLOWRUNSINPUT_MEMBER_WORKFLOW_ID,
  123    123   
        &LISTWORKFLOWRUNSINPUT_MEMBER_PROJECT_NAME,
  124    124   
        &LISTWORKFLOWRUNSINPUT_MEMBER_NEXT_TOKEN,
  125    125   
        &LISTWORKFLOWRUNSINPUT_MEMBER_MAX_RESULTS,
  126    126   
        &LISTWORKFLOWRUNSINPUT_MEMBER_SORT_BY,
  127    127   
    ],
  128         -
);
         128  +
)
         129  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
         130  +
    "POST",
         131  +
    "/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns",
         132  +
    None,
         133  +
));
  129    134   
impl ListWorkflowRunsInput {
  130    135   
    /// The schema for this shape.
  131    136   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTWORKFLOWRUNSINPUT_SCHEMA;
  132    137   
}
  133    138   
impl ::aws_smithy_schema::serde::SerializableStruct for ListWorkflowRunsInput {
  134    139   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  135    140   
    fn serialize_members(
  136    141   
        &self,
  137    142   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  138    143   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  139    144   
        if let Some(ref val) = self.space_name {
  140    145   
            ser.write_string(&LISTWORKFLOWRUNSINPUT_MEMBER_SPACE_NAME, val)?;
  141    146   
        }
  142    147   
        if let Some(ref val) = self.workflow_id {
  143    148   
            ser.write_string(&LISTWORKFLOWRUNSINPUT_MEMBER_WORKFLOW_ID, val)?;
  144    149   
        }
  145    150   
        if let Some(ref val) = self.project_name {
  146    151   
            ser.write_string(&LISTWORKFLOWRUNSINPUT_MEMBER_PROJECT_NAME, val)?;
  147    152   
        }
  148    153   
        if let Some(ref val) = self.next_token {
  149    154   
            ser.write_string(&LISTWORKFLOWRUNSINPUT_MEMBER_NEXT_TOKEN, val)?;
  150    155   
        }
  151    156   
        if let Some(ref val) = self.max_results {
  152    157   
            ser.write_integer(&LISTWORKFLOWRUNSINPUT_MEMBER_MAX_RESULTS, *val)?;
  153    158   
        }
  154    159   
        if let Some(ref val) = self.sort_by {
  155    160   
            ser.write_list(
  156    161   
                &LISTWORKFLOWRUNSINPUT_MEMBER_SORT_BY,
  157    162   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  158    163   
                    for item in val {
  159    164   
                        ser.write_struct(crate::types::WorkflowRunSortCriteria::SCHEMA, item)?;
  160    165   
                    }
  161    166   
                    Ok(())
  162    167   
                },
  163    168   
            )?;
  164    169   
        }
  165    170   
        Ok(())
  166    171   
    }
  167    172   
}
  168    173   
impl ListWorkflowRunsInput {
  169    174   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  170         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  171         -
        deserializer: &mut D,
         175  +
    pub fn deserialize(
         176  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  172    177   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  173    178   
        #[allow(unused_variables, unused_mut)]
  174    179   
        let mut builder = Self::builder();
  175    180   
        #[allow(
  176    181   
            unused_variables,
  177    182   
            unreachable_code,
  178    183   
            clippy::single_match,
  179    184   
            clippy::match_single_binding,
  180    185   
            clippy::diverging_sub_expression
  181    186   
        )]
  182         -
        deserializer.read_struct(&LISTWORKFLOWRUNSINPUT_SCHEMA, (), |_, member, deser| {
         187  +
        deserializer.read_struct(&LISTWORKFLOWRUNSINPUT_SCHEMA, &mut |member, deser| {
  183    188   
            match member.member_index() {
  184    189   
                Some(0) => {
  185    190   
                    builder.space_name = Some(deser.read_string(member)?);
  186    191   
                }
  187    192   
                Some(1) => {
  188    193   
                    builder.workflow_id = Some(deser.read_string(member)?);
  189    194   
                }
  190    195   
                Some(2) => {
  191    196   
                    builder.project_name = Some(deser.read_string(member)?);
  192    197   
                }
  193    198   
                Some(3) => {
  194    199   
                    builder.next_token = Some(deser.read_string(member)?);
  195    200   
                }
  196    201   
                Some(4) => {
  197    202   
                    builder.max_results = Some(deser.read_integer(member)?);
  198    203   
                }
  199    204   
                Some(5) => {
  200    205   
                    builder.sort_by = Some({
  201         -
                        let container = if let Some(cap) = deser.container_size() {
  202         -
                            Vec::with_capacity(cap)
  203         -
                        } else {
  204         -
                            Vec::new()
  205         -
                        };
  206         -
                        deser.read_list(member, container, |mut list, deser| {
  207         -
                            list.push(crate::types::WorkflowRunSortCriteria::deserialize(deser)?);
  208         -
                            Ok(list)
  209         -
                        })?
         206  +
                        let mut container = Vec::new();
         207  +
                        deser.read_list(member, &mut |deser| {
         208  +
                            container.push(crate::types::WorkflowRunSortCriteria::deserialize(deser)?);
         209  +
                            Ok(())
         210  +
                        })?;
         211  +
                        container
  210    212   
                    });
  211    213   
                }
  212    214   
                _ => {}
  213    215   
            }
  214    216   
            Ok(())
  215    217   
        })?;
         218  +
        builder.space_name = builder.space_name.or(Some(String::new()));
         219  +
        builder.project_name = builder.project_name.or(Some(String::new()));
  216    220   
        builder
  217    221   
            .build()
  218    222   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  219    223   
    }
  220    224   
}
         225  +
impl ListWorkflowRunsInput {
         226  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         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],
         232  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         233  +
        Self::deserialize(deserializer)
         234  +
    }
         235  +
}
  221    236   
impl ListWorkflowRunsInput {
  222    237   
    /// Creates a new builder-style object to manufacture [`ListWorkflowRunsInput`](crate::operation::list_workflow_runs::ListWorkflowRunsInput).
  223    238   
    pub fn builder() -> crate::operation::list_workflow_runs::builders::ListWorkflowRunsInputBuilder {
  224    239   
        crate::operation::list_workflow_runs::builders::ListWorkflowRunsInputBuilder::default()
  225    240   
    }
  226    241   
}
  227    242   
  228    243   
/// A builder for [`ListWorkflowRunsInput`](crate::operation::list_workflow_runs::ListWorkflowRunsInput).
  229    244   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  230    245   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/operation/list_workflows.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 `ListWorkflows`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ListWorkflows;
    6      6   
impl ListWorkflows {
    7      7   
    /// Creates a new `ListWorkflows`
    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::list_workflows::ListWorkflowsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::list_workflows::ListWorkflowsOutput::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::list_workflows::ListWorkflowsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::list_workflows::ListWorkflowsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::list_workflows::ListWorkflowsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -108,112 +276,413 @@
  128    132   
                crate::operation::list_workflows::ListWorkflowsError,
  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 ListWorkflowsResponseDeserializer;
  137    141   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListWorkflowsResponseDeserializer {
  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_list_workflows::de_list_workflows_http_error(status, headers, body)
  150         -
        } else {
  151         -
            crate::protocol_serde::shape_list_workflows::de_list_workflows_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::list_workflows::ListWorkflowsError::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::list_workflows::ListWorkflowsError::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::list_workflows::ListWorkflowsError::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::list_workflows::ListWorkflowsError::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  +
                        }
  152    232   
                    };
  153         -
        crate::protocol_serde::type_erase_result(parse_result)
         233  +
                    tmp.meta = generic;
         234  +
                    tmp
         235  +
                }),
         236  +
                "ServiceQuotaExceededException" => crate::operation::list_workflows::ListWorkflowsError::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::list_workflows::ListWorkflowsError::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::list_workflows::ListWorkflowsError::ValidationException({
         279  +
                    let mut tmp = match protocol
         280  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         281  +
                        .and_then(|mut deser| {
         282  +
                            crate::types::error::ValidationException::deserialize_with_response(
         283  +
                                &mut *deser,
         284  +
                                response.headers(),
         285  +
                                response.status().into(),
         286  +
                                body,
         287  +
                            )
         288  +
                        }) {
         289  +
                        ::std::result::Result::Ok(val) => val,
         290  +
                        ::std::result::Result::Err(e) => {
         291  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         292  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         293  +
                            ))
         294  +
                        }
         295  +
                    };
         296  +
                    tmp.meta = generic;
         297  +
                    tmp
         298  +
                }),
         299  +
                _ => crate::operation::list_workflows::ListWorkflowsError::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, ListWorkflows::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::list_workflows::ListWorkflowsOutput::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 ListWorkflowsRequestSerializer;
  158    327   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListWorkflowsRequestSerializer {
  159    328   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  160    329   
    fn serialize_input(
  161    330   
        &self,
  162    331   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  163    332   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  164    333   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  165    334   
        let input = input
  166    335   
            .downcast::<crate::operation::list_workflows::ListWorkflowsInput>()
  167    336   
            .expect("correct type");
  168         -
        let _header_serialization_settings = _cfg
  169         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  170         -
            .cloned()
  171         -
            .unwrap_or_default();
  172         -
        let mut request_builder = {
  173         -
            #[allow(clippy::uninlined_format_args)]
  174         -
            fn uri_base(
  175         -
                _input: &crate::operation::list_workflows::ListWorkflowsInput,
  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         -
                ::std::write!(
  202         -
                    output,
  203         -
                    "/v1/spaces/{spaceName}/projects/{projectName}/workflows",
  204         -
                    spaceName = space_name,
  205         -
                    projectName = project_name
  206         -
                )
  207         -
                .expect("formatting should succeed");
  208         -
                ::std::result::Result::Ok(())
  209         -
            }
  210         -
            fn uri_query(
  211         -
                _input: &crate::operation::list_workflows::ListWorkflowsInput,
  212         -
                mut output: &mut ::std::string::String,
  213         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  214         -
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  215         -
                if let ::std::option::Option::Some(inner_3) = &_input.next_token {
         337  +
        let protocol = _cfg
         338  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         339  +
            .expect("a SharedClientProtocol is required");
         340  +
        if protocol.supports_http_bindings() {
         341  +
            let mut request = protocol
         342  +
                .serialize_body(&input, ListWorkflows::INPUT_SCHEMA, "", _cfg)
         343  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
  216    344   
            {
  217         -
                        query.push_kv("nextToken", &::aws_smithy_http::query::fmt_string(inner_3));
  218         -
                    }
  219         -
                }
  220         -
                if let ::std::option::Option::Some(inner_4) = &_input.max_results {
  221         -
                    {
  222         -
                        query.push_kv("maxResults", ::aws_smithy_types::primitive::Encoder::from(*inner_4).encode());
  223         -
                    }
         345  +
                let mut uri = "/v1/spaces/{spaceName}/projects/{projectName}/workflows".to_string();
         346  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         347  +
                if let Some(ref val) = input.space_name {
         348  +
                    uri = uri.replace("{spaceName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         349  +
                }
         350  +
                if let Some(ref val) = input.project_name {
         351  +
                    uri = uri.replace("{projectName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         352  +
                }
         353  +
                if let Some(ref val) = input.next_token {
         354  +
                    query_params.push(("nextToken".to_string(), val.to_string()));
         355  +
                }
         356  +
                if let Some(ref val) = input.max_results {
         357  +
                    query_params.push(("maxResults".to_string(), val.to_string()));
         358  +
                }
         359  +
                if !query_params.is_empty() {
         360  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         361  +
                    let pairs: Vec<String> = query_params
         362  +
                        .iter()
         363  +
                        .map(|(k, v)| {
         364  +
                            format!(
         365  +
                                "{}={}",
         366  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         367  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         368  +
                            )
         369  +
                        })
         370  +
                        .collect();
         371  +
                    uri.push_str(&pairs.join("&"));
  224    372   
                }
  225         -
                ::std::result::Result::Ok(())
         373  +
                request.set_uri(uri.as_str()).expect("valid URI");
  226    374   
            }
  227         -
            #[allow(clippy::unnecessary_wraps)]
  228         -
            fn update_http_builder(
  229         -
                input: &crate::operation::list_workflows::ListWorkflowsInput,
  230         -
                builder: ::http_1x::request::Builder,
  231         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  232         -
                let mut uri = ::std::string::String::new();
  233         -
                uri_base(input, &mut uri)?;
  234         -
                uri_query(input, &mut uri)?;
  235         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  236         -
            }
  237         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  238         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  239         -
            builder
  240         -
        };
  241         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_list_workflows::ser_list_workflows_input(&input)?);
  242         -
        if let Some(content_length) = body.content_length() {
  243         -
            let content_length = content_length.to_string();
  244         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
         375  +
         376  +
            return ::std::result::Result::Ok(request);
         377  +
        } else {
         378  +
            let mut request = protocol
         379  +
                .serialize_request(&input, ListWorkflows::INPUT_SCHEMA, "", _cfg)
         380  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         381  +
         382  +
            return ::std::result::Result::Ok(request);
  245    383   
        }
  246         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  247    384   
    }
  248    385   
}
  249    386   
#[derive(Debug)]
  250    387   
struct ListWorkflowsEndpointParamsInterceptor;
  251    388   
  252    389   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListWorkflowsEndpointParamsInterceptor {
  253    390   
    fn name(&self) -> &'static str {
  254    391   
        "ListWorkflowsEndpointParamsInterceptor"
  255    392   
    }
  256    393