Class: Google::Apis::DatastreamV1alpha1::MysqlProfile

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastream_v1alpha1/classes.rb,
lib/google/apis/datastream_v1alpha1/representations.rb,
lib/google/apis/datastream_v1alpha1/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.



991
992
993
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 991

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

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


969
970
971
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 969

def hostname
  @hostname
end

#passwordString

Required. Input only. Password for the MySQL connection. Corresponds to the JSON property password

Returns:

  • (String)


974
975
976
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 974

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


979
980
981
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 979

def port
  @port
end

#ssl_configGoogle::Apis::DatastreamV1alpha1::MysqlSslConfig

MySQL SSL configuration information. Corresponds to the JSON property sslConfig



984
985
986
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 984

def ssl_config
  @ssl_config
end

#usernameString

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

Returns:

  • (String)


989
990
991
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 989

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



996
997
998
999
1000
1001
1002
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 996

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