Reference documentation and code samples for the Backup for GKE V1 API class Google::Cloud::GkeBackup::V1::BackupPlan.
Defines the configuration and scheduling for a "line" of Backups.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#backup_config
def backup_config() -> ::Google::Cloud::GkeBackup::V1::BackupPlan::BackupConfig
- (::Google::Cloud::GkeBackup::V1::BackupPlan::BackupConfig) — Defines the configuration of Backups created via this BackupPlan.
#backup_config=
def backup_config=(value) -> ::Google::Cloud::GkeBackup::V1::BackupPlan::BackupConfig
- value (::Google::Cloud::GkeBackup::V1::BackupPlan::BackupConfig) — Defines the configuration of Backups created via this BackupPlan.
- (::Google::Cloud::GkeBackup::V1::BackupPlan::BackupConfig) — Defines the configuration of Backups created via this BackupPlan.
#backup_schedule
def backup_schedule() -> ::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule
- (::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule) — Defines a schedule for automatic Backup creation via this BackupPlan.
#backup_schedule=
def backup_schedule=(value) -> ::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule
- value (::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule) — Defines a schedule for automatic Backup creation via this BackupPlan.
- (::Google::Cloud::GkeBackup::V1::BackupPlan::Schedule) — Defines a schedule for automatic Backup creation via this BackupPlan.
#cluster
def cluster() -> ::String
-
(::String) —
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats:
- projects//locations//clusters/*
- projects//zones//clusters/*
#cluster=
def cluster=(value) -> ::String
-
value (::String) —
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats:
- projects//locations//clusters/*
- projects//zones//clusters/*
-
(::String) —
Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats:
- projects//locations//clusters/*
- projects//zones//clusters/*
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when this BackupPlan resource was created.
#deactivated
def deactivated() -> ::Boolean
-
(::Boolean) — 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
#deactivated=
def deactivated=(value) -> ::Boolean
-
value (::Boolean) — 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
-
(::Boolean) — 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
#description
def description() -> ::String
- (::String) — User specified descriptive string for this BackupPlan.
#description=
def description=(value) -> ::String
- value (::String) — User specified descriptive string for this BackupPlan.
- (::String) — User specified descriptive string for this BackupPlan.
#etag
def etag() -> ::String
-
(::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: Anetag
is returned in the response toGetBackupPlan
, and systems are expected to put that etag in the request toUpdateBackupPlan
orDeleteBackupPlan
to ensure that their change will be applied to the same version of the resource.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — A set of custom labels supplied by user.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — A set of custom labels supplied by user.
- (::Google::Protobuf::Map{::String => ::String}) — A set of custom labels supplied by user.
#name
def name() -> ::String
- (::String) — Output only. The full name of the BackupPlan resource. Format: projects//locations//backupPlans/*
#protected_pod_count
def protected_pod_count() -> ::Integer
- (::Integer) — Output only. The number of Kubernetes Pods backed up in the last successful Backup created via this BackupPlan.
#retention_policy
def retention_policy() -> ::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy
- (::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy) — RetentionPolicy governs lifecycle of Backups created under this plan.
#retention_policy=
def retention_policy=(value) -> ::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy
- value (::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy) — RetentionPolicy governs lifecycle of Backups created under this plan.
- (::Google::Cloud::GkeBackup::V1::BackupPlan::RetentionPolicy) — RetentionPolicy governs lifecycle of Backups created under this plan.
#uid
def uid() -> ::String
- (::String) — Output only. Server generated global unique identifier of UUID format.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when this BackupPlan resource was last updated.