Skip to content

Module invenio_rest_api_client.models.file_transfer_item

Variables

T
TYPE_CHECKING

Classes

FileTransferItem

class FileTransferItem(
    key: str,
    size: invenio_rest_api_client.types.Unset | int = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    checksum: invenio_rest_api_client.types.Unset | str = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>,
    transfer: invenio_rest_api_client.types.Unset | ForwardRef('FileTransfer') = <invenio_rest_api_client.types.Unset object at 0x7f5f74d96cf0>
)

A file object.

Attributes

Name Type Description Default
key str Key (filename) of the file None
size Union[Unset, int] Size of the file in bytes. None
checksum Union[Unset, str] Checksum of the file. None
transfer Union[Unset, FileTransfer] None

Static methods

from_dict

def from_dict(
    src_dict: collections.abc.Mapping[str, typing.Any]
) -> ~T

Instance variables

additional_keys
additional_properties
checksum
key
size
transfer

Methods

to_dict

def to_dict(
    self
) -> dict[str, typing.Any]