Skip to content

incident_io_client.api.actions_v1.actions_v1_list

asyncio async

asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[
        Unset, ActionsV1ListIncidentMode
    ] = UNSET
) -> Optional[ActionsV1ListResponseBody]

List Actions V1

List all actions for an organisation.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
is_follow_up Union[Unset, bool]
UNSET
incident_mode Union[Unset, ActionsV1ListIncidentMode]
UNSET

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Optional[ActionsV1ListResponseBody]

ActionsV1ListResponseBody

Source code in incident_io_client/api/actions_v1/actions_v1_list.py
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[Unset, ActionsV1ListIncidentMode] = UNSET,
) -> Optional[ActionsV1ListResponseBody]:
    """List Actions V1

     List all actions for an organisation.

    Args:
        incident_id (Union[Unset, str]):
        is_follow_up (Union[Unset, bool]):
        incident_mode (Union[Unset, ActionsV1ListIncidentMode]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        ActionsV1ListResponseBody
    """

    return (
        await asyncio_detailed(
            client=client,
            incident_id=incident_id,
            is_follow_up=is_follow_up,
            incident_mode=incident_mode,
        )
    ).parsed

asyncio_detailed async

asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[
        Unset, ActionsV1ListIncidentMode
    ] = UNSET
) -> Response[ActionsV1ListResponseBody]

List Actions V1

List all actions for an organisation.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
is_follow_up Union[Unset, bool]
UNSET
incident_mode Union[Unset, ActionsV1ListIncidentMode]
UNSET

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[ActionsV1ListResponseBody]

Response[ActionsV1ListResponseBody]

Source code in incident_io_client/api/actions_v1/actions_v1_list.py
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[Unset, ActionsV1ListIncidentMode] = UNSET,
) -> Response[ActionsV1ListResponseBody]:
    """List Actions V1

     List all actions for an organisation.

    Args:
        incident_id (Union[Unset, str]):
        is_follow_up (Union[Unset, bool]):
        incident_mode (Union[Unset, ActionsV1ListIncidentMode]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[ActionsV1ListResponseBody]
    """

    kwargs = _get_kwargs(
        incident_id=incident_id,
        is_follow_up=is_follow_up,
        incident_mode=incident_mode,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync

sync(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[
        Unset, ActionsV1ListIncidentMode
    ] = UNSET
) -> Optional[ActionsV1ListResponseBody]

List Actions V1

List all actions for an organisation.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
is_follow_up Union[Unset, bool]
UNSET
incident_mode Union[Unset, ActionsV1ListIncidentMode]
UNSET

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Optional[ActionsV1ListResponseBody]

ActionsV1ListResponseBody

Source code in incident_io_client/api/actions_v1/actions_v1_list.py
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[Unset, ActionsV1ListIncidentMode] = UNSET,
) -> Optional[ActionsV1ListResponseBody]:
    """List Actions V1

     List all actions for an organisation.

    Args:
        incident_id (Union[Unset, str]):
        is_follow_up (Union[Unset, bool]):
        incident_mode (Union[Unset, ActionsV1ListIncidentMode]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        ActionsV1ListResponseBody
    """

    return sync_detailed(
        client=client,
        incident_id=incident_id,
        is_follow_up=is_follow_up,
        incident_mode=incident_mode,
    ).parsed

sync_detailed

sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[
        Unset, ActionsV1ListIncidentMode
    ] = UNSET
) -> Response[ActionsV1ListResponseBody]

List Actions V1

List all actions for an organisation.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
is_follow_up Union[Unset, bool]
UNSET
incident_mode Union[Unset, ActionsV1ListIncidentMode]
UNSET

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[ActionsV1ListResponseBody]

Response[ActionsV1ListResponseBody]

Source code in incident_io_client/api/actions_v1/actions_v1_list.py
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    is_follow_up: Union[Unset, bool] = UNSET,
    incident_mode: Union[Unset, ActionsV1ListIncidentMode] = UNSET,
) -> Response[ActionsV1ListResponseBody]:
    """List Actions V1

     List all actions for an organisation.

    Args:
        incident_id (Union[Unset, str]):
        is_follow_up (Union[Unset, bool]):
        incident_mode (Union[Unset, ActionsV1ListIncidentMode]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.

    Returns:
        Response[ActionsV1ListResponseBody]
    """

    kwargs = _get_kwargs(
        incident_id=incident_id,
        is_follow_up=is_follow_up,
        incident_mode=incident_mode,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)