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

Represents a RegionZones

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RegionZones service.

Parameters
Name Description
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): RegionZones;

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

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

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListRegionZonesRequest

ListRegionZonesRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

public list(request: google.cloud.compute.v1.IListRegionZonesRequest): Promise<google.cloud.compute.v1.ZoneList>;

Calls List.

Parameter
Name Description
request IListRegionZonesRequest

ListRegionZonesRequest message or plain object

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

Promise