Class: Google::Apis::BigtableadminV2::RestoreTableRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigtableadmin_v2/classes.rb,
generated/google/apis/bigtableadmin_v2/representations.rb,
generated/google/apis/bigtableadmin_v2/representations.rb

Overview

The request for RestoreTable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RestoreTableRequest

Returns a new instance of RestoreTableRequest.


1802
1803
1804
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1802

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

Instance Attribute Details

#backupString

Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>. Corresponds to the JSON property backup

Returns:

  • (String)

1792
1793
1794
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1792

def backup
  @backup
end

#table_idString

Required. The id of the table to create and restore to. This table must not already exist. The table_id appended to parent forms the full table name of the form projects/<project>/instances/<instance>/tables/<table_id>. Corresponds to the JSON property tableId

Returns:

  • (String)

1800
1801
1802
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1800

def table_id
  @table_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1807
1808
1809
1810
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1807

def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @table_id = args[:table_id] if args.key?(:table_id)
end