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

Represents a MachineTypes

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new MachineTypes 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.IAggregatedListMachineTypesRequest, callback: google.cloud.compute.v1.MachineTypes.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListMachineTypesRequest

AggregatedListMachineTypesRequest message or plain object

callback AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListMachineTypesRequest): Promise<google.cloud.compute.v1.MachineTypeAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListMachineTypesRequest

AggregatedListMachineTypesRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetMachineTypeRequest

GetMachineTypeRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetMachineTypeRequest): Promise<google.cloud.compute.v1.MachineType>;

Calls Get.

Parameter
NameDescription
request IGetMachineTypeRequest

GetMachineTypeRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListMachineTypesRequest

ListMachineTypesRequest message or plain object

callback ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListMachineTypesRequest): Promise<google.cloud.compute.v1.MachineTypeList>;

Calls List.

Parameter
NameDescription
request IListMachineTypesRequest

ListMachineTypesRequest message or plain object

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

Promise