Maintenance v1beta API - Class Maintenance.MaintenanceClient (1.0.0-beta01)

public class Maintenance.MaintenanceClient : ClientBase<Maintenance.MaintenanceClient>

Reference documentation and code samples for the Maintenance v1beta API class Maintenance.MaintenanceClient.

Client for Maintenance

Inheritance

object > ClientBase > ClientBaseMaintenanceMaintenanceClient > Maintenance.MaintenanceClient

Namespace

Google.Cloud.Maintenance.Api.V1Beta

Assembly

Google.Cloud.Maintenance.Api.V1Beta.dll

Constructors

MaintenanceClient()

protected MaintenanceClient()

Protected parameterless constructor to allow creation of test doubles.

MaintenanceClient(CallInvoker)

public MaintenanceClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

MaintenanceClient(ChannelBase)

public MaintenanceClient(ChannelBase channel)

Creates a new client for Maintenance

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

MaintenanceClient(ClientBaseConfiguration)

protected MaintenanceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

GetResourceMaintenance(GetResourceMaintenanceRequest, CallOptions)

public virtual ResourceMaintenance GetResourceMaintenance(GetResourceMaintenanceRequest request, CallOptions options)

Retrieve a single resource maintenance.

Parameters
Name Description
request GetResourceMaintenanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ResourceMaintenance

The response received from the server.

GetResourceMaintenance(GetResourceMaintenanceRequest, Metadata, DateTime?, CancellationToken)

public virtual ResourceMaintenance GetResourceMaintenance(GetResourceMaintenanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieve a single resource maintenance.

Parameters
Name Description
request GetResourceMaintenanceRequest

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
ResourceMaintenance

The response received from the server.

GetResourceMaintenanceAsync(GetResourceMaintenanceRequest, CallOptions)

public virtual AsyncUnaryCall<ResourceMaintenance> GetResourceMaintenanceAsync(GetResourceMaintenanceRequest request, CallOptions options)

Retrieve a single resource maintenance.

Parameters
Name Description
request GetResourceMaintenanceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallResourceMaintenance

The call object.

GetResourceMaintenanceAsync(GetResourceMaintenanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ResourceMaintenance> GetResourceMaintenanceAsync(GetResourceMaintenanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieve a single resource maintenance.

Parameters
Name Description
request GetResourceMaintenanceRequest

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
AsyncUnaryCallResourceMaintenance

The call object.

ListResourceMaintenances(ListResourceMaintenancesRequest, CallOptions)

public virtual ListResourceMaintenancesResponse ListResourceMaintenances(ListResourceMaintenancesRequest request, CallOptions options)

Retrieve a collection of resource maintenances.

Parameters
Name Description
request ListResourceMaintenancesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListResourceMaintenancesResponse

The response received from the server.

ListResourceMaintenances(ListResourceMaintenancesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListResourceMaintenancesResponse ListResourceMaintenances(ListResourceMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieve a collection of resource maintenances.

Parameters
Name Description
request ListResourceMaintenancesRequest

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
ListResourceMaintenancesResponse

The response received from the server.

ListResourceMaintenancesAsync(ListResourceMaintenancesRequest, CallOptions)

public virtual AsyncUnaryCall<ListResourceMaintenancesResponse> ListResourceMaintenancesAsync(ListResourceMaintenancesRequest request, CallOptions options)

Retrieve a collection of resource maintenances.

Parameters
Name Description
request ListResourceMaintenancesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListResourceMaintenancesResponse

The call object.

ListResourceMaintenancesAsync(ListResourceMaintenancesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListResourceMaintenancesResponse> ListResourceMaintenancesAsync(ListResourceMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieve a collection of resource maintenances.

Parameters
Name Description
request ListResourceMaintenancesRequest

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
AsyncUnaryCallListResourceMaintenancesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override Maintenance.MaintenanceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
MaintenanceMaintenanceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Maintenance.Api.V1Beta.Maintenance.MaintenanceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

SummarizeMaintenances(SummarizeMaintenancesRequest, CallOptions)

public virtual SummarizeMaintenancesResponse SummarizeMaintenances(SummarizeMaintenancesRequest request, CallOptions options)

Retrieves the statistics of a specific maintenance.

Parameters
Name Description
request SummarizeMaintenancesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
SummarizeMaintenancesResponse

The response received from the server.

SummarizeMaintenances(SummarizeMaintenancesRequest, Metadata, DateTime?, CancellationToken)

public virtual SummarizeMaintenancesResponse SummarizeMaintenances(SummarizeMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the statistics of a specific maintenance.

Parameters
Name Description
request SummarizeMaintenancesRequest

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
SummarizeMaintenancesResponse

The response received from the server.

SummarizeMaintenancesAsync(SummarizeMaintenancesRequest, CallOptions)

public virtual AsyncUnaryCall<SummarizeMaintenancesResponse> SummarizeMaintenancesAsync(SummarizeMaintenancesRequest request, CallOptions options)

Retrieves the statistics of a specific maintenance.

Parameters
Name Description
request SummarizeMaintenancesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallSummarizeMaintenancesResponse

The call object.

SummarizeMaintenancesAsync(SummarizeMaintenancesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<SummarizeMaintenancesResponse> SummarizeMaintenancesAsync(SummarizeMaintenancesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the statistics of a specific maintenance.

Parameters
Name Description
request SummarizeMaintenancesRequest

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
AsyncUnaryCallSummarizeMaintenancesResponse

The call object.