public class RegionsClient : ClientBase<Regions.RegionsClient>
Client for Regions
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
RegionsClient()
protected RegionsClient()
Protected parameterless constructor to allow creation of test doubles.
RegionsClient(CallInvoker)
public RegionsClient(CallInvoker callInvoker)
Creates a new client for Regions that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
RegionsClient(ChannelBase)
public RegionsClient(ChannelBase channel)
Creates a new client for Regions
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
RegionsClient(ClientBase.ClientBaseConfiguration)
protected RegionsClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
Get(GetRegionRequest, CallOptions)
public virtual Region Get(GetRegionRequest request, CallOptions options)
Returns the specified Region resource. Gets a list of available regions by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetRegionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Region | The response received from the server. |
Get(GetRegionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Region Get(GetRegionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Returns the specified Region resource. Gets a list of available regions by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetRegionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Region | The response received from the server. |
GetAsync(GetRegionRequest, CallOptions)
public virtual AsyncUnaryCall<Region> GetAsync(GetRegionRequest request, CallOptions options)
Returns the specified Region resource. Gets a list of available regions by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetRegionRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Region> | The call object. |
GetAsync(GetRegionRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Region> GetAsync(GetRegionRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Returns the specified Region resource. Gets a list of available regions by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetRegionRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Region> | The call object. |
List(ListRegionsRequest, CallOptions)
public virtual RegionList List(ListRegionsRequest request, CallOptions options)
Retrieves the list of region resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListRegionsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
RegionList | The response received from the server. |
List(ListRegionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual RegionList List(ListRegionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Retrieves the list of region resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListRegionsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
RegionList | The response received from the server. |
ListAsync(ListRegionsRequest, CallOptions)
public virtual AsyncUnaryCall<RegionList> ListAsync(ListRegionsRequest request, CallOptions options)
Retrieves the list of region resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListRegionsRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<RegionList> | The call object. |
ListAsync(ListRegionsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<RegionList> ListAsync(ListRegionsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Retrieves the list of region resources available to the specified project.
Parameters | |
---|---|
Name | Description |
request | ListRegionsRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<RegionList> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override Regions.RegionsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
Regions.RegionsClient |