Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class BackupPlan.
Defines the configuration and scheduling for a "line" of Backups.
Generated from protobuf message google.cloud.gkebackup.v1.BackupPlan
Namespace
Google \ Cloud \ GkeBackup \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The full name of the BackupPlan resource. Format: projects/*/locations/*/backupPlans/*
↳ uid
↳ create_time
↳ update_time
Google\Protobuf\Timestamp
Output only. The timestamp when this BackupPlan resource was last updated.
↳ description
string
User specified descriptive string for this BackupPlan.
↳ cluster
string
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - projects/*/locations/*/clusters/*
- projects/*/zones/*/clusters/*
↳ retention_policy
Google\Cloud\GkeBackup\V1\BackupPlan\RetentionPolicy
RetentionPolicy governs lifecycle of Backups created under this plan.
↳ labels
↳ backup_schedule
Google\Cloud\GkeBackup\V1\BackupPlan\Schedule
Defines a schedule for automatic Backup creation via this BackupPlan.
↳ etag
string
Output only. etag
is used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup plan from overwriting each other. It is strongly suggested that systems make use of the 'etag' in the read-modify-write cycle to perform BackupPlan updates in order to avoid race conditions: An etag
is returned in the response to GetBackupPlan
, and systems are expected to put that etag in the request to UpdateBackupPlan
or DeleteBackupPlan
to ensure that their change will be applied to the same version of the resource.
↳ deactivated
bool
This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False
↳ backup_config
Google\Cloud\GkeBackup\V1\BackupPlan\BackupConfig
Defines the configuration of Backups created via this BackupPlan.
↳ protected_pod_count
int
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
getName
Output only. The full name of the BackupPlan resource.
Format: projects/*/locations/*/backupPlans/*
string
setName
Output only. The full name of the BackupPlan resource.
Format: projects/*/locations/*/backupPlans/*
var
string
$this
getUid
Output only. Server generated global unique identifier of UUID format.
string
setUid
Output only. Server generated global unique identifier of UUID format.
var
string
$this
getCreateTime
Output only. The timestamp when this BackupPlan resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when this BackupPlan resource was created.
$this
getUpdateTime
Output only. The timestamp when this BackupPlan resource was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when this BackupPlan resource was last updated.
$this
getDescription
User specified descriptive string for this BackupPlan.
string
setDescription
User specified descriptive string for this BackupPlan.
var
string
$this
getCluster
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats:
-
projects/*/locations/*/clusters/*
-
projects/*/zones/*/clusters/*
string
setCluster
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats:
-
projects/*/locations/*/clusters/*
-
projects/*/zones/*/clusters/*
var
string
$this
getRetentionPolicy
RetentionPolicy governs lifecycle of Backups created under this plan.
hasRetentionPolicy
clearRetentionPolicy
setRetentionPolicy
RetentionPolicy governs lifecycle of Backups created under this plan.
$this
getLabels
A set of custom labels supplied by user.
setLabels
A set of custom labels supplied by user.
$this
getBackupSchedule
Defines a schedule for automatic Backup creation via this BackupPlan.
hasBackupSchedule
clearBackupSchedule
setBackupSchedule
Defines a schedule for automatic Backup creation via this BackupPlan.
$this
getEtag
Output only. etag
is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a backup plan from overwriting each
other. It is strongly suggested that systems make use of the 'etag' in the
read-modify-write cycle to perform BackupPlan updates in order to avoid
race conditions: An etag
is returned in the response to GetBackupPlan
,
and systems are expected to put that etag in the request to UpdateBackupPlan
or DeleteBackupPlan
to ensure that their change
will be applied to the same version of the resource.
string
setEtag
Output only. etag
is used for optimistic concurrency control as a way to
help prevent simultaneous updates of a backup plan from overwriting each
other. It is strongly suggested that systems make use of the 'etag' in the
read-modify-write cycle to perform BackupPlan updates in order to avoid
race conditions: An etag
is returned in the response to GetBackupPlan
,
and systems are expected to put that etag in the request to UpdateBackupPlan
or DeleteBackupPlan
to ensure that their change
will be applied to the same version of the resource.
var
string
$this
getDeactivated
This flag indicates whether this BackupPlan has been deactivated.
Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False
bool
setDeactivated
This flag indicates whether this BackupPlan has been deactivated.
Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False
var
bool
$this
getBackupConfig
Defines the configuration of Backups created via this BackupPlan.
hasBackupConfig
clearBackupConfig
setBackupConfig
Defines the configuration of Backups created via this BackupPlan.
$this
getProtectedPodCount
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
int
setProtectedPodCount
Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
var
int
$this