Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::NodeTemplate (v2.9.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::NodeTemplate.

Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#accelerators

def accelerators() -> ::Array<::Google::Cloud::Compute::V1::AcceleratorConfig>

#accelerators=

def accelerators=(value) -> ::Array<::Google::Cloud::Compute::V1::AcceleratorConfig>

#cpu_overcommit_type

def cpu_overcommit_type() -> ::String
Returns
  • (::String) — CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

#cpu_overcommit_type=

def cpu_overcommit_type=(value) -> ::String
Parameter
  • value (::String) — CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
Returns
  • (::String) — CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#description

def description() -> ::String
Returns
  • (::String) — An optional description of this resource. Provide this property when you create the resource.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — An optional description of this resource. Provide this property when you create the resource.
Returns
  • (::String) — An optional description of this resource. Provide this property when you create the resource.

#disks

def disks() -> ::Array<::Google::Cloud::Compute::V1::LocalDisk>

#disks=

def disks=(value) -> ::Array<::Google::Cloud::Compute::V1::LocalDisk>
Parameter

#id

def id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#kind

def kind() -> ::String
Returns
  • (::String) — [Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The type of the resource. Always compute#nodeTemplate for node templates.
Returns
  • (::String) — [Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

#name

def name() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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_affinity_labels

def node_affinity_labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Labels to use for node affinity, which will be used in instance scheduling.

#node_affinity_labels=

def node_affinity_labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Labels to use for node affinity, which will be used in instance scheduling.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Labels to use for node affinity, which will be used in instance scheduling.

#node_type

def node_type() -> ::String
Returns
  • (::String) — The node type to use for nodes group that are created from this template.

#node_type=

def node_type=(value) -> ::String
Parameter
  • value (::String) — The node type to use for nodes group that are created from this template.
Returns
  • (::String) — The node type to use for nodes group that are created from this template.

#node_type_flexibility

def node_type_flexibility() -> ::Google::Cloud::Compute::V1::NodeTemplateNodeTypeFlexibility
Returns

#node_type_flexibility=

def node_type_flexibility=(value) -> ::Google::Cloud::Compute::V1::NodeTemplateNodeTypeFlexibility
Parameter
Returns

#region

def region() -> ::String
Returns
  • (::String) — [Output Only] The name of the region where the node template resides, such as us-central1.

#region=

def region=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The name of the region where the node template resides, such as us-central1.
Returns
  • (::String) — [Output Only] The name of the region where the node template resides, such as us-central1.
def self_link() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for the resource.
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.

#server_binding

def server_binding() -> ::Google::Cloud::Compute::V1::ServerBinding
Returns
  • (::Google::Cloud::Compute::V1::ServerBinding) — Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

#server_binding=

def server_binding=(value) -> ::Google::Cloud::Compute::V1::ServerBinding
Parameter
  • value (::Google::Cloud::Compute::V1::ServerBinding) — Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.
Returns
  • (::Google::Cloud::Compute::V1::ServerBinding) — Sets the binding properties for the physical server. Valid values include: - [Default] RESTART_NODE_ON_ANY_SERVER: Restarts VMs on any available physical server - RESTART_NODE_ON_MINIMAL_SERVER: Restarts VMs on the same physical server whenever possible See Sole-tenant node options for more information.

#status

def status() -> ::String
Returns
  • (::String) — [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

#status=

def status=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.
Returns
  • (::String) — [Output Only] The status of the node template. One of the following values: CREATING, READY, and DELETING. Check the Status enum for the list of possible values.

#status_message

def status_message() -> ::String
Returns
  • (::String) — [Output Only] An optional, human-readable explanation of the status.

#status_message=

def status_message=(value) -> ::String
Parameter
  • value (::String) — [Output Only] An optional, human-readable explanation of the status.
Returns
  • (::String) — [Output Only] An optional, human-readable explanation of the status.