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
Name Description
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
Name Description
request IAggregatedListMachineTypesRequest

AggregatedListMachineTypesRequest message or plain object

callback AggregatedListCallback

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

Returns
Type Description
void

aggregatedList(request)

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

Calls AggregatedList.

Parameter
Name Description
request IAggregatedListMachineTypesRequest

AggregatedListMachineTypesRequest message or plain object

Returns
Type Description
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
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
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
Name Description
request IGetMachineTypeRequest

GetMachineTypeRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

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

Calls Get.

Parameter
Name Description
request IGetMachineTypeRequest

GetMachineTypeRequest message or plain object

Returns
Type Description
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
Name Description
request IListMachineTypesRequest

ListMachineTypesRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

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

Calls List.

Parameter
Name Description
request IListMachineTypesRequest

ListMachineTypesRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.MachineTypeList>

Promise