public sealed class RegionsClientImpl : RegionsClient
Regions client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The Regions API.
Constructors
RegionsClientImpl(Regions.RegionsClient, RegionsSettings)
public RegionsClientImpl(Regions.RegionsClient grpcClient, RegionsSettings settings)
Constructs a client wrapper for the Regions service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | Regions.RegionsClient The underlying gRPC client. |
settings | RegionsSettings The base RegionsSettings used within this client. |
Properties
GrpcClient
public override Regions.RegionsClient GrpcClient { get; }
The underlying gRPC Regions client
Property Value | |
---|---|
Type | Description |
Regions.RegionsClient |
Methods
Get(GetRegionRequest, CallSettings)
public override Region Get(GetRegionRequest request, CallSettings callSettings = null)
Returns the specified Region resource. Gets a list of available regions by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetRegionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Region | The RPC response. |
GetAsync(GetRegionRequest, CallSettings)
public override Task<Region> GetAsync(GetRegionRequest request, CallSettings callSettings = null)
Returns the specified Region resource. Gets a list of available regions by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetRegionRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Region> | A Task containing the RPC response. |
List(ListRegionsRequest, CallSettings)
public override PagedEnumerable<RegionList, Region> List(ListRegionsRequest request, CallSettings callSettings = null)
Retrieves the list of region resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListRegionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<RegionList, Region> | A pageable sequence of Region resources. |
ListAsync(ListRegionsRequest, CallSettings)
public override PagedAsyncEnumerable<RegionList, Region> ListAsync(ListRegionsRequest request, CallSettings callSettings = null)
Retrieves the list of region resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListRegionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<RegionList, Region> | A pageable asynchronous sequence of Region resources. |