def iter_list_farms(
self,
*,
config_overrides: Optional[deadlineClientConfig] = None,
next_token: Optional["capo_deadline.types.next_token.NextToken"] = None,
max_results: Optional["capo_deadline.types.max_results.MaxResults"] = None,
principal_id: Optional[
"capo_deadline.types.identity_center_principal_id.IdentityCenterPrincipalId"
] = None,
) -> "Iterator[capo_deadline.types.farm_summary.FarmSummary]":
_token = next_token
while True:
_response = self.list_farms(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
principal_id=principal_id,
)
_page = _resolve_path(_response, ("farms",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break