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. Next ID: 7.
Instance Attribute Summary collapse
-
#hostname ⇒ String
Required.
-
#password ⇒ String
Optional.
-
#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.
1322 1323 1324 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1322 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hostname ⇒ String
Required. Hostname for the MySQL connection.
Corresponds to the JSON property hostname
1299 1300 1301 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1299 def hostname @hostname end |
#password ⇒ String
Optional. Input only. Password for the MySQL connection. Mutually exclusive
with the secret_manager_stored_password field.
Corresponds to the JSON property password
1305 1306 1307 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1305 def password @password end |
#port ⇒ Fixnum
Port for the MySQL connection, default value is 3306.
Corresponds to the JSON property port
1310 1311 1312 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1310 def port @port end |
#ssl_config ⇒ Google::Apis::DatastreamV1::MysqlSslConfig
MySQL SSL configuration information.
Corresponds to the JSON property sslConfig
1315 1316 1317 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1315 def ssl_config @ssl_config end |
#username ⇒ String
Required. Username for the MySQL connection.
Corresponds to the JSON property username
1320 1321 1322 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1320 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1327 1328 1329 1330 1331 1332 1333 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1327 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 |