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.



2159
2160
2161
# File 'lib/google/apis/datastream_v1/classes.rb', line 2159

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

Instance Attribute Details

#databaseString

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

Returns:

  • (String)


2136
2137
2138
# File 'lib/google/apis/datastream_v1/classes.rb', line 2136

def database
  @database
end

#hostnameString

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

Returns:

  • (String)


2141
2142
2143
# File 'lib/google/apis/datastream_v1/classes.rb', line 2141

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)


2147
2148
2149
# File 'lib/google/apis/datastream_v1/classes.rb', line 2147

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


2152
2153
2154
# File 'lib/google/apis/datastream_v1/classes.rb', line 2152

def port
  @port
end

#usernameString

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

Returns:

  • (String)


2157
2158
2159
# File 'lib/google/apis/datastream_v1/classes.rb', line 2157

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2164
2165
2166
2167
2168
2169
2170
# File 'lib/google/apis/datastream_v1/classes.rb', line 2164

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)
  @username = args[:username] if args.key?(:username)
end