public sealed class MaintenancePolicy : IMessage<MaintenancePolicy>, IEquatable<MaintenancePolicy>, IDeepCloneable<MaintenancePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class MaintenancePolicy.
MaintenancePolicy defines the maintenance policy to be used for the cluster.
A hash identifying the version of this policy, so that updates to fields of
the policy won't accidentally undo intermediate changes (and so that users
of the API unaware of some fields won't accidentally remove other fields).
Make a get() request to the cluster to get the current
resource version and include it with requests to set the policy.
[[["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\u003eThe \u003ccode\u003eMaintenancePolicy\u003c/code\u003e class within the Google Kubernetes Engine v1 API defines the maintenance procedures for a cluster, and is accessible through various versioned documentation links, with version 3.33.0 being the most recent, and 3.18.0 being the current page in the provided content.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMaintenancePolicy\u003c/code\u003e implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, all within the \u003ccode\u003eGoogle.Protobuf\u003c/code\u003e namespace, and also inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a default constructor \u003ccode\u003eMaintenancePolicy()\u003c/code\u003e and an overloaded one \u003ccode\u003eMaintenancePolicy(MaintenancePolicy other)\u003c/code\u003e that takes another \u003ccode\u003eMaintenancePolicy\u003c/code\u003e instance as parameter, and contains two public properties: \u003ccode\u003eResourceVersion\u003c/code\u003e and \u003ccode\u003eWindow\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceVersion\u003c/code\u003e property, of type string, serves as a hash to prevent unintended overwrites of policy changes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWindow\u003c/code\u003e property, of type \u003ccode\u003eMaintenanceWindow\u003c/code\u003e, outlines the timeframe where cluster maintenance can be carried out.\u003c/p\u003e\n"]]],[],null,[]]