Class: Google::Apis::BigtableadminV2::Backup
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::Backup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb
Overview
A backup of a Cloud Bigtable table.
Instance Attribute Summary collapse
-
#backup_type ⇒ String
Indicates the backup type of the backup.
-
#encryption_info ⇒ Google::Apis::BigtableadminV2::EncryptionInfo
Encryption information for a given resource.
-
#end_time ⇒ String
Output only.
-
#expire_time ⇒ String
Required.
-
#hot_to_standard_time ⇒ String
The time at which the hot backup will be converted to a standard backup.
-
#name ⇒ String
A globally unique identifier for the backup which cannot be changed.
-
#size_bytes ⇒ Fixnum
Output only.
-
#source_backup ⇒ String
Output only.
-
#source_table ⇒ String
Required.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Backup
constructor
A new instance of Backup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Backup
Returns a new instance of Backup.
381 382 383 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 381 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_type ⇒ String
Indicates the backup type of the backup.
Corresponds to the JSON property backupType
307 308 309 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 307 def backup_type @backup_type end |
#encryption_info ⇒ Google::Apis::BigtableadminV2::EncryptionInfo
Encryption information for a given resource. If this resource is protected
with customer managed encryption, the in-use Cloud Key Management Service (
Cloud KMS) key version is specified along with its status.
Corresponds to the JSON property encryptionInfo
314 315 316 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 314 def encryption_info @encryption_info end |
#end_time ⇒ String
Output only. end_time
is the time that the backup was finished. The row data
in the backup will be no newer than this timestamp.
Corresponds to the JSON property endTime
320 321 322 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 320 def end_time @end_time end |
#expire_time ⇒ String
Required. The expiration time of the backup. When creating a backup or
updating its expire_time
, the value must be greater than the backup creation
time by: - At least 6 hours - At most 90 days Once the expire_time
has
passed, Cloud Bigtable will delete the backup.
Corresponds to the JSON property expireTime
328 329 330 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 328 def expire_time @expire_time end |
#hot_to_standard_time ⇒ String
The time at which the hot backup will be converted to a standard backup. Once
the hot_to_standard_time
has passed, Cloud Bigtable will convert the hot
backup to a standard backup. This value must be greater than the backup
creation time by: - At least 24 hours This field only applies for hot backups.
When creating or updating a standard backup, attempting to set this field will
fail the request.
Corresponds to the JSON property hotToStandardTime
338 339 340 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 338 def hot_to_standard_time @hot_to_standard_time end |
#name ⇒ String
A globally unique identifier for the backup which cannot be changed. Values
are of the form projects/
project/instances/
instance/clusters/
cluster/
backups/_a-zA-Z0-9*
The final segment of the name must be between 1 and 50
characters in length. The backup is stored in the cluster identified by the
prefix of the backup name of the form projects/
project/instances/
instance/
clusters/
cluster`.
Corresponds to the JSON property
name`
348 349 350 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 348 def name @name end |
#size_bytes ⇒ Fixnum
Output only. Size of the backup in bytes.
Corresponds to the JSON property sizeBytes
353 354 355 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 353 def size_bytes @size_bytes end |
#source_backup ⇒ String
Output only. Name of the backup from which this backup was copied. If a backup
is not created by copying a backup, this field will be empty. Values are of
the form: projects//instances//clusters//backups/
Corresponds to the JSON property sourceBackup
360 361 362 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 360 def source_backup @source_backup end |
#source_table ⇒ String
Required. Immutable. Name of the table 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/tables/
source_table`.
Corresponds to the JSON property
sourceTable`
367 368 369 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 367 def source_table @source_table end |
#start_time ⇒ String
Output only. start_time
is the time that the backup was started (i.e.
approximately the time the CreateBackup request is received). The row data in
this backup will be no older than this timestamp.
Corresponds to the JSON property startTime
374 375 376 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 374 def start_time @start_time end |
#state ⇒ String
Output only. The current state of the backup.
Corresponds to the JSON property state
379 380 381 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 379 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 386 def update!(**args) @backup_type = args[:backup_type] if args.key?(:backup_type) @encryption_info = args[:encryption_info] if args.key?(:encryption_info) @end_time = args[:end_time] if args.key?(:end_time) @expire_time = args[:expire_time] if args.key?(:expire_time) @hot_to_standard_time = args[:hot_to_standard_time] if args.key?(:hot_to_standard_time) @name = args[:name] if args.key?(:name) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) @source_backup = args[:source_backup] if args.key?(:source_backup) @source_table = args[:source_table] if args.key?(:source_table) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) end |