#[non_exhaustive]pub struct NodeGroup {
pub name: String,
pub roles: Vec<Role>,
pub node_group_config: Option<InstanceGroupConfig>,
pub labels: HashMap<String, String>,
/* private fields */
}
Expand description
Dataproc Node Group.
The Dataproc NodeGroup
resource is not related to the
Dataproc NodeGroupAffinity
resource.
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.name: String
The Node group resource name.
roles: Vec<Role>
Required. Node group roles.
node_group_config: Option<InstanceGroupConfig>
Optional. The node group instance group configuration.
labels: HashMap<String, String>
Optional. Node group labels.
- Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
- Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt).
- The node group must have no more than 32 labels.
Implementations§
Source§impl NodeGroup
impl NodeGroup
pub fn new() -> Self
Sourcepub fn set_node_group_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupConfig>,
pub fn set_node_group_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupConfig>,
Sets the value of node_group_config.
Sourcepub fn set_or_clear_node_group_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupConfig>,
pub fn set_or_clear_node_group_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupConfig>,
Sets or clears the value of node_group_config.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
impl StructuralPartialEq for NodeGroup
Auto Trait Implementations§
impl Freeze for NodeGroup
impl RefUnwindSafe for NodeGroup
impl Send for NodeGroup
impl Sync for NodeGroup
impl Unpin for NodeGroup
impl UnwindSafe for NodeGroup
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