NodeTemplate
import type { NodeTemplate } from "https://googleapis.deno.dev/v1/compute:v1.ts";
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.
§Properties
An optional description of this resource. Provide this property when you create the resource.
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
[Output Only] The type of the resource. Always compute#nodeTemplate for node templates.
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.
Labels to use for node affinity, which will be used in instance scheduling.
Do not use. Instead, use the node_type property.
[Output Only] The name of the region where the node template resides, such as us-central1.
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.