Compute Engine v1 API - Class HealthChecks.HealthChecksClient (2.7.0)

public class HealthChecks.HealthChecksClient : ClientBase<HealthChecks.HealthChecksClient>

Reference documentation and code samples for the Compute Engine v1 API class HealthChecks.HealthChecksClient.

Client for HealthChecks

Inheritance

object > ClientBase > ClientBaseHealthChecksHealthChecksClient > HealthChecks.HealthChecksClient

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

HealthChecksClient()

protected HealthChecksClient()

Protected parameterless constructor to allow creation of test doubles.

HealthChecksClient(CallInvoker)

public HealthChecksClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

HealthChecksClient(ChannelBase)

public HealthChecksClient(ChannelBase channel)

Creates a new client for HealthChecks

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

HealthChecksClient(ClientBaseConfiguration)

protected HealthChecksClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListHealthChecksRequest, CallOptions)

public virtual HealthChecksAggregatedList AggregatedList(AggregatedListHealthChecksRequest request, CallOptions options)

Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListHealthChecksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
HealthChecksAggregatedList

The response received from the server.

AggregatedList(AggregatedListHealthChecksRequest, Metadata, DateTime?, CancellationToken)

public virtual HealthChecksAggregatedList AggregatedList(AggregatedListHealthChecksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListHealthChecksRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
HealthChecksAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListHealthChecksRequest, CallOptions)

public virtual AsyncUnaryCall<HealthChecksAggregatedList> AggregatedListAsync(AggregatedListHealthChecksRequest request, CallOptions options)

Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListHealthChecksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallHealthChecksAggregatedList

The call object.

AggregatedListAsync(AggregatedListHealthChecksRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<HealthChecksAggregatedList> AggregatedListAsync(AggregatedListHealthChecksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.

Parameters
NameDescription
requestAggregatedListHealthChecksRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallHealthChecksAggregatedList

The call object.

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

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

Returns
TypeDescription
OperationsOperationsClient

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

Delete(DeleteHealthCheckRequest, CallOptions)

public virtual Operation Delete(DeleteHealthCheckRequest request, CallOptions options)

Deletes the specified HealthCheck resource.

Parameters
NameDescription
requestDeleteHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteHealthCheckRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified HealthCheck resource.

Parameters
NameDescription
requestDeleteHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteHealthCheckRequest, CallOptions)

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

Deletes the specified HealthCheck resource.

Parameters
NameDescription
requestDeleteHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteHealthCheckRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified HealthCheck resource.

Parameters
NameDescription
requestDeleteHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetHealthCheckRequest, CallOptions)

public virtual HealthCheck Get(GetHealthCheckRequest request, CallOptions options)

Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.

Parameters
NameDescription
requestGetHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
HealthCheck

The response received from the server.

Get(GetHealthCheckRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.

Parameters
NameDescription
requestGetHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
HealthCheck

The response received from the server.

GetAsync(GetHealthCheckRequest, CallOptions)

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

Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.

Parameters
NameDescription
requestGetHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallHealthCheck

The call object.

GetAsync(GetHealthCheckRequest, Metadata, DateTime?, CancellationToken)

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

Returns the specified HealthCheck resource. Gets a list of available health checks by making a list() request.

Parameters
NameDescription
requestGetHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallHealthCheck

The call object.

Insert(InsertHealthCheckRequest, CallOptions)

public virtual Operation Insert(InsertHealthCheckRequest request, CallOptions options)

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

Parameters
NameDescription
requestInsertHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertHealthCheckRequest 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
NameDescription
requestInsertHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(InsertHealthCheckRequest, CallOptions)

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

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

Parameters
NameDescription
requestInsertHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertHealthCheckRequest 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
NameDescription
requestInsertHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

List(ListHealthChecksRequest, CallOptions)

public virtual HealthCheckList List(ListHealthChecksRequest request, CallOptions options)

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

Parameters
NameDescription
requestListHealthChecksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
HealthCheckList

The response received from the server.

List(ListHealthChecksRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
NameDescription
requestListHealthChecksRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
HealthCheckList

The response received from the server.

ListAsync(ListHealthChecksRequest, CallOptions)

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

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

Parameters
NameDescription
requestListHealthChecksRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallHealthCheckList

The call object.

ListAsync(ListHealthChecksRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
NameDescription
requestListHealthChecksRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallHealthCheckList

The call object.

NewInstance(ClientBaseConfiguration)

protected override HealthChecks.HealthChecksClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
HealthChecksHealthChecksClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.HealthChecks.HealthChecksClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

Patch(PatchHealthCheckRequest, CallOptions)

public virtual Operation Patch(PatchHealthCheckRequest 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
NameDescription
requestPatchHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchHealthCheckRequest 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
NameDescription
requestPatchHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchAsync(PatchHealthCheckRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchHealthCheckRequest 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
NameDescription
requestPatchHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchHealthCheckRequest 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
NameDescription
requestPatchHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Update(UpdateHealthCheckRequest, CallOptions)

public virtual Operation Update(UpdateHealthCheckRequest request, CallOptions options)

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

Parameters
NameDescription
requestUpdateHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Update(UpdateHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Update(UpdateHealthCheckRequest 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
NameDescription
requestUpdateHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

UpdateAsync(UpdateHealthCheckRequest, CallOptions)

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

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

Parameters
NameDescription
requestUpdateHealthCheckRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

UpdateAsync(UpdateHealthCheckRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> UpdateAsync(UpdateHealthCheckRequest 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
NameDescription
requestUpdateHealthCheckRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.