Collection

class pydelfini.delfini_core.models.collection.Collection(access_level, account_id, created_on, description, id, name, version_id, default_datastore=Unset, metadata=Unset, project_id=Unset)[source]

Bases: object

Core collection properties, with IDs

Parameters:
access_level
Type:

CollectionAccessLevel

account_id

The account containing this collection

Type:

str

created_on
Type:

datetime.datetime

description

The collection’s full description

Type:

str

id
Type:

str

name

The collection’s short human-readable name

Type:

str

version_id

The collection’s version, or LIVE if it is editable

Type:

str

default_datastore
Type:

Union[Unset, str]

metadata

Arbitrary user-defined metadata, key-value pairs

Type:

Union[Unset, CollectionMetadata]

project_id

The project containing this collection, if set

Type:

Union[Unset, str]

Attributes

access_level

account_id

created_on

description

id

name

version_id

default_datastore

metadata

project_id

classmethod from_dict(src_dict)[source]

Create an instance of Collection from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]