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
PostgreSQL database profile.
Instance Attribute Summary collapse
-
#database ⇒ String
Required.
-
#hostname ⇒ String
Required.
-
#password ⇒ String
Required.
-
#port ⇒ Fixnum
Port for the PostgreSQL connection, default value is 5432.
-
#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.
1877 1878 1879 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1877 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database ⇒ String
Required. Database for the PostgreSQL connection.
Corresponds to the JSON property database
1855 1856 1857 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1855 def database @database end |
#hostname ⇒ String
Required. Hostname for the PostgreSQL connection.
Corresponds to the JSON property hostname
1860 1861 1862 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1860 def hostname @hostname end |
#password ⇒ String
Required. Password for the PostgreSQL connection.
Corresponds to the JSON property password
1865 1866 1867 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1865 def password @password end |
#port ⇒ Fixnum
Port for the PostgreSQL connection, default value is 5432.
Corresponds to the JSON property port
1870 1871 1872 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1870 def port @port end |
#username ⇒ String
Required. Username for the PostgreSQL connection.
Corresponds to the JSON property username
1875 1876 1877 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1875 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1882 1883 1884 1885 1886 1887 1888 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 1882 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 |