Skip to content

incident_io_client.api.custom_field_options_v1.custom_field_options_v1_list

asyncio async

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

List Custom Field Options V1

Show custom field options for a custom field

Parameters:

Name Type Description Default
page_size Union[Unset, int]

Default: 25.

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

CustomFieldOptionsV1ListResponseBody

Source code in incident_io_client/api/custom_field_options_v1/custom_field_options_v1_list.py
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
    custom_field_id: str,
) -> Optional[CustomFieldOptionsV1ListResponseBody]:
    """List Custom Field Options V1

     Show custom field options for a custom field

    Args:
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):
        custom_field_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:
        CustomFieldOptionsV1ListResponseBody
    """

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

asyncio_detailed async

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

List Custom Field Options V1

Show custom field options for a custom field

Parameters:

Name Type Description Default
page_size Union[Unset, int]

Default: 25.

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

Response[CustomFieldOptionsV1ListResponseBody]

Source code in incident_io_client/api/custom_field_options_v1/custom_field_options_v1_list.py
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
    custom_field_id: str,
) -> Response[CustomFieldOptionsV1ListResponseBody]:
    """List Custom Field Options V1

     Show custom field options for a custom field

    Args:
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):
        custom_field_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[CustomFieldOptionsV1ListResponseBody]
    """

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

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

    return _build_response(client=client, response=response)

sync

sync(
    *,
    client: Union[AuthenticatedClient, Client],
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
    custom_field_id: str
) -> Optional[CustomFieldOptionsV1ListResponseBody]

List Custom Field Options V1

Show custom field options for a custom field

Parameters:

Name Type Description Default
page_size Union[Unset, int]

Default: 25.

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

CustomFieldOptionsV1ListResponseBody

Source code in incident_io_client/api/custom_field_options_v1/custom_field_options_v1_list.py
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
    custom_field_id: str,
) -> Optional[CustomFieldOptionsV1ListResponseBody]:
    """List Custom Field Options V1

     Show custom field options for a custom field

    Args:
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):
        custom_field_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:
        CustomFieldOptionsV1ListResponseBody
    """

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

sync_detailed

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

List Custom Field Options V1

Show custom field options for a custom field

Parameters:

Name Type Description Default
page_size Union[Unset, int]

Default: 25.

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

Response[CustomFieldOptionsV1ListResponseBody]

Source code in incident_io_client/api/custom_field_options_v1/custom_field_options_v1_list.py
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    page_size: Union[Unset, int] = 25,
    after: Union[Unset, str] = UNSET,
    custom_field_id: str,
) -> Response[CustomFieldOptionsV1ListResponseBody]:
    """List Custom Field Options V1

     Show custom field options for a custom field

    Args:
        page_size (Union[Unset, int]):  Default: 25.
        after (Union[Unset, str]):
        custom_field_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[CustomFieldOptionsV1ListResponseBody]
    """

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

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

    return _build_response(client=client, response=response)