final case class Backup(database: String = "", expireTime: Option[Timestamp] = _root_.scala.None, name: String = "", createTime: Option[Timestamp] = _root_.scala.None, sizeBytes: Long = 0L, state: State = ..., referencingDatabases: Seq[String] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Backup] with Product with Serializable
A backup of a Cloud Spanner database.
- database
Required 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>.- expireTime
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_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.- name
Output 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_&92;-]*[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 formprojects/<project>/instances/<instance>.- createTime
Output only. The backup will contain an externally consistent copy of the database at the timestamp specified by
create_time.create_timeis approximately the time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received.- sizeBytes
Output only. Size of the backup in bytes.
- state
Output only. The current state of the backup.
- referencingDatabases
Output 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 theREADYstate, the reference to the backup is removed.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Backup
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Backup(database: String = "", expireTime: Option[Timestamp] = _root_.scala.None, name: String = "", createTime: Option[Timestamp] = _root_.scala.None, sizeBytes: Long = 0L, state: State = ..., referencingDatabases: Seq[String] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...)
- database
Required 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>.- expireTime
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_timehas passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.- name
Output 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_&92;-]*[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 formprojects/<project>/instances/<instance>.- createTime
Output only. The backup will contain an externally consistent copy of the database at the timestamp specified by
create_time.create_timeis approximately the time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received.- sizeBytes
Output only. Size of the backup in bytes.
- state
Output only. The current state of the backup.
- referencingDatabases
Output 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 theREADYstate, the reference to the backup is removed.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllReferencingDatabases(__vs: Iterable[String]): Backup
- def addReferencingDatabases(__vs: String*): Backup
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearCreateTime: Backup
- def clearExpireTime: Backup
- def clearReferencingDatabases: Backup
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Backup.type
- Definition Classes
- Backup → GeneratedMessage
- val createTime: Option[Timestamp]
- val database: String
- def discardUnknownFields: Backup
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val expireTime: Option[Timestamp]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCreateTime: Timestamp
- def getExpireTime: Timestamp
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Backup → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Backup → GeneratedMessage
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val referencingDatabases: Seq[String]
-
def
serializedSize: Int
- Definition Classes
- Backup → GeneratedMessage
- val sizeBytes: Long
- val state: State
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- Backup → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Backup, Backup]) ⇒ Mutation[Backup]*): Backup
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withCreateTime(__v: Timestamp): Backup
- def withDatabase(__v: String): Backup
- def withExpireTime(__v: Timestamp): Backup
- def withName(__v: String): Backup
- def withReferencingDatabases(__v: Seq[String]): Backup
- def withSizeBytes(__v: Long): Backup
- def withState(__v: State): Backup
- def withUnknownFields(__v: UnknownFieldSet): Backup
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Backup → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage