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.



1908
1909
1910
# File 'lib/google/apis/datastream_v1/classes.rb', line 1908

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

Instance Attribute Details

#databaseString

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

Returns:

  • (String)


1886
1887
1888
# File 'lib/google/apis/datastream_v1/classes.rb', line 1886

def database
  @database
end

#hostnameString

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

Returns:

  • (String)


1891
1892
1893
# File 'lib/google/apis/datastream_v1/classes.rb', line 1891

def hostname
  @hostname
end

#passwordString

Required. Password for the PostgreSQL connection. Corresponds to the JSON property password

Returns:

  • (String)


1896
1897
1898
# File 'lib/google/apis/datastream_v1/classes.rb', line 1896

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


1901
1902
1903
# File 'lib/google/apis/datastream_v1/classes.rb', line 1901

def port
  @port
end

#usernameString

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

Returns:

  • (String)


1906
1907
1908
# File 'lib/google/apis/datastream_v1/classes.rb', line 1906

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1913
1914
1915
1916
1917
1918
1919
# File 'lib/google/apis/datastream_v1/classes.rb', line 1913

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