Class: Google::Apis::DatastreamV1::MysqlDatabase

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

Overview

MySQL database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MysqlDatabase

Returns a new instance of MysqlDatabase.



1920
1921
1922
# File 'lib/google/apis/datastream_v1/classes.rb', line 1920

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

Instance Attribute Details

#databaseString

Database name. Corresponds to the JSON property database

Returns:

  • (String)


1913
1914
1915
# File 'lib/google/apis/datastream_v1/classes.rb', line 1913

def database
  @database
end

#mysql_tablesArray<Google::Apis::DatastreamV1::MysqlTable>

Tables in the database. Corresponds to the JSON property mysqlTables



1918
1919
1920
# File 'lib/google/apis/datastream_v1/classes.rb', line 1918

def mysql_tables
  @mysql_tables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1925
1926
1927
1928
# File 'lib/google/apis/datastream_v1/classes.rb', line 1925

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