gooddata_sdk.catalog.entity.BasicCredentials

class gooddata_sdk.catalog.entity.BasicCredentials(*, username: str, password: str)

Bases: Credentials

__init__(*, username: str, password: str) None

Method generated by attrs for class BasicCredentials.

Methods

__init__(*, username, password)

Method generated by attrs for class BasicCredentials.

client_class()

create(creds_classes, entity)

from_api(attributes)

Creates object from entity passed by client class, which represents it as dictionary.

from_dict(data[, camel_case])

Creates object from dictionary.

is_part_of_api(entity)

to_api()

to_api_args()

to_dict([camel_case])

Converts object into dictionary.

validate_instance(creds_classes, instance)

Attributes

PASSWORD_KEY

TOKEN_KEY

USER_KEY

username

password

classmethod from_api(attributes: dict[str, Any]) BasicCredentials

Creates object from entity passed by client class, which represents it as dictionary.

classmethod from_dict(data: Dict[str, Any], camel_case: bool = True) T

Creates object from dictionary. It needs to be specified if the dictionary is in camelCase or snake_case.

to_dict(camel_case: bool = True) Dict[str, Any]

Converts object into dictionary. Optional argument if the dictionary should be camelCase or snake_case can be specified.