models.postgres_node_info module

class models.postgres_node_info.PostgresNodeInfo(default_password=None, default_username=None, node_id=None, node_ip=None, port=None)[source]

Bases: object

Implementation of the ‘PostgresNodeInfo’ model.

Specifies the Node Id, IP and port information to access the postgres database.

Attributes:
default_password (string): Specifies the default password to access

the postgres database.

default_username (string): Specifies the default username to access

the postgres database.

node_id (long|int): Specifies the id of the node where postgres

database is running.

node_ip (string): Specifies the ip of the node where postgres database

is running.

port (int): Specifies the information where postgres database is

running.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.