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

Represents a DiskTypes

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Calls AggregatedList.

Parameters
Name Description
request IAggregatedListDiskTypesRequest

AggregatedListDiskTypesRequest message or plain object

callback AggregatedListCallback

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

Returns
Type Description
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListDiskTypesRequest): Promise<google.cloud.compute.v1.DiskTypeAggregatedList>;

Calls AggregatedList.

Parameter
Name Description
request IAggregatedListDiskTypesRequest

AggregatedListDiskTypesRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

get(request, callback)

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

Calls Get.

Parameters
Name Description
request IGetDiskTypeRequest

GetDiskTypeRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetDiskTypeRequest): Promise<google.cloud.compute.v1.DiskType>;

Calls Get.

Parameter
Name Description
request IGetDiskTypeRequest

GetDiskTypeRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListDiskTypesRequest

ListDiskTypesRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListDiskTypesRequest): Promise<google.cloud.compute.v1.DiskTypeList>;

Calls List.

Parameter
Name Description
request IListDiskTypesRequest

ListDiskTypesRequest message or plain object

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

Promise