Class: Google::Apis::DatastreamV1alpha1::MysqlDatabase
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1alpha1::MysqlDatabase
- 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 database.
Instance Attribute Summary collapse
-
#database_name ⇒ String
Database name.
-
#mysql_tables ⇒ Array<Google::Apis::DatastreamV1alpha1::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.
917 918 919 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_name ⇒ String
Database name.
Corresponds to the JSON property databaseName
910 911 912 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 910 def database_name @database_name end |
#mysql_tables ⇒ Array<Google::Apis::DatastreamV1alpha1::MysqlTable>
Tables in the database.
Corresponds to the JSON property mysqlTables
915 916 917 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 915 def mysql_tables @mysql_tables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
922 923 924 925 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 922 def update!(**args) @database_name = args[:database_name] if args.key?(:database_name) @mysql_tables = args[:mysql_tables] if args.key?(:mysql_tables) end |