Class: Google::Apis::BigtableadminV2::CopyBackupRequest

Inherits:
Object
  • Object
show all
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

The request for CopyBackup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CopyBackupRequest

Returns a new instance of CopyBackupRequest.



929
930
931
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 929

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#backup_idString

Required. The id of the new backup. The backup_id along with parent are combined as parent/backups/backup_id to create the full backup name, of the form: projects/project/instances/instance/clusters/cluster/backups/ backup_id`. This string must be between 1 and 50 characters in length and match the regex _a-zA-Z0-9*. Corresponds to the JSON propertybackupId`

Returns:

  • (String)


910
911
912
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 910

def backup_id
  @backup_id
end

#expire_timeString

Required. Required. The expiration time of the copied backup with microsecond granularity that must be at least 6 hours and at most 30 days from the time the request is received. Once the expire_time has passed, Cloud Bigtable will delete the backup and free the resources used by the backup. Corresponds to the JSON property expireTime

Returns:

  • (String)


918
919
920
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 918

def expire_time
  @expire_time
end

#source_backupString

Required. The source backup to be copied from. The source backup needs to be in READY state for it to be copied. Copying a copied backup is not allowed. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: projects//instances//clusters//backups/. Corresponds to the JSON property sourceBackup

Returns:

  • (String)


927
928
929
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 927

def source_backup
  @source_backup
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



934
935
936
937
938
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 934

def update!(**args)
  @backup_id = args[:backup_id] if args.key?(:backup_id)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @source_backup = args[:source_backup] if args.key?(:source_backup)
end