public sealed class MaintenancePolicy : IMessage<MaintenancePolicy>, IEquatable<MaintenancePolicy>, IDeepCloneable<MaintenancePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Memorystore for Memcached v1 API class MaintenancePolicy.
public RepeatedField<WeeklyMaintenanceWindow> WeeklyMaintenanceWindow { get; }
Required. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_maintenance_windows 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 document provides reference information for the \u003ccode\u003eMaintenancePolicy\u003c/code\u003e class within the Google Cloud Memorystore for Memcached v1 API, specifically for the .NET environment, with the latest version being 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaintenancePolicy\u003c/code\u003e class is used to define a maintenance policy for a Memcached instance, including when it was created (\u003ccode\u003eCreateTime\u003c/code\u003e) and last updated (\u003ccode\u003eUpdateTime\u003c/code\u003e), as well as a description of the policy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaintenancePolicy\u003c/code\u003e class supports a \u003ccode\u003eWeeklyMaintenanceWindow\u003c/code\u003e property, which allows you to specify when maintenance windows should occur.\u003c/p\u003e\n"],["\u003cp\u003eThe MaintenancePolicy class implements several interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for various functionalities like deep cloning and message management.\u003c/p\u003e\n"],["\u003cp\u003eThere are several other versions of the \u003ccode\u003eMaintenancePolicy\u003c/code\u003e reference documentation available, going as far back as version 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Memorystore for Memcached v1 API - Class MaintenancePolicy (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.4.0/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.3.0/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.2.0/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.1.0/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/2.0.0/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.2.0/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.1.0/Google.Cloud.Memcache.V1.MaintenancePolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Memcache.V1/1.0.0/Google.Cloud.Memcache.V1.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 Cloud Memorystore for Memcached v1 API class MaintenancePolicy.\n\nMaintenance policy per 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.Memcache.V1/latest/Google.Cloud.Memcache.V1.MaintenancePolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MaintenancePolicy](/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.MaintenancePolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MaintenancePolicy](/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1.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.Memcache.V1](/dotnet/docs/reference/Google.Cloud.Memcache.V1/latest/Google.Cloud.Memcache.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Memcache.V1.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\nDescription 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 updated.\n\n### WeeklyMaintenanceWindow\n\n public RepeatedField\u003cWeeklyMaintenanceWindow\u003e WeeklyMaintenanceWindow { get; }\n\nRequired. Maintenance window that is applied to resources covered by this\npolicy. Minimum 1. For the current version, the maximum number of\nweekly_maintenance_windows is expected to be one."]]