Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all "paramater" typos #1996

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions rusoto/core/src/param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
//! Supports optional parameters for calling SQS and ETS.

use std::collections::BTreeMap;
/// Paramaters for HTTP Request stored as a `BTreeMap`
/// Parameters for HTTP Request stored as a `BTreeMap`
pub type Params = BTreeMap<String, Option<String>>;

/// Key:value pair for an service parameter.
pub trait ServiceParams {
/// Add a new paramater with a key and val
/// Add a new parameter with a key and val
///
/// * `key` - The key of the parameter to add.
/// * `val` - The value of the paramater to add.
/// * `val` - The value of the parameter to add.
fn put<T: ToParam>(&mut self, key: &str, val: T);
/// Add a new paramater with a key
/// Add a new parameter with a key
fn put_key(&mut self, key: &str);
}

Expand All @@ -29,9 +29,9 @@ impl ServiceParams for Params {
}
}

/// Trait for implementing type to paramater conversion
/// Trait for implementing type to parameter conversion
pub trait ToParam {
/// Renders this paramater to a String
/// Renders this parameter to a String
fn to_param(&self) -> String;
}

Expand All @@ -55,7 +55,7 @@ impl<'a, T> ToParam for &'a T
where
T: ToParam + ?Sized,
{
/// Converts a generic type to a paramater
/// Converts a generic type to a parameter
fn to_param(&self) -> String {
ToParam::to_param(&**self)
}
Expand All @@ -69,7 +69,7 @@ impl ToParam for str {
}

impl ToParam for String {
/// Converts a String to a paramater
/// Converts a String to a parameter
fn to_param(&self) -> String {
self.clone()
}
Expand Down
2 changes: 1 addition & 1 deletion rusoto/services/ce/src/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ pub struct GetDimensionValuesRequest {
#[serde(rename = "SearchString")]
#[serde(skip_serializing_if = "Option::is_none")]
pub search_string: Option<String>,
/// <p>The value by which you want to sort the data.</p> <p>The key represents cost and usage metrics. The following values are supported:</p> <ul> <li> <p> <code>BlendedCost</code> </p> </li> <li> <p> <code>UnblendedCost</code> </p> </li> <li> <p> <code>AmortizedCost</code> </p> </li> <li> <p> <code>NetAmortizedCost</code> </p> </li> <li> <p> <code>NetUnblendedCost</code> </p> </li> <li> <p> <code>UsageQuantity</code> </p> </li> <li> <p> <code>NormalizedUsageAmount</code> </p> </li> </ul> <p>Supported values for <code>SortOrder</code> are <code>ASCENDING</code> or <code>DESCENDING</code>.</p> <p>When you specify a <code>SortBy</code> paramater, the context must be <code>COST_AND_USAGE</code>. Further, when using <code>SortBy</code>, <code>NextPageToken</code> and <code>SearchString</code> are not supported.</p>
/// <p>The value by which you want to sort the data.</p> <p>The key represents cost and usage metrics. The following values are supported:</p> <ul> <li> <p> <code>BlendedCost</code> </p> </li> <li> <p> <code>UnblendedCost</code> </p> </li> <li> <p> <code>AmortizedCost</code> </p> </li> <li> <p> <code>NetAmortizedCost</code> </p> </li> <li> <p> <code>NetUnblendedCost</code> </p> </li> <li> <p> <code>UsageQuantity</code> </p> </li> <li> <p> <code>NormalizedUsageAmount</code> </p> </li> </ul> <p>Supported values for <code>SortOrder</code> are <code>ASCENDING</code> or <code>DESCENDING</code>.</p> <p>When you specify a <code>SortBy</code> parameter, the context must be <code>COST_AND_USAGE</code>. Further, when using <code>SortBy</code>, <code>NextPageToken</code> and <code>SearchString</code> are not supported.</p>
#[serde(rename = "SortBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_by: Option<Vec<SortDefinition>>,
Expand Down
2 changes: 1 addition & 1 deletion rusoto/services/lightsail/src/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5115,7 +5115,7 @@ pub struct PutAlarmRequest {
/// <p>The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.</p>
#[serde(rename = "comparisonOperator")]
pub comparison_operator: String,
/// <p>The contact protocols to use for the alarm, such as <code>Email</code>, <code>SMS</code> (text messaging), or both.</p> <p>A notification is sent via the specified contact protocol if notifications are enabled for the alarm, and when the alarm is triggered.</p> <p>A notification is not sent if a contact protocol is not specified, if the specified contact protocol is not configured in the AWS Region, or if notifications are not enabled for the alarm using the <code>notificationEnabled</code> paramater.</p> <p>Use the <code>CreateContactMethod</code> action to configure a contact protocol in an AWS Region.</p>
/// <p>The contact protocols to use for the alarm, such as <code>Email</code>, <code>SMS</code> (text messaging), or both.</p> <p>A notification is sent via the specified contact protocol if notifications are enabled for the alarm, and when the alarm is triggered.</p> <p>A notification is not sent if a contact protocol is not specified, if the specified contact protocol is not configured in the AWS Region, or if notifications are not enabled for the alarm using the <code>notificationEnabled</code> parameter.</p> <p>Use the <code>CreateContactMethod</code> action to configure a contact protocol in an AWS Region.</p>
#[serde(rename = "contactProtocols")]
#[serde(skip_serializing_if = "Option::is_none")]
pub contact_protocols: Option<Vec<String>>,
Expand Down
8 changes: 4 additions & 4 deletions rusoto/signature/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub struct SignedRequest {
pub path: String,
/// The HTTP Request Headers
pub headers: BTreeMap<String, Vec<Vec<u8>>>,
/// The HTTP request paramaters
/// The HTTP request parameters
pub params: Params,
/// The HTTP/HTTPS protocol
pub scheme: Option<String>,
Expand Down Expand Up @@ -185,7 +185,7 @@ impl SignedRequest {

/// Returns the current query string
///
/// Converts a paramater such as "example param": "examplekey" into "&example+param=examplekey"
/// Converts a parameter such as "example param": "examplekey" into "&example+param=examplekey"
pub fn canonical_query_string(&self) -> &str {
&self.canonical_query_string
}
Expand Down Expand Up @@ -267,7 +267,7 @@ impl SignedRequest {
self.params.insert(key.into(), Some(value.into()));
}

/// Sets paramaters with a given variable of `Params` type
/// Sets parameters with a given variable of `Params` type
pub fn set_params(&mut self, params: Params) {
self.params = params;
}
Expand Down Expand Up @@ -695,7 +695,7 @@ fn canonical_uri(path: &str, region: &Region) -> String {
}
}

/// Canonicalizes query while iterating through the given paramaters
/// Canonicalizes query while iterating through the given parameters
///
/// Read more about it: [HERE](http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html#query-string-auth-v4-signing)
fn build_canonical_query_string(params: &Params) -> String {
Expand Down