Class: Google::Apis::DatastreamV1::MysqlProfile
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::MysqlProfile
- 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.
Instance Attribute Summary collapse
-
#hostname ⇒ String
Required.
-
#password ⇒ String
Required.
-
#port ⇒ Fixnum
Port for the MySQL connection, default value is 3306.
-
#ssl_config ⇒ Google::Apis::DatastreamV1::MysqlSslConfig
MySQL SSL configuration information.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MysqlProfile
constructor
A new instance of MysqlProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MysqlProfile
Returns a new instance of MysqlProfile.
1220 1221 1222 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hostname ⇒ String
Required. Hostname for the MySQL connection.
Corresponds to the JSON property hostname
1198 1199 1200 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1198 def hostname @hostname end |
#password ⇒ String
Required. Input only. Password for the MySQL connection.
Corresponds to the JSON property password
1203 1204 1205 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1203 def password @password end |
#port ⇒ Fixnum
Port for the MySQL connection, default value is 3306.
Corresponds to the JSON property port
1208 1209 1210 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1208 def port @port end |
#ssl_config ⇒ Google::Apis::DatastreamV1::MysqlSslConfig
MySQL SSL configuration information.
Corresponds to the JSON property sslConfig
1213 1214 1215 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1213 def ssl_config @ssl_config end |
#username ⇒ String
Required. Username for the MySQL connection.
Corresponds to the JSON property username
1218 1219 1220 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1218 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1225 1226 1227 1228 1229 1230 1231 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1225 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 |