pub struct NodeGroup {Show 17 fields
pub autoscaling_policy: Option<NodeGroupAutoscalingPolicy>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub fingerprint: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub location_hint: Option<String>,
pub maintenance_interval: Option<String>,
pub maintenance_policy: Option<String>,
pub maintenance_window: Option<NodeGroupMaintenanceWindow>,
pub name: Option<String>,
pub node_template: Option<String>,
pub self_link: Option<String>,
pub share_settings: Option<ShareSettings>,
pub size: Option<i32>,
pub status: Option<String>,
pub zone: Option<String>,
}
Expand description
Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes.
Fields§
§autoscaling_policy: Option<NodeGroupAutoscalingPolicy>
Specifies how autoscaling should behave.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
fingerprint: Option<String>
§id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>
[Output Only] The type of the resource. Always compute#nodeGroup for node group.
location_hint: Option<String>
An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate.
maintenance_interval: Option<String>
Specifies the frequency of planned maintenance events. The accepted values are: AS_NEEDED
and RECURRENT
.
Check the MaintenanceInterval enum for the list of possible values.
maintenance_policy: Option<String>
Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. Check the MaintenancePolicy enum for the list of possible values.
maintenance_window: Option<NodeGroupMaintenanceWindow>
§name: Option<String>
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](\[-a-z0-9\]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
node_template: Option<String>
URL of the node template to create the node group from.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
Share-settings for the node group
size: Option<i32>
[Output Only] The total number of nodes in the node group.
status: Option<String>
Check the Status enum for the list of possible values.
zone: Option<String>
[Output Only] The name of the zone where the node group resides, such as us-central1-a.
Implementations§
source§impl NodeGroup
impl NodeGroup
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn status(&self) -> &str
pub fn status(&self) -> &str
Returns the value of status
, or the default value if status
is unset.
sourcepub fn fingerprint(&self) -> &str
pub fn fingerprint(&self) -> &str
Returns the value of fingerprint
, or the default value if fingerprint
is unset.
sourcepub fn node_template(&self) -> &str
pub fn node_template(&self) -> &str
Returns the value of node_template
, or the default value if node_template
is unset.
sourcepub fn location_hint(&self) -> &str
pub fn location_hint(&self) -> &str
Returns the value of location_hint
, or the default value if location_hint
is unset.
sourcepub fn maintenance_interval(&self) -> &str
pub fn maintenance_interval(&self) -> &str
Returns the value of maintenance_interval
, or the default value if maintenance_interval
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
sourcepub fn self_link(&self) -> &str
pub fn self_link(&self) -> &str
Returns the value of self_link
, or the default value if self_link
is unset.
sourcepub fn maintenance_policy(&self) -> &str
pub fn maintenance_policy(&self) -> &str
Returns the value of maintenance_policy
, or the default value if maintenance_policy
is unset.
Trait Implementations§
source§impl Message for NodeGroup
impl Message for NodeGroup
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for NodeGroup
impl PartialEq for NodeGroup
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request