If enabled, make backups automatically according to the schedules.
This will be applied to all volumes that have this policy attached and
enforced on volume level. If not specified, default is true.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eBackupPolicy\u003c/code\u003e API is 1.8.0, with multiple earlier versions available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackupPolicy\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.NetApp.V1\u003c/code\u003e namespace and is used for managing backup policies within the NetApp v1 API.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eBackupPolicy\u003c/code\u003e can be enabled to automate backups based on a set schedule, and each policy has configurable limits for daily, weekly, and monthly backups.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eBackupPolicy\u003c/code\u003e can have a user-provided description and labels, and they have an assigned volume count that reflects the number of volumes using this policy.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eBackupPolicy\u003c/code\u003e is assigned a state and created at a specific time, along with having a unique identifier, and it implements several interfaces for message handling and cloning.\u003c/p\u003e\n"]]],[],null,["# NetApp v1 API - Class BackupPolicy (1.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.9.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.8.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.7.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.6.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.5.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.4.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.3.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.2.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.1.0/Google.Cloud.NetApp.V1.BackupPolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.0.0/Google.Cloud.NetApp.V1.BackupPolicy) \n\n public sealed class BackupPolicy : IMessage\u003cBackupPolicy\u003e, IEquatable\u003cBackupPolicy\u003e, IDeepCloneable\u003cBackupPolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the NetApp v1 API class BackupPolicy.\n\nBackup Policy. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BackupPolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BackupPolicy](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.BackupPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BackupPolicy](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.BackupPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BackupPolicy](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.BackupPolicy), [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.NetApp.V1](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetApp.V1.dll\n\nConstructors\n------------\n\n### BackupPolicy()\n\n public BackupPolicy()\n\n### BackupPolicy(BackupPolicy)\n\n public BackupPolicy(BackupPolicy other)\n\nProperties\n----------\n\n### AssignedVolumeCount\n\n public int AssignedVolumeCount { get; set; }\n\nOutput only. The total number of volumes assigned by this backup policy.\n\n### BackupPolicyName\n\n public BackupPolicyName BackupPolicyName { get; set; }\n\n[BackupPolicyName](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.BackupPolicyName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.BackupPolicy#Google_Cloud_NetApp_V1_BackupPolicy_Name) resource name property.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time when the backup policy was created.\n\n### DailyBackupLimit\n\n public int DailyBackupLimit { get; set; }\n\nNumber of daily backups to keep. Note that the minimum daily backup limit\nis 2.\n\n### Description\n\n public string Description { get; set; }\n\nDescription of the backup policy.\n\n### Enabled\n\n public bool Enabled { get; set; }\n\nIf enabled, make backups automatically according to the schedules.\nThis will be applied to all volumes that have this policy attached and\nenforced on volume level. If not specified, default is true.\n\n### HasAssignedVolumeCount\n\n public bool HasAssignedVolumeCount { get; }\n\nGets whether the \"assigned_volume_count\" field is set\n\n### HasDailyBackupLimit\n\n public bool HasDailyBackupLimit { get; }\n\nGets whether the \"daily_backup_limit\" field is set\n\n### HasDescription\n\n public bool HasDescription { get; }\n\nGets whether the \"description\" field is set\n\n### HasEnabled\n\n public bool HasEnabled { get; }\n\nGets whether the \"enabled\" field is set\n\n### HasMonthlyBackupLimit\n\n public bool HasMonthlyBackupLimit { get; }\n\nGets whether the \"monthly_backup_limit\" field is set\n\n### HasWeeklyBackupLimit\n\n public bool HasWeeklyBackupLimit { get; }\n\nGets whether the \"weekly_backup_limit\" field is set\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nResource labels to represent user provided metadata.\n\n### MonthlyBackupLimit\n\n public int MonthlyBackupLimit { get; set; }\n\nNumber of monthly backups to keep. Note that the sum of daily, weekly and\nmonthly backups should be greater than 1.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. The resource name of the backup policy.\nFormat:\n`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.\n\n### State\n\n public BackupPolicy.Types.State State { get; set; }\n\nOutput only. The backup policy state.\n\n### WeeklyBackupLimit\n\n public int WeeklyBackupLimit { get; set; }\n\nNumber of weekly backups to keep. Note that the sum of daily, weekly and\nmonthly backups should be greater than 1."]]