Class: Google::Apis::DatastreamV1::PostgresqlProfile
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::PostgresqlProfile
- 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 PostgreSQL source.
Instance Attribute Summary collapse
-
#database ⇒ String
Required.
-
#hostname ⇒ String
Required.
-
#password ⇒ String
Optional.
-
#port ⇒ Fixnum
Port for the PostgreSQL connection, default value is 5432.
-
#secret_manager_stored_password ⇒ String
Optional.
-
#ssl_config ⇒ Google::Apis::DatastreamV1::PostgresqlSslConfig
PostgreSQL SSL configuration information.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostgresqlProfile
constructor
A new instance of PostgresqlProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PostgresqlProfile
Returns a new instance of PostgresqlProfile.
3211 3212 3213 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Required. Database for the PostgreSQL connection.
Corresponds to the JSON property database
3177 3178 3179 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3177 def database @database end |
#hostname ⇒ String
Required. Hostname for the PostgreSQL connection.
Corresponds to the JSON property hostname
3182 3183 3184 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3182 def hostname @hostname end |
#password ⇒ String
Optional. Password for the PostgreSQL connection. Mutually exclusive with the
secret_manager_stored_password field.
Corresponds to the JSON property password
3188 3189 3190 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3188 def password @password end |
#port ⇒ Fixnum
Port for the PostgreSQL connection, default value is 5432.
Corresponds to the JSON property port
3193 3194 3195 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3193 def port @port end |
#secret_manager_stored_password ⇒ String
Optional. A reference to a Secret Manager resource name storing the PostgreSQL
connection password. Mutually exclusive with the password field.
Corresponds to the JSON property secretManagerStoredPassword
3199 3200 3201 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3199 def secret_manager_stored_password @secret_manager_stored_password end |
#ssl_config ⇒ Google::Apis::DatastreamV1::PostgresqlSslConfig
PostgreSQL SSL configuration information.
Corresponds to the JSON property sslConfig
3204 3205 3206 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3204 def ssl_config @ssl_config end |
#username ⇒ String
Required. Username for the PostgreSQL connection.
Corresponds to the JSON property username
3209 3210 3211 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3209 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3216 3217 3218 3219 3220 3221 3222 3223 3224 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3216 def update!(**args) @database = args[:database] if args.key?(:database) @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 |