#[non_exhaustive]pub struct NodeGroupMaintenanceWindow {
pub maintenance_duration: Option<Duration>,
pub start_time: Option<String>,
/* private fields */
}Available on crate feature
node-groups only.Expand description
Time window specified for daily maintenance operations. GCE’s internal maintenance will be performed within this window.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.maintenance_duration: Option<Duration>Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
start_time: Option<String>Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
Implementations§
Source§impl NodeGroupMaintenanceWindow
impl NodeGroupMaintenanceWindow
pub fn new() -> Self
Sourcepub fn set_maintenance_duration<T>(self, v: T) -> Self
pub fn set_maintenance_duration<T>(self, v: T) -> Self
Sets the value of maintenance_duration.
§Example
ⓘ
use google_cloud_compute_v1::model::Duration;
let x = NodeGroupMaintenanceWindow::new().set_maintenance_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_maintenance_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_maintenance_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of maintenance_duration.
§Example
ⓘ
use google_cloud_compute_v1::model::Duration;
let x = NodeGroupMaintenanceWindow::new().set_or_clear_maintenance_duration(Some(Duration::default()/* use setters */));
let x = NodeGroupMaintenanceWindow::new().set_or_clear_maintenance_duration(None::<Duration>);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
ⓘ
let x = NodeGroupMaintenanceWindow::new().set_start_time("example");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
ⓘ
let x = NodeGroupMaintenanceWindow::new().set_or_clear_start_time(Some("example"));
let x = NodeGroupMaintenanceWindow::new().set_or_clear_start_time(None::<String>);Trait Implementations§
Source§impl Clone for NodeGroupMaintenanceWindow
impl Clone for NodeGroupMaintenanceWindow
Source§fn clone(&self) -> NodeGroupMaintenanceWindow
fn clone(&self) -> NodeGroupMaintenanceWindow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeGroupMaintenanceWindow
impl Debug for NodeGroupMaintenanceWindow
Source§impl Default for NodeGroupMaintenanceWindow
impl Default for NodeGroupMaintenanceWindow
Source§fn default() -> NodeGroupMaintenanceWindow
fn default() -> NodeGroupMaintenanceWindow
Returns the “default value” for a type. Read more
Source§impl Message for NodeGroupMaintenanceWindow
impl Message for NodeGroupMaintenanceWindow
impl StructuralPartialEq for NodeGroupMaintenanceWindow
Auto Trait Implementations§
impl Freeze for NodeGroupMaintenanceWindow
impl RefUnwindSafe for NodeGroupMaintenanceWindow
impl Send for NodeGroupMaintenanceWindow
impl Sync for NodeGroupMaintenanceWindow
impl Unpin for NodeGroupMaintenanceWindow
impl UnwindSafe for NodeGroupMaintenanceWindow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more