Compute Engine v1 API - Class NodeTemplate (2.2.0)

public sealed class NodeTemplate : IMessage<NodeTemplate>, IEquatable<NodeTemplate>, IDeepCloneable<NodeTemplate>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class 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.

Inheritance

Object > NodeTemplate

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

NodeTemplate()

public NodeTemplate()

NodeTemplate(NodeTemplate)

public NodeTemplate(NodeTemplate other)
Parameter
NameDescription
otherNodeTemplate

Properties

Accelerators

public RepeatedField<AcceleratorConfig> Accelerators { get; }
Property Value
TypeDescription
RepeatedField<AcceleratorConfig>

CpuOvercommitType

public string CpuOvercommitType { get; set; }

CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.

Property Value
TypeDescription
String

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in RFC3339 text format.

Property Value
TypeDescription
String

Description

public string Description { get; set; }

An optional description of this resource. Provide this property when you create the resource.

Property Value
TypeDescription
String

Disks

public RepeatedField<LocalDisk> Disks { get; }
Property Value
TypeDescription
RepeatedField<LocalDisk>

HasCpuOvercommitType

public bool HasCpuOvercommitType { get; }

Gets whether the "cpu_overcommit_type" field is set

Property Value
TypeDescription
Boolean

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
Boolean

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
Boolean

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasNodeType

public bool HasNodeType { get; }

Gets whether the "node_type" field is set

Property Value
TypeDescription
Boolean

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
Boolean
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
Boolean

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
Boolean

HasStatusMessage

public bool HasStatusMessage { get; }

Gets whether the "status_message" field is set

Property Value
TypeDescription
Boolean

Id

public ulong Id { get; set; }

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Property Value
TypeDescription
UInt64

Kind

public string Kind { get; set; }

[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

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.

Property Value
TypeDescription
String

NodeAffinityLabels

public MapField<string, string> NodeAffinityLabels { get; }

Labels to use for node affinity, which will be used in instance scheduling.

Property Value
TypeDescription
MapField<String, String>

NodeType

public string NodeType { get; set; }

The node type to use for nodes group that are created from this template.

Property Value
TypeDescription
String

NodeTypeFlexibility

public NodeTemplateNodeTypeFlexibility NodeTypeFlexibility { get; set; }

The flexible properties of the desired node type. Node groups that use this node template will create nodes of a type that matches these properties. This field is mutually exclusive with the node_type property; you can only define one or the other, but not both.

Property Value
TypeDescription
NodeTemplateNodeTypeFlexibility

Region

public string Region { get; set; }

[Output Only] The name of the region where the node template resides, such as us-central1.

Property Value
TypeDescription
String
public string SelfLink { get; set; }

[Output Only] Server-defined URL for the resource.

Property Value
TypeDescription
String

ServerBinding

public ServerBinding ServerBinding { get; set; }

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.

Property Value
TypeDescription
ServerBinding

Status

public string Status { get; set; }

[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.

Property Value
TypeDescription
String

StatusMessage

public string StatusMessage { get; set; }

[Output Only] An optional, human-readable explanation of the status.

Property Value
TypeDescription
String