Skip to content

core

core

DomoInstanceConfig dataclass

DomoInstanceConfig(
    auth: DomoAuth,
    Accounts: Any = None,
    AccessTokens: DomoAccessTokens = None,
    Allowlist: DomoAllowlist = None,
    ApiClients: ApiClients = None,
    Bootstrap: DomoBootstrap = None,
    BrandKit: DomoBrandKit = None,
    Connectors: Any = None,
    InstanceSwitcher: InstanceSwitcher = None,
    Grants: DomoGrants = None,
    MFA: MFA_Config = None,
    PasswordPolicies: PasswordPolicies = None,
    Roles: DomoRoles = None,
    SSO: SSO = None,
    Everywhere: Any = None,
    UserAttributes: UserAttributes = None,
    Toggle: DomoToggle = None,
)

Bases: DomoBase

utility class that absorbs many of the domo instance configuration methods

get_authorized_domains async

get_authorized_domains(
    debug_api: bool = False,
    session: AsyncClient = None,
    return_raw: bool = False,
    *,
    context: RouteContext | None = None,
    debug_num_stacks_to_drop: int = 1,
    **context_kwargs
) -> list[str]

returns a list of authorized domains (str) does not update instance_config

Source code in src/crew_dcs/classes/DomoInstanceConfig/core.py
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
async def get_authorized_domains(
    self,
    debug_api: bool = False,
    session: httpx.AsyncClient = None,
    return_raw: bool = False,
    *,
    context: RouteContext | None = None,
    debug_num_stacks_to_drop: int = 1,
    **context_kwargs,
) -> list[str]:
    """returns a list of authorized domains (str) does not update instance_config"""
    context = RouteContext.build_context(
        context=context,
        session=session,
        debug_api=debug_api,
        debug_num_stacks_to_drop=debug_num_stacks_to_drop,
        **context_kwargs,
    )

    res = await domains_routes.get_authorized_domains(
        auth=self.auth, return_raw=return_raw, context=context
    )

    if return_raw:
        return res

    return res.response