Represents a Zones
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.ZonesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Zones service.
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): Zones;
Creates new Zones service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
Zones | RPC service. Useful where requests and/or responses are streamed. |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetZoneRequest, callback: google.cloud.compute.v1.Zones.GetCallback): void;
Calls Get.
Name | Description |
request |
google.cloud.compute.v1.IGetZoneRequest
GetZoneRequest message or plain object |
callback |
google.cloud.compute.v1.Zones.GetCallback
Node-style callback called with the error, if any, and Zone |
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetZoneRequest): Promise<google.cloud.compute.v1.Zone>;
Calls Get.
Name | Description |
request |
google.cloud.compute.v1.IGetZoneRequest
GetZoneRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.Zone> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListZonesRequest, callback: google.cloud.compute.v1.Zones.ListCallback): void;
Calls List.
Name | Description |
request |
google.cloud.compute.v1.IListZonesRequest
ListZonesRequest message or plain object |
callback |
google.cloud.compute.v1.Zones.ListCallback
Node-style callback called with the error, if any, and ZoneList |
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListZonesRequest): Promise<google.cloud.compute.v1.ZoneList>;
Calls List.
Name | Description |
request |
google.cloud.compute.v1.IListZonesRequest
ListZonesRequest message or plain object |
Type | Description |
Promise<google.cloud.compute.v1.ZoneList> | Promise |