Class protos.google.cloud.compute.v1.RegionDiskTypes (3.0.0)

Represents a RegionDiskTypes

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RegionDiskTypes service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetRegionDiskTypeRequest

GetRegionDiskTypeRequest message or plain object

callback google.cloud.compute.v1.RegionDiskTypes.GetCallback

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

Returns
TypeDescription
void

get(request)

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

Calls Get.

Parameter
NameDescription
request IGetRegionDiskTypeRequest

GetRegionDiskTypeRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListRegionDiskTypesRequest

ListRegionDiskTypesRequest message or plain object

callback google.cloud.compute.v1.RegionDiskTypes.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListRegionDiskTypesRequest): Promise<google.cloud.compute.v1.RegionDiskTypeList>;

Calls List.

Parameter
NameDescription
request IListRegionDiskTypesRequest

ListRegionDiskTypesRequest message or plain object

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

Promise