public sealed class Database : IMessage<Database>, IEquatable<Database>, IDeepCloneable<Database>, IBufferMessage, IMessageA Cloud Spanner database.
Implements
Google.Protobuf.IMessage<Database>, IEquatable<Database>, Google.Protobuf.IDeepCloneable<Database>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.Spanner.Admin.Database.V1Assembly
Google.Cloud.Spanner.Admin.Database.V1.dll
Constructors
Database()
public Database()Database(Database)
public Database(Database other)| Parameter | |
|---|---|
| Name | Description |
other |
Database |
Properties
CreateTime
public Timestamp CreateTime { get; set; }Output only. If exists, the time at which the database creation started.
| Property Value | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
Google.Protobuf.WellKnownTypes.Timestamp |
|
Name
public string Name { get; set; }Required. The name of the database. Values are of the form
projects/<project>/instances/<instance>/databases/<database>,
where <database> is as specified in the CREATE DATABASE
statement. This name can be passed to other API methods to
identify the database.
| Property Value | |
|---|---|
| Type | Description |
String |
|
RestoreInfo
public RestoreInfo RestoreInfo { get; set; }Output only. Applicable only for restored databases. Contains information about the restore source.
| Property Value | |
|---|---|
| Type | Description |
RestoreInfo |
|
State
public Database.Types.State State { get; set; }Output only. The current database state.
| Property Value | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
String |
|