benchling_api_client.models.entry_external_file module

class EntryExternalFile

Bases: object

The ExternalFile resource stores metadata about the file. The actual original file can be downloaded by using the ‘downloadURL’ property.

__init__(download_url: Union[benchling_api_client.types.Unset, str] = attr_dict['_download_url'].default, expires_at: Union[benchling_api_client.types.Unset, int] = attr_dict['_expires_at'].default, id: Union[benchling_api_client.types.Unset, str] = attr_dict['_id'].default, size: Union[benchling_api_client.types.Unset, int] = attr_dict['_size'].default) None

Method generated by attrs for class EntryExternalFile.

property additional_keys: List[str]
additional_properties: Dict[str, Any]
property download_url: str

A short-lived URL that can be used to download the original file.

property expires_at: int

UNIX timestamp when downloadURL expires.

classmethod from_dict(src_dict: Dict[str, Any]) benchling_api_client.models.entry_external_file.T
get(key, default=None) Optional[Any]
property id: str

ID of the external file

property size: int

Size, in bytes, of the external file

to_dict() Dict[str, Any]