NAME
Google::Cloud::Backupdr::V1::Backupplan - Compiled Protocol Buffers messages for google/cloud/backupdr/v1/backupplan.proto
SYNOPSIS
use Google::Cloud::Backupdr::V1::Backupplan;
my $msg = Google::Cloud::Backupdr::V1::Backupplan::BackupPlan->new({
name => $name,
description => $description,
labels => $labels,
create_time => $create_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Backupdr::V1::Backupplan::BackupPlan->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1/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::V1::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->name()/$msg->name($value)Type:
StringOutput only. Identifier. The resource name of the `BackupPlan`.
Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
$msg->description()/$msg->description($value)Type:
StringOptional. 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::V1::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::V1::Backupplan::BackupRule)Required. The backup rules for this `BackupPlan`. There must be at least one `BackupRule` message.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Backupdr::V1::BackupPlan::State)Output only. The `State` for the `BackupPlan`.
$msg->resource_type()/$msg->resource_type($value)Type:
StringRequired. 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:
StringOptional. `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:
StringRequired. 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:
StringOutput only. The Google Cloud Platform 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:
Int64Optional. Applicable only for CloudSQL and AlloyDB 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:
StringOutput only. All resource types to which backupPlan can be applied.
$msg->revision_id()/$msg->revision_id($value)Type:
StringOutput only. The user friendly revision ID of the `BackupPlanRevision`.
Example: v0, v1, v2, etc.
$msg->revision_name()/$msg->revision_name($value)Type:
StringOutput only. The resource id of the `BackupPlanRevision`.
Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
Enum: BackupPlan::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2DELETING=>3INACTIVE=>4UPDATING=>5
Google::Cloud::Backupdr::V1::Backupplan::BackupRule
`BackupRule` binds the backup schedule to a retention policy.
Inherits from Protobuf::Message.
Accessors
$msg->rule_id()/$msg->rule_id($value)Type:
StringRequired. 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:
Int32Required. 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.
$msg->standard_schedule()/$msg->standard_schedule($value)Type:
Message(Google::Cloud::Backupdr::V1::Backupplan::StandardSchedule)Optional. Defines a schedule that runs within the confines of a defined window of time.
Google::Cloud::Backupdr::V1::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::V1::StandardSchedule::RecurrenceType)Required. Specifies the `RecurrenceType` for the schedule.
$msg->hourly_frequency()/$msg->hourly_frequency($value)Type:
Int32Optional. 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`.
Value of hourly frequency should be between 4 and 23.
Reason for limit : We found that there is bandwidth limitation of 3GB/S for GMI while taking a backup and 5GB/S while doing a restore. Given the amount of parallel backups and restore we are targeting, this will potentially take the backup time to mins and hours (in worst case scenario).
$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:
Int32Optional. 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::V1::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::V1::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:
StringRequired. 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=>0HOURLY=>1DAILY=>2WEEKLY=>3MONTHLY=>4YEARLY=>5
Google::Cloud::Backupdr::V1::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:
Int32Required. 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:
Int32Required. 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::V1::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
$msg->week_of_month()/$msg->week_of_month($value)Type:
Enum(Google::Cloud::Backupdr::V1::WeekDayOfMonth::WeekOfMonth)Required. Specifies the week of the month.
$msg->day_of_week()/$msg->day_of_week($value)Type:
Enum(Google::Type::DayOfWeek)Required. Specifies the day of the week.
Enum: WeekDayOfMonth::WeekOfMonth
WEEK_OF_MONTH_UNSPECIFIED=>0FIRST=>1SECOND=>2THIRD=>3FOURTH=>4LAST=>5
Google::Cloud::Backupdr::V1::Backupplan::CreateBackupPlanRequest
The request message for creating a `BackupPlan`.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The `BackupPlan` project and location in the format `projects/{project}/locations/{location}`. In Cloud BackupDR locations map to GCP regions, for example us-central1.
$msg->backup_plan_id()/$msg->backup_plan_id($value)Type:
StringRequired. 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::V1::Backupplan::BackupPlan)Required. The `BackupPlan` resource object to create.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. 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::V1::Backupplan::ListBackupPlansRequest
The request message for getting a list `BackupPlan`.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location for which to retrieve `BackupPlans` information. Format: `projects/{project}/locations/{location}`. In Cloud BackupDR, locations map to GCP 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:
Int32Optional. 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.v1.ListBackupPlansResponse.next_page_token] to determine if there are more instances left to be queried.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The value of [next_page_token][google.cloud.backupdr.v1.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:
StringOptional. Field match expression used to filter the results.
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Field by which to sort the results.
Google::Cloud::Backupdr::V1::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::V1::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:
StringA token which may be sent as [page_token][google.cloud.backupdr.v1.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:
StringLocations that could not be reached.
Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRequest
The request message for getting a `BackupPlan`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the `BackupPlan` to retrieve.
Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
Google::Cloud::Backupdr::V1::Backupplan::DeleteBackupPlanRequest
The request message for deleting a `BackupPlan`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the `BackupPlan` to delete.
Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. 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::V1::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::V1::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:
StringOptional. 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::V1::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:
StringOutput 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:
StringOutput only. The user friendly revision ID of the `BackupPlanRevision`.
Example: v0, v1, v2, etc.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Backupdr::V1::BackupPlanRevision::State)Output only. Resource State
$msg->backup_plan_snapshot()/$msg->backup_plan_snapshot($value)Type:
Message(Google::Cloud::Backupdr::V1::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=>0CREATING=>1ACTIVE=>2DELETING=>3INACTIVE=>4
Google::Cloud::Backupdr::V1::Backupplan::GetBackupPlanRevisionRequest
The request message for getting a `BackupPlanRevision`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the `BackupPlanRevision` to retrieve.
Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}`
Google::Cloud::Backupdr::V1::Backupplan::ListBackupPlanRevisionsRequest
The request message for getting a list of `BackupPlanRevision`.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location for which to retrieve `BackupPlanRevisions` information. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`. In Cloud BackupDR, locations map to GCP regions, for e.g. us-central1.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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.v1.ListBackupPlansResponse.next_page_token] to determine if there are more instances left to be queried.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The value of [next_page_token][google.cloud.backupdr.v1.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::V1::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::V1::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:
StringA token which may be sent as [page_token][google.cloud.backupdr.v1.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:
StringLocations that could not be reached.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1::Backupplan::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.