incident_io_client.api.schedules_v2.schedules_v2_list_schedule_entries
asyncio
async
asyncio(
*,
client: Union[AuthenticatedClient, Client],
schedule_id: str,
entry_window_start: Union[
Unset, datetime.datetime
] = UNSET,
entry_window_end: Union[
Unset, datetime.datetime
] = UNSET
) -> Optional[SchedulesV2ListScheduleEntriesResponseBody]
ListScheduleEntries Schedules V2
Get a list of schedule entries. The endpoint will return all entries that overlap with the given window, if one is provided.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schedule_id |
str
|
|
required |
entry_window_start |
Union[Unset, datetime]
|
|
UNSET
|
entry_window_end |
Union[Unset, datetime]
|
|
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[SchedulesV2ListScheduleEntriesResponseBody]
|
SchedulesV2ListScheduleEntriesResponseBody |
Source code in incident_io_client/api/schedules_v2/schedules_v2_list_schedule_entries.py
asyncio_detailed
async
asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
schedule_id: str,
entry_window_start: Union[
Unset, datetime.datetime
] = UNSET,
entry_window_end: Union[
Unset, datetime.datetime
] = UNSET
) -> Response[SchedulesV2ListScheduleEntriesResponseBody]
ListScheduleEntries Schedules V2
Get a list of schedule entries. The endpoint will return all entries that overlap with the given window, if one is provided.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schedule_id |
str
|
|
required |
entry_window_start |
Union[Unset, datetime]
|
|
UNSET
|
entry_window_end |
Union[Unset, datetime]
|
|
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[SchedulesV2ListScheduleEntriesResponseBody]
|
Response[SchedulesV2ListScheduleEntriesResponseBody] |
Source code in incident_io_client/api/schedules_v2/schedules_v2_list_schedule_entries.py
sync
sync(
*,
client: Union[AuthenticatedClient, Client],
schedule_id: str,
entry_window_start: Union[
Unset, datetime.datetime
] = UNSET,
entry_window_end: Union[
Unset, datetime.datetime
] = UNSET
) -> Optional[SchedulesV2ListScheduleEntriesResponseBody]
ListScheduleEntries Schedules V2
Get a list of schedule entries. The endpoint will return all entries that overlap with the given window, if one is provided.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schedule_id |
str
|
|
required |
entry_window_start |
Union[Unset, datetime]
|
|
UNSET
|
entry_window_end |
Union[Unset, datetime]
|
|
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[SchedulesV2ListScheduleEntriesResponseBody]
|
SchedulesV2ListScheduleEntriesResponseBody |
Source code in incident_io_client/api/schedules_v2/schedules_v2_list_schedule_entries.py
sync_detailed
sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
schedule_id: str,
entry_window_start: Union[
Unset, datetime.datetime
] = UNSET,
entry_window_end: Union[
Unset, datetime.datetime
] = UNSET
) -> Response[SchedulesV2ListScheduleEntriesResponseBody]
ListScheduleEntries Schedules V2
Get a list of schedule entries. The endpoint will return all entries that overlap with the given window, if one is provided.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schedule_id |
str
|
|
required |
entry_window_start |
Union[Unset, datetime]
|
|
UNSET
|
entry_window_end |
Union[Unset, datetime]
|
|
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[SchedulesV2ListScheduleEntriesResponseBody]
|
Response[SchedulesV2ListScheduleEntriesResponseBody] |