1.0.0 (latest) 1.0.0-beta01

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

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

Client for Maintenance

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html) \> [ClientBase](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html)[Maintenance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.Maintenance)[MaintenanceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.Maintenance.MaintenanceClient) \> Maintenance.MaintenanceClient

## Inherited Members

[ClientBase\<Maintenance.MaintenanceClient\>.WithHost(string)](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.html#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.html#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Maintenance.Api.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1)

## Assembly

Google.Cloud.Maintenance.Api.V1.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` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallInvoker.html` The callInvoker to use to make remote calls. |

### MaintenanceClient(ChannelBase)

    public MaintenanceClient(ChannelBase channel)

Creates a new client for Maintenance

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ChannelBase.html` 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` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` The client configuration. |

## Methods

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html) using the same call invoker as this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.html) 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.GetResourceMaintenanceRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.GetResourceMaintenanceRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` 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` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.GetResourceMaintenanceRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ResourceMaintenance` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.GetResourceMaintenanceRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` 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` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ResourceMaintenance` | The call object. |

### ListResourceMaintenances(ListResourceMaintenancesRequest, CallOptions)

    public virtual ListResourceMaintenancesResponse ListResourceMaintenances(ListResourceMaintenancesRequest request, CallOptions options)

Retrieve a collection of resource maintenances.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ListResourceMaintenancesRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ListResourceMaintenancesRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` 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` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ListResourceMaintenancesRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ListResourceMaintenancesResponse` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ListResourceMaintenancesRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` 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` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.ListResourceMaintenancesResponse` | 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` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.htmlhttps://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.ClientBaseConfiguration.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.Maintenancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.Maintenance.MaintenanceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Maintenance.Api.V1.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.SummarizeMaintenancesRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.SummarizeMaintenancesRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` 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` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.SummarizeMaintenancesRequest` The request to send to the server. |
| `options` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.CallOptions.html` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.SummarizeMaintenancesResponse` | 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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.SummarizeMaintenancesRequest` The request to send to the server. |
| `headers` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.Metadata.html` 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` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncUnaryCall-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1/latest/Google.Cloud.Maintenance.Api.V1.SummarizeMaintenancesResponse` | The call object. |