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
Profile for connecting to a MySQL source.
Instance Attribute Summary collapse
-
#hostname ⇒ String
Required.
-
#password ⇒ String
Optional.
-
#port ⇒ Fixnum
Port for the MySQL connection, default value is 3306.
-
#secret_manager_stored_password ⇒ String
Optional.
-
#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.
2393 2394 2395 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2393 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hostname ⇒ String
Required. Hostname for the MySQL connection.
Corresponds to the JSON property hostname
2364 2365 2366 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2364 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
2370 2371 2372 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2370 def password @password end |
#port ⇒ Fixnum
Port for the MySQL connection, default value is 3306.
Corresponds to the JSON property port
2375 2376 2377 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2375 def port @port end |
#secret_manager_stored_password ⇒ String
Optional. A reference to a Secret Manager resource name storing the MySQL
connection password. Mutually exclusive with the password field.
Corresponds to the JSON property secretManagerStoredPassword
2381 2382 2383 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2381 def secret_manager_stored_password @secret_manager_stored_password end |
#ssl_config ⇒ Google::Apis::DatastreamV1::MysqlSslConfig
MySQL SSL configuration information.
Corresponds to the JSON property sslConfig
2386 2387 2388 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2386 def ssl_config @ssl_config end |
#username ⇒ String
Required. Username for the MySQL connection.
Corresponds to the JSON property username
2391 2392 2393 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2391 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2398 def update!(**args) @hostname = args[:hostname] if args.key?(:hostname) @password = args[:password] if args.key?(:password) @port = args[:port] if args.key?(:port) @secret_manager_stored_password = args[:secret_manager_stored_password] if args.key?(:secret_manager_stored_password) @ssl_config = args[:ssl_config] if args.key?(:ssl_config) @username = args[:username] if args.key?(:username) end |