async def iter_list_ground_station_reservations(
self,
ground_station_id: "capo_groundstation.types.ground_station_name.GroundStationName",
start_time: datetime.datetime,
end_time: datetime.datetime,
*,
config_overrides: Optional[AsyncGroundStationClientConfig] = None,
reservation_types: Optional[
"capo_groundstation.types.reservation_type_filter_list.ReservationTypeFilterList"
] = None,
max_results: Optional[
"capo_groundstation.types.pagination_max_results.PaginationMaxResults"
] = None,
next_token: Optional[
"capo_groundstation.types.pagination_token.PaginationToken"
] = None,
) -> "AsyncIterator[capo_groundstation.types.ground_station_reservation_list_item.GroundStationReservationListItem]":
_token = next_token
while True:
_response = await self.list_ground_station_reservations(
ground_station_id,
start_time,
end_time,
config_overrides=config_overrides,
reservation_types=reservation_types,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("reservation_list",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break