Class protos.google.cloud.compute.v1.AcceleratorTypes (4.5.0)

Represents an AcceleratorTypes

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Calls AggregatedList.

Parameters
Name Description
request IAggregatedListAcceleratorTypesRequest

AggregatedListAcceleratorTypesRequest message or plain object

callback AggregatedListCallback

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

Returns
Type Description
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListAcceleratorTypesRequest): Promise<google.cloud.compute.v1.AcceleratorTypeAggregatedList>;

Calls AggregatedList.

Parameter
Name Description
request IAggregatedListAcceleratorTypesRequest

AggregatedListAcceleratorTypesRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

get(request, callback)

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

Calls Get.

Parameters
Name Description
request IGetAcceleratorTypeRequest

GetAcceleratorTypeRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetAcceleratorTypeRequest): Promise<google.cloud.compute.v1.AcceleratorType>;

Calls Get.

Parameter
Name Description
request IGetAcceleratorTypeRequest

GetAcceleratorTypeRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListAcceleratorTypesRequest

ListAcceleratorTypesRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListAcceleratorTypesRequest): Promise<google.cloud.compute.v1.AcceleratorTypeList>;

Calls List.

Parameter
Name Description
request IListAcceleratorTypesRequest

ListAcceleratorTypesRequest message or plain object

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

Promise