Regions

google.cloud.compute.v1. Regions

Represents a Regions

Constructor

new Regions(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Regions service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

get(request, callback) → {undefined}

Calls Get.

Parameters:
Name Type Description
request google.cloud.compute.v1.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:
Type Description
undefined

get(request) → {Promise.<google.cloud.compute.v1.Region>}

Calls Get.

Parameters:
Name Type Description
request google.cloud.compute.v1.IGetRegionRequest

GetRegionRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.compute.v1.Region>

Promise

list(request, callback) → {undefined}

Calls List.

Parameters:
Name Type Description
request google.cloud.compute.v1.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:
Type Description
undefined

list(request) → {Promise.<google.cloud.compute.v1.RegionList>}

Calls List.

Parameters:
Name Type Description
request google.cloud.compute.v1.IListRegionsRequest

ListRegionsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.compute.v1.RegionList>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Regions}

Creates new Regions service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
Regions

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

Type Definitions

GetCallback(error, responseopt)

Callback as used by get.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.compute.v1.Region <optional>

Region

ListCallback(error, responseopt)

Callback as used by list.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.compute.v1.RegionList <optional>

RegionList