domo
domo ¶
Domo-specific account configurations.
DomoAccount_Config_AbstractCredential
dataclass
¶
DomoAccount_Config_AbstractCredential(
data_provider_type: str = "abstract-credential-store",
is_oauth: bool = False,
allow_external_use: bool = True,
parent: Any = None,
raw: dict = None,
credentials: dict = None,
)
Bases: DomoAccount_Config
Abstract credential store — stores arbitrary key-value credentials.
The Domo API expects the credentials field as a JSON string,
not a dict. This class handles the serialization/deserialization
transparently so callers can work with a plain Python dict.
from_dict
classmethod
¶
from_dict(obj, parent=None, **kwargs)
Parse the API response, converting credentials string to dict.
Source code in src/crew_dcs/classes/DomoAccount/account_configs/domo.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
to_dict ¶
to_dict(**kwargs) -> dict
Serialize to API format — credentials as JSON string.
Source code in src/crew_dcs/classes/DomoAccount/account_configs/domo.py
58 59 60 61 62 63 | |