#[non_exhaustive]pub struct MaintenanceSummary {
pub maintenance_name: String,
pub title: String,
pub description: String,
pub category: MaintenanceCategory,
pub maintenance_scheduled_start_time: Option<Timestamp>,
pub maintenance_scheduled_end_time: Option<Timestamp>,
pub maintenance_start_time: Option<Timestamp>,
pub maintenance_end_time: Option<Timestamp>,
pub user_controllable: bool,
pub controls: Vec<MaintenanceControl>,
pub stats: Vec<Stats>,
/* private fields */
}Expand description
MaintenanceSummary contains maintenance statistics calculated based on ResourceMaintenances within the scope: project and location.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.maintenance_name: StringOutput only. The name of the maintenance.
title: StringOutput only. The title of the maintenance.
description: StringOutput only. The description of the maintenance.
category: MaintenanceCategoryOutput only. The category of the maintenance event.
maintenance_scheduled_start_time: Option<Timestamp>Output only. Scheduled start time of the maintenance. The maintenance will
start at maintenanceScheduledStartTime or later, with best effort to
finish before maintenanceScheduledEndTime.
maintenance_scheduled_end_time: Option<Timestamp>Output only. An estimated (best effort, not guaranteed) end time of the scheduled maintenance.
maintenance_start_time: Option<Timestamp>Output only. Actual date when the maintenance started. Field present only
after the state changed to RUNNING.
maintenance_end_time: Option<Timestamp>Output only. Actual date when the maintenance successfully completed. Field
present only after the state changed to SUCCEEDED.
user_controllable: boolOutput only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field).
controls: Vec<MaintenanceControl>Output only. Control available for that Maintenance (might not be available for every resource that maintenance is applied to).
stats: Vec<Stats>Output only. Stats is a field of ResourceMaintenance used to aggregate the stats.
Implementations§
Source§impl MaintenanceSummary
impl MaintenanceSummary
pub fn new() -> Self
Sourcepub fn set_maintenance_name<T: Into<String>>(self, v: T) -> Self
pub fn set_maintenance_name<T: Into<String>>(self, v: T) -> Self
Sets the value of maintenance_name.
§Example
let x = MaintenanceSummary::new().set_maintenance_name("example");Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
let x = MaintenanceSummary::new().set_description("example");Sourcepub fn set_category<T: Into<MaintenanceCategory>>(self, v: T) -> Self
pub fn set_category<T: Into<MaintenanceCategory>>(self, v: T) -> Self
Sourcepub fn set_maintenance_scheduled_start_time<T>(self, v: T) -> Self
pub fn set_maintenance_scheduled_start_time<T>(self, v: T) -> Self
Sets the value of maintenance_scheduled_start_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_maintenance_scheduled_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_maintenance_scheduled_start_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_maintenance_scheduled_start_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of maintenance_scheduled_start_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_or_clear_maintenance_scheduled_start_time(Some(Timestamp::default()/* use setters */));
let x = MaintenanceSummary::new().set_or_clear_maintenance_scheduled_start_time(None::<Timestamp>);Sourcepub fn set_maintenance_scheduled_end_time<T>(self, v: T) -> Self
pub fn set_maintenance_scheduled_end_time<T>(self, v: T) -> Self
Sets the value of maintenance_scheduled_end_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_maintenance_scheduled_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_maintenance_scheduled_end_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_maintenance_scheduled_end_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of maintenance_scheduled_end_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_or_clear_maintenance_scheduled_end_time(Some(Timestamp::default()/* use setters */));
let x = MaintenanceSummary::new().set_or_clear_maintenance_scheduled_end_time(None::<Timestamp>);Sourcepub fn set_maintenance_start_time<T>(self, v: T) -> Self
pub fn set_maintenance_start_time<T>(self, v: T) -> Self
Sets the value of maintenance_start_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_maintenance_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_maintenance_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_maintenance_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of maintenance_start_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_or_clear_maintenance_start_time(Some(Timestamp::default()/* use setters */));
let x = MaintenanceSummary::new().set_or_clear_maintenance_start_time(None::<Timestamp>);Sourcepub fn set_maintenance_end_time<T>(self, v: T) -> Self
pub fn set_maintenance_end_time<T>(self, v: T) -> Self
Sets the value of maintenance_end_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_maintenance_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_maintenance_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_maintenance_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of maintenance_end_time.
§Example
use wkt::Timestamp;
let x = MaintenanceSummary::new().set_or_clear_maintenance_end_time(Some(Timestamp::default()/* use setters */));
let x = MaintenanceSummary::new().set_or_clear_maintenance_end_time(None::<Timestamp>);Sourcepub fn set_user_controllable<T: Into<bool>>(self, v: T) -> Self
pub fn set_user_controllable<T: Into<bool>>(self, v: T) -> Self
Sets the value of user_controllable.
§Example
let x = MaintenanceSummary::new().set_user_controllable(true);Sourcepub fn set_controls<T, V>(self, v: T) -> Self
pub fn set_controls<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for MaintenanceSummary
impl Clone for MaintenanceSummary
Source§fn clone(&self) -> MaintenanceSummary
fn clone(&self) -> MaintenanceSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more