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.
Implements
IMessageNodeTemplate, IEquatableNodeTemplate, IDeepCloneableNodeTemplate, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.ComputeV1Assembly
Google.Cloud.Compute.V1.dll
Constructors
NodeTemplate()
public NodeTemplate()
NodeTemplate(NodeTemplate)
public NodeTemplate(NodeTemplate other)
Parameter | |
---|---|
Name | Description |
other | NodeTemplate |
Properties
Accelerators
public RepeatedField<AcceleratorConfig> Accelerators { get; }
Property Value | |
---|---|
Type | Description |
RepeatedFieldAcceleratorConfig |
CpuOvercommitType
public string CpuOvercommitType { get; set; }
CPU overcommit. Check the CpuOvercommitType enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
string |
CreationTimestamp
public string CreationTimestamp { get; set; }
[Output Only] Creation timestamp in RFC3339 text format.
Property Value | |
---|---|
Type | Description |
string |
Description
public string Description { get; set; }
An optional description of this resource. Provide this property when you create the resource.
Property Value | |
---|---|
Type | Description |
string |
Disks
public RepeatedField<LocalDisk> Disks { get; }
Property Value | |
---|---|
Type | Description |
RepeatedFieldLocalDisk |
HasCpuOvercommitType
public bool HasCpuOvercommitType { get; }
Gets whether the "cpu_overcommit_type" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasCreationTimestamp
public bool HasCreationTimestamp { get; }
Gets whether the "creation_timestamp" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasId
public bool HasId { get; }
Gets whether the "id" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasKind
public bool HasKind { get; }
Gets whether the "kind" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasNodeType
public bool HasNodeType { get; }
Gets whether the "node_type" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasRegion
public bool HasRegion { get; }
Gets whether the "region" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasSelfLink
public bool HasSelfLink { get; }
Gets whether the "self_link" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasStatus
public bool HasStatus { get; }
Gets whether the "status" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasStatusMessage
public bool HasStatusMessage { get; }
Gets whether the "status_message" field is set
Property Value | |
---|---|
Type | Description |
bool |
Id
public ulong Id { get; set; }
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Property Value | |
---|---|
Type | Description |
ulong |
Kind
public string Kind { get; set; }
[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
NodeAffinityLabels
public MapField<string, string> NodeAffinityLabels { get; }
Labels to use for node affinity, which will be used in instance scheduling.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
NodeType
public string NodeType { get; set; }
The node type to use for nodes group that are created from this template.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
SelfLink
public string SelfLink { get; set; }
[Output Only] Server-defined URL for the resource.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
string |
StatusMessage
public string StatusMessage { get; set; }
[Output Only] An optional, human-readable explanation of the status.
Property Value | |
---|---|
Type | Description |
string |