scitacean.model.Attachment#
- class scitacean.model.Attachment(*, caption, owner_group, access_groups=None, dataset_id=None, id=None, instrument_group=None, proposal_id=None, sample_id=None, thumbnail=None, _created_at=None, _created_by=None, _is_published=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.
Construct a SciCat upload model from self.
Return the upload model type for this user model.
Attributes
captionowner_groupaccess_groupsdataset_ididinstrument_groupproposal_idsample_idthumbnailcreated_atcreated_byis_publishedupdated_atupdated_by- __init__(*, caption, owner_group, access_groups=None, dataset_id=None, id=None, instrument_group=None, proposal_id=None, sample_id=None, thumbnail=None, _created_at=None, _created_by=None, _is_published=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: