NAME

Google::Cloud::Backupdr::V1beta::Backupplan - Compiled Protocol Buffers messages for google/cloud/backupdr/v1beta/backupplan.proto

SYNOPSIS

use Google::Cloud::Backupdr::V1beta::Backupplan;

my $msg = Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlan->new({
    disk_backup_plan_properties => $disk_backup_plan_properties,
    compute_instance_backup_plan_properties => $compute_instance_backup_plan_properties,
    name => $name,
    description => $description,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1beta/backupplan.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::Backupdr::V1beta::Backupplan::BackupPlan

A `BackupPlan` specifies some common fields, such as `description` as well as one or more `BackupRule` messages. Each `BackupRule` has a retention policy and defines a schedule by which the system is to perform backup workloads.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::DiskBackupPlanProperties)

    Optional. Defines optional properties specific to backups of disk-based resources, such as Compute Engine Persistent Disks. This includes settings like whether to perform a guest flush.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::ComputeInstanceBackupPlanProperties)

    Optional. Defines optional properties specific to backups of compute instance based resources, such as Compute Engine Instances. This includes settings like whether to perform a guest flush.

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

    Type: String

    Output only. Identifier. The resource name of the `BackupPlan`.

    Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`

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

    Type: String

    Optional. The description of the `BackupPlan` resource.

    The description allows for additional details about `BackupPlan` and its use cases to be provided. An example description is the following: "This is a backup plan that performs a daily backup at 6pm and retains data for 3 months". The description must be at most 2048 characters.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlan::LabelsEntry)

    Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {"tag": "Weekly"}.

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

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

    Output only. When the `BackupPlan` was created.

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

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

    Output only. When the `BackupPlan` was last updated.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupRule)

    Optional. The backup rules for this `BackupPlan`.

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

    Type: Int32

    Optional. Optional field to configure the maximum number of days for which a backup can be retained. This field is only applicable for on-demand backups taken with custom retention value.

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

    Type: Enum (Google::Cloud::Backupdr::V1beta::BackupPlan::State)

    Output only. The `State` for the `BackupPlan`.

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

    Type: String

    Required. The resource type to which the `BackupPlan` will be applied. Examples include, "compute.googleapis.com/Instance", "sqladmin.googleapis.com/Instance", "alloydb.googleapis.com/Cluster", "compute.googleapis.com/Disk".

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

    Type: String

    Optional. `etag` is returned from the service in the response. As a user of the service, you may provide an etag value in this field to prevent stale resources.

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

    Type: String

    Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}

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

    Type: String

    Output only. The Google Cloud service account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.

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

    Type: Int64

    Optional. Applicable only for Cloud SQL resource_type.

    Configures how long logs will be stored. It is defined in “days”. This value should be greater than or equal to minimum enforced log retention duration of the backup vault.

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

    Type: String

    Output only. All resource types to which backupPlan can be applied.

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

    Type: String

    Output only. The user friendly revision ID of the `BackupPlanRevision`.

    Example: v0, v1, v2, etc.

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

    Type: String

    Output only. The resource id of the `BackupPlanRevision`.

    Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`

Enum: BackupPlan::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

  • INACTIVE => 4

  • UPDATING => 5

Google::Cloud::Backupdr::V1beta::Backupplan::BackupRule

`BackupRule` binds the backup schedule to a retention policy.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::StandardSchedule)

    Optional. Defines a schedule that runs within the confines of a defined window of time.

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

    Type: String

    Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.The `rule_id` must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/.

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

    Type: Int32

    Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault.

    Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules. Note: Longer retention can lead to higher storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.

Google::Cloud::Backupdr::V1beta::Backupplan::StandardSchedule

