Skip to content

incident_io_client.api.incident_updates_v2.incident_updates_v2_list

asyncio async

asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET
) -> Optional[IncidentUpdatesV2ListResponseBody]

List Incident Updates V2

List all incident updates for an organisation, or for a specific incident.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
page_size Union[Unset, int]

Default: 25.

25
after Union[Unset, str]
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[IncidentUpdatesV2ListResponseBody]

IncidentUpdatesV2ListResponseBody

Source code in incident_io_client/api/incident_updates_v2/incident_updates_v2_list.py
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Optional[IncidentUpdatesV2ListResponseBody]:
    """List Incident Updates V2

     List all incident updates for an organisation, or for a specific incident.

    Args:
        incident_id (Union[Unset, str]):
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):

    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:
        IncidentUpdatesV2ListResponseBody
    """

    return (
        await asyncio_detailed(
            client=client,
            incident_id=incident_id,
            page_size=page_size,
            after=after,
        )
    ).parsed

asyncio_detailed async

asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET
) -> Response[IncidentUpdatesV2ListResponseBody]

List Incident Updates V2

List all incident updates for an organisation, or for a specific incident.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
page_size Union[Unset, int]

Default: 25.

25
after Union[Unset, str]
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[IncidentUpdatesV2ListResponseBody]

Response[IncidentUpdatesV2ListResponseBody]

Source code in incident_io_client/api/incident_updates_v2/incident_updates_v2_list.py
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Response[IncidentUpdatesV2ListResponseBody]:
    """List Incident Updates V2

     List all incident updates for an organisation, or for a specific incident.

    Args:
        incident_id (Union[Unset, str]):
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):

    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[IncidentUpdatesV2ListResponseBody]
    """

    kwargs = _get_kwargs(
        incident_id=incident_id,
        page_size=page_size,
        after=after,
    )

    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,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET
) -> Optional[IncidentUpdatesV2ListResponseBody]

List Incident Updates V2

List all incident updates for an organisation, or for a specific incident.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
page_size Union[Unset, int]

Default: 25.

25
after Union[Unset, str]
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[IncidentUpdatesV2ListResponseBody]

IncidentUpdatesV2ListResponseBody

Source code in incident_io_client/api/incident_updates_v2/incident_updates_v2_list.py
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Optional[IncidentUpdatesV2ListResponseBody]:
    """List Incident Updates V2

     List all incident updates for an organisation, or for a specific incident.

    Args:
        incident_id (Union[Unset, str]):
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):

    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:
        IncidentUpdatesV2ListResponseBody
    """

    return sync_detailed(
        client=client,
        incident_id=incident_id,
        page_size=page_size,
        after=after,
    ).parsed

sync_detailed

sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET
) -> Response[IncidentUpdatesV2ListResponseBody]

List Incident Updates V2

List all incident updates for an organisation, or for a specific incident.

Parameters:

Name Type Description Default
incident_id Union[Unset, str]
UNSET
page_size Union[Unset, int]

Default: 25.

25
after Union[Unset, str]
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[IncidentUpdatesV2ListResponseBody]

Response[IncidentUpdatesV2ListResponseBody]

Source code in incident_io_client/api/incident_updates_v2/incident_updates_v2_list.py
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    incident_id: Union[Unset, str] = UNSET,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Response[IncidentUpdatesV2ListResponseBody]:
    """List Incident Updates V2

     List all incident updates for an organisation, or for a specific incident.

    Args:
        incident_id (Union[Unset, str]):
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):

    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[IncidentUpdatesV2ListResponseBody]
    """

    kwargs = _get_kwargs(
        incident_id=incident_id,
        page_size=page_size,
        after=after,
    )

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

    return _build_response(client=client, response=response)