roboto.domain.collections.collection#

Module Contents#

class roboto.domain.collections.collection.Collection(record, roboto_client=None)#

A higher-level container for grouping datasets together. Collections can also be used to group files from several distinct datasets together.

Parameters:
add_dataset(dataset_id)#
Parameters:

dataset_id (str)

Return type:

Collection

add_file(file_id)#
Parameters:

file_id (str)

Return type:

Collection

changes(from_version=None, to_version=None)#
Parameters:
  • from_version (Optional[int])

  • to_version (Optional[int])

Return type:

collections.abc.Generator[roboto.domain.collections.record.CollectionChangeRecord, None, None]

property collection_id: str#
Return type:

str

classmethod create(description=None, name=None, resources=None, dataset_ids=None, file_ids=None, tags=None, roboto_client=None, caller_org_id=None)#
Parameters:
Return type:

Collection

property created: datetime.datetime#
Return type:

datetime.datetime

property created_by: str#
Return type:

str

property datasets: list[str]#
Return type:

list[str]

delete()#
edit_access(edit)#
Parameters:

edit (roboto.auth.EditAccessRequest)

Return type:

roboto.auth.GetAccessResponse

property files: list[str]#
Return type:

list[str]

classmethod from_id(collection_id, version=None, content_mode=CollectionContentMode.Full, roboto_client=None)#
Parameters:
Return type:

Collection

get_access()#
Return type:

roboto.auth.GetAccessResponse

classmethod list_all(roboto_client=None, owner_org_id=None, content_mode=CollectionContentMode.SummaryOnly)#
Parameters:
Return type:

collections.abc.Generator[Collection, None, None]

property record: roboto.domain.collections.record.CollectionRecord#
Return type:

roboto.domain.collections.record.CollectionRecord

remove_dataset(dataset_id)#
Parameters:

dataset_id (str)

Return type:

Collection

remove_file(file_id)#
Parameters:

file_id (str)

Return type:

Collection

update(add_resources=NotSet, add_tags=NotSet, description=NotSet, name=NotSet, remove_resources=NotSet, remove_tags=NotSet)#
Parameters:
Return type:

Collection

property updated: datetime.datetime#
Return type:

datetime.datetime

property updated_by: str#
Return type:

str