1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateUsage`](crate::operation::update_usage::builders::UpdateUsageFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`usage_plan_id(impl Into<String>)`](crate::operation::update_usage::builders::UpdateUsageFluentBuilder::usage_plan_id) / [`set_usage_plan_id(Option<String>)`](crate::operation::update_usage::builders::UpdateUsageFluentBuilder::set_usage_plan_id):<br>required: **true**<br><p>The Id of the usage plan associated with the usage data.</p><br>
    ///   - [`key_id(impl Into<String>)`](crate::operation::update_usage::builders::UpdateUsageFluentBuilder::key_id) / [`set_key_id(Option<String>)`](crate::operation::update_usage::builders::UpdateUsageFluentBuilder::set_key_id):<br>required: **true**<br><p>The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.</p><br>
    ///   - [`patch_operations(PatchOperation)`](crate::operation::update_usage::builders::UpdateUsageFluentBuilder::patch_operations) / [`set_patch_operations(Option<Vec::<PatchOperation>>)`](crate::operation::update_usage::builders::UpdateUsageFluentBuilder::set_patch_operations):<br>required: **false**<br><p>For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch Operations</a>.</p><br>
    /// - On success, responds with [`UpdateUsageOutput`](crate::operation::update_usage::UpdateUsageOutput) with field(s):
    ///   - [`usage_plan_id(Option<String>)`](crate::operation::update_usage::UpdateUsageOutput::usage_plan_id): <p>The plan Id associated with this usage data.</p>
    ///   - [`start_date(Option<String>)`](crate::operation::update_usage::UpdateUsageOutput::start_date): <p>The starting date of the usage data.</p>
    ///   - [`end_date(Option<String>)`](crate::operation::update_usage::UpdateUsageOutput::end_date): <p>The ending date of the usage data.</p>
    ///   - [`items(Option<HashMap::<String, Vec::<Vec::<i64>>>>)`](crate::operation::update_usage::UpdateUsageOutput::items): <p>The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, <code>{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}</code>, where <code>{api_key}</code> stands for an API key value and the daily log entry is of the format <code>[used quota, remaining quota]</code>.</p>
    ///   - [`position(Option<String>)`](crate::operation::update_usage::UpdateUsageOutput::position): <p>The current pagination position in the paged result set.</p>
    /// - On failure, responds with [`SdkError<UpdateUsageError>`](crate::operation::update_usage::UpdateUsageError)
    pub fn update_usage(&self) -> crate::operation::update_usage::builders::UpdateUsageFluentBuilder {
        crate::operation::update_usage::builders::UpdateUsageFluentBuilder::new(self.handle.clone())
    }
}