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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MysqlProfile

Returns a new instance of MysqlProfile.



2036
2037
2038
# File 'lib/google/apis/datastream_v1/classes.rb', line 2036

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


2007
2008
2009
# File 'lib/google/apis/datastream_v1/classes.rb', line 2007

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)


2013
2014
2015
# File 'lib/google/apis/datastream_v1/classes.rb', line 2013

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


2018
2019
2020
# File 'lib/google/apis/datastream_v1/classes.rb', line 2018

def port
  @port
end

#secret_manager_stored_passwordString

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

Returns:

  • (String)


2024
2025
2026
# File 'lib/google/apis/datastream_v1/classes.rb', line 2024

def secret_manager_stored_password
  @secret_manager_stored_password
end

#ssl_configGoogle::Apis::DatastreamV1::MysqlSslConfig

MySQL SSL configuration information. Corresponds to the JSON property sslConfig



2029
2030
2031
# File 'lib/google/apis/datastream_v1/classes.rb', line 2029

def ssl_config
  @ssl_config
end

#usernameString

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

Returns:

  • (String)


2034
2035
2036
# File 'lib/google/apis/datastream_v1/classes.rb', line 2034

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2041
2042
2043
2044
2045
2046
2047
2048
# File 'lib/google/apis/datastream_v1/classes.rb', line 2041

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