Skip to content

Commit 659cf3c

Browse files
authored
fix: Update amzn clients (#588)
1 parent b6ccb62 commit 659cf3c

File tree

245 files changed

+6202
-6194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+6202
-6194
lines changed

Cargo.lock

Lines changed: 26 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/amzn-codewhisperer-client/Cargo.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
[package]
1313
edition = "2021"
1414
name = "amzn-codewhisperer-client"
15-
version = "0.1.4521"
15+
version = "0.1.6007"
1616
authors = ["Grant Gurvis <[email protected]>"]
1717
build = false
1818
exclude = [
1919
"/build",
2020
"/Config",
2121
"/build-tools/",
2222
]
23+
publish = ["brazil"]
24+
autolib = false
2325
autobins = false
2426
autoexamples = false
2527
autotests = false
@@ -42,16 +44,16 @@ path = "src/lib.rs"
4244
version = "1.2.1"
4345

4446
[dependencies.aws-runtime]
45-
version = "1.4.4"
47+
version = "1.4.3"
4648

4749
[dependencies.aws-smithy-async]
48-
version = "1.2.2"
50+
version = "1.2.1"
4951

5052
[dependencies.aws-smithy-http]
5153
version = "0.60.11"
5254

5355
[dependencies.aws-smithy-json]
54-
version = "0.61.1"
56+
version = "0.60.7"
5557

5658
[dependencies.aws-smithy-runtime]
5759
version = "1.7.1"
@@ -69,7 +71,7 @@ features = [
6971
]
7072

7173
[dependencies.aws-smithy-types]
72-
version = "1.2.10"
74+
version = "1.2.7"
7375

7476
[dependencies.aws-types]
7577
version = "1.3.3"

crates/amzn-codewhisperer-client/src/config.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,7 @@ impl Builder {
11201120
/// # Examples
11211121
///
11221122
/// Set the behavior major version to `latest`. This is equivalent to enabling the
1123-
/// `behavior-version-latest` cargo feature.
1124-
/// ```no_run
1123+
/// `behavior-version-latest` cargo feature. ```no_run
11251124
/// use amzn_codewhisperer_client::config::BehaviorVersion;
11261125
///
11271126
/// let config = amzn_codewhisperer_client::Config::builder()
@@ -1130,7 +1129,7 @@ impl Builder {
11301129
/// .build();
11311130
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
11321131
/// ```
1133-
///
1132+
///
11341133
/// Customizing behavior major version:
11351134
/// ```no_run
11361135
/// use amzn_codewhisperer_client::config::BehaviorVersion;
@@ -1156,8 +1155,7 @@ impl Builder {
11561155
/// # Examples
11571156
///
11581157
/// Set the behavior major version to `latest`. This is equivalent to enabling the
1159-
/// `behavior-version-latest` cargo feature.
1160-
/// ```no_run
1158+
/// `behavior-version-latest` cargo feature. ```no_run
11611159
/// use amzn_codewhisperer_client::config::BehaviorVersion;
11621160
///
11631161
/// let config = amzn_codewhisperer_client::Config::builder()
@@ -1166,7 +1164,7 @@ impl Builder {
11661164
/// .build();
11671165
/// let client = amzn_codewhisperer_client::Client::from_conf(config);
11681166
/// ```
1169-
///
1167+
///
11701168
/// Customizing behavior major version:
11711169
/// ```no_run
11721170
/// use amzn_codewhisperer_client::config::BehaviorVersion;

crates/amzn-codewhisperer-client/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(deprecated)]
22
#![allow(unknown_lints)]
3-
#![allow(clippy::style)]
43
#![allow(clippy::module_inception)]
54
#![allow(clippy::upper_case_acronyms)]
65
#![allow(clippy::large_enum_variant)]

crates/amzn-codewhisperer-client/src/protocol_serde.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ pub(crate) mod shape_customization;
207207

208208
pub(crate) mod shape_doc_generation_event;
209209

210+
pub(crate) mod shape_doc_v2_acceptance_event;
211+
212+
pub(crate) mod shape_doc_v2_generation_event;
213+
210214
pub(crate) mod shape_documentation_intent_context;
211215

212216
pub(crate) mod shape_feature_dev_code_acceptance_event;
@@ -221,6 +225,8 @@ pub(crate) mod shape_inline_chat_event;
221225

222226
pub(crate) mod shape_metric_data;
223227

228+
pub(crate) mod shape_package_info_list;
229+
224230
pub(crate) mod shape_position;
225231

226232
pub(crate) mod shape_references;
@@ -251,6 +257,8 @@ pub(crate) mod shape_feature_value;
251257

252258
pub(crate) mod shape_imports;
253259

260+
pub(crate) mod shape_package_info;
261+
254262
pub(crate) mod shape_reference;
255263

256264
pub(crate) mod shape_transformation_platform_config;
@@ -273,10 +281,14 @@ pub(crate) mod shape_span;
273281

274282
pub(crate) mod shape_supplementary_web_link;
275283

284+
pub(crate) mod shape_target_file_info_list;
285+
276286
pub(crate) mod shape_transformation_source_code_artifact_descriptor;
277287

278288
pub(crate) mod shape_user_input_message_context;
279289

290+
pub(crate) mod shape_additional_content_entry;
291+
280292
pub(crate) mod shape_app_studio_state;
281293

282294
pub(crate) mod shape_console_state;
@@ -291,6 +303,12 @@ pub(crate) mod shape_git_state;
291303

292304
pub(crate) mod shape_shell_state;
293305

306+
pub(crate) mod shape_target_file_info;
307+
308+
pub(crate) mod shape_tool;
309+
310+
pub(crate) mod shape_tool_result;
311+
294312
pub(crate) mod shape_transformation_progress_update;
295313

296314
pub(crate) mod shape_user_settings;
@@ -309,10 +327,16 @@ pub(crate) mod shape_text_document;
309327

310328
pub(crate) mod shape_text_document_diagnostic;
311329

330+
pub(crate) mod shape_tool_result_content_block;
331+
332+
pub(crate) mod shape_tool_specification;
333+
312334
pub(crate) mod shape_transformation_download_artifacts;
313335

314336
pub(crate) mod shape_transformation_languages;
315337

316338
pub(crate) mod shape_document_symbol;
317339

340+
pub(crate) mod shape_tool_input_schema;
341+
318342
pub(crate) mod shape_transformation_download_artifact;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub fn ser_additional_content_entry(
3+
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4+
input: &crate::types::AdditionalContentEntry,
5+
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6+
{
7+
object.key("name").string(input.name.as_str());
8+
}
9+
{
10+
object.key("description").string(input.description.as_str());
11+
}
12+
if let Some(var_1) = &input.inner_context {
13+
object.key("innerContext").string(var_1.as_str());
14+
}
15+
Ok(())
16+
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_code_coverage_event.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,17 @@ pub fn ser_code_coverage_event(
5050
::aws_smithy_types::Number::NegInt((input.total_new_code_line_count).into()),
5151
);
5252
}
53+
if input.user_written_code_character_count != 0 {
54+
object.key("userWrittenCodeCharacterCount").number(
55+
#[allow(clippy::useless_conversion)]
56+
::aws_smithy_types::Number::NegInt((input.user_written_code_character_count).into()),
57+
);
58+
}
59+
if input.user_written_code_line_count != 0 {
60+
object.key("userWrittenCodeLineCount").number(
61+
#[allow(clippy::useless_conversion)]
62+
::aws_smithy_types::Number::NegInt((input.user_written_code_line_count).into()),
63+
);
64+
}
5365
Ok(())
5466
}

0 commit comments

Comments
 (0)