scitacean.model.Attachment#
- class scitacean.model.Attachment(*, caption, owner_group, relationships=None, access_groups=None, aid=None, instrument_group=None, is_published=False, thumbnail=None, _created_at=None, _created_by=None, _updated_at=None, _updated_by=None)[source]#
Constructors
__init__(*, caption, owner_group[, ...])Methods
Return the download model type for this user model.
from_download_model(download_model)Construct an instance from an associated SciCat download model.
make_upload_model()make_upload_model_with_target(*, target_id, ...)Construct a SciCat upload model from self.
Return the upload model type for this user model.
Attributes
captionowner_grouprelationshipsaccess_groupsaidinstrument_groupis_publishedthumbnailcreated_atcreated_byupdated_atupdated_by- __init__(*, caption, owner_group, relationships=None, access_groups=None, aid=None, instrument_group=None, is_published=False, thumbnail=None, _created_at=None, _created_by=None, _updated_at=None, _updated_by=None)#
- classmethod download_model_type()[source]#
Return the download model type for this user model.
- Return type:
- classmethod from_download_model(download_model)[source]#
Construct an instance from an associated SciCat download model.
- Return type:
- make_upload_model_with_target(*, target_id, target_type)[source]#
Construct a SciCat upload model from self.
- Return type: