public sealed class NodeTemplate : IMessage<NodeTemplate>, IEquatable<NodeTemplate>, IDeepCloneable<NodeTemplate>, IBufferMessage, IMessage
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()
NodeTemplate(NodeTemplate)
public NodeTemplate(NodeTemplate other)
Properties
Accelerators
public RepeatedField<AcceleratorConfig> Accelerators { get; }
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; }
HasCpuOvercommitType
public bool HasCpuOvercommitType { get; }
Gets whether the "cpu_overcommit_type" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasCreationTimestamp
public bool HasCreationTimestamp { get; }
Gets whether the "creation_timestamp" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasId
public bool HasId { get; }
Gets whether the "id" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasKind
public bool HasKind { get; }
Gets whether the "kind" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasName
public bool HasName { get; }
Gets whether the "name" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasNodeType
public bool HasNodeType { get; }
Gets whether the "node_type" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasRegion
public bool HasRegion { get; }
Gets whether the "region" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasSelfLink
public bool HasSelfLink { get; }
Gets whether the "self_link" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasStatus
public bool HasStatus { get; }
Gets whether the "status" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasStatusMessage
public bool HasStatusMessage { get; }
Gets whether the "status_message" field is set
Property Value |
---|
Type | Description |
Boolean | |
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 |
UInt64 | |
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.
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.
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.
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 | |