#[non_exhaustive]pub struct UpgradeInfoEvent {
pub resource_type: UpgradeResourceType,
pub operation: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub current_version: String,
pub target_version: String,
pub resource: String,
pub state: State,
pub standard_support_end_time: Option<Timestamp>,
pub extended_support_end_time: Option<Timestamp>,
pub description: String,
pub event_type: EventType,
/* private fields */
}Expand description
UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.
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.resource_type: UpgradeResourceTypeThe resource type associated with the upgrade.
operation: StringThe operation associated with this upgrade.
start_time: Option<Timestamp>The time when the operation was started.
end_time: Option<Timestamp>The time when the operation ended.
current_version: StringThe current version before the upgrade.
target_version: StringThe target version for the upgrade.
resource: StringOptional relative path to the resource. For example in node pool upgrades, the relative path of the node pool.
state: StateOutput only. The state of the upgrade.
standard_support_end_time: Option<Timestamp>The end of standard support timestamp.
extended_support_end_time: Option<Timestamp>The end of extended support timestamp.
description: StringA brief description of the event.
event_type: EventTypeThe type of the event.
Implementations§
Source§impl UpgradeInfoEvent
impl UpgradeInfoEvent
pub fn new() -> Self
Sourcepub fn set_resource_type<T: Into<UpgradeResourceType>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<UpgradeResourceType>>(self, v: T) -> Self
Sets the value of resource_type.
§Example
use google_cloud_container_v1::model::UpgradeResourceType;
let x0 = UpgradeInfoEvent::new().set_resource_type(UpgradeResourceType::Master);
let x1 = UpgradeInfoEvent::new().set_resource_type(UpgradeResourceType::NodePool);Sourcepub fn set_operation<T: Into<String>>(self, v: T) -> Self
pub fn set_operation<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = UpgradeInfoEvent::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = UpgradeInfoEvent::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = UpgradeInfoEvent::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_current_version<T: Into<String>>(self, v: T) -> Self
pub fn set_current_version<T: Into<String>>(self, v: T) -> Self
Sets the value of current_version.
§Example
let x = UpgradeInfoEvent::new().set_current_version("example");Sourcepub fn set_target_version<T: Into<String>>(self, v: T) -> Self
pub fn set_target_version<T: Into<String>>(self, v: T) -> Self
Sets the value of target_version.
§Example
let x = UpgradeInfoEvent::new().set_target_version("example");Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_standard_support_end_time<T>(self, v: T) -> Self
pub fn set_standard_support_end_time<T>(self, v: T) -> Self
Sets the value of standard_support_end_time.
§Example
use wkt::Timestamp;
let x = UpgradeInfoEvent::new().set_standard_support_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_standard_support_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_standard_support_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of standard_support_end_time.
§Example
use wkt::Timestamp;
let x = UpgradeInfoEvent::new().set_or_clear_standard_support_end_time(Some(Timestamp::default()/* use setters */));
let x = UpgradeInfoEvent::new().set_or_clear_standard_support_end_time(None::<Timestamp>);Sourcepub fn set_extended_support_end_time<T>(self, v: T) -> Self
pub fn set_extended_support_end_time<T>(self, v: T) -> Self
Sets the value of extended_support_end_time.
§Example
use wkt::Timestamp;
let x = UpgradeInfoEvent::new().set_extended_support_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_extended_support_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_extended_support_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of extended_support_end_time.
§Example
use wkt::Timestamp;
let x = UpgradeInfoEvent::new().set_or_clear_extended_support_end_time(Some(Timestamp::default()/* use setters */));
let x = UpgradeInfoEvent::new().set_or_clear_extended_support_end_time(None::<Timestamp>);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 = UpgradeInfoEvent::new().set_description("example");Sourcepub fn set_event_type<T: Into<EventType>>(self, v: T) -> Self
pub fn set_event_type<T: Into<EventType>>(self, v: T) -> Self
Sets the value of event_type.
§Example
use google_cloud_container_v1::model::upgrade_info_event::EventType;
let x0 = UpgradeInfoEvent::new().set_event_type(EventType::EndOfSupport);
let x1 = UpgradeInfoEvent::new().set_event_type(EventType::CosMilestoneVersionUpdate);
let x2 = UpgradeInfoEvent::new().set_event_type(EventType::UpgradeLifecycle);Trait Implementations§
Source§impl Clone for UpgradeInfoEvent
impl Clone for UpgradeInfoEvent
Source§fn clone(&self) -> UpgradeInfoEvent
fn clone(&self) -> UpgradeInfoEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more