Class: Google::Apis::DatastreamV1alpha1::MysqlTable

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

Overview

MySQL table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MysqlTable

Returns a new instance of MysqlTable.



1100
1101
1102
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1100

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

Instance Attribute Details

#mysql_columnsArray<Google::Apis::DatastreamV1alpha1::MysqlColumn>

MySQL columns in the database. When unspecified as part of include/exclude lists, includes/excludes everything. Corresponds to the JSON property mysqlColumns



1093
1094
1095
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1093

def mysql_columns
  @mysql_columns
end

#table_nameString

Table name. Corresponds to the JSON property tableName

Returns:

  • (String)


1098
1099
1100
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1098

def table_name
  @table_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1105
1106
1107
1108
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1105

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