Service Client: Google::Cloud::Sql::V1::CloudSqlBackups::SqlBackupsServiceClient

Client stub representing the remote SqlBackupsService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to sql.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Sql::V1::CloudSqlBackups - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_backups.proto

SYNOPSIS

use Google::Cloud::Sql::V1::CloudSqlBackups;

my $msg = Google::Cloud::Sql::V1::CloudSqlBackups::CreateBackupRequest->new({
    parent => $parent,
    backup => $backup,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_backups.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::Sql::V1::CloudSqlBackups::CreateBackupRequest

The request payload to create the backup

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource where this backup is created. Format: projects/{project}

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlBackups::Backup)

    Required. The Backup to create.

Google::Cloud::Sql::V1::CloudSqlBackups::GetBackupRequest

The request payload to get the backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the backup to retrieve. Format: projects/{project}/backups/{backup}

Google::Cloud::Sql::V1::CloudSqlBackups::ListBackupsRequest

The request payload to list the backups.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent that owns this collection of backups. Format: projects/{project}

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

    Type: Int32

    The maximum number of backups to return per response. The service might return fewer backups than this value. If a value for this parameter isn't specified, then, at most, 500 backups are returned. The maximum value is 2,000. Any values that you set, which are greater than 2,000, are changed to 2,000.

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

    Type: String

    A page token, received from a previous `ListBackups` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.

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

    Type: String

    Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.

Google::Cloud::Sql::V1::CloudSqlBackups::ListBackupsResponse

The response payload containing a list of the backups.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlBackups::Backup)

    A list of backups.

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

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, then there aren't subsequent pages.

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlResources::ApiWarning)

    If a region isn't unavailable or if an unknown error occurs, then a warning message is returned.

Google::Cloud::Sql::V1::CloudSqlBackups::UpdateBackupRequest

The request payload to update the backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlBackups::Backup)

    Required. The backup to update. The backup’s `name` field is used to identify the backup to update. Format: projects/{project}/backups/{backup}

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

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

    The list of fields that you can update. You can update only the description and retention period of the final backup.

Google::Cloud::Sql::V1::CloudSqlBackups::DeleteBackupRequest

The request payload to delete the backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the backup to delete. Format: projects/{project}/backups/{backup}

Google::Cloud::Sql::V1::CloudSqlBackups::Backup

A backup resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.

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

    Type: String

    Output only. This is always `sql#backup`.

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

    Type: String

    Output only. The URI of this resource.

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

    Type: Enum (Google::Cloud::Sql::V1::Backup::SqlBackupType)

    Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or “FINAL”.

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

    Type: String

    The description of this backup.

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

    Type: String

    The name of the source database instance.

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

    Type: String

    The storage location of the backups. The location can be multi-regional.

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

    Type: Message (Google::Type::Interval::Interval)

    Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

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

    Type: Enum (Google::Cloud::Sql::V1::Backup::SqlBackupState)

    Output only. The status of this backup.

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlResources::OperationError)

    Output only. Information about why the backup operation fails (for example, when the backup state fails).

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

    Type: String

    Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.

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

    Type: String

    Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.

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

    Type: Enum (Google::Cloud::Sql::V1::SqlBackupKind)

    Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

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

    Type: String

    Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.

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

    Type: Int64

    Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.

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

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

    Backup expiration time. A UTC timestamp of when this backup expired.

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

    Type: Enum (Google::Cloud::Sql::V1::SqlDatabaseVersion)

    Output only. The database version of the instance of at the time this backup was made.

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

    Type: Int64

    Output only. The maximum chargeable bytes for the backup.

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

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

    Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

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

    Type: Message (Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance)

    Optional. Output only. The instance setting of the source instance that's associated with this backup.

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

    Type: String

    Output only. The mapping to backup run resource used for IAM validations.

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

    Type: Message (Google::Protobuf::Wrappers::BoolValue)

    Output only. This status indicates whether the backup satisfies PZS.

    The status is reserved for future use.

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

    Type: Message (Google::Protobuf::Wrappers::BoolValue)

    Output only. This status indicates whether the backup satisfies PZI.

    The status is reserved for future use.

Enum: Backup::SqlBackupType

  • SQL_BACKUP_TYPE_UNSPECIFIED => 0

  • AUTOMATED => 1

  • ON_DEMAND => 2

  • FINAL => 3

Enum: Backup::SqlBackupState

  • SQL_BACKUP_STATE_UNSPECIFIED => 0

  • ENQUEUED => 1

  • RUNNING => 2

  • FAILED => 3

  • SUCCESSFUL => 4

  • DELETING => 5

  • DELETION_FAILED => 6

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Sql::V1::CloudSqlBackups::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.