Skip to content

incident_io_client.api.catalog_v2.catalog_v2_list_entries

asyncio async

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

ListEntries Catalog V2

List entries for a catalog type.

Parameters:

Name Type Description Default
catalog_type_id str
required
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[CatalogV2ListEntriesResponseBody]

CatalogV2ListEntriesResponseBody

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_entries.py
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    catalog_type_id: str,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Optional[CatalogV2ListEntriesResponseBody]:
    """ListEntries Catalog V2

     List entries for a catalog type.

    Args:
        catalog_type_id (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:
        CatalogV2ListEntriesResponseBody
    """

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

asyncio_detailed async

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

ListEntries Catalog V2

List entries for a catalog type.

Parameters:

Name Type Description Default
catalog_type_id str
required
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[CatalogV2ListEntriesResponseBody]

Response[CatalogV2ListEntriesResponseBody]

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_entries.py
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    catalog_type_id: str,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Response[CatalogV2ListEntriesResponseBody]:
    """ListEntries Catalog V2

     List entries for a catalog type.

    Args:
        catalog_type_id (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[CatalogV2ListEntriesResponseBody]
    """

    kwargs = _get_kwargs(
        catalog_type_id=catalog_type_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],
    catalog_type_id: str,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET
) -> Optional[CatalogV2ListEntriesResponseBody]

ListEntries Catalog V2

List entries for a catalog type.

Parameters:

Name Type Description Default
catalog_type_id str
required
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[CatalogV2ListEntriesResponseBody]

CatalogV2ListEntriesResponseBody

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_entries.py
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
    catalog_type_id: str,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Optional[CatalogV2ListEntriesResponseBody]:
    """ListEntries Catalog V2

     List entries for a catalog type.

    Args:
        catalog_type_id (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:
        CatalogV2ListEntriesResponseBody
    """

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

sync_detailed

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

ListEntries Catalog V2

List entries for a catalog type.

Parameters:

Name Type Description Default
catalog_type_id str
required
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[CatalogV2ListEntriesResponseBody]

Response[CatalogV2ListEntriesResponseBody]

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_entries.py
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    catalog_type_id: str,
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
) -> Response[CatalogV2ListEntriesResponseBody]:
    """ListEntries Catalog V2

     List entries for a catalog type.

    Args:
        catalog_type_id (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[CatalogV2ListEntriesResponseBody]
    """

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

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

    return _build_response(client=client, response=response)