class Google::Apis::DatamigrationV1::PostgreSqlConnectionProfile
Specifies connection parameters required specifically for PostgreSQL databases.
Attributes
If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source. Corresponds to the JSON property `cloudSqlId` @return [String]
Required. The IP or hostname of the source PostgreSQL database. Corresponds to the JSON property `host` @return [String]
Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service. Corresponds to the JSON property `password` @return [String]
Output only. Indicates If this connection profile password is stored. Corresponds to the JSON property `passwordSet` @return [Boolean]
Output only. Indicates If this connection profile password is stored. Corresponds to the JSON property `passwordSet` @return [Boolean]
Required. The network port of the source PostgreSQL database. Corresponds to the JSON property `port` @return [Fixnum]
SSL configuration information. Corresponds to the JSON property `ssl` @return [Google::Apis::DatamigrationV1::SslConfig]
Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service. Corresponds to the JSON property `username` @return [String]
Public Class Methods
# File lib/google/apis/datamigration_v1/classes.rb, line 1233 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/datamigration_v1/classes.rb, line 1238 def update!(**args) @cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id) @host = args[:host] if args.key?(:host) @password = args[:password] if args.key?(:password) @password_set = args[:password_set] if args.key?(:password_set) @port = args[:port] if args.key?(:port) @ssl = args[:ssl] if args.key?(:ssl) @username = args[:username] if args.key?(:username) end