from typing import (
Any,
Callable,
+ Container,
Dict,
Iterator,
Mapping,
Optional,
- Sequence,
TypeVar,
Union,
)
order_key: str="created_at",
num_retries: int=0,
ascending: bool=True,
- key_fields: Sequence[str]=('uuid',),
+ key_fields: Container[str]=('uuid',),
**kwargs: Any,
) -> Iterator[Dict[str, Any]]:
"""Iterate all Arvados resources from an API list call
all fields will be sorted in `'asc'` (ascending) order. Otherwise, all
fields will be sorted in `'desc'` (descending) order.
- * key_fields: Sequence[str] --- One or two fields that constitute a
- unique key for returned items. Normally this should be the
+ * key_fields: Container[str] --- One or two fields that constitute
+ a unique key for returned items. Normally this should be the
default value `('uuid',)`, unless `fn` returns
computed_permissions records, in which case it should be
`('user_uuid', 'target_uuid')`. If two fields are given, one of
order_key: str='user_uuid',
num_retries: int=0,
ascending: bool=True,
- key_fields: Sequence[str]=('user_uuid', 'target_uuid'),
+ key_fields: Container[str]=('user_uuid', 'target_uuid'),
**kwargs: Any,
) -> Iterator[Dict[str, Any]]:
"""Iterate all `computed_permission` resources
* ascending: bool --- see `keyset_list_all`.
- * key_fields: Sequence[str] --- see `keyset_list_all`. Default
+ * key_fields: Container[str] --- see `keyset_list_all`. Default
`('user_uuid', 'target_uuid')`.
"""