#[non_exhaustive]pub struct BlueGreenInfo {
pub phase: Phase,
pub blue_instance_group_urls: Vec<String>,
pub green_instance_group_urls: Vec<String>,
pub blue_pool_deletion_start_time: String,
pub green_pool_version: String,
/* private fields */
}Expand description
Information relevant to blue-green upgrade.
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.phase: PhaseCurrent blue-green upgrade phase.
blue_instance_group_urls: Vec<String>The resource URLs of the [managed instance groups] (/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with blue pool.
green_instance_group_urls: Vec<String>The resource URLs of the [managed instance groups] (/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with green pool.
blue_pool_deletion_start_time: StringTime to start deleting blue pool to complete blue-green upgrade, in RFC3339 text format.
green_pool_version: StringVersion of green pool.
Implementations§
Source§impl BlueGreenInfo
impl BlueGreenInfo
pub fn new() -> Self
Sourcepub fn set_phase<T: Into<Phase>>(self, v: T) -> Self
pub fn set_phase<T: Into<Phase>>(self, v: T) -> Self
Sets the value of phase.
§Example
ⓘ
use google_cloud_container_v1::model::node_pool::update_info::blue_green_info::Phase;
let x0 = BlueGreenInfo::new().set_phase(Phase::UpdateStarted);
let x1 = BlueGreenInfo::new().set_phase(Phase::CreatingGreenPool);
let x2 = BlueGreenInfo::new().set_phase(Phase::CordoningBluePool);Sourcepub fn set_blue_instance_group_urls<T, V>(self, v: T) -> Self
pub fn set_blue_instance_group_urls<T, V>(self, v: T) -> Self
Sets the value of blue_instance_group_urls.
§Example
ⓘ
let x = BlueGreenInfo::new().set_blue_instance_group_urls(["a", "b", "c"]);Sourcepub fn set_green_instance_group_urls<T, V>(self, v: T) -> Self
pub fn set_green_instance_group_urls<T, V>(self, v: T) -> Self
Sets the value of green_instance_group_urls.
§Example
ⓘ
let x = BlueGreenInfo::new().set_green_instance_group_urls(["a", "b", "c"]);Sourcepub fn set_blue_pool_deletion_start_time<T: Into<String>>(self, v: T) -> Self
pub fn set_blue_pool_deletion_start_time<T: Into<String>>(self, v: T) -> Self
Sets the value of blue_pool_deletion_start_time.
§Example
ⓘ
let x = BlueGreenInfo::new().set_blue_pool_deletion_start_time("example");Sourcepub fn set_green_pool_version<T: Into<String>>(self, v: T) -> Self
pub fn set_green_pool_version<T: Into<String>>(self, v: T) -> Self
Sets the value of green_pool_version.
§Example
ⓘ
let x = BlueGreenInfo::new().set_green_pool_version("example");Trait Implementations§
Source§impl Clone for BlueGreenInfo
impl Clone for BlueGreenInfo
Source§fn clone(&self) -> BlueGreenInfo
fn clone(&self) -> BlueGreenInfo
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 BlueGreenInfo
impl Debug for BlueGreenInfo
Source§impl Default for BlueGreenInfo
impl Default for BlueGreenInfo
Source§fn default() -> BlueGreenInfo
fn default() -> BlueGreenInfo
Returns the “default value” for a type. Read more
Source§impl Message for BlueGreenInfo
impl Message for BlueGreenInfo
Source§impl PartialEq for BlueGreenInfo
impl PartialEq for BlueGreenInfo
impl StructuralPartialEq for BlueGreenInfo
Auto Trait Implementations§
impl Freeze for BlueGreenInfo
impl RefUnwindSafe for BlueGreenInfo
impl Send for BlueGreenInfo
impl Sync for BlueGreenInfo
impl Unpin for BlueGreenInfo
impl UnwindSafe for BlueGreenInfo
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