# Maintenance v1beta API - Class ResourceMaintenance (1.0.0-beta02)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta02 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance)
- [1.0.0-beta01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/1.0.0-beta01/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance)

    public sealed class ResourceMaintenance : IMessage<ResourceMaintenance>, IEquatable<ResourceMaintenance>, IDeepCloneable<ResourceMaintenance>, IBufferMessage, IMessage

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

ResourceMaintenance is a resource that represents a maintenance operation
on a resource.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ResourceMaintenance

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourceMaintenance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourceMaintenance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResourceMaintenance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.Maintenance.Api.V1Beta.dll

## Constructors

### ResourceMaintenance()

    public ResourceMaintenance()

### ResourceMaintenance(ResourceMaintenance)

    public ResourceMaintenance(ResourceMaintenance other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance` |

## Properties

### Annotations

    public MapField<string, string> Annotations { get; }

Optional. Annotations is an unstructured key-value map stored with a
resource that may be set by external tools to store and retrieve arbitrary
metadata. They are not queryable and should be preserved when modifying
objects.

More info: <https://kubernetes.io/docs/user-guide/annotations>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Controls

    public RepeatedField<MaintenanceControl> Controls { get; }

Output only. The controls of the maintenance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.MaintenanceControl` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The create time of the resource maintenance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Etag

    public string Etag { get; set; }

Output only. An opaque value that uniquely identifies a version or
generation of a resource. It can be used to confirm that the client
and server agree on the ordering of a resource being written.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. The labels on the resource, which can be used for categorization.
similar to Kubernetes resource labels.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Maintenance

    public ResourceMaintenance.Types.Maintenance Maintenance { get; set; }

Output only. The details of the maintenance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance.Types.Maintenance` |   |

### MaintenanceCancelTime

    public Timestamp MaintenanceCancelTime { get; set; }

Output only. The time when the resource maintenance was cancelled.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### MaintenanceEndTime

    public Timestamp MaintenanceEndTime { get; set; }

Output only. The time when the resource maintenance has completed.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### MaintenanceScheduledEndTime

    public Timestamp MaintenanceScheduledEndTime { get; set; }

Output only. The time when the maintenance on the resource was scheduled to
end.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### MaintenanceScheduledStartTime

    public Timestamp MaintenanceScheduledStartTime { get; set; }

Output only. The time when the maintenance on the resource was scheduled to
start.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### MaintenanceStartTime

    public Timestamp MaintenanceStartTime { get; set; }

Output only. The time when the resource maintenance has started.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Name

    public string Name { get; set; }

Identifier. The name of the resource_maintenance resource.
Format:
`"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Resource

    public ResourceMaintenance.Types.Resource Resource { get; set; }

Output only. The resource spec of the resource maintenance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance.Types.Resource` |   |

### ResourceMaintenanceName

    public ResourceMaintenanceName ResourceMaintenanceName { get; set; }

[ResourceMaintenanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenanceName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance#Google_Cloud_Maintenance_Api_V1Beta_ResourceMaintenance_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenanceName` |   |

### State

    public ResourceMaintenance.Types.State State { get; set; }

Output only. The state of the resource maintenance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenancehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Maintenance.Api.V1Beta/latest/Google.Cloud.Maintenance.Api.V1Beta.ResourceMaintenance.Types.State` |   |

### Uid

    public string Uid { get; set; }

Output only. The unique identifier of the resource. UID is unique in the
time and space for this resource within the scope of the service. It is
typically generated by the server on successful creation of a resource
and must not be changed. UID is used to uniquely identify resources
with resource name reuses. This should be a UUID4.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The update time of the resource maintenance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### UserControllable

    public bool UserControllable { get; set; }

Output only. Indicates whether the user has some control over that
maintenance, either
proactively before maintenance was scheduled with maintenance policy or
with reactive controls after it was scheduled (see controls field)

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |