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.



917
918
919
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 917

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

Instance Attribute Details

#database_nameString

Database name. Corresponds to the JSON property databaseName

Returns:

  • (String)


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

def database_name
  @database_name
end

#mysql_tablesArray<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