Class protos.google.cloud.compute.v1.NodeGroups (4.1.0)

Represents a NodeGroups

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.NodeGroups

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new NodeGroups service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

addNodes(request, callback)

public addNodes(request: google.cloud.compute.v1.IAddNodesNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.AddNodesCallback): void;

Calls AddNodes.

Parameters
NameDescription
request IAddNodesNodeGroupRequest

AddNodesNodeGroupRequest message or plain object

callback AddNodesCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

addNodes(request)

public addNodes(request: google.cloud.compute.v1.IAddNodesNodeGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls AddNodes.

Parameter
NameDescription
request IAddNodesNodeGroupRequest

AddNodesNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

aggregatedList(request, callback)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNodeGroupsRequest, callback: google.cloud.compute.v1.NodeGroups.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListNodeGroupsRequest

AggregatedListNodeGroupsRequest message or plain object

callback AggregatedListCallback

Node-style callback called with the error, if any, and NodeGroupAggregatedList

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNodeGroupsRequest): Promise<google.cloud.compute.v1.NodeGroupAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListNodeGroupsRequest

AggregatedListNodeGroupsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.NodeGroupAggregatedList>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): NodeGroups;

Creates new NodeGroups service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
NodeGroups

RPC service. Useful where requests and/or responses are streamed.

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.DeleteCallback): void;

Calls Delete.

Parameters
NameDescription
request IDeleteNodeGroupRequest

DeleteNodeGroupRequest message or plain object

callback DeleteCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteNodeGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request IDeleteNodeGroupRequest

DeleteNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

deleteNodes(request, callback)

public deleteNodes(request: google.cloud.compute.v1.IDeleteNodesNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.DeleteNodesCallback): void;

Calls DeleteNodes.

Parameters
NameDescription
request IDeleteNodesNodeGroupRequest

DeleteNodesNodeGroupRequest message or plain object

callback DeleteNodesCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteNodes(request)

public deleteNodes(request: google.cloud.compute.v1.IDeleteNodesNodeGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls DeleteNodes.

Parameter
NameDescription
request IDeleteNodesNodeGroupRequest

DeleteNodesNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.GetCallback): void;

Calls Get.

Parameters
NameDescription
request IGetNodeGroupRequest

GetNodeGroupRequest message or plain object

callback GetCallback

Node-style callback called with the error, if any, and NodeGroup

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetNodeGroupRequest): Promise<google.cloud.compute.v1.NodeGroup>;

Calls Get.

Parameter
NameDescription
request IGetNodeGroupRequest

GetNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.NodeGroup>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyNodeGroupRequest

GetIamPolicyNodeGroupRequest message or plain object

callback GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNodeGroupRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyNodeGroupRequest

GetIamPolicyNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Policy>

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1.IInsertNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.InsertCallback): void;

Calls Insert.

Parameters
NameDescription
request IInsertNodeGroupRequest

InsertNodeGroupRequest message or plain object

callback InsertCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

insert(request)

public insert(request: google.cloud.compute.v1.IInsertNodeGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
NameDescription
request IInsertNodeGroupRequest

InsertNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

public list(request: google.cloud.compute.v1.IListNodeGroupsRequest, callback: google.cloud.compute.v1.NodeGroups.ListCallback): void;

Calls List.

Parameters
NameDescription
request IListNodeGroupsRequest

ListNodeGroupsRequest message or plain object

callback ListCallback

Node-style callback called with the error, if any, and NodeGroupList

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListNodeGroupsRequest): Promise<google.cloud.compute.v1.NodeGroupList>;

Calls List.

Parameter
NameDescription
request IListNodeGroupsRequest

ListNodeGroupsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.NodeGroupList>

Promise

listNodes(request, callback)

public listNodes(request: google.cloud.compute.v1.IListNodesNodeGroupsRequest, callback: google.cloud.compute.v1.NodeGroups.ListNodesCallback): void;

Calls ListNodes.

Parameters
NameDescription
request IListNodesNodeGroupsRequest

ListNodesNodeGroupsRequest message or plain object

callback ListNodesCallback

Node-style callback called with the error, if any, and NodeGroupsListNodes

Returns
TypeDescription
void

listNodes(request)

public listNodes(request: google.cloud.compute.v1.IListNodesNodeGroupsRequest): Promise<google.cloud.compute.v1.NodeGroupsListNodes>;

Calls ListNodes.

Parameter
NameDescription
request IListNodesNodeGroupsRequest

ListNodesNodeGroupsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.NodeGroupsListNodes>

Promise

patch(request, callback)

public patch(request: google.cloud.compute.v1.IPatchNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.PatchCallback): void;

Calls Patch.

Parameters
NameDescription
request IPatchNodeGroupRequest

PatchNodeGroupRequest message or plain object

callback PatchCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

patch(request)

public patch(request: google.cloud.compute.v1.IPatchNodeGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Patch.

Parameter
NameDescription
request IPatchNodeGroupRequest

PatchNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyNodeGroupRequest

SetIamPolicyNodeGroupRequest message or plain object

callback SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNodeGroupRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyNodeGroupRequest

SetIamPolicyNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Policy>

Promise

setNodeTemplate(request, callback)

public setNodeTemplate(request: google.cloud.compute.v1.ISetNodeTemplateNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.SetNodeTemplateCallback): void;

Calls SetNodeTemplate.

Parameters
NameDescription
request ISetNodeTemplateNodeGroupRequest

SetNodeTemplateNodeGroupRequest message or plain object

callback SetNodeTemplateCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

setNodeTemplate(request)

public setNodeTemplate(request: google.cloud.compute.v1.ISetNodeTemplateNodeGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetNodeTemplate.

Parameter
NameDescription
request ISetNodeTemplateNodeGroupRequest

SetNodeTemplateNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

simulateMaintenanceEvent(request, callback)

public simulateMaintenanceEvent(request: google.cloud.compute.v1.ISimulateMaintenanceEventNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.SimulateMaintenanceEventCallback): void;

Calls SimulateMaintenanceEvent.

Parameters
NameDescription
request ISimulateMaintenanceEventNodeGroupRequest

SimulateMaintenanceEventNodeGroupRequest message or plain object

callback SimulateMaintenanceEventCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

simulateMaintenanceEvent(request)

public simulateMaintenanceEvent(request: google.cloud.compute.v1.ISimulateMaintenanceEventNodeGroupRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SimulateMaintenanceEvent.

Parameter
NameDescription
request ISimulateMaintenanceEventNodeGroupRequest

SimulateMaintenanceEventNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNodeGroupRequest, callback: google.cloud.compute.v1.NodeGroups.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsNodeGroupRequest

TestIamPermissionsNodeGroupRequest message or plain object

callback TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestPermissionsResponse

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNodeGroupRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsNodeGroupRequest

TestIamPermissionsNodeGroupRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.TestPermissionsResponse>

Promise