public sealed class BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails : IMessage<BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails>, IEquatable<BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails>, IDeepCloneable<BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup for GKE v1 API class BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails.
RetentionPolicyDetails defines a Backup retention policy for a
BackupPlan.
Optional. Minimum age for Backups created via this BackupPlan (in
days). This field MUST be an integer value between 0-90 (inclusive). A
Backup created under this BackupPlan will NOT be deletable until it
reaches Backup's (create_time + backup_delete_lock_days).
Updating this field of a BackupPlan does NOT affect existing Backups
under it. Backups created AFTER a successful update will inherit
the new value.
Optional. The default maximum age of a Backup created via this
BackupPlan. This field MUST be an integer value >= 0 and <= 365. If
specified, a Backup created under this BackupPlan will be automatically
deleted after its age reaches (create_time + backup_retain_days). If
not specified, Backups created under this BackupPlan will NOT be
subject to automatic deletion.
Default: 0 (no automatic deletion)
[[["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."],[],[],null,["# Backup for GKE v1 API - Class BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails (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.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.7.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.6.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.5.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.4.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.3.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.2.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.1.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/2.0.0/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails)\n- [1.0.0-beta01](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/1.0.0-beta01/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails) \n\n public sealed class BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails : IMessage\u003cBackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails\u003e, IEquatable\u003cBackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails\u003e, IDeepCloneable\u003cBackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup for GKE v1 API class BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails.\n\nRetentionPolicyDetails defines a Backup retention policy for a\nBackupPlan. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BackupPlanBinding](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types)[BackupPlanDetails](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types)[RetentionPolicyDetails](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BackupPlanBinding](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types)[BackupPlanDetails](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types)[RetentionPolicyDetails](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BackupPlanBinding](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types)[BackupPlanDetails](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails)[Types](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types)[RetentionPolicyDetails](/dotnet/docs/reference/Google.Cloud.GkeBackup.V1/latest/Google.Cloud.GkeBackup.V1.BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails), [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### RetentionPolicyDetails()\n\n public RetentionPolicyDetails()\n\n### RetentionPolicyDetails(RetentionPolicyDetails)\n\n public RetentionPolicyDetails(BackupPlanBinding.Types.BackupPlanDetails.Types.RetentionPolicyDetails other)\n\nProperties\n----------\n\n### BackupDeleteLockDays\n\n public int BackupDeleteLockDays { get; set; }\n\nOptional. Minimum age for Backups created via this BackupPlan (in\ndays). This field MUST be an integer value between 0-90 (inclusive). A\nBackup created under this BackupPlan will NOT be deletable until it\nreaches Backup's (create_time + backup_delete_lock_days).\nUpdating this field of a BackupPlan does NOT affect existing Backups\nunder it. Backups created AFTER a successful update will inherit\nthe new value.\n\nDefault: 0 (no delete blocking)\n\n### BackupRetainDays\n\n public int BackupRetainDays { get; set; }\n\nOptional. The default maximum age of a Backup created via this\nBackupPlan. This field MUST be an integer value \\\u003e= 0 and \\\u003c= 365. If\nspecified, a Backup created under this BackupPlan will be automatically\ndeleted after its age reaches (create_time + backup_retain_days). If\nnot specified, Backups created under this BackupPlan will NOT be\nsubject to automatic deletion.\nDefault: 0 (no automatic deletion)"]]