NAME
Google::Spanner::Admin::Database::V1::Backup - Compiled Protocol Buffers messages for google/spanner/admin/database/v1/backup.proto
SYNOPSIS
use Google::Spanner::Admin::Database::V1::Backup;
my $msg = Google::Spanner::Admin::Database::V1::Backup::Backup->new({
database => $database,
version_time => $version_time,
expire_time => $expire_time,
name => $name,
});
# Read or update a field
my $val = $msg->database();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Spanner::Admin::Database::V1::Backup::Backup->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/spanner/admin/database/v1/backup.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::Backup::Backup
A backup of a Cloud Spanner database.
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`.
$msg->version_time()/$msg->version_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
$msg->name()/$msg->name($value)Type:
StringOutput only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length.
The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects/<project>/instances/<instance>`.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
$msg->size_bytes()/$msg->size_bytes($value)Type:
Int64Output only. Size of the backup in bytes.
$msg->freeable_size_bytes()/$msg->freeable_size_bytes($value)Type:
Int64Output only. The number of bytes that will be freed by deleting this backup. This value will be zero if, for example, this backup is part of an incremental backup chain and younger backups in the chain require that we keep its data. For backups not in an incremental backup chain, this is always the size of the backup. This value may change if backups on the same chain get created, deleted or expired.
$msg->exclusive_size_bytes()/$msg->exclusive_size_bytes($value)Type:
Int64Output only. For a backup in an incremental backup chain, this is the storage space needed to keep the data that has changed since the previous backup. For all other backups, this is always the size of the backup. This value may change if backups on the same chain get deleted or expired.
This field can be used to calculate the total storage space used by a set of backups. For example, the total space used by all backups of a database can be computed by summing up this field.
$msg->state()/$msg->state($value)Type:
Enum(Google::Spanner::Admin::Database::V1::Backup::State)Output only. The current state of the backup.
$msg->referencing_databases()/$msg->referencing_databases($value)Type:
StringOutput only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
$msg->encryption_info()/$msg->encryption_info($value)Type:
Message(Google::Spanner::Admin::Database::V1::Common::EncryptionInfo)Output only. The encryption information for the backup.
$msg->encryption_information()/$msg->encryption_information($value)Type:
Message(Google::Spanner::Admin::Database::V1::Common::EncryptionInfo)Output only. The encryption information for the backup, whether it is protected by one or more KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the key versions must be available for the backup to be restored. If a key version is revoked in the middle of a restore, the restore behavior is undefined.
$msg->database_dialect()/$msg->database_dialect($value)Type:
Enum(Google::Spanner::Admin::Database::V1::DatabaseDialect)Output only. The database dialect information for the backup.
$msg->referencing_backups()/$msg->referencing_backups($value)Type:
StringOutput only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
$msg->max_expire_time()/$msg->max_expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
$msg->backup_schedules()/$msg->backup_schedules($value)Type:
StringOutput only. List of backup schedule URIs that are associated with creating this backup. This is only applicable for scheduled backups, and is empty for on-demand backups.
To optimize for storage, whenever possible, multiple schedules are collapsed together to create one backup. In such cases, this field captures the list of all backup schedule URIs that are associated with creating this backup. If collapsing is not done, then this field captures the single backup schedule URI associated with creating this backup.
$msg->incremental_backup_chain_id()/$msg->incremental_backup_chain_id($value)Type:
StringOutput only. Populated only for backups in an incremental backup chain. Backups share the same chain id if and only if they belong to the same incremental backup chain. Use this field to determine which backups are part of the same incremental backup chain. The ordering of backups in the chain can be determined by ordering the backup `version_time`.
$msg->oldest_version_time()/$msg->oldest_version_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Data deleted at a time older than this is guaranteed not to be retained in order to support this backup. For a backup in an incremental backup chain, this is the version time of the oldest backup that exists or ever existed in the chain. For all other backups, this is the version time of the backup. This field can be used to understand what data is being retained by the backup system.
$msg->instance_partitions()/$msg->instance_partitions($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::BackupInstancePartition)Output only. The instance partition(s) storing the backup.
This is the same as the list of the instance partition(s) that the database had footprint in at the backup's `version_time`.
Enum: Backup::State
STATE_UNSPECIFIED=>0CREATING=>1READY=>2
Google::Spanner::Admin::Database::V1::Backup::CreateBackupRequest
The request for [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects/<project>/instances/<instance>`.
$msg->backup_id()/$msg->backup_id($value)Type:
StringRequired. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects/<project>/instances/<instance>/backups/<backup_id>`.
$msg->backup()/$msg->backup($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::Backup)Required. The backup to create.
$msg->encryption_config()/$msg->encryption_config($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::CreateBackupEncryptionConfig)Optional. The encryption configuration used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database by default, namely [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] = `USE_DATABASE_ENCRYPTION`.
Google::Spanner::Admin::Database::V1::Backup::CreateBackupMetadata
Metadata type for the operation returned by [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the backup being created.
$msg->database()/$msg->database($value)Type:
StringThe name of the database the backup is created from.
$msg->progress()/$msg->progress($value)Type:
Message(Google::Spanner::Admin::Database::V1::Common::OperationProgress)The progress of the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
$msg->cancel_time()/$msg->cancel_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which cancellation of this operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
Google::Spanner::Admin::Database::V1::Backup::CopyBackupRequest
The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`.
$msg->backup_id()/$msg->backup_id($value)Type:
StringRequired. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`.
$msg->source_backup()/$msg->source_backup($value)Type:
StringRequired. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
$msg->encryption_config()/$msg->encryption_config($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::CopyBackupEncryptionConfig)Optional. The encryption configuration used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the source backup by default, namely [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
Google::Spanner::Admin::Database::V1::Backup::CopyBackupMetadata
Metadata type for the operation returned by [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the backup being created through the copy operation. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
$msg->source_backup()/$msg->source_backup($value)Type:
StringThe name of the source backup that is being copied. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
$msg->progress()/$msg->progress($value)Type:
Message(Google::Spanner::Admin::Database::V1::Common::OperationProgress)The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
$msg->cancel_time()/$msg->cancel_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
Google::Spanner::Admin::Database::V1::Backup::UpdateBackupRequest
The request for [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup].
Inherits from Protobuf::Message.
Accessors
$msg->backup()/$msg->backup($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::Backup)Required. The backup to update. `backup.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored. Update is only supported for the following fields: * `backup.expire_time`.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be updated. This mask is relative to the Backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them.
Google::Spanner::Admin::Database::V1::Backup::GetBackupRequest
The request for [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the backup. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
Google::Spanner::Admin::Database::V1::Backup::DeleteBackupRequest
The request for [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the backup to delete. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
Google::Spanner::Admin::Database::V1::Backup::ListBackupsRequest
The request for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The instance to list backups from. Values are of the form `projects/<project>/instances/<instance>`.
$msg->filter()/$msg->filter($value)Type:
StringAn expression that filters the list of returned backups.
A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive.
The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
* `name` * `database` * `state` * `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `size_bytes` * `backup_schedules`You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic, but you can specify AND, OR, and NOT logic explicitly.
Here are a few examples:
* `name:Howl` - The backup's name contains the string "howl". * `database:prod` - The database's name contains the string "prod". * `state:CREATING` - The backup is pending creation. * `state:READY` - The backup is fully created and ready for use. * `(name:howl) AND (create_time < \"2018-03-28T14:50:00Z\")` - The backup name contains the string "howl" and `create_time` of the backup is before 2018-03-28T14:50:00Z. * `expire_time < \"2018-03-28T14:50:00Z\"` - The backup `expire_time` is before 2018-03-28T14:50:00Z. * `size_bytes > 10000000000` - The backup's size is greater than 10GB * `backup_schedules:daily` - The backup is created from a schedule with "daily" in its name.$msg->page_size()/$msg->page_size($value)Type:
Int32Number of backups 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:
StringIf non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same `filter`.
Google::Spanner::Admin::Database::V1::Backup::ListBackupsResponse
The response for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
Inherits from Protobuf::Message.
Accessors
$msg->backups()/$msg->backups($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::Backup)The list of matching backups. Backups returned are ordered by `create_time` in descending order, starting from the most recent `create_time`.
$msg->next_page_token()/$msg->next_page_token($value)Type:
String`next_page_token` can be sent in a subsequent [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more of the matching backups.
Google::Spanner::Admin::Database::V1::Backup::ListBackupOperationsRequest
The request for [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The instance of the backup operations. Values are of the form `projects/<project>/instances/<instance>`.
$msg->filter()/$msg->filter($value)Type:
StringAn expression that filters the list of returned backup operations.
A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive.
The following fields in the [operation][google.longrunning.Operation] are eligible for filtering:
* `name` - The name of the long-running operation * `done` - False if the operation is in progress, else true. * `metadata.@type` - the type of metadata. For example, the type string for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`. * `metadata.<field_name>` - any field in metadata.value. `metadata.@type` must be specified first if filtering on metadata fields. * `error` - Error associated with the long-running operation. * `response.@type` - the type of response. * `response.<field_name>` - any field in response.value.You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic, but you can specify AND, OR, and NOT logic explicitly.
Here are a few examples:
* `done:true` - The operation is complete. * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ `metadata.database:prod` - Returns operations where: * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. * The source database name of backup contains the string "prod". * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ `(metadata.name:howl) AND` \ `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \ `(error:*)` - Returns operations where: * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. * The backup name contains the string "howl". * The operation started before 2018-03-28T14:50:00Z. * The operation resulted in an error. * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \ `(metadata.source_backup:test) AND` \ `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \ `(error:*)` - Returns operations where: * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. * The source backup name contains the string "test". * The operation started before 2022-01-18T14:50:00Z. * The operation resulted in an error. * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ `(metadata.database:test_db)) OR` \ `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \ `(metadata.source_backup:test_bkp)) AND` \ `(error:*)` - Returns operations where: * The operation's metadata matches either of criteria: * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the source database name of the backup contains the string "test_db" * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the source backup name contains the string "test_bkp" * The operation resulted in an error.$msg->page_size()/$msg->page_size($value)Type:
Int32Number of operations 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:
StringIf non-empty, `page_token` should contain a [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the same `parent` and with the same `filter`.
Google::Spanner::Admin::Database::V1::Backup::ListBackupOperationsResponse
The response for [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations].
Inherits from Protobuf::Message.
Accessors
$msg->operations()/$msg->operations($value)Type:
Message(Google::Longrunning::Operations::Operation)The list of matching backup [long-running operations][google.longrunning.Operation]. Each operation's name will be prefixed by the backup's name. The operation's [metadata][google.longrunning.Operation.metadata] field type `metadata.type_url` describes the type of the metadata. Operations returned include those that are pending or have completed/failed/canceled within the last 7 days. Operations returned are ordered by `operation.metadata.value.progress.start_time` in descending order starting from the most recently started operation.
$msg->next_page_token()/$msg->next_page_token($value)Type:
String`next_page_token` can be sent in a subsequent [ListBackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations] call to fetch more of the matching metadata.
Google::Spanner::Admin::Database::V1::Backup::BackupInfo
Information about a backup.
Inherits from Protobuf::Message.
Accessors
$msg->backup()/$msg->backup($value)Type:
StringName of the backup.
$msg->version_time()/$msg->version_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The backup contains an externally consistent copy of `source_database` at the timestamp specified by `version_time`. If the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify `version_time`, the `version_time` of the backup is equivalent to the `create_time`.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was received.
$msg->source_database()/$msg->source_database($value)Type:
StringName of the database the backup was created from.
Google::Spanner::Admin::Database::V1::Backup::CreateBackupEncryptionConfig
Encryption configuration for the backup to create.
Inherits from Protobuf::Message.
Accessors
$msg->encryption_type()/$msg->encryption_type($value)Type:
Enum(Google::Spanner::Admin::Database::V1::CreateBackupEncryptionConfig::EncryptionType)Required. The encryption type of the backup.
$msg->kms_key_name()/$msg->kms_key_name($value)Type:
StringOptional. The Cloud KMS key that will be used to protect the backup. This field should be set only when [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
$msg->kms_key_names()/$msg->kms_key_names($value)Type:
StringOptional. Specifies the KMS configuration for the one or more keys used to protect the backup. Values are of the form `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
The keys referenced by kms_key_names must fully cover all regions of the backup's instance configuration. Some examples: * For single region instance configs, specify a single regional location KMS key. * For multi-regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location KMS keys that cover all regions in the instance config. * For an instance config of type USER_MANAGED, please specify only regional location KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance configs.
Enum: CreateBackupEncryptionConfig::EncryptionType
ENCRYPTION_TYPE_UNSPECIFIED=>0USE_DATABASE_ENCRYPTION=>1GOOGLE_DEFAULT_ENCRYPTION=>2CUSTOMER_MANAGED_ENCRYPTION=>3
Google::Spanner::Admin::Database::V1::Backup::CopyBackupEncryptionConfig
Encryption configuration for the copied backup.
Inherits from Protobuf::Message.
Accessors
$msg->encryption_type()/$msg->encryption_type($value)Type:
Enum(Google::Spanner::Admin::Database::V1::CopyBackupEncryptionConfig::EncryptionType)Required. The encryption type of the backup.
$msg->kms_key_name()/$msg->kms_key_name($value)Type:
StringOptional. The Cloud KMS key that will be used to protect the backup. This field should be set only when [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
$msg->kms_key_names()/$msg->kms_key_names($value)Type:
StringOptional. Specifies the KMS configuration for the one or more keys used to protect the backup. Values are of the form `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`. Kms keys specified can be in any order.
The keys referenced by kms_key_names must fully cover all regions of the backup's instance configuration. Some examples: * For single region instance configs, specify a single regional location KMS key. * For multi-regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location KMS keys that cover all regions in the instance config. * For an instance config of type USER_MANAGED, please specify only regional location KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance configs.
Enum: CopyBackupEncryptionConfig::EncryptionType
ENCRYPTION_TYPE_UNSPECIFIED=>0USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION=>1GOOGLE_DEFAULT_ENCRYPTION=>2CUSTOMER_MANAGED_ENCRYPTION=>3
Google::Spanner::Admin::Database::V1::Backup::FullBackupSpec
The specification for full backups. A full backup stores the entire contents of the database at a given version time.
Inherits from Protobuf::Message.
Google::Spanner::Admin::Database::V1::Backup::IncrementalBackupSpec
The specification for incremental backup chains. An incremental backup stores the delta of changes between a previous backup and the database contents at a given version time. An incremental backup chain consists of a full backup and zero or more successive incremental backups. The first backup created for an incremental backup chain is always a full backup.
Inherits from Protobuf::Message.
Google::Spanner::Admin::Database::V1::Backup::BackupInstancePartition
Instance partition information for the backup.
Inherits from Protobuf::Message.
Accessors
$msg->instance_partition()/$msg->instance_partition($value)Type:
StringA unique identifier for the instance partition. Values are of the form `projects/<project>/instances/<instance>/instancePartitions/<instance_partition_id>`
SEE ALSO
Protobuf, Protobuf::Message, Google::Spanner::Admin::Database::V1::Backup::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.