Class protos.google.cloud.compute.v1.NodeType (4.3.0)

Represents a NodeType.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.INodeType);

Constructs a new NodeType.

Parameter
NameDescription
properties INodeType

Properties to set

Properties

_cpuPlatform

public _cpuPlatform?: "cpuPlatform";

NodeType _cpuPlatform.

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

NodeType _creationTimestamp.

_deprecated

public _deprecated?: "deprecated";

NodeType _deprecated.

_description

public _description?: "description";

NodeType _description.

_guestCpus

public _guestCpus?: "guestCpus";

NodeType _guestCpus.

_id

public _id?: "id";

NodeType _id.

_kind

public _kind?: "kind";

NodeType _kind.

_localSsdGb

public _localSsdGb?: "localSsdGb";

NodeType _localSsdGb.

_memoryMb

public _memoryMb?: "memoryMb";

NodeType _memoryMb.

_name

public _name?: "name";

NodeType _name.

public _selfLink?: "selfLink";

NodeType _selfLink.

_zone

public _zone?: "zone";

NodeType _zone.

cpuPlatform

public cpuPlatform?: (string|null);

NodeType cpuPlatform.

creationTimestamp

public creationTimestamp?: (string|null);

NodeType creationTimestamp.

deprecated

public deprecated?: (google.cloud.compute.v1.IDeprecationStatus|null);

NodeType deprecated.

description

public description?: (string|null);

NodeType description.

guestCpus

public guestCpus?: (number|null);

NodeType guestCpus.

id

public id?: (number|Long|string|null);

NodeType id.

kind

public kind?: (string|null);

NodeType kind.

localSsdGb

public localSsdGb?: (number|null);

NodeType localSsdGb.

memoryMb

public memoryMb?: (number|null);

NodeType memoryMb.

name

public name?: (string|null);

NodeType name.

public selfLink?: (string|null);

NodeType selfLink.

zone

public zone?: (string|null);

NodeType zone.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.INodeType): google.cloud.compute.v1.NodeType;

Creates a new NodeType instance using the specified properties.

Parameter
NameDescription
properties INodeType

Properties to set

Returns
TypeDescription
NodeType

NodeType instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.NodeType;

Decodes a NodeType message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
NodeType

NodeType

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.NodeType;

Decodes a NodeType message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
NodeType

NodeType

encode(message, writer)

public static encode(message: google.cloud.compute.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified NodeType message. Does not implicitly messages.

Parameters
NameDescription
message INodeType

NodeType message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.compute.v1.INodeType, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified NodeType message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message INodeType

NodeType message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NodeType;

Creates a NodeType message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
NodeType

NodeType

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for NodeType

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this NodeType to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.compute.v1.NodeType, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a NodeType message. Also converts values to other types if specified.

Parameters
NameDescription
message NodeType

NodeType

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a NodeType message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not