Skip to content

DomoIntegration

DomoIntegration

DomoIntegration dataclass

DomoIntegration(
    auth: DomoAuth,
    id: str,
    raw: dict,
    admin_auth_method: str,
    auth_method: str,
    description: str,
    enable_native_transform: bool,
    engine: str,
    friendly_name: str,
    initialized: bool,
    owner_entity: DomoIntegration_OwnerEntity,
    polling_rate_min: int,
    polling_schedule: CloudAmplifier_PollingSchedule,
    properties: dict[str, DomoIntegration_PropertyConfig],
    service_account_id: str,
    ttl_minutes: int,
    warehouses: list[CloudAmplifier_Warehouse],
    warehouses_valid_configuration: bool,
    writeable: bool,
)

Bases: DomoEntity

display_url property

display_url: str

Guessed Cloud Amplifier integration URL (unverified approximation, not confirmed against a live instance).

get_by_id async classmethod

get_by_id(
    auth: DomoAuth,
    integration_id: str,
    debug_api: bool = False,
    debug_num_stacks_to_drop: int = 2,
    return_raw: bool = False,
    session: AsyncClient = None,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
) -> DomoIntegration

Calls route

Source code in src/crew_dcs/classes/DomoIntegration.py
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
@classmethod
async def get_by_id(
    cls,
    auth: DomoAuth,
    integration_id: str,
    debug_api: bool = False,
    debug_num_stacks_to_drop: int = 2,
    return_raw: bool = False,
    session: httpx.AsyncClient = None,
    *,
    context: RouteContext | None = None,
    **context_kwargs,
) -> "DomoIntegration":
    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 cloud_amplifier_routes.get_integration_by_id(
        integration_id=integration_id,
        auth=auth,
        context=context,
    )

    if return_raw:
        return res

    return cls.from_dict(res.response, auth=auth)

get_entity_by_id async classmethod

get_entity_by_id(auth: DomoAuth, entity_id: str, **kwargs)

Fetch a Cloud Amplifier integration by ID; delegates to get_by_id.

Source code in src/crew_dcs/classes/DomoIntegration.py
143
144
145
146
@classmethod
async def get_entity_by_id(cls, auth: DomoAuth, entity_id: str, **kwargs):
    """Fetch a Cloud Amplifier integration by ID; delegates to ``get_by_id``."""
    return await cls.get_by_id(auth=auth, integration_id=entity_id, **kwargs)