`StandardSchedule` defines a schedule that run within the confines of a defined window of days. We can define recurrence type for schedule as HOURLY, DAILY, WEEKLY, MONTHLY or YEARLY.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Backupdr::V1beta::StandardSchedule::RecurrenceType)

    Required. Specifies the `RecurrenceType` for the schedule.

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

    Type: Int32

    Optional. Specifies frequency for hourly backups. A hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined.

    This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`.

    The supported values for each resource type are as follows:

    * `compute.googleapis.com/Instance`: 1-23 * `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * `file.googleapis.com/Instance`: 1-23

    Refer to link https://cloud.google.com/backup-disaster-recovery/docs/concepts/cloud_best_practices for more details.

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

    Type: Enum (Google::Type::DayOfWeek)

    Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs will run.

    This is required for `recurrence_type`, `WEEKLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `WEEKLY`.

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

    Type: Int32

    Optional. Specifies days of months like 1, 5, or 14 on which jobs will run.

    Values for `days_of_month` are only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::WeekDayOfMonth)

    Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST MONDAY, on which jobs will run. This will be specified by two fields in `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, e.g. `LAST`.

    This field is only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.

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

    Type: Enum (Google::Type::Month)

    Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on which jobs will run.

    This field is only applicable when `recurrence_type` is `YEARLY`. A validation error will occur if other values are supplied.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupWindow)

    Required. A BackupWindow defines the window of day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as `NOT_RUN` if they do not start by the end of the window.

    Note: running jobs will not be cancelled at the end of the window.

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

    Type: String

    Required. The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the IANA tz database. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the list of valid timezone names. For e.g., Europe/Paris.

Enum: StandardSchedule::RecurrenceType

  • RECURRENCE_TYPE_UNSPECIFIED => 0

  • HOURLY => 1

  • DAILY => 2

  • WEEKLY => 3

  • MONTHLY => 4

  • YEARLY => 5

Google::Cloud::Backupdr::V1beta::Backupplan::BackupWindow

`BackupWindow` defines a window of the day during which backup jobs will run.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Required. The hour of day (0-23) when the window starts for e.g. if value of start hour of day is 6 that mean backup window start at 6:00.

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

    Type: Int32

    Required. The hour of day (1-24) when the window end for e.g. if value of end hour of day is 10 that mean backup window end time is 10:00.

    End hour of day should be greater than start hour of day. 0 <= start_hour_of_day < end_hour_of_day <= 24

    End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.

Google::Cloud::Backupdr::V1beta::Backupplan::WeekDayOfMonth

`WeekDayOfMonth` defines the week day of the month on which the backups will run. The message combines a `WeekOfMonth` and `DayOfWeek` to produce values like `FIRST`/`MONDAY` or `LAST`/`FRIDAY`.

Inherits from Protobuf::Message.

Accessors

Enum: WeekDayOfMonth::WeekOfMonth

  • WEEK_OF_MONTH_UNSPECIFIED => 0

  • FIRST => 1

  • SECOND => 2

  • THIRD => 3

  • FOURTH => 4

  • LAST => 5

Google::Cloud::Backupdr::V1beta::Backupplan::CreateBackupPlanRequest

The request message for creating a `BackupPlan`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The `BackupPlan` project and location in the format `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to Google Cloud regions, for example us-central1.

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

    Type: String

    Required. The name of the `BackupPlan` to create. The name must be unique for the specified project and location.The name must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlan)

    Required. The `BackupPlan` resource object to create.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Backupdr::V1beta::Backupplan::ListBackupPlansRequest

The request message for getting a list `BackupPlan`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project and location for which to retrieve `BackupPlans` information. Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, locations map to Google Cloud regions, for e.g. us-central1. To retrieve backup plans for all locations, use "-" for the `{location}` value.

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

    Type: Int32

    Optional. The maximum number of `BackupPlans` to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's [next_page_token][google.cloud.backupdr.v1beta.ListBackupPlansResponse.next_page_token] to determine if there are more instances left to be queried.

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

    Type: String

    Optional. The value of [next_page_token][google.cloud.backupdr.v1beta.ListBackupPlansResponse.next_page_token] received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.

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

    Type: String

    Optional. Field match expression used to filter the results.

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

    Type: String

    Optional. Field by which to sort the results.

Google::Cloud::Backupdr::V1beta::Backupplan::ListBackupPlansResponse

The response message for getting a list of `BackupPlan`.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlan)

    The list of `BackupPlans` in the project for the specified location.

    If the `{location}` value in the request is "-", the response contains a list of resources from all locations. In case any location is unreachable, the response will only return backup plans in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations. BackupPlan

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

    Type: String

    A token which may be sent as [page_token][google.cloud.backupdr.v1beta.ListBackupPlansRequest.page_token] in a subsequent `ListBackupPlans` call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Backupdr::V1beta::Backupplan::GetBackupPlanRequest

The request message for getting a `BackupPlan`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the `BackupPlan` to retrieve.

    Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`

