Reference documentation and code samples for the Google Cloud Net App V1 Client class BackupPolicy.
Backup Policy.
Generated from protobuf messagegoogle.cloud.netapp.v1.BackupPolicy
Namespace
Google \ Cloud \ NetApp \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the backup policy. Format:projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}.
↳ daily_backup_limit
int
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
↳ weekly_backup_limit
int
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
↳ monthly_backup_limit
int
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
↳ description
string
Description of the backup policy.
↳ enabled
bool
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.
↳ assigned_volume_count
int
Output only. The total number of volumes assigned by this backup policy.
[[["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-04 UTC."],[],[],null,["# Google Cloud Net App V1 Client - Class BackupPolicy (1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/php/docs/reference/cloud-netapp/latest/V1.BackupPolicy)\n- [1.6.0](/php/docs/reference/cloud-netapp/1.6.0/V1.BackupPolicy)\n- [1.4.0](/php/docs/reference/cloud-netapp/1.4.0/V1.BackupPolicy)\n- [1.3.1](/php/docs/reference/cloud-netapp/1.3.1/V1.BackupPolicy)\n- [1.2.1](/php/docs/reference/cloud-netapp/1.2.1/V1.BackupPolicy)\n- [1.1.1](/php/docs/reference/cloud-netapp/1.1.1/V1.BackupPolicy)\n- [1.0.1](/php/docs/reference/cloud-netapp/1.0.1/V1.BackupPolicy)\n- [0.3.1](/php/docs/reference/cloud-netapp/0.3.1/V1.BackupPolicy)\n- [0.2.6](/php/docs/reference/cloud-netapp/0.2.6/V1.BackupPolicy)\n- [0.1.1](/php/docs/reference/cloud-netapp/0.1.1/V1.BackupPolicy) \nReference documentation and code samples for the Google Cloud Net App V1 Client class BackupPolicy.\n\nBackup Policy.\n\nGenerated from protobuf message `google.cloud.netapp.v1.BackupPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetApp \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The resource name of the backup policy.\n\nFormat:\n`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.\n\n### setName\n\nIdentifier. The resource name of the backup policy.\n\nFormat:\n`projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.\n\n### getDailyBackupLimit\n\nNumber of daily backups to keep. Note that the minimum daily backup limit\nis 2.\n\n### hasDailyBackupLimit\n\n### clearDailyBackupLimit\n\n### setDailyBackupLimit\n\nNumber of daily backups to keep. Note that the minimum daily backup limit\nis 2.\n\n### getWeeklyBackupLimit\n\nNumber of weekly backups to keep. Note that the sum of daily, weekly and\nmonthly backups should be greater than 1.\n\n### hasWeeklyBackupLimit\n\n### clearWeeklyBackupLimit\n\n### setWeeklyBackupLimit\n\nNumber of weekly backups to keep. Note that the sum of daily, weekly and\nmonthly backups should be greater than 1.\n\n### getMonthlyBackupLimit\n\nNumber of monthly backups to keep. Note that the sum of daily, weekly and\nmonthly backups should be greater than 1.\n\n### hasMonthlyBackupLimit\n\n### clearMonthlyBackupLimit\n\n### setMonthlyBackupLimit\n\nNumber of monthly backups to keep. Note that the sum of daily, weekly and\nmonthly backups should be greater than 1.\n\n### getDescription\n\nDescription of the backup policy.\n\n### hasDescription\n\n### clearDescription\n\n### setDescription\n\nDescription of the backup policy.\n\n### getEnabled\n\nIf enabled, make backups automatically according to the schedules.\n\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### hasEnabled\n\n### clearEnabled\n\n### setEnabled\n\nIf enabled, make backups automatically according to the schedules.\n\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### getAssignedVolumeCount\n\nOutput only. The total number of volumes assigned by this backup policy.\n\n### hasAssignedVolumeCount\n\n### clearAssignedVolumeCount\n\n### setAssignedVolumeCount\n\nOutput only. The total number of volumes assigned by this backup policy.\n\n### getCreateTime\n\nOutput only. The time when the backup policy was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time when the backup policy was created.\n\n### getLabels\n\nResource labels to represent user provided metadata.\n\n### setLabels\n\nResource labels to represent user provided metadata.\n\n### getState\n\nOutput only. The backup policy state.\n\n### setState\n\nOutput only. The backup policy state."]]