public sealed class ExclusionWindow : IMessage<ExclusionWindow>, IEquatable<ExclusionWindow>, IDeepCloneable<ExclusionWindow>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup for GKE v1 API class ExclusionWindow.
Defines a time window during which no backup should
happen. All time and date are in UTC.
Required. Specifies duration of the window.
Duration must be >= 5 minutes and < (target RPO - 20 minutes).
Additional restrictions based on the recurrence type to allow some time for
backup to happen:
single_occurrence_date: no restriction, but UI may warn about this when
duration >= target RPO
daily window: duration < 24 hours
weekly window:
days of week includes all seven days of a week: duration < 24 hours
all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
[[["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\u003eExclusionWindow\u003c/code\u003e class in the Google Cloud GKE Backup v1 API defines a time period when backups should not occur, using UTC for all date and time references.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for the configuration of exclusion windows to occur daily, on specific days of the week, or on a single specified date, providing flexible options for scheduling backups.\u003c/p\u003e\n"],["\u003cp\u003eThe duration of an exclusion window must be at least 5 minutes, but not greater than the target Recovery Point Objective (RPO) minus 20 minutes, and it may be further constrained based on the type of recurrence.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExclusionWindow\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, supporting its use within the Google Protobuf ecosystem and providing methods for deep cloning and equality checks.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eExclusionWindow\u003c/code\u003e is version 2.6.0, with documentation available for versions back to 1.0.0-beta01.\u003c/p\u003e\n"]]],[],null,["# Backup for GKE v1 API - Class ExclusionWindow (2.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.7.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.6.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.5.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.4.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.3.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.2.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.1.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.0.0/Google.Cloud.GkeBackup.V1.ExclusionWindow)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/1.0.0-beta01/Google.Cloud.GkeBackup.V1.ExclusionWindow) \n\n public sealed class ExclusionWindow : IMessage\u003cExclusionWindow\u003e, IEquatable\u003cExclusionWindow\u003e, IDeepCloneable\u003cExclusionWindow\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup for GKE v1 API class ExclusionWindow.\n\nDefines a time window during which no backup should\nhappen. All time and date are in UTC. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ExclusionWindow \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExclusionWindow](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.ExclusionWindow), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExclusionWindow](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.ExclusionWindow), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExclusionWindow](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.ExclusionWindow), [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.GkeBackup.V1](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeBackup.V1.dll\n\nConstructors\n------------\n\n### ExclusionWindow()\n\n public ExclusionWindow()\n\n### ExclusionWindow(ExclusionWindow)\n\n public ExclusionWindow(ExclusionWindow other)\n\nProperties\n----------\n\n### Daily\n\n public bool Daily { get; set; }\n\nThe exclusion window occurs every day if set to \"True\".\nSpecifying this field to \"False\" is an error.\n\n### DaysOfWeek\n\n public ExclusionWindow.Types.DayOfWeekList DaysOfWeek { get; set; }\n\nThe exclusion window occurs on these days of each week in UTC.\n\n### Duration\n\n public Duration Duration { get; set; }\n\nRequired. Specifies duration of the window.\nDuration must be \\\u003e= 5 minutes and \\\u003c (target RPO - 20 minutes).\nAdditional restrictions based on the recurrence type to allow some time for\nbackup to happen:\n\n- single_occurrence_date: no restriction, but UI may warn about this when duration \\\u003e= target RPO\n- daily window: duration \\\u003c 24 hours\n- weekly window:\n - days of week includes all seven days of a week: duration \\\u003c 24 hours\n - all other weekly window: duration \\\u003c 168 hours (i.e., 24 \\* 7 hours)\n\n### HasDaily\n\n public bool HasDaily { get; }\n\nGets whether the \"daily\" field is set\n\n### RecurrenceCase\n\n public ExclusionWindow.RecurrenceOneofCase RecurrenceCase { get; }\n\n### SingleOccurrenceDate\n\n public Date SingleOccurrenceDate { get; set; }\n\nNo recurrence. The exclusion window occurs only once and on this\ndate in UTC.\n\n### StartTime\n\n public TimeOfDay StartTime { get; set; }\n\nRequired. Specifies the start time of the window using time of the day in\nUTC."]]