async def iter_list_file_shares(
self,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
gateway_arn: Optional[
"capo_storage_gateway.types.gateway_arn.GatewayARN"
] = None,
limit: Optional[
"capo_storage_gateway.types.positive_int_object.PositiveIntObject"
] = None,
marker: Optional["capo_storage_gateway.types.marker.Marker"] = None,
) -> "AsyncIterator[capo_storage_gateway.types.file_share_info.FileShareInfo]":
_token = marker
while True:
_response = await self.list_file_shares(
config_overrides=config_overrides,
gateway_arn=gateway_arn,
limit=limit,
marker=_token,
)
_page = _resolve_path(_response, ("file_share_info_list",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_marker",))
if not _token:
break