3.6.0 (latest) 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.5.0 2.4.0 2.3.0 2.2.0

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

Reference documentation and code samples for the Google Cloud Memorystore for Redis v1 API class MaintenancePolicy.

Maintenance policy for an instance.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[MaintenancePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.MaintenancePolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MaintenancePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.MaintenancePolicy.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[MaintenancePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.MaintenancePolicy.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Redis.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.md.txt)

## Assembly

Google.Cloud.Redis.V1.dll

## Constructors

### MaintenancePolicy()

    public MaintenancePolicy()

### MaintenancePolicy(MaintenancePolicy)

    public MaintenancePolicy(MaintenancePolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `MaintenancePolicy` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time when the policy was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Description

    public string Description { get; set; }

Optional. Description of what this policy is for. Create/Update methods
return INVALID_ARGUMENT if the length is greater than 512.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time when the policy was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### WeeklyMaintenanceWindow

    public RepeatedField<WeeklyMaintenanceWindow> WeeklyMaintenanceWindow { get; }

Optional. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldWeeklyMaintenanceWindow` |   |