public sealed class MaintenancePolicy : IMessage<MaintenancePolicy>, IEquatable<MaintenancePolicy>, IDeepCloneable<MaintenancePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Memorystore for Redis v1beta1 API class MaintenancePolicy.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eMaintenancePolicy\u003c/code\u003e class, part of the Google Cloud Memorystore for Redis v1beta1 API, which is designed to manage maintenance operations for Redis instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaintenancePolicy\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling, comparison, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eMaintenancePolicy\u003c/code\u003e include \u003ccode\u003eCreateTime\u003c/code\u003e and \u003ccode\u003eUpdateTime\u003c/code\u003e (which are timestamps indicating when the policy was created and last updated), \u003ccode\u003eDescription\u003c/code\u003e (a string field for describing the policy), and \u003ccode\u003eWeeklyMaintenanceWindow\u003c/code\u003e (a repeated field specifying maintenance windows).\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also provides information about the \u003ccode\u003eMaintenancePolicy\u003c/code\u003e's namespace, assembly and its constructors which are \u003ccode\u003eMaintenancePolicy()\u003c/code\u003e and \u003ccode\u003eMaintenancePolicy(MaintenancePolicy other)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are currently 3 versions of this documented, \u003ccode\u003e3.0.0-beta05 (latest)\u003c/code\u003e, \u003ccode\u003e3.0.0-beta04\u003c/code\u003e, and \u003ccode\u003e2.0.0-beta09\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Memorystore for Redis v1beta1 API - Class MaintenancePolicy (3.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.MaintenancePolicy)\n- [3.0.0-beta04](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/3.0.0-beta04/Google.Cloud.Redis.V1Beta1.MaintenancePolicy)\n- [2.0.0-beta09](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/2.0.0-beta09/Google.Cloud.Redis.V1Beta1.MaintenancePolicy) \n\n public sealed class MaintenancePolicy : IMessage\u003cMaintenancePolicy\u003e, IEquatable\u003cMaintenancePolicy\u003e, IDeepCloneable\u003cMaintenancePolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Memorystore for Redis v1beta1 API class MaintenancePolicy.\n\nMaintenance policy for an instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MaintenancePolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MaintenancePolicy](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.MaintenancePolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MaintenancePolicy](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.MaintenancePolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MaintenancePolicy](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.MaintenancePolicy), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Redis.V1Beta1](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Redis.V1Beta1.dll\n\nConstructors\n------------\n\n### MaintenancePolicy()\n\n public MaintenancePolicy()\n\n### MaintenancePolicy(MaintenancePolicy)\n\n public MaintenancePolicy(MaintenancePolicy other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time when the policy was created.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. Description of what this policy is for. Create/Update methods\nreturn INVALID_ARGUMENT if the length is greater than 512.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The time when the policy was last updated.\n\n### WeeklyMaintenanceWindow\n\n public RepeatedField\u003cWeeklyMaintenanceWindow\u003e WeeklyMaintenanceWindow { get; }\n\nOptional. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_window is expected to be one."]]