Reference documentation and code samples for the Google Cloud Net App V1 Client class BackupPolicy.
Backup Policy.
Generated from protobuf message google.cloud.netapp.v1.BackupPolicy
Namespace
Google \ Cloud \ NetApp \ V1Methods
__construct
Constructor.
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.
↳ create_time
↳ labels
↳ state
int
Output only. The backup policy state.
getName
Identifier. The resource name of the backup policy.
Format: projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}
.
string
setName
Identifier. The resource name of the backup policy.
Format: projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}
.
var
string
$this
getDailyBackupLimit
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
int
hasDailyBackupLimit
clearDailyBackupLimit
setDailyBackupLimit
Number of daily backups to keep. Note that the minimum daily backup limit is 2.
var
int
$this
getWeeklyBackupLimit
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
int
hasWeeklyBackupLimit
clearWeeklyBackupLimit
setWeeklyBackupLimit
Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
var
int
$this
getMonthlyBackupLimit
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
int
hasMonthlyBackupLimit
clearMonthlyBackupLimit
setMonthlyBackupLimit
Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
var
int
$this
getDescription
Description of the backup policy.
string
hasDescription
clearDescription
setDescription
Description of the backup policy.
var
string
$this
getEnabled
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.
bool
hasEnabled
clearEnabled
setEnabled
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.
var
bool
$this
getAssignedVolumeCount
Output only. The total number of volumes assigned by this backup policy.
int
hasAssignedVolumeCount
clearAssignedVolumeCount
setAssignedVolumeCount
Output only. The total number of volumes assigned by this backup policy.
var
int
$this
getCreateTime
Output only. The time when the backup policy was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the backup policy was created.
$this
getLabels
Resource labels to represent user provided metadata.
setLabels
Resource labels to represent user provided metadata.
$this
getState
Output only. The backup policy state.
int
setState
Output only. The backup policy state.
var
int
$this