Compute Engine v1 API - Class NodeTemplate (2.13.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
RepeatedFieldAcceleratorConfig

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
RepeatedFieldLocalDisk

HasCpuOvercommitType

public bool HasCpuOvercommitType { get; }

Gets whether the "cpu_overcommit_type" field is set

Property Value
TypeDescription
bool

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
bool

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
bool

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
bool

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
bool

HasNodeType

public bool HasNodeType { get; }

Gets whether the "node_type" field is set

Property Value
TypeDescription
bool

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
bool

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
bool

HasStatusMessage

public bool HasStatusMessage { get; }

Gets whether the "status_message" field is set

Property Value
TypeDescription
bool

Id

public ulong Id { get; set; }

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

Property Value
TypeDescription
ulong

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
MapFieldstringstring

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; }

Do not use. Instead, use the node_type property.

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