Class: Google::Apis::MetastoreV1alpha::MoveTableToDatabaseRequest

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

Overview

Request message for DataprocMetastore.MoveTableToDatabase.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MoveTableToDatabaseRequest

Returns a new instance of MoveTableToDatabaseRequest.



1846
1847
1848
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1846

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

Instance Attribute Details

#db_nameString

Required. The name of the database where the table resides. Corresponds to the JSON property dbName

Returns:

  • (String)


1834
1835
1836
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1834

def db_name
  @db_name
end

#destination_db_nameString

Required. The name of the database where the table should be moved. Corresponds to the JSON property destinationDbName

Returns:

  • (String)


1839
1840
1841
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1839

def destination_db_name
  @destination_db_name
end

#table_nameString

Required. The name of the table to be moved. Corresponds to the JSON property tableName

Returns:

  • (String)


1844
1845
1846
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1844

def table_name
  @table_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1851
1852
1853
1854
1855
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1851

def update!(**args)
  @db_name = args[:db_name] if args.key?(:db_name)
  @destination_db_name = args[:destination_db_name] if args.key?(:destination_db_name)
  @table_name = args[:table_name] if args.key?(:table_name)
end