Class protos.google.cloud.compute.v1.NodeGroup (4.6.0)

Represents a NodeGroup.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new NodeGroup.

Parameter
Name Description
properties INodeGroup

Properties to set

Properties

_autoscalingPolicy

public _autoscalingPolicy?: "autoscalingPolicy";

NodeGroup _autoscalingPolicy.

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

NodeGroup _creationTimestamp.

_description

public _description?: "description";

NodeGroup _description.

_fingerprint

public _fingerprint?: "fingerprint";

NodeGroup _fingerprint.

_id

public _id?: "id";

NodeGroup _id.

_kind

public _kind?: "kind";

NodeGroup _kind.

_locationHint

public _locationHint?: "locationHint";

NodeGroup _locationHint.

_maintenanceInterval

public _maintenanceInterval?: "maintenanceInterval";

NodeGroup _maintenanceInterval.

_maintenancePolicy

public _maintenancePolicy?: "maintenancePolicy";

NodeGroup _maintenancePolicy.

_maintenanceWindow

public _maintenanceWindow?: "maintenanceWindow";

NodeGroup _maintenanceWindow.

_name

public _name?: "name";

NodeGroup _name.

_nodeTemplate

public _nodeTemplate?: "nodeTemplate";

NodeGroup _nodeTemplate.

public _selfLink?: "selfLink";

NodeGroup _selfLink.

_shareSettings

public _shareSettings?: "shareSettings";

NodeGroup _shareSettings.

_size

public _size?: "size";

NodeGroup _size.

_status

public _status?: "status";

NodeGroup _status.

_zone

public _zone?: "zone";

NodeGroup _zone.

autoscalingPolicy

public autoscalingPolicy?: (google.cloud.compute.v1.INodeGroupAutoscalingPolicy|null);

NodeGroup autoscalingPolicy.

creationTimestamp

public creationTimestamp?: (string|null);

NodeGroup creationTimestamp.

description

public description?: (string|null);

NodeGroup description.

fingerprint

public fingerprint?: (string|null);

NodeGroup fingerprint.

id

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

NodeGroup id.

kind

public kind?: (string|null);

NodeGroup kind.

locationHint

public locationHint?: (string|null);

NodeGroup locationHint.

maintenanceInterval

public maintenanceInterval?: (string|null);

NodeGroup maintenanceInterval.

maintenancePolicy

public maintenancePolicy?: (string|null);

NodeGroup maintenancePolicy.

maintenanceWindow

public maintenanceWindow?: (google.cloud.compute.v1.INodeGroupMaintenanceWindow|null);

NodeGroup maintenanceWindow.

name

public name?: (string|null);

NodeGroup name.

nodeTemplate

public nodeTemplate?: (string|null);

NodeGroup nodeTemplate.

public selfLink?: (string|null);

NodeGroup selfLink.

shareSettings

public shareSettings?: (google.cloud.compute.v1.IShareSettings|null);

NodeGroup shareSettings.

size

public size?: (number|null);

NodeGroup size.

status

public status?: (string|null);

NodeGroup status.

zone

public zone?: (string|null);

NodeGroup zone.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.INodeGroup): google.cloud.compute.v1.NodeGroup;

Creates a new NodeGroup instance using the specified properties.

Parameter
Name Description
properties INodeGroup

Properties to set

Returns
Type Description
NodeGroup

NodeGroup instance

decode(reader, length)

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

Decodes a NodeGroup 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
NodeGroup

NodeGroup

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
NodeGroup

NodeGroup

encode(message, writer)

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

Encodes the specified NodeGroup message. Does not implicitly messages.

Parameters
Name Description
message INodeGroup

NodeGroup 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.INodeGroup, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message INodeGroup

NodeGroup 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.NodeGroup;

Creates a NodeGroup 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
NodeGroup

NodeGroup

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for NodeGroup

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 NodeGroup to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message NodeGroup

NodeGroup

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 NodeGroup message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not