Class: Google::Apis::DatastreamV1::PostgresqlProfile

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

Profile for connecting to a PostgreSQL source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgresqlProfile

Returns a new instance of PostgresqlProfile.



3205
3206
3207
# File 'lib/google/apis/datastream_v1/classes.rb', line 3205

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

Instance Attribute Details

#databaseString

Required. Database for the PostgreSQL connection. Corresponds to the JSON property database

Returns:

  • (String)


3171
3172
3173
# File 'lib/google/apis/datastream_v1/classes.rb', line 3171

def database
  @database
end

#hostnameString

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

Returns:

  • (String)


3176
3177
3178
# File 'lib/google/apis/datastream_v1/classes.rb', line 3176

def hostname
  @hostname
end

#passwordString

Optional. Password for the PostgreSQL connection. Mutually exclusive with the secret_manager_stored_password field. Corresponds to the JSON property password

Returns:

  • (String)


3182
3183
3184
# File 'lib/google/apis/datastream_v1/classes.rb', line 3182

def password
  @password
end

#portFixnum

Port for the PostgreSQL connection, default value is 5432. Corresponds to the JSON property port

Returns:

  • (Fixnum)


3187
3188
3189
# File 'lib/google/apis/datastream_v1/classes.rb', line 3187

def port
  @port
end

#secret_manager_stored_passwordString

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

Returns:

  • (String)


3193
3194
3195
# File 'lib/google/apis/datastream_v1/classes.rb', line 3193

def secret_manager_stored_password
  @secret_manager_stored_password
end

#ssl_configGoogle::Apis::DatastreamV1::PostgresqlSslConfig

PostgreSQL SSL configuration information. Corresponds to the JSON property sslConfig



3198
3199
3200
# File 'lib/google/apis/datastream_v1/classes.rb', line 3198

def ssl_config
  @ssl_config
end

#usernameString

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

Returns:

  • (String)


3203
3204
3205
# File 'lib/google/apis/datastream_v1/classes.rb', line 3203

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3210
3211
3212
3213
3214
3215
3216
3217
3218
# File 'lib/google/apis/datastream_v1/classes.rb', line 3210

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