Class Regions.RegionsBase (1.0.0)

[BindServiceMethod(typeof(Regions), "BindService")]
public abstract class RegionsBase

Base class for server-side implementations of Regions

Inheritance

Object > Regions.RegionsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Get(GetRegionRequest, ServerCallContext)

public virtual Task<Region> Get(GetRegionRequest request, ServerCallContext context)

Returns the specified Region resource. Gets a list of available regions by making a list() request.

Parameters
NameDescription
requestGetRegionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Region>

The response to send back to the client (wrapped by a task).

List(ListRegionsRequest, ServerCallContext)

public virtual Task<RegionList> List(ListRegionsRequest request, ServerCallContext context)

Retrieves the list of region resources available to the specified project.

Parameters
NameDescription
requestListRegionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<RegionList>

The response to send back to the client (wrapped by a task).