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.



2170
2171
2172
# File 'lib/google/apis/datastream_v1/classes.rb', line 2170

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

Instance Attribute Details

#databaseString

The database name. Corresponds to the JSON property database

Returns:

  • (String)


2163
2164
2165
# File 'lib/google/apis/datastream_v1/classes.rb', line 2163

def database
  @database
end

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

Tables in the database. Corresponds to the JSON property mysqlTables



2168
2169
2170
# File 'lib/google/apis/datastream_v1/classes.rb', line 2168

def mysql_tables
  @mysql_tables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2175
2176
2177
2178
# File 'lib/google/apis/datastream_v1/classes.rb', line 2175

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