Skip to content

bootstrap

bootstrap

DomoBootstrap dataclass

DomoBootstrap(
    auth: DomoAuth,
    customer_id: str = None,
    page_ls: list[DomoPage] = None,
    feature_ls: list[DomoBootstrap_Feature] = None,
    raw: dict = None,
)

Bases: DomoManager

get async

get(
    return_raw: bool = False,
    debug_api: bool = False,
    debug_num_stacks_to_drop=2,
    session: AsyncClient = None,
    *,
    context: RouteContext | None = None,
    **context_kwargs
)

Get the bootstrap information for the domo_instance.

Source code in src/crew_dcs/classes/DomoInstanceConfig/bootstrap.py
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
async def get(
    self,
    return_raw: bool = False,
    debug_api: bool = False,
    debug_num_stacks_to_drop=2,
    session: httpx.AsyncClient = None,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
):
    """Get the bootstrap information for the domo_instance."""

    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 bootstrap_routes.get_bootstrap(
        auth=self.auth,
        context=context,
    )

    self.raw = res.response

    if return_raw:
        return res

    return self.raw