Service Client: Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsServiceClient
Client stub representing the remote SqlBackupRunsService 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::CloudSqlBackupRuns - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_backup_runs.proto
SYNOPSIS
use Google::Cloud::Sql::V1::CloudSqlBackupRuns;
my $msg = Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsDeleteRequest->new({
id => $id,
instance => $instance,
project => $project,
});
# Read or update a field
my $val = $msg->id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsDeleteRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_backup_runs.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::CloudSqlBackupRuns::SqlBackupRunsDeleteRequest
Backup runs delete request.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
Int64The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) method.
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsGetRequest
Backup runs get request.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
Int64The ID of this backup run.
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsInsertRequest
Backup runs insert request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRun)
Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsListRequest
Backup runs list request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID, or "-" for all instances. This does not include the project ID.
$msg->max_results()/$msg->max_results($value)Type:
Int32Maximum number of backup runs per response.
$msg->page_token()/$msg->page_token($value)Type:
StringA previously-returned page token representing part of the larger set of results to view.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRun
A BackupRun resource.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#backupRun`.
$msg->status()/$msg->status($value)Type:
Enum(Google::Cloud::Sql::V1::SqlBackupRunStatus)The status of this run.
$msg->enqueued_time()/$msg->enqueued_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->id()/$msg->id($value)Type:
Int64The identifier for this backup run. Unique only for a specific Cloud SQL instance.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the backup operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the backup operation completed in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->error()/$msg->error($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::OperationError)Information about why the backup operation failed. This is only present if the run has the FAILED status.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlBackupRunType)The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
$msg->description()/$msg->description($value)Type:
StringThe description of this run, only applicable to on-demand backups.
$msg->window_start_time()/$msg->window_start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->instance()/$msg->instance($value)Type:
StringName of the database instance.
$msg->self_link()/$msg->self_link($value)Type:
StringThe URI of this resource.
$msg->location()/$msg->location($value)Type:
StringLocation of the backups.
$msg->database_version()/$msg->database_version($value)Type:
Enum(Google::Cloud::Sql::V1::SqlDatabaseVersion)Output only. The instance database version at the time this backup was made.
$msg->disk_encryption_configuration()/$msg->disk_encryption_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DiskEncryptionConfiguration)Encryption configuration specific to a backup.
$msg->disk_encryption_status()/$msg->disk_encryption_status($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DiskEncryptionStatus)Encryption status specific to a backup.
$msg->backup_kind()/$msg->backup_kind($value)Type:
Enum(Google::Cloud::Sql::V1::SqlBackupKind)Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
$msg->time_zone()/$msg->time_zone($value)Type:
StringBackup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server.
$msg->max_chargeable_bytes()/$msg->max_chargeable_bytes($value)Type:
Int64Output only. The maximum chargeable bytes for the backup.
Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRunsListResponse
Backup run list results.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#backupRunsList`.
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRun)A list of backup runs in reverse chronological order of the enqueued time.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Sql::V1::CloudSqlBackupRuns::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.