Struct googapis::google::cloud::compute::v1::NodeGroup [−][src]
pub struct NodeGroup {Show 15 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_policy: Option<String>,
pub maintenance_window: Option<NodeGroupMaintenanceWindow>,
pub name: Option<String>,
pub node_template: Option<String>,
pub self_link: Option<String>,
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_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.
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
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
Returns the value of status
, or the default value if status
is unset.
Returns the value of fingerprint
, or the default value if fingerprint
is unset.
Returns the value of node_template
, or the default value if node_template
is unset.
Returns the value of location_hint
, or the default value if location_hint
is unset.
Returns the value of description
, or the default value if description
is unset.
Returns the value of self_link
, or the default value if self_link
is unset.
Returns the value of maintenance_policy
, or the default value if maintenance_policy
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for NodeGroup
impl UnwindSafe for NodeGroup
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more