Represents a NodeTemplate.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.INodeTemplate);
Constructs a new NodeTemplate.
Parameter | |
---|---|
Name | Description |
properties |
INodeTemplate
Properties to set |
Properties
_cpuOvercommitType
public _cpuOvercommitType?: "cpuOvercommitType";
NodeTemplate _cpuOvercommitType.
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
NodeTemplate _creationTimestamp.
_description
public _description?: "description";
NodeTemplate _description.
_id
public _id?: "id";
NodeTemplate _id.
_kind
public _kind?: "kind";
NodeTemplate _kind.
_name
public _name?: "name";
NodeTemplate _name.
_nodeType
public _nodeType?: "nodeType";
NodeTemplate _nodeType.
_nodeTypeFlexibility
public _nodeTypeFlexibility?: "nodeTypeFlexibility";
NodeTemplate _nodeTypeFlexibility.
_region
public _region?: "region";
NodeTemplate _region.
_selfLink
public _selfLink?: "selfLink";
NodeTemplate _selfLink.
_serverBinding
public _serverBinding?: "serverBinding";
NodeTemplate _serverBinding.
_status
public _status?: "status";
NodeTemplate _status.
_statusMessage
public _statusMessage?: "statusMessage";
NodeTemplate _statusMessage.
accelerators
public accelerators: google.cloud.compute.v1.IAcceleratorConfig[];
NodeTemplate accelerators.
cpuOvercommitType
public cpuOvercommitType?: (string|null);
NodeTemplate cpuOvercommitType.
creationTimestamp
public creationTimestamp?: (string|null);
NodeTemplate creationTimestamp.
description
public description?: (string|null);
NodeTemplate description.
disks
public disks: google.cloud.compute.v1.ILocalDisk[];
NodeTemplate disks.
id
public id?: (number|Long|string|null);
NodeTemplate id.
kind
public kind?: (string|null);
NodeTemplate kind.
name
public name?: (string|null);
NodeTemplate name.
nodeAffinityLabels
public nodeAffinityLabels: { [k: string]: string };
NodeTemplate nodeAffinityLabels.
nodeType
public nodeType?: (string|null);
NodeTemplate nodeType.
nodeTypeFlexibility
public nodeTypeFlexibility?: (google.cloud.compute.v1.INodeTemplateNodeTypeFlexibility|null);
NodeTemplate nodeTypeFlexibility.
region
public region?: (string|null);
NodeTemplate region.
selfLink
public selfLink?: (string|null);
NodeTemplate selfLink.
serverBinding
public serverBinding?: (google.cloud.compute.v1.IServerBinding|null);
NodeTemplate serverBinding.
status
public status?: (string|null);
NodeTemplate status.
statusMessage
public statusMessage?: (string|null);
NodeTemplate statusMessage.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.INodeTemplate): google.cloud.compute.v1.NodeTemplate;
Creates a new NodeTemplate instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
INodeTemplate
Properties to set |
Returns | |
---|---|
Type | Description |
NodeTemplate |
NodeTemplate instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.NodeTemplate;
Decodes a NodeTemplate message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
NodeTemplate |
NodeTemplate |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.NodeTemplate;
Decodes a NodeTemplate message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
NodeTemplate |
NodeTemplate |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.INodeTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified NodeTemplate message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
INodeTemplate
NodeTemplate message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.compute.v1.INodeTemplate, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified NodeTemplate message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
INodeTemplate
NodeTemplate message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NodeTemplate;
Creates a NodeTemplate message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
NodeTemplate |
NodeTemplate |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for NodeTemplate
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this NodeTemplate to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.NodeTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a NodeTemplate message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
NodeTemplate
NodeTemplate |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a NodeTemplate message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|