NAME

Google::Spanner::Admin::Database::V1::BackupSchedule - Compiled Protocol Buffers messages for google/spanner/admin/database/v1/backup_schedule.proto

SYNOPSIS

use Google::Spanner::Admin::Database::V1::BackupSchedule;

my $msg = Google::Spanner::Admin::Database::V1::BackupSchedule::BackupScheduleSpec->new({
    cron_spec => $cron_spec,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Spanner::Admin::Database::V1::BackupSchedule::BackupScheduleSpec->parse($bytes);

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

DESCRIPTION

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

MESSAGES

Google::Spanner::Admin::Database::V1::BackupSchedule::BackupScheduleSpec

Defines specifications of the backup schedule.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Admin::Database::V1::BackupSchedule::BackupSchedule

BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. Output only for the [CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation. Required for the [UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule] operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/[a-z][a-z0-9_\-]*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length.

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

    Type: Message (Google::Spanner::Admin::Database::V1::BackupSchedule::BackupScheduleSpec)

    Optional. The schedule specification based on which the backup creations are triggered.

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

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

    Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.

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

    Type: Message (Google::Spanner::Admin::Database::V1::Backup::CreateBackupEncryptionConfig)

    Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.

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

    Type: Message (Google::Spanner::Admin::Database::V1::Backup::FullBackupSpec)

    The schedule creates only full backups.

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

    Type: Message (Google::Spanner::Admin::Database::V1::Backup::IncrementalBackupSpec)

    The schedule creates incremental backup chains.

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

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

    Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.

Google::Spanner::Admin::Database::V1::BackupSchedule::CrontabSpec

CrontabSpec can be used to specify the version time and frequency at which the backup should be created.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Textual representation of the crontab. User can customize the backup frequency and the backup version time using the cron expression. The version time must be in UTC timezone.

    The backup will contain an externally consistent copy of the database at the version time. Allowed frequencies are 12 hour, 1 day, 1 week and 1 month. Examples of valid cron specifications: * `0 2/12 * * * ` : every 12 hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * * ` : every 12 hours at (2,14) hours past midnight in UTC. * `0 2 * * * ` : once a day at 2 past midnight in UTC. * `0 2 * * 0 ` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * * ` : once a month on 8th day at 2 past midnight in UTC.

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

    Type: String

    Output only. The time zone of the times in `CrontabSpec.text`. Currently only UTC is supported.

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

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

    Output only. Schedule backups will contain an externally consistent copy of the database at the version time specified in `schedule_spec.cron_spec`. However, Spanner may not initiate the creation of the scheduled backups at that version time. Spanner will initiate the creation of scheduled backups within the time window bounded by the version_time specified in `schedule_spec.cron_spec` and version_time + `creation_window`.

Google::Spanner::Admin::Database::V1::BackupSchedule::CreateBackupScheduleRequest

The request for [CreateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackupSchedule].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the database that this backup schedule applies to.

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

    Type: String

    Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.

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

    Type: Message (Google::Spanner::Admin::Database::V1::BackupSchedule::BackupSchedule)

    Required. The backup schedule to create.

Google::Spanner::Admin::Database::V1::BackupSchedule::GetBackupScheduleRequest

The request for [GetBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.GetBackupSchedule].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the schedule to retrieve. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.

Google::Spanner::Admin::Database::V1::BackupSchedule::DeleteBackupScheduleRequest

The request for [DeleteBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackupSchedule].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the schedule to delete. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.

Google::Spanner::Admin::Database::V1::BackupSchedule::ListBackupSchedulesRequest

The request for [ListBackupSchedules][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupSchedules].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Database is the parent resource whose backup schedules should be listed. Values are of the form projects/<project>/instances/<instance>/databases/<database>

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

    Type: Int32

    Optional. Number of backup schedules to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

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

    Type: String

    Optional. If non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token] from a previous [ListBackupSchedulesResponse][google.spanner.admin.database.v1.ListBackupSchedulesResponse] to the same `parent`.

Google::Spanner::Admin::Database::V1::BackupSchedule::ListBackupSchedulesResponse

The response for [ListBackupSchedules][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupSchedules].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Spanner::Admin::Database::V1::BackupSchedule::BackupSchedule)

    The list of backup schedules for a database.

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

    Type: String

    `next_page_token` can be sent in a subsequent [ListBackupSchedules][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupSchedules] call to fetch more of the schedules.

Google::Spanner::Admin::Database::V1::BackupSchedule::UpdateBackupScheduleRequest

The request for [UpdateBackupScheduleRequest][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Spanner::Admin::Database::V1::BackupSchedule::BackupSchedule)

    Required. The backup schedule to update. `backup_schedule.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored.

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

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

    Required. A mask specifying which fields in the BackupSchedule resource should be updated. This mask is relative to the BackupSchedule resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally.

SEE ALSO

Protobuf, Protobuf::Message, Google::Spanner::Admin::Database::V1::BackupSchedule::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.