Skip to content

incident_io_client.api.follow_ups_v2.follow_ups_v2_show

asyncio async

asyncio(
    id: str, *, client: Union[AuthenticatedClient, Client]
) -> Optional[FollowUpsV2ShowResponseBody]

Show Follow-ups V2

Get a single incident follow-up.

Parameters:

Name Type Description Default
id str
required

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[FollowUpsV2ShowResponseBody]

FollowUpsV2ShowResponseBody

Source code in incident_io_client/api/follow_ups_v2/follow_ups_v2_show.py
async def asyncio(
    id: str,
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[FollowUpsV2ShowResponseBody]:
    """Show Follow-ups V2

     Get a single incident follow-up.

    Args:
        id (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:
        FollowUpsV2ShowResponseBody
    """

    return (
        await asyncio_detailed(
            id=id,
            client=client,
        )
    ).parsed

asyncio_detailed async

asyncio_detailed(
    id: str, *, client: Union[AuthenticatedClient, Client]
) -> Response[FollowUpsV2ShowResponseBody]

Show Follow-ups V2

Get a single incident follow-up.

Parameters:

Name Type Description Default
id str
required

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[FollowUpsV2ShowResponseBody]

Response[FollowUpsV2ShowResponseBody]

Source code in incident_io_client/api/follow_ups_v2/follow_ups_v2_show.py
async def asyncio_detailed(
    id: str,
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[FollowUpsV2ShowResponseBody]:
    """Show Follow-ups V2

     Get a single incident follow-up.

    Args:
        id (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[FollowUpsV2ShowResponseBody]
    """

    kwargs = _get_kwargs(
        id=id,
    )

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

    return _build_response(client=client, response=response)

sync

sync(
    id: str, *, client: Union[AuthenticatedClient, Client]
) -> Optional[FollowUpsV2ShowResponseBody]

Show Follow-ups V2

Get a single incident follow-up.

Parameters:

Name Type Description Default
id str
required

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[FollowUpsV2ShowResponseBody]

FollowUpsV2ShowResponseBody

Source code in incident_io_client/api/follow_ups_v2/follow_ups_v2_show.py
def sync(
    id: str,
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[FollowUpsV2ShowResponseBody]:
    """Show Follow-ups V2

     Get a single incident follow-up.

    Args:
        id (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:
        FollowUpsV2ShowResponseBody
    """

    return sync_detailed(
        id=id,
        client=client,
    ).parsed

sync_detailed

sync_detailed(
    id: str, *, client: Union[AuthenticatedClient, Client]
) -> Response[FollowUpsV2ShowResponseBody]

Show Follow-ups V2

Get a single incident follow-up.

Parameters:

Name Type Description Default
id str
required

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[FollowUpsV2ShowResponseBody]

Response[FollowUpsV2ShowResponseBody]

Source code in incident_io_client/api/follow_ups_v2/follow_ups_v2_show.py
def sync_detailed(
    id: str,
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[FollowUpsV2ShowResponseBody]:
    """Show Follow-ups V2

     Get a single incident follow-up.

    Args:
        id (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[FollowUpsV2ShowResponseBody]
    """

    kwargs = _get_kwargs(
        id=id,
    )

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

    return _build_response(client=client, response=response)