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

Represents a Regions

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Regions 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): Regions;

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

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

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetRegionRequest

GetRegionRequest message or plain object

callback google.cloud.compute.v1.Regions.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetRegionRequest): Promise<google.cloud.compute.v1.Region>;

Calls Get.

Parameter
NameDescription
request IGetRegionRequest

GetRegionRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListRegionsRequest

ListRegionsRequest message or plain object

callback google.cloud.compute.v1.Regions.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListRegionsRequest): Promise<google.cloud.compute.v1.RegionList>;

Calls List.

Parameter
NameDescription
request IListRegionsRequest

ListRegionsRequest message or plain object

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

Promise