Reference documentation and code samples for the Backup for GKE V1 API class Google::Cloud::GkeBackup::V1::Backup.
Represents a request to perform a single point-in-time capture of some portion of the state of a GKE cluster, the record of the backup operation itself, and an anchor for the underlying artifacts that comprise the Backup (the config backup and VolumeBackups). Next id: 28
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#all_namespaces
def all_namespaces() -> ::Boolean
- (::Boolean) — Output only. If True, all namespaces were included in the Backup.
#cluster_metadata
def cluster_metadata() -> ::Google::Cloud::GkeBackup::V1::Backup::ClusterMetadata
- (::Google::Cloud::GkeBackup::V1::Backup::ClusterMetadata) — Output only. Information about the GKE cluster from which this Backup was created.
#complete_time
def complete_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Completion time of the Backup
#config_backup_size_bytes
def config_backup_size_bytes() -> ::Integer
- (::Integer) — Output only. The size of the config backup in bytes.
#contains_secrets
def contains_secrets() -> ::Boolean
- (::Boolean) — Output only. Whether or not the Backup contains Kubernetes Secrets. Controlled by the parent BackupPlan's include_secrets value.
#contains_volume_data
def contains_volume_data() -> ::Boolean
- (::Boolean) — Output only. Whether or not the Backup contains volume data. Controlled by the parent BackupPlan's include_volume_data value.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when this Backup resource was created.
#delete_lock_days
def delete_lock_days() -> ::Integer
-
(::Integer) — Minimum age for this Backup (in days). If this field is set to a non-zero
value, the Backup will be "locked" against deletion (either manual or
automatic deletion) for the number of days provided (measured from the
creation time of the Backup). MUST be an integer value between 0-90
(inclusive).
Defaults to parent BackupPlan's backup_delete_lock_days setting and may only be increased (either at creation time or in a subsequent update).
#delete_lock_days=
def delete_lock_days=(value) -> ::Integer
-
value (::Integer) — Minimum age for this Backup (in days). If this field is set to a non-zero
value, the Backup will be "locked" against deletion (either manual or
automatic deletion) for the number of days provided (measured from the
creation time of the Backup). MUST be an integer value between 0-90
(inclusive).
Defaults to parent BackupPlan's backup_delete_lock_days setting and may only be increased (either at creation time or in a subsequent update).
-
(::Integer) — Minimum age for this Backup (in days). If this field is set to a non-zero
value, the Backup will be "locked" against deletion (either manual or
automatic deletion) for the number of days provided (measured from the
creation time of the Backup). MUST be an integer value between 0-90
(inclusive).
Defaults to parent BackupPlan's backup_delete_lock_days setting and may only be increased (either at creation time or in a subsequent update).
#delete_lock_expire_time
def delete_lock_expire_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time at which an existing delete lock will expire for this backup (calculated from create_time + delete_lock_days).
#description
def description() -> ::String
- (::String) — User specified descriptive string for this Backup.
#description=
def description=(value) -> ::String
- value (::String) — User specified descriptive string for this Backup.
- (::String) — User specified descriptive string for this Backup.
#encryption_key
def encryption_key() -> ::Google::Cloud::GkeBackup::V1::EncryptionKey
- (::Google::Cloud::GkeBackup::V1::EncryptionKey) — Output only. The customer managed encryption key that was used to encrypt the Backup's artifacts. Inherited from the parent BackupPlan's encryption_key value.
#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 from overwriting each other. It is strongly suggested that systems make use of theetag
in the read-modify-write cycle to perform backup updates in order to avoid race conditions: Anetag
is returned in the response toGetBackup
, and systems are expected to put that etag in the request toUpdateBackup
orDeleteBackup
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.
#manual
def manual() -> ::Boolean
- (::Boolean) — Output only. This flag indicates whether this Backup resource was created manually by a user or via a schedule in the BackupPlan. A value of True means that the Backup was created manually.
#name
def name() -> ::String
- (::String) — Output only. The fully qualified name of the Backup. projects//locations//backupPlans//backups/
#pod_count
def pod_count() -> ::Integer
- (::Integer) — Output only. The total number of Kubernetes Pods contained in the Backup.
#resource_count
def resource_count() -> ::Integer
- (::Integer) — Output only. The total number of Kubernetes resources included in the Backup.
#retain_days
def retain_days() -> ::Integer
-
(::Integer) — The age (in days) after which this Backup will be automatically deleted.
Must be an integer value >= 0:
- If 0, no automatic deletion will occur for this Backup.
- If not 0, this must be >= delete_lock_days.
Once a Backup is created, this value may only be increased.
Defaults to the parent BackupPlan's backup_retain_days value.
#retain_days=
def retain_days=(value) -> ::Integer
-
value (::Integer) — The age (in days) after which this Backup will be automatically deleted.
Must be an integer value >= 0:
- If 0, no automatic deletion will occur for this Backup.
- If not 0, this must be >= delete_lock_days.
Once a Backup is created, this value may only be increased.
Defaults to the parent BackupPlan's backup_retain_days value.
-
(::Integer) — The age (in days) after which this Backup will be automatically deleted.
Must be an integer value >= 0:
- If 0, no automatic deletion will occur for this Backup.
- If not 0, this must be >= delete_lock_days.
Once a Backup is created, this value may only be increased.
Defaults to the parent BackupPlan's backup_retain_days value.
#retain_expire_time
def retain_expire_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time at which this Backup will be automatically deleted (calculated from create_time + retain_days).
#selected_applications
def selected_applications() -> ::Google::Cloud::GkeBackup::V1::NamespacedNames
- (::Google::Cloud::GkeBackup::V1::NamespacedNames) — Output only. If set, the list of ProtectedApplications whose resources were included in the Backup.
#selected_namespaces
def selected_namespaces() -> ::Google::Cloud::GkeBackup::V1::Namespaces
- (::Google::Cloud::GkeBackup::V1::Namespaces) — Output only. If set, the list of namespaces that were included in the Backup.
#size_bytes
def size_bytes() -> ::Integer
- (::Integer) — Output only. The total size of the Backup in bytes = config backup size + sum(volume backup sizes)
#state
def state() -> ::Google::Cloud::GkeBackup::V1::Backup::State
- (::Google::Cloud::GkeBackup::V1::Backup::State) — Output only. Current state of the Backup
#state_reason
def state_reason() -> ::String
-
(::String) — Output only. Human-readable description of why the backup is in the current
state
.
#uid
def uid() -> ::String
- (::String) — Output only. Server generated global unique identifier of UUID4
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when this Backup resource was last updated.
#volume_count
def volume_count() -> ::Integer
- (::Integer) — Output only. The total number of volume backups contained in the Backup.