NAME

Google::Cloud::Gkebackup::V1::BackupPlan - Compiled Protocol Buffers messages for google/cloud/gkebackup/v1/backup_plan.proto

SYNOPSIS

use Google::Cloud::Gkebackup::V1::BackupPlan;

my $msg = Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan->new({
    name => $name,
    uid => $uid,
    create_time => $create_time,
    update_time => $update_time,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/gkebackup/v1/backup_plan.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan

Defines the configuration and scheduling for a "line" of Backups.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The full name of the BackupPlan resource. Format: `projects/*/locations/*/backupPlans/*`

  • $msg->uid() / $msg->uid($value)

    Type: String

    Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. User specified descriptive string for this BackupPlan.

  • $msg->cluster() / $msg->cluster($value)

    Type: String

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

    - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`

  • $msg->retention_policy() / $msg->retention_policy($value)

    Type: Message (Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::RetentionPolicy)

    Optional. RetentionPolicy governs lifecycle of Backups created under this plan.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::LabelsEntry)

    Optional. A set of custom labels supplied by user.

  • $msg->backup_schedule() / $msg->backup_schedule($value)

    Type: Message (Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::Schedule)

    Optional. Defines a schedule for automatic Backup creation via this BackupPlan.

  • $msg->etag() / $msg->etag($value)

    Type: 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.

  • $msg->deactivated() / $msg->deactivated($value)

    Type: Bool

    Optional. 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

  • $msg->backup_config() / $msg->backup_config($value)

    Type: Message (Google::Cloud::Gkebackup::V1::BackupPlan::BackupPlan::BackupConfig)

    Optional. Defines the configuration of Backups created via this BackupPlan.

  • $msg->protected_pod_count() / $msg->protected_pod_count($value)

    Type: Int32

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

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Gkebackup::V1::BackupPlan::State)

    Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to "DEACTIVATED" if the BackupPlan is deactivated on an Update

  • $msg->state_reason() / $msg->state_reason($value)

    Type: String

    Output only. Human-readable description of why BackupPlan is in the current `state`. This field is only meant for human readability and should not be used programmatically as this field is not guaranteed to be consistent.

  • $msg->rpo_risk_level() / $msg->rpo_risk_level($value)

    Type: Int32

    Output only. A number that represents the current risk level of this BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.

  • $msg->rpo_risk_reason() / $msg->rpo_risk_reason($value)

    Type: String

    Output only. Human-readable description of why the BackupPlan is in the current rpo_risk_level and action items if any.

  • $msg->backup_channel() / $msg->backup_channel($value)

    Type: String

    Output only. The fully qualified name of the BackupChannel to be used to create a backup. This field is set only if the cluster being backed up is in a different project. `projects/*/locations/*/backupChannels/*`

  • $msg->last_successful_backup_time() / $msg->last_successful_backup_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Completion time of the last successful Backup. This is sourced from a successful Backup's complete_time field. This field is added to maintain consistency with BackupPlanBinding to display last successful backup time.

Enum: BackupPlan::State

  • STATE_UNSPECIFIED => 0

  • CLUSTER_PENDING => 1

  • PROVISIONING => 2

  • READY => 3

  • FAILED => 4

  • DEACTIVATED => 5

  • DELETING => 6

Google::Cloud::Gkebackup::V1::BackupPlan::RpoConfig

Defines RPO scheduling configuration for automatically creating Backups via this BackupPlan.

Inherits from Protobuf::Message.

Accessors

  • $msg->target_rpo_minutes() / $msg->target_rpo_minutes($value)

    Type: Int32

    Required. Defines the target RPO for the BackupPlan in minutes, which means the target maximum data loss in time that is acceptable for this BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.

  • $msg->exclusion_windows() / $msg->exclusion_windows($value)

    Type: Message (Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow)

    Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow <=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.

Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow

Defines a time window during which no backup should happen. All time and date are in UTC.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Type::Timeofday::TimeOfDay)

    Required. Specifies the start time of the window using time of the day in UTC.

  • $msg->duration() / $msg->duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. Specifies duration of the window. Duration must be >= 5 minutes and < (target RPO - 20 minutes). Additional restrictions based on the recurrence type to allow some time for backup to happen: - single_occurrence_date: no restriction, but UI may warn about this when duration >= target RPO - daily window: duration < 24 hours - weekly window: - days of week includes all seven days of a week: duration < 24 hours - all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)

  • $msg->single_occurrence_date() / $msg->single_occurrence_date($value)

    Type: Message (Google::Type::Date::Date)

    No recurrence. The exclusion window occurs only once and on this date in UTC.

  • $msg->daily() / $msg->daily($value)

    Type: Bool

    The exclusion window occurs every day if set to "True". Specifying this field to "False" is an error.

  • $msg->days_of_week() / $msg->days_of_week($value)

    Type: Message (Google::Cloud::Gkebackup::V1::BackupPlan::ExclusionWindow::DayOfWeekList)

    The exclusion window occurs on these days of each week in UTC.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Gkebackup::V1::BackupPlan::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.