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

PostgreSQL database profile.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostgresqlProfile

Returns a new instance of PostgresqlProfile.



2955
2956
2957
# File 'lib/google/apis/datastream_v1/classes.rb', line 2955

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

Instance Attribute Details

#databaseString

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

Returns:

  • (String)


2921
2922
2923
# File 'lib/google/apis/datastream_v1/classes.rb', line 2921

def database
  @database
end

#hostnameString

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

Returns:

  • (String)


2926
2927
2928
# File 'lib/google/apis/datastream_v1/classes.rb', line 2926

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)


2932
2933
2934
# File 'lib/google/apis/datastream_v1/classes.rb', line 2932

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


2937
2938
2939
# File 'lib/google/apis/datastream_v1/classes.rb', line 2937

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)


2943
2944
2945
# File 'lib/google/apis/datastream_v1/classes.rb', line 2943

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



2948
2949
2950
# File 'lib/google/apis/datastream_v1/classes.rb', line 2948

def ssl_config
  @ssl_config
end

#usernameString

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

Returns:

  • (String)


2953
2954
2955
# File 'lib/google/apis/datastream_v1/classes.rb', line 2953

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2960
2961
2962
2963
2964
2965
2966
2967
2968
# File 'lib/google/apis/datastream_v1/classes.rb', line 2960

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