Class protos.google.cloud.compute.v1.NodeTypes

Represents a NodeTypes

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new NodeTypes service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

aggregatedList(request, callback)

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

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListNodeTypesRequest

AggregatedListNodeTypesRequest message or plain object

callback google.cloud.compute.v1.NodeTypes.AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNodeTypesRequest): Promise<google.cloud.compute.v1.NodeTypeAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListNodeTypesRequest

AggregatedListNodeTypesRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new NodeTypes 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
NodeTypes

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

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request google.cloud.compute.v1.IGetNodeTypeRequest

GetNodeTypeRequest message or plain object

callback google.cloud.compute.v1.NodeTypes.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetNodeTypeRequest): Promise<google.cloud.compute.v1.NodeType>;

Calls Get.

Parameter
NameDescription
request google.cloud.compute.v1.IGetNodeTypeRequest

GetNodeTypeRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListNodeTypesRequest

ListNodeTypesRequest message or plain object

callback google.cloud.compute.v1.NodeTypes.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListNodeTypesRequest): Promise<google.cloud.compute.v1.NodeTypeList>;

Calls List.

Parameter
NameDescription
request IListNodeTypesRequest

ListNodeTypesRequest message or plain object

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

Promise