public sealed class TargetPoolsClientImpl : TargetPoolsClient
Reference documentation and code samples for the Compute Engine v1 API class TargetPoolsClientImpl.
TargetPools client wrapper implementation, for convenient use.
Namespace
GoogleCloudGoogle.Cloud.ComputeV1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The TargetPools API.
Constructors
TargetPoolsClientImpl(TargetPoolsClient, TargetPoolsSettings, ILogger)
public TargetPoolsClientImpl(TargetPools.TargetPoolsClient grpcClient, TargetPoolsSettings settings, ILogger logger)
Constructs a client wrapper for the TargetPools service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | TargetPoolsTargetPoolsClient The underlying gRPC client. |
settings | TargetPoolsSettings The base TargetPoolsSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
AddHealthCheckOperationsClient
public override OperationsClient AddHealthCheckOperationsClient { get; }
The long-running operations client for AddHealthCheck
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
AddInstanceOperationsClient
public override OperationsClient AddInstanceOperationsClient { get; }
The long-running operations client for AddInstance
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override TargetPools.TargetPoolsClient GrpcClient { get; }
The underlying gRPC TargetPools client
Property Value | |
---|---|
Type | Description |
TargetPoolsTargetPoolsClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveHealthCheckOperationsClient
public override OperationsClient RemoveHealthCheckOperationsClient { get; }
The long-running operations client for RemoveHealthCheck
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RemoveInstanceOperationsClient
public override OperationsClient RemoveInstanceOperationsClient { get; }
The long-running operations client for RemoveInstance
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetBackupOperationsClient
public override OperationsClient SetBackupOperationsClient { get; }
The long-running operations client for SetBackup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AddHealthCheck(AddHealthCheckTargetPoolRequest, CallSettings)
public override Operation<Operation, Operation> AddHealthCheck(AddHealthCheckTargetPoolRequest request, CallSettings callSettings = null)
Adds health check URLs to a target pool.
Parameters | |
---|---|
Name | Description |
request | AddHealthCheckTargetPoolRequest 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 |
OperationOperationOperation | The RPC response. |
AddHealthCheckAsync(AddHealthCheckTargetPoolRequest, CallSettings)
public override Task<Operation<Operation, Operation>> AddHealthCheckAsync(AddHealthCheckTargetPoolRequest request, CallSettings callSettings = null)
Adds health check URLs to a target pool.
Parameters | |
---|---|
Name | Description |
request | AddHealthCheckTargetPoolRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
AddInstance(AddInstanceTargetPoolRequest, CallSettings)
public override Operation<Operation, Operation> AddInstance(AddInstanceTargetPoolRequest request, CallSettings callSettings = null)
Adds an instance to a target pool.
Parameters | |
---|---|
Name | Description |
request | AddInstanceTargetPoolRequest 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 |
OperationOperationOperation | The RPC response. |
AddInstanceAsync(AddInstanceTargetPoolRequest, CallSettings)
public override Task<Operation<Operation, Operation>> AddInstanceAsync(AddInstanceTargetPoolRequest request, CallSettings callSettings = null)
Adds an instance to a target pool.
Parameters | |
---|---|
Name | Description |
request | AddInstanceTargetPoolRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
AggregatedList(AggregatedListTargetPoolsRequest, CallSettings)
public override PagedEnumerable<TargetPoolAggregatedList, KeyValuePair<string, TargetPoolsScopedList>> AggregatedList(AggregatedListTargetPoolsRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of target pools.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetPoolsRequest 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 |
PagedEnumerableTargetPoolAggregatedListKeyValuePairstringTargetPoolsScopedList | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
AggregatedListAsync(AggregatedListTargetPoolsRequest, CallSettings)
public override PagedAsyncEnumerable<TargetPoolAggregatedList, KeyValuePair<string, TargetPoolsScopedList>> AggregatedListAsync(AggregatedListTargetPoolsRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of target pools.
Parameters | |
---|---|
Name | Description |
request | AggregatedListTargetPoolsRequest 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 |
PagedAsyncEnumerableTargetPoolAggregatedListKeyValuePairstringTargetPoolsScopedList | A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
Delete(DeleteTargetPoolRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteTargetPoolRequest request, CallSettings callSettings = null)
Deletes the specified target pool.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetPoolRequest 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 |
OperationOperationOperation | The RPC response. |
DeleteAsync(DeleteTargetPoolRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteTargetPoolRequest request, CallSettings callSettings = null)
Deletes the specified target pool.
Parameters | |
---|---|
Name | Description |
request | DeleteTargetPoolRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
Get(GetTargetPoolRequest, CallSettings)
public override TargetPool Get(GetTargetPoolRequest request, CallSettings callSettings = null)
Returns the specified target pool. Gets a list of available target pools by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetTargetPoolRequest 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 |
TargetPool | The RPC response. |
GetAsync(GetTargetPoolRequest, CallSettings)
public override Task<TargetPool> GetAsync(GetTargetPoolRequest request, CallSettings callSettings = null)
Returns the specified target pool. Gets a list of available target pools by making a list() request.
Parameters | |
---|---|
Name | Description |
request | GetTargetPoolRequest 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 |
TaskTargetPool | A Task containing the RPC response. |
GetHealth(GetHealthTargetPoolRequest, CallSettings)
public override TargetPoolInstanceHealth GetHealth(GetHealthTargetPoolRequest request, CallSettings callSettings = null)
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
Parameters | |
---|---|
Name | Description |
request | GetHealthTargetPoolRequest 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 |
TargetPoolInstanceHealth | The RPC response. |
GetHealthAsync(GetHealthTargetPoolRequest, CallSettings)
public override Task<TargetPoolInstanceHealth> GetHealthAsync(GetHealthTargetPoolRequest request, CallSettings callSettings = null)
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
Parameters | |
---|---|
Name | Description |
request | GetHealthTargetPoolRequest 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 |
TaskTargetPoolInstanceHealth | A Task containing the RPC response. |
Insert(InsertTargetPoolRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertTargetPoolRequest request, CallSettings callSettings = null)
Creates a target pool in the specified project and region using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetPoolRequest 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 |
OperationOperationOperation | The RPC response. |
InsertAsync(InsertTargetPoolRequest, CallSettings)
public override Task<Operation<Operation, Operation>> InsertAsync(InsertTargetPoolRequest request, CallSettings callSettings = null)
Creates a target pool in the specified project and region using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | InsertTargetPoolRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
List(ListTargetPoolsRequest, CallSettings)
public override PagedEnumerable<TargetPoolList, TargetPool> List(ListTargetPoolsRequest request, CallSettings callSettings = null)
Retrieves a list of target pools available to the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListTargetPoolsRequest 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 |
PagedEnumerableTargetPoolListTargetPool | A pageable sequence of TargetPool resources. |
ListAsync(ListTargetPoolsRequest, CallSettings)
public override PagedAsyncEnumerable<TargetPoolList, TargetPool> ListAsync(ListTargetPoolsRequest request, CallSettings callSettings = null)
Retrieves a list of target pools available to the specified project and region.
Parameters | |
---|---|
Name | Description |
request | ListTargetPoolsRequest 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 |
PagedAsyncEnumerableTargetPoolListTargetPool | A pageable asynchronous sequence of TargetPool resources. |
RemoveHealthCheck(RemoveHealthCheckTargetPoolRequest, CallSettings)
public override Operation<Operation, Operation> RemoveHealthCheck(RemoveHealthCheckTargetPoolRequest request, CallSettings callSettings = null)
Removes health check URL from a target pool.
Parameters | |
---|---|
Name | Description |
request | RemoveHealthCheckTargetPoolRequest 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 |
OperationOperationOperation | The RPC response. |
RemoveHealthCheckAsync(RemoveHealthCheckTargetPoolRequest, CallSettings)
public override Task<Operation<Operation, Operation>> RemoveHealthCheckAsync(RemoveHealthCheckTargetPoolRequest request, CallSettings callSettings = null)
Removes health check URL from a target pool.
Parameters | |
---|---|
Name | Description |
request | RemoveHealthCheckTargetPoolRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
RemoveInstance(RemoveInstanceTargetPoolRequest, CallSettings)
public override Operation<Operation, Operation> RemoveInstance(RemoveInstanceTargetPoolRequest request, CallSettings callSettings = null)
Removes instance URL from a target pool.
Parameters | |
---|---|
Name | Description |
request | RemoveInstanceTargetPoolRequest 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 |
OperationOperationOperation | The RPC response. |
RemoveInstanceAsync(RemoveInstanceTargetPoolRequest, CallSettings)
public override Task<Operation<Operation, Operation>> RemoveInstanceAsync(RemoveInstanceTargetPoolRequest request, CallSettings callSettings = null)
Removes instance URL from a target pool.
Parameters | |
---|---|
Name | Description |
request | RemoveInstanceTargetPoolRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |
SetBackup(SetBackupTargetPoolRequest, CallSettings)
public override Operation<Operation, Operation> SetBackup(SetBackupTargetPoolRequest request, CallSettings callSettings = null)
Changes a backup target pool's configurations.
Parameters | |
---|---|
Name | Description |
request | SetBackupTargetPoolRequest 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 |
OperationOperationOperation | The RPC response. |
SetBackupAsync(SetBackupTargetPoolRequest, CallSettings)
public override Task<Operation<Operation, Operation>> SetBackupAsync(SetBackupTargetPoolRequest request, CallSettings callSettings = null)
Changes a backup target pool's configurations.
Parameters | |
---|---|
Name | Description |
request | SetBackupTargetPoolRequest 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 |
TaskOperationOperationOperation | A Task containing the RPC response. |