Skip to content

Commit 7f230e0

Browse files
Revert "feat: Updates models to match latest, including endpoint resolver (#3262)" (#3288)
This reverts commit 884b27f.
1 parent c70cb13 commit 7f230e0

File tree

159 files changed

+1895
-5770
lines changed

Some content is hidden

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

159 files changed

+1895
-5770
lines changed

Cargo.lock

Lines changed: 38 additions & 22 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: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[package]
1313
edition = "2021"
1414
name = "amzn-codewhisperer-client"
15-
version = "0.1.12082"
15+
version = "0.1.11582"
1616
authors = ["Grant Gurvis <[email protected]>"]
1717
build = false
1818
exclude = [
@@ -34,16 +34,14 @@ all-features = true
3434
targets = ["x86_64-unknown-linux-gnu"]
3535

3636
[package.metadata.smithy]
37-
codegen-version = "bf61672f530d9d291fbcdc7a8e983f2e18842d1d"
37+
codegen-version = "unknown"
3838

3939
[features]
4040
behavior-version-latest = []
4141
default = [
4242
"rustls",
43-
"default-https-client",
4443
"rt-tokio",
4544
]
46-
default-https-client = ["aws-smithy-runtime/default-https-client"]
4745
gated-tests = []
4846
rt-tokio = [
4947
"aws-smithy-async/rt-tokio",
@@ -57,40 +55,40 @@ name = "amzn_codewhisperer_client"
5755
path = "src/lib.rs"
5856

5957
[dependencies.aws-credential-types]
60-
version = "1.2.6"
58+
version = "1.2.1"
6159

6260
[dependencies.aws-runtime]
63-
version = "1.5.10"
61+
version = "1.5.5"
6462

6563
[dependencies.aws-smithy-async]
66-
version = "1.2.5"
64+
version = "1.2.4"
6765

6866
[dependencies.aws-smithy-http]
69-
version = "0.62.3"
67+
version = "0.60.12"
7068

7169
[dependencies.aws-smithy-json]
72-
version = "0.61.5"
70+
version = "0.61.2"
7371

7472
[dependencies.aws-smithy-runtime]
75-
version = "1.9.2"
73+
version = "1.7.8"
7674
features = [
7775
"client",
7876
"http-auth",
7977
]
8078

8179
[dependencies.aws-smithy-runtime-api]
82-
version = "1.9.0"
80+
version = "1.7.3"
8381
features = [
8482
"client",
8583
"http-02x",
8684
"http-auth",
8785
]
8886

8987
[dependencies.aws-smithy-types]
90-
version = "1.3.2"
88+
version = "1.2.13"
9189

9290
[dependencies.aws-types]
93-
version = "1.3.8"
91+
version = "1.3.5"
9492

9593
[dependencies.bytes]
9694
version = "1.4.0"
@@ -105,5 +103,5 @@ version = "0.2.9"
105103
version = "0.1"
106104

107105
[dev-dependencies.aws-credential-types]
108-
version = "1.2.6"
106+
version = "1.2.1"
109107
features = ["test-util"]
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
use std::borrow::Cow;
6+
7+
use aws_smithy_runtime_api::client::auth::AuthSchemeId;
8+
use aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolver;
9+
use aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
10+
use aws_smithy_runtime_api::client::runtime_plugin::{
11+
Order,
12+
RuntimePlugin,
13+
};
14+
15+
#[derive(Debug)]
16+
pub(crate) struct DefaultAuthOptionsPlugin {
17+
runtime_components: RuntimeComponentsBuilder,
18+
}
19+
20+
impl DefaultAuthOptionsPlugin {
21+
pub(crate) fn new(auth_schemes: Vec<AuthSchemeId>) -> Self {
22+
let runtime_components = RuntimeComponentsBuilder::new("default_auth_options")
23+
.with_auth_scheme_option_resolver(Some(StaticAuthSchemeOptionResolver::new(auth_schemes)));
24+
Self { runtime_components }
25+
}
26+
}
27+
28+
impl RuntimePlugin for DefaultAuthOptionsPlugin {
29+
fn order(&self) -> Order {
30+
Order::Defaults
31+
}
32+
33+
fn runtime_components(&self, _current_components: &RuntimeComponentsBuilder) -> Cow<'_, RuntimeComponentsBuilder> {
34+
Cow::Borrowed(&self.runtime_components)
35+
}
36+
}

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

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,7 @@ pub(crate) struct Handle {
1010
///
1111
/// Client for invoking operations on Amazon CodeWhisperer. Each operation on Amazon CodeWhisperer
1212
/// is a method on this this struct. `.send()` MUST be invoked on the generated operations to
13-
/// dispatch the request to the service. # Using the `Client`
14-
///
15-
/// A client has a function for every operation that can be performed by the service.
16-
/// For example, the [`CreateArtifactUploadUrl`](crate::operation::create_artifact_upload_url)
17-
/// operation has a [`Client::create_artifact_upload_url`], function which returns a builder for
18-
/// that operation. The fluent builder ultimately has a `send()` function that returns an async
19-
/// future that returns a result, as illustrated below:
20-
///
21-
/// ```rust,ignore
22-
/// let result = client.create_artifact_upload_url()
23-
/// .content_md5("example")
24-
/// .send()
25-
/// .await;
26-
/// ```
27-
///
28-
/// The underlying HTTP requests that get made by this can be modified with the
29-
/// `customize_operation` function on the fluent builder. See the
30-
/// [`customize`](crate::client::customize) module for more information.
13+
/// dispatch the request to the service.
3114
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
3215
pub struct Client {
3316
handle: ::std::sync::Arc<Handle>,
@@ -106,30 +89,6 @@ mod create_user_memory_entry;
10689
mod create_workspace;
10790

10891
/// Operation customization and supporting types.
109-
///
110-
/// The underlying HTTP requests made during an operation can be customized
111-
/// by calling the `customize()` method on the builder returned from a client
112-
/// operation call. For example, this can be used to add an additional HTTP header:
113-
///
114-
/// ```ignore
115-
/// # async fn wrapper() -> ::std::result::Result<(), amzn_codewhisperer_client::Error> {
116-
/// # let client: amzn_codewhisperer_client::Client = unimplemented!();
117-
/// use ::http::header::{HeaderName, HeaderValue};
118-
///
119-
/// let result = client.create_artifact_upload_url()
120-
/// .customize()
121-
/// .mutate_request(|req| {
122-
/// // Add `x-example-header` with value
123-
/// req.headers_mut()
124-
/// .insert(
125-
/// HeaderName::from_static("x-example-header"),
126-
/// HeaderValue::from_static("1"),
127-
/// );
128-
/// })
129-
/// .send()
130-
/// .await;
131-
/// # }
132-
/// ```
13392
pub mod customize;
13493

13594
mod delete_task_assist_conversation;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ impl super::Client {
99
/// - [`status_only(bool)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::status_only) / [`set_status_only(Option<bool>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_status_only):<br>required: **false**<br>(undocumented)<br>
1010
/// - [`provider(SubscriptionProvider)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::provider) / [`set_provider(Option<SubscriptionProvider>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_provider):<br>required: **false**<br>(undocumented)<br>
1111
/// - [`subscription_type(SubscriptionType)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::subscription_type) / [`set_subscription_type(Option<SubscriptionType>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_subscription_type):<br>required: **false**<br>(undocumented)<br>
12-
/// - [`success_url(impl Into<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::success_url) / [`set_success_url(Option<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_success_url):<br>required: **false**<br>(undocumented)<br>
13-
/// - [`cancel_url(impl Into<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::cancel_url) / [`set_cancel_url(Option<String>)`](crate::operation::create_subscription_token::builders::CreateSubscriptionTokenFluentBuilder::set_cancel_url):<br>required: **false**<br>(undocumented)<br>
1412
/// - On success, responds with
1513
/// [`CreateSubscriptionTokenOutput`](crate::operation::create_subscription_token::CreateSubscriptionTokenOutput)
1614
/// with field(s):

0 commit comments

Comments
 (0)