models.credentials module

class models.credentials.Credentials(password=None, username=None)[source]

Bases: object

Implementation of the ‘Credentials’ model.

Specifies credentials to access a target source.

Attributes:
password (string): Specifies password of the username to access the

target source.

username (string): Specifies username to access the target source.

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.