#[non_exhaustive]pub struct ManagementCluster {
pub cluster_id: String,
pub node_type_configs: HashMap<String, NodeTypeConfig>,
pub stretched_cluster_config: Option<StretchedClusterConfig>,
/* private fields */
}Expand description
Management cluster configuration.
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.cluster_id: StringRequired. The user-provided identifier of the new Cluster.
The identifier must meet the following requirements:
- Only contains 1-63 alphanumeric characters and hyphens
- Begins with an alphabetical character
- Ends with a non-hyphen character
- Not formatted as a UUID
- Complies with RFC 1034 (section 3.5)
node_type_configs: HashMap<String, NodeTypeConfig>Required. The map of cluster node types in this cluster, where the key is
canonical identifier of the node type (corresponds to the NodeType).
stretched_cluster_config: Option<StretchedClusterConfig>Optional. Configuration of a stretched cluster. Required for STRETCHED private clouds.
Implementations§
Source§impl ManagementCluster
impl ManagementCluster
pub fn new() -> Self
Sourcepub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_node_type_configs<T, K, V>(self, v: T) -> Self
pub fn set_node_type_configs<T, K, V>(self, v: T) -> Self
Sets the value of node_type_configs.
§Example
ⓘ
use google_cloud_vmwareengine_v1::model::NodeTypeConfig;
let x = ManagementCluster::new().set_node_type_configs([
("key0", NodeTypeConfig::default()/* use setters */),
("key1", NodeTypeConfig::default()/* use (different) setters */),
]);Sourcepub fn set_stretched_cluster_config<T>(self, v: T) -> Selfwhere
T: Into<StretchedClusterConfig>,
pub fn set_stretched_cluster_config<T>(self, v: T) -> Selfwhere
T: Into<StretchedClusterConfig>,
Sets the value of stretched_cluster_config.
§Example
ⓘ
use google_cloud_vmwareengine_v1::model::StretchedClusterConfig;
let x = ManagementCluster::new().set_stretched_cluster_config(StretchedClusterConfig::default()/* use setters */);Sourcepub fn set_or_clear_stretched_cluster_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<StretchedClusterConfig>,
pub fn set_or_clear_stretched_cluster_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<StretchedClusterConfig>,
Sets or clears the value of stretched_cluster_config.
§Example
ⓘ
use google_cloud_vmwareengine_v1::model::StretchedClusterConfig;
let x = ManagementCluster::new().set_or_clear_stretched_cluster_config(Some(StretchedClusterConfig::default()/* use setters */));
let x = ManagementCluster::new().set_or_clear_stretched_cluster_config(None::<StretchedClusterConfig>);Trait Implementations§
Source§impl Clone for ManagementCluster
impl Clone for ManagementCluster
Source§fn clone(&self) -> ManagementCluster
fn clone(&self) -> ManagementCluster
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 ManagementCluster
impl Debug for ManagementCluster
Source§impl Default for ManagementCluster
impl Default for ManagementCluster
Source§fn default() -> ManagementCluster
fn default() -> ManagementCluster
Returns the “default value” for a type. Read more
Source§impl Message for ManagementCluster
impl Message for ManagementCluster
Source§impl PartialEq for ManagementCluster
impl PartialEq for ManagementCluster
impl StructuralPartialEq for ManagementCluster
Auto Trait Implementations§
impl Freeze for ManagementCluster
impl RefUnwindSafe for ManagementCluster
impl Send for ManagementCluster
impl Sync for ManagementCluster
impl Unpin for ManagementCluster
impl UnwindSafe for ManagementCluster
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