Compute Engine v1 API - Class RegionHealthChecks.RegionHealthChecksClient (2.17.0)

public class RegionHealthChecks.RegionHealthChecksClient : ClientBase<RegionHealthChecks.RegionHealthChecksClient>

Reference documentation and code samples for the Compute Engine v1 API class RegionHealthChecks.RegionHealthChecksClient.

Client for RegionHealthChecks

Inheritance

object > ClientBase > ClientBaseRegionHealthChecksRegionHealthChecksClient > RegionHealthChecks.RegionHealthChecksClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegionHealthChecksClient()

protected RegionHealthChecksClient()

Protected parameterless constructor to allow creation of test doubles.

RegionHealthChecksClient(CallInvoker)

public RegionHealthChecksClient(CallInvoker callInvoker)

Creates a new client for RegionHealthChecks that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegionHealthChecksClient(ChannelBase)

public RegionHealthChecksClient(ChannelBase channel)

Creates a new client for RegionHealthChecks

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegionHealthChecksClient(ClientBaseConfiguration)

protected RegionHealthChecksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteRegionHealthCheckRequest, CallOptions)

public virtual Operation Delete(DeleteRegionHealthCheckRequest request, CallOptions options)

Deletes the specified HealthCheck resource.

Parameters
Name Description
request DeleteRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified HealthCheck resource.

Parameters
Name Description
request DeleteRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
Operation

The response received from the server.

DeleteAsync(DeleteRegionHealthCheckRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionHealthCheckRequest request, CallOptions options)

Deletes the specified HealthCheck resource.

Parameters
Name Description
request DeleteRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified HealthCheck resource.

Parameters
Name Description
request DeleteRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
AsyncUnaryCallOperation

The call object.

Get(GetRegionHealthCheckRequest, CallOptions)

public virtual HealthCheck Get(GetRegionHealthCheckRequest request, CallOptions options)

Returns the specified HealthCheck resource.

Parameters
Name Description
request GetRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
HealthCheck

The response received from the server.

Get(GetRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual HealthCheck Get(GetRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified HealthCheck resource.

Parameters
Name Description
request GetRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
HealthCheck

The response received from the server.

GetAsync(GetRegionHealthCheckRequest, CallOptions)

public virtual AsyncUnaryCall<HealthCheck> GetAsync(GetRegionHealthCheckRequest request, CallOptions options)

Returns the specified HealthCheck resource.

Parameters
Name Description
request GetRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallHealthCheck

The call object.

GetAsync(GetRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<HealthCheck> GetAsync(GetRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified HealthCheck resource.

Parameters
Name Description
request GetRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
AsyncUnaryCallHealthCheck

The call object.

Insert(InsertRegionHealthCheckRequest, CallOptions)

public virtual Operation Insert(InsertRegionHealthCheckRequest request, CallOptions options)

Creates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
Operation

The response received from the server.

InsertAsync(InsertRegionHealthCheckRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionHealthCheckRequest request, CallOptions options)

Creates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
AsyncUnaryCallOperation

The call object.

List(ListRegionHealthChecksRequest, CallOptions)

public virtual HealthCheckList List(ListRegionHealthChecksRequest request, CallOptions options)

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

Parameters
Name Description
request ListRegionHealthChecksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
HealthCheckList

The response received from the server.

List(ListRegionHealthChecksRequest, Metadata, DateTime?, CancellationToken)

public virtual HealthCheckList List(ListRegionHealthChecksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListRegionHealthChecksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
HealthCheckList

The response received from the server.

ListAsync(ListRegionHealthChecksRequest, CallOptions)

public virtual AsyncUnaryCall<HealthCheckList> ListAsync(ListRegionHealthChecksRequest request, CallOptions options)

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

Parameters
Name Description
request ListRegionHealthChecksRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallHealthCheckList

The call object.

ListAsync(ListRegionHealthChecksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<HealthCheckList> ListAsync(ListRegionHealthChecksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListRegionHealthChecksRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
AsyncUnaryCallHealthCheckList

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegionHealthChecks.RegionHealthChecksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionHealthChecksRegionHealthChecksClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionHealthChecks.RegionHealthChecksClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchRegionHealthCheckRequest, CallOptions)

public virtual Operation Patch(PatchRegionHealthCheckRequest request, CallOptions options)

Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Patch(PatchRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
Operation

The response received from the server.

PatchAsync(PatchRegionHealthCheckRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchRegionHealthCheckRequest request, CallOptions options)

Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a HealthCheck resource in the specified project using the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Parameters
Name Description
request PatchRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
AsyncUnaryCallOperation

The call object.

Update(UpdateRegionHealthCheckRequest, CallOptions)

public virtual Operation Update(UpdateRegionHealthCheckRequest request, CallOptions options)

Updates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Update(UpdateRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Update(UpdateRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
Operation

The response received from the server.

UpdateAsync(UpdateRegionHealthCheckRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateRegionHealthCheckRequest request, CallOptions options)

Updates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionHealthCheckRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateRegionHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateRegionHealthCheckRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a HealthCheck resource in the specified project using the data included in the request.

Parameters
Name Description
request UpdateRegionHealthCheckRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.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
AsyncUnaryCallOperation

The call object.