Class Database (3.5.0)

public sealed class Database : IMessage<Database>, IEquatable<Database>, IDeepCloneable<Database>, IBufferMessage, IMessage

A Cloud Spanner database.

Inheritance

Object > Database

Implements

Google.Protobuf.IMessage<Database>, IEquatable<Database>, Google.Protobuf.IDeepCloneable<Database>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessage

Namespace

Google.Cloud.Spanner.Admin.Database.V1

Assembly

Google.Cloud.Spanner.Admin.Database.V1.dll

Constructors

Database()

public Database()

Database(Database)

public Database(Database other)
Parameter
NameDescription
otherDatabase

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. If exists, the time at which the database creation started.

Property Value
TypeDescription
Google.Protobuf.WellKnownTypes.Timestamp

DatabaseName

public DatabaseName DatabaseName { get; set; }

Google.Cloud.Spanner.Common.V1.DatabaseName-typed view over the Name resource name property.

Property Value
TypeDescription
Google.Cloud.Spanner.Common.V1.DatabaseName

EarliestVersionTime

public Timestamp EarliestVersionTime { get; set; }

Output only. Earliest timestamp at which older versions of the data can be read.

Property Value
TypeDescription
Google.Protobuf.WellKnownTypes.Timestamp

Name

public string Name { get; set; }

Required. The name of the database. Values are of the form projects/&lt;project>/instances/&lt;instance>/databases/&lt;database>, where &lt;database> is as specified in the CREATE DATABASE statement. This name can be passed to other API methods to identify the database.

Property Value
TypeDescription
String

RestoreInfo

public RestoreInfo RestoreInfo { get; set; }

Output only. Applicable only for restored databases. Contains information about the restore source.

Property Value
TypeDescription
RestoreInfo

State

public Database.Types.State State { get; set; }

Output only. The current database state.

Property Value
TypeDescription
Database.Types.State

VersionRetentionPeriod

public string VersionRetentionPeriod { get; set; }

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.

Property Value
TypeDescription
String