class Google::Apis::DatamigrationV1::MySqlConnectionProfile

Specifies connection parameters required specifically for MySQL databases.

Attributes

cloud_sql_id[RW]

If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source. Corresponds to the JSON property `cloudSqlId` @return [String]

host[RW]

Required. The IP or hostname of the source MySQL database. Corresponds to the JSON property `host` @return [String]

password[RW]

Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service. Corresponds to the JSON property `password` @return [String]

password_set[RW]

Output only. Indicates If this connection profile password is stored. Corresponds to the JSON property `passwordSet` @return [Boolean]

password_set?[RW]

Output only. Indicates If this connection profile password is stored. Corresponds to the JSON property `passwordSet` @return [Boolean]

port[RW]

Required. The network port of the source MySQL database. Corresponds to the JSON property `port` @return [Fixnum]

ssl[RW]

SSL configuration information. Corresponds to the JSON property `ssl` @return [Google::Apis::DatamigrationV1::SslConfig]

username[RW]

Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service. Corresponds to the JSON property `username` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datamigration_v1/classes.rb, line 1020
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datamigration_v1/classes.rb, line 1025
def update!(**args)
  @cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
  @host = args[:host] if args.key?(:host)
  @password = args[:password] if args.key?(:password)
  @password_set = args[:password_set] if args.key?(:password_set)
  @port = args[:port] if args.key?(:port)
  @ssl = args[:ssl] if args.key?(:ssl)
  @username = args[:username] if args.key?(:username)
end