roboto.domain.collections.collection
Module Contents
Collection
A higher-level container for grouping datasets together. Collections can also be used to group files from several distinct datasets together.
Parameters
roboto_client Optional[roboto.Collection.add_dataset()
Parameters
dataset_id strReturn type
Collection.add_event()
Parameters
event_id strReturn type
Collection.add_file()
Parameters
file_id strReturn type
Collection.add_session()
Parameters
session_id strReturn type
Collection.changes()
Yield this collection’s revision history, oldest change first.
Version 0 is a real collection version, so 0 is a bound like any other: from_version=0 starts at the beginning, and to_version=0 selects the empty range. Omit a bound to leave that end open.
Parameters
from_version Optional[int]to_version Optional[int]Return type
Collection.clear_custom_field()
Clear a single custom-field value on this collection to None.
Parameters
name strReturn type
Collection.clear_custom_fields()
Clear multiple custom-field values on this collection to None.
Parameters
names collections.Return type
Properties
Collection.create()
Parameters
description Optional[str]name Optional[str]resource_type roboto.resources Optional[list[roboto.dataset_ids Optional[collections.event_ids Optional[collections.file_ids Optional[collections.session_ids Optional[collections.tags Optional[list[str]]custom_fields Optional[dict[str, Any]]roboto_client Optional[roboto.caller_org_id Optional[str]Return type
Properties
Collection.custom_fields
Custom-field values defined on Collections in this org.
Every Ready CustomField defined for (org_id, Collection) appears as a key. Values that have not been set on this collection surface as None rather than being absent. Empty when no custom fields are defined for the org.
A Timestamp value is returned as an ISO 8601 string.
Collection.delete()
Properties
Collection.edit_access()
Parameters
Return type
Collection.from_id()
Parameters
Return type
Collection.get_access()
Return type
Collection.list_all()
Parameters
roboto_client Optional[roboto.owner_org_id Optional[str]sort_by Optional[str]sort_direction Optional[roboto.Return type
Properties
Collection.record
Collection.remove_dataset()
Parameters
dataset_id strReturn type
Collection.remove_event()
Parameters
event_id strReturn type
Collection.remove_file()
Parameters
file_id strReturn type
Collection.remove_session()
Parameters
session_id strReturn type
Properties
Collection.resource_count
Number of resources this collection holds.
Read from the collection record rather than from resources, so it is available in every content mode, including summary-only loads where the member list is empty. Counts every membership reference, including references to resources that have since been deleted.
Collection.set_custom_field()
Set a single custom-field value on this collection.
name must be the name of a Ready custom field for this collection’s org and the Collection entity type; value must satisfy the field’s declared type.
Parameters
name strvalue AnyReturn type
Collection.set_custom_fields()
Set or overwrite multiple custom-field values on this collection.
Each key must name a Ready custom field for this collection’s org and the Collection entity type; each value must satisfy the field’s declared type.
Parameters
fields dict[str, Any]Return type
Collection.update()
Parameters
add_resources Union[list[roboto.add_tags Union[list[str], roboto.description Optional[Union[roboto.name Optional[Union[roboto.remove_resources Union[list[roboto.remove_tags Union[list[str], roboto.custom_fields_changeset Optional[roboto.Return type