Google::Cloud::Backupdr::V1beta::Backupplan::DeleteBackupPlanRequest

The request message for deleting a `BackupPlan`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the `BackupPlan` to delete.

    Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Backupdr::V1beta::Backupplan::UpdateBackupPlanRequest

Request message for updating a backup plan.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlan)

    Required. The resource being updated

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The list of fields to update. Field mask is used to specify the fields to be overwritten in the BackupPlan resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail. Currently, these fields are supported in update: description, schedules, retention period, adding and removing Backup Rules.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlanRevision

`BackupPlanRevision` represents a snapshot of a `BackupPlan` at a point in time.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Identifier. The resource name of the `BackupPlanRevision`.

    Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}`

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

    Type: String

    Output only. The user friendly revision ID of the `BackupPlanRevision`.

    Example: v0, v1, v2, etc.

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

    Type: Enum (Google::Cloud::Backupdr::V1beta::BackupPlanRevision::State)

    Output only. Resource State

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlan)

    The Backup Plan being encompassed by this revision.

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

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

    Output only. The timestamp that the revision was created.

Enum: BackupPlanRevision::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

  • INACTIVE => 4

Google::Cloud::Backupdr::V1beta::Backupplan::GetBackupPlanRevisionRequest

The request message for getting a `BackupPlanRevision`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the `BackupPlanRevision` to retrieve.

    Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}`

Google::Cloud::Backupdr::V1beta::Backupplan::ListBackupPlanRevisionsRequest

The request message for getting a list of `BackupPlanRevision`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project and location for which to retrieve `BackupPlanRevisions` information. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`. In Google Cloud Backup and DR, locations map to Google Cloud regions, for e.g. us-central1.

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

    Type: Int32

    Optional. The maximum number of `BackupPlans` to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's [next_page_token][google.cloud.backupdr.v1beta.ListBackupPlansResponse.next_page_token] to determine if there are more instances left to be queried.

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

    Type: String

    Optional. The value of [next_page_token][google.cloud.backupdr.v1beta.ListBackupPlansResponse.next_page_token] received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.

Google::Cloud::Backupdr::V1beta::Backupplan::ListBackupPlanRevisionsResponse

The response message for getting a list of `BackupPlanRevision`.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplan::BackupPlanRevision)

    The list of `BackupPlanRevisions` in the project for the specified location.

    If the `{location}` value in the request is "-", the response contains a list of resources from all locations. In case any location is unreachable, the response will only return backup plans in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

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

    Type: String

    A token which may be sent as [page_token][google.cloud.backupdr.v1beta.ListBackupPlanRevisionsRequest.page_token] in a subsequent `ListBackupPlanRevisions` call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Backupdr::V1beta::Backupplan::DiskBackupPlanProperties

Properties for a disk backup plan.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Optional. Indicates whether to perform a guest flush operation before taking a disk backup. When set to false, the system will create crash-consistent backups. Default value is false.

Google::Cloud::Backupdr::V1beta::Backupplan::ComputeInstanceBackupPlanProperties

Properties for a compute instance backup plan.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Optional. Indicates whether to perform a guest flush operation before taking a compute backup. When set to false, the system will create crash-consistent backups. Default value is false.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1beta::Backupplan::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.