Class: Google::Apis::DatastreamV1alpha1::MysqlDatabase

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 database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MysqlDatabase

Returns a new instance of MysqlDatabase.



904
905
906
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 904

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

Instance Attribute Details

#database_nameString

Database name. Corresponds to the JSON property databaseName

Returns:

  • (String)


897
898
899
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 897

def database_name
  @database_name
end

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

Tables in the database. Corresponds to the JSON property mysqlTables



902
903
904
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 902

def mysql_tables
  @mysql_tables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



909
910
911
912
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 909

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