Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::NodeGroup.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#autoscaling_policy
def autoscaling_policy() -> ::Google::Cloud::Compute::V1::NodeGroupAutoscalingPolicy
- (::Google::Cloud::Compute::V1::NodeGroupAutoscalingPolicy) — Specifies how autoscaling should behave.
#autoscaling_policy=
def autoscaling_policy=(value) -> ::Google::Cloud::Compute::V1::NodeGroupAutoscalingPolicy
- value (::Google::Cloud::Compute::V1::NodeGroupAutoscalingPolicy) — Specifies how autoscaling should behave.
- (::Google::Cloud::Compute::V1::NodeGroupAutoscalingPolicy) — Specifies how autoscaling should behave.
#creation_timestamp
def creation_timestamp() -> ::String
- (::String) — [Output Only] Creation timestamp in RFC3339 text format.
#creation_timestamp=
def creation_timestamp=(value) -> ::String
- value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
- (::String) — [Output Only] Creation timestamp in RFC3339 text format.
#description
def description() -> ::String
- (::String) — An optional description of this resource. Provide this property when you create the resource.
#description=
def description=(value) -> ::String
- value (::String) — An optional description of this resource. Provide this property when you create the resource.
- (::String) — An optional description of this resource. Provide this property when you create the resource.
#fingerprint
def fingerprint() -> ::String
- (::String)
#fingerprint=
def fingerprint=(value) -> ::String
- value (::String)
- (::String)
#id
def id() -> ::Integer
- (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#id=
def id=(value) -> ::Integer
- value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
- (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#kind
def kind() -> ::String
- (::String) — [Output Only] The type of the resource. Always compute#nodeGroup for node group.
#kind=
def kind=(value) -> ::String
- value (::String) — [Output Only] The type of the resource. Always compute#nodeGroup for node group.
- (::String) — [Output Only] The type of the resource. Always compute#nodeGroup for node group.
#location_hint
def location_hint() -> ::String
- (::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.
#location_hint=
def location_hint=(value) -> ::String
- value (::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.
- (::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
def maintenance_policy() -> ::String
- (::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_policy=
def maintenance_policy=(value) -> ::String
- value (::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.
- (::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
def maintenance_window() -> ::Google::Cloud::Compute::V1::NodeGroupMaintenanceWindow
#maintenance_window=
def maintenance_window=(value) -> ::Google::Cloud::Compute::V1::NodeGroupMaintenanceWindow
#name
def name() -> ::String
-
(::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.
#name=
def name=(value) -> ::String
-
value (::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.
-
(::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
def node_template() -> ::String
- (::String) — URL of the node template to create the node group from.
#node_template=
def node_template=(value) -> ::String
- value (::String) — URL of the node template to create the node group from.
- (::String) — URL of the node template to create the node group from.
#self_link
def self_link() -> ::String
- (::String) — [Output Only] Server-defined URL for the resource.
#self_link=
def self_link=(value) -> ::String
- value (::String) — [Output Only] Server-defined URL for the resource.
- (::String) — [Output Only] Server-defined URL for the resource.
#size
def size() -> ::Integer
- (::Integer) — [Output Only] The total number of nodes in the node group.
#size=
def size=(value) -> ::Integer
- value (::Integer) — [Output Only] The total number of nodes in the node group.
- (::Integer) — [Output Only] The total number of nodes in the node group.
#status
def status() -> ::String
- (::String) — Check the Status enum for the list of possible values.
#status=
def status=(value) -> ::String
- value (::String) — Check the Status enum for the list of possible values.
- (::String) — Check the Status enum for the list of possible values.
#zone
def zone() -> ::String
- (::String) — [Output Only] The name of the zone where the node group resides, such as us-central1-a.
#zone=
def zone=(value) -> ::String
- value (::String) — [Output Only] The name of the zone where the node group resides, such as us-central1-a.
- (::String) — [Output Only] The name of the zone where the node group resides, such as us-central1-a.