Class: Google::Apis::DatastreamV1::MysqlDatabase
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::MysqlDatabase
- 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
-
#database ⇒ String
Database name.
-
#mysql_tables ⇒ Array<Google::Apis::DatastreamV1::MysqlTable>
Tables in the database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MysqlDatabase
constructor
A new instance of MysqlDatabase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MysqlDatabase
Returns a new instance of MysqlDatabase.
1231 1232 1233 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Database name.
Corresponds to the JSON property database
1224 1225 1226 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1224 def database @database end |
#mysql_tables ⇒ Array<Google::Apis::DatastreamV1::MysqlTable>
Tables in the database.
Corresponds to the JSON property mysqlTables
1229 1230 1231 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1229 def mysql_tables @mysql_tables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1236 1237 1238 1239 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1236 def update!(**args) @database = args[:database] if args.key?(:database) @mysql_tables = args[:mysql_tables] if args.key?(:mysql_tables) end |