Skip to content

incident_io_client.api.webhooks.webhooks_all

asyncio async

asyncio(
    *, client: Union[AuthenticatedClient, Client]
) -> Optional[WebhooksAllResponseBody]

All Webhooks

Enables us to generate a type for all webhook types, so we can use a single serializer.

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

WebhooksAllResponseBody

Source code in incident_io_client/api/webhooks/webhooks_all.py
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[WebhooksAllResponseBody]:
    """All Webhooks

     Enables us to generate a type for all webhook types, so we can use a single serializer.

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

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

asyncio_detailed async

asyncio_detailed(
    *, client: Union[AuthenticatedClient, Client]
) -> Response[WebhooksAllResponseBody]

All Webhooks

Enables us to generate a type for all webhook types, so we can use a single serializer.

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

Response[WebhooksAllResponseBody]

Source code in incident_io_client/api/webhooks/webhooks_all.py
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[WebhooksAllResponseBody]:
    """All Webhooks

     Enables us to generate a type for all webhook types, so we can use a single serializer.

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

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)

sync

sync(
    *, client: Union[AuthenticatedClient, Client]
) -> Optional[WebhooksAllResponseBody]

All Webhooks

Enables us to generate a type for all webhook types, so we can use a single serializer.

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

WebhooksAllResponseBody

Source code in incident_io_client/api/webhooks/webhooks_all.py
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[WebhooksAllResponseBody]:
    """All Webhooks

     Enables us to generate a type for all webhook types, so we can use a single serializer.

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

    return sync_detailed(
        client=client,
    ).parsed

sync_detailed

sync_detailed(
    *, client: Union[AuthenticatedClient, Client]
) -> Response[WebhooksAllResponseBody]

All Webhooks

Enables us to generate a type for all webhook types, so we can use a single serializer.

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

Response[WebhooksAllResponseBody]

Source code in incident_io_client/api/webhooks/webhooks_all.py
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[WebhooksAllResponseBody]:
    """All Webhooks

     Enables us to generate a type for all webhook types, so we can use a single serializer.

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

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)