Skip to content

incident_io_client.api.catalog_v2.catalog_v2_list_resources

asyncio async

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

ListResources Catalog V2

List available engine resources for the catalog.

A resource represents a type of data that can be held within the catalog, so this endpoint can be used to see what attribute types can be used when updating the schema of a catalog type.

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

CatalogV2ListResourcesResponseBody

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_resources.py
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[CatalogV2ListResourcesResponseBody]:
    """ListResources Catalog V2

     List available engine resources for the catalog.

    A resource represents a type of data that can be held within the catalog, so this
    endpoint can be used to see what attribute types can be used when updating the
    schema of a catalog type.

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

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

asyncio_detailed async

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

ListResources Catalog V2

List available engine resources for the catalog.

A resource represents a type of data that can be held within the catalog, so this endpoint can be used to see what attribute types can be used when updating the schema of a catalog type.

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

Response[CatalogV2ListResourcesResponseBody]

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_resources.py
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[CatalogV2ListResourcesResponseBody]:
    """ListResources Catalog V2

     List available engine resources for the catalog.

    A resource represents a type of data that can be held within the catalog, so this
    endpoint can be used to see what attribute types can be used when updating the
    schema of a catalog type.

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

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

ListResources Catalog V2

List available engine resources for the catalog.

A resource represents a type of data that can be held within the catalog, so this endpoint can be used to see what attribute types can be used when updating the schema of a catalog type.

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

CatalogV2ListResourcesResponseBody

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_resources.py
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[CatalogV2ListResourcesResponseBody]:
    """ListResources Catalog V2

     List available engine resources for the catalog.

    A resource represents a type of data that can be held within the catalog, so this
    endpoint can be used to see what attribute types can be used when updating the
    schema of a catalog type.

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

    return sync_detailed(
        client=client,
    ).parsed

sync_detailed

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

ListResources Catalog V2

List available engine resources for the catalog.

A resource represents a type of data that can be held within the catalog, so this endpoint can be used to see what attribute types can be used when updating the schema of a catalog type.

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

Response[CatalogV2ListResourcesResponseBody]

Source code in incident_io_client/api/catalog_v2/catalog_v2_list_resources.py
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[CatalogV2ListResourcesResponseBody]:
    """ListResources Catalog V2

     List available engine resources for the catalog.

    A resource represents a type of data that can be held within the catalog, so this
    endpoint can be used to see what attribute types can be used when updating the
    schema of a catalog type.

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

    kwargs = _get_kwargs()

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

    return _build_response(client=client, response=response)