Class Database (3.1.0)

Database(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A Cloud Spanner database.

Attributes

NameDescription
name str
Required. The name of the database. Values are of the form projects/, where is as specified in the CREATE DATABASE statement. This name can be passed to other API methods to identify the database.
state google.cloud.spanner_admin_database_v1.types.Database.State
Output only. The current database state.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. If exists, the time at which the database creation started.
restore_info google.cloud.spanner_admin_database_v1.types.RestoreInfo
Output only. Applicable only for restored databases. Contains information about the restore source.
version_retention_period str
Output only. The period in which Cloud Spanner retains all versions of data for the database. This is the same as the value of version_retention_period database option set using UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour, if not set.
earliest_version_time google.protobuf.timestamp_pb2.Timestamp
Output only. Earliest timestamp at which older versions of the data can be read.

Classes

State

State(value)

Indicates the current state of the database.