Class: Google::Apis::DatastreamV1::MysqlProfile

Inherits:
Object
  • Object
show all
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 profile. Next ID: 7.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MysqlProfile

Returns a new instance of MysqlProfile.



1233
1234
1235
# File 'lib/google/apis/datastream_v1/classes.rb', line 1233

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

Instance Attribute Details

#hostnameString

Required. Hostname for the MySQL connection. Corresponds to the JSON property hostname

Returns:

  • (String)


1210
1211
1212
# File 'lib/google/apis/datastream_v1/classes.rb', line 1210

def hostname
  @hostname
end

#passwordString

Optional. Input only. Password for the MySQL connection. Mutually exclusive with the secret_manager_stored_password field. Corresponds to the JSON property password

Returns:

  • (String)


1216
1217
1218
# File 'lib/google/apis/datastream_v1/classes.rb', line 1216

def password
  @password
end

#portFixnum

Port for the MySQL connection, default value is 3306. Corresponds to the JSON property port

Returns:

  • (Fixnum)


1221
1222
1223
# File 'lib/google/apis/datastream_v1/classes.rb', line 1221

def port
  @port
end

#ssl_configGoogle::Apis::DatastreamV1::MysqlSslConfig

MySQL SSL configuration information. Corresponds to the JSON property sslConfig



1226
1227
1228
# File 'lib/google/apis/datastream_v1/classes.rb', line 1226

def ssl_config
  @ssl_config
end

#usernameString

Required. Username for the MySQL connection. Corresponds to the JSON property username

Returns:

  • (String)


1231
1232
1233
# File 'lib/google/apis/datastream_v1/classes.rb', line 1231

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1238
1239
1240
1241
1242
1243
1244
# File 'lib/google/apis/datastream_v1/classes.rb', line 1238

def update!(**args)
  @hostname = args[:hostname] if args.key?(:hostname)
  @password = args[:password] if args.key?(:password)
  @port = args[:port] if args.key?(:port)
  @ssl_config = args[:ssl_config] if args.key?(:ssl_config)
  @username = args[:username] if args.key?(:username)
end