Represents a Regions
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.RegionsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Regions 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): Regions;Creates new Regions 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 |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
get(request)
public get(request: google.cloud.compute.v1.IGetRegionRequest): Promise<google.cloud.compute.v1.Region>;Calls Get.
| Name | Description |
| request |
IGetRegionRequest
GetRegionRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
list(request)
public list(request: google.cloud.compute.v1.IListRegionsRequest): Promise<google.cloud.compute.v1.RegionList>;Calls List.
| Name | Description |
| request |
IListRegionsRequest
ListRegionsRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.RegionList> | Promise |