Google Cloud Gke Backup V1 Client - Class BackupPlan (0.2.0)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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 string

Output only. Server generated global unique identifier of UUID format.

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp when this BackupPlan resource was created.

↳ 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 array|Google\Protobuf\Internal\MapField

A set of custom labels supplied by user.

↳ 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/*

Returns
TypeDescription
string

setName

Output only. The full name of the BackupPlan resource.

Format: projects//locations//backupPlans/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUid

Output only. Server generated global unique identifier of UUID format.

Returns
TypeDescription
string

setUid

Output only. Server generated global unique identifier of UUID format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp when this BackupPlan resource was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when this BackupPlan resource was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The timestamp when this BackupPlan resource was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when this BackupPlan resource was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDescription

User specified descriptive string for this BackupPlan.

Returns
TypeDescription
string

setDescription

User specified descriptive string for this BackupPlan.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCluster

Required. Immutable. The source cluster from which Backups will be created via this BackupPlan.

Valid formats:

  • projects//locations//clusters/*
  • projects//zones//clusters/*
Returns
TypeDescription
string

setCluster

Required. Immutable. The source cluster from which Backups will be created via this BackupPlan.

Valid formats:

  • projects//locations//clusters/*
  • projects//zones//clusters/*
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRetentionPolicy

RetentionPolicy governs lifecycle of Backups created under this plan.

Returns
TypeDescription
Google\Cloud\GkeBackup\V1\BackupPlan\RetentionPolicy|null

hasRetentionPolicy

clearRetentionPolicy

setRetentionPolicy

RetentionPolicy governs lifecycle of Backups created under this plan.

Parameter
NameDescription
var Google\Cloud\GkeBackup\V1\BackupPlan\RetentionPolicy
Returns
TypeDescription
$this

getLabels

A set of custom labels supplied by user.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

A set of custom labels supplied by user.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getBackupSchedule

Defines a schedule for automatic Backup creation via this BackupPlan.

Returns
TypeDescription
Google\Cloud\GkeBackup\V1\BackupPlan\Schedule|null

hasBackupSchedule

clearBackupSchedule

setBackupSchedule

Defines a schedule for automatic Backup creation via this BackupPlan.

Parameter
NameDescription
var Google\Cloud\GkeBackup\V1\BackupPlan\Schedule
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$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

Returns
TypeDescription
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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getBackupConfig

Defines the configuration of Backups created via this BackupPlan.

Returns
TypeDescription
Google\Cloud\GkeBackup\V1\BackupPlan\BackupConfig|null

hasBackupConfig

clearBackupConfig

setBackupConfig

Defines the configuration of Backups created via this BackupPlan.

Parameter
NameDescription
var Google\Cloud\GkeBackup\V1\BackupPlan\BackupConfig
Returns
TypeDescription
$this

getProtectedPodCount

Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.

Returns
TypeDescription
int

setProtectedPodCount

Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.

Parameter
NameDescription
var int
Returns
TypeDescription
$this