ItemContent

class pydelfini.delfini_core.models.item_content.ItemContent(data, checksum=Unset, is_base_64_encoded=False)[source]

Bases: object

If uploading a small file, the contents can be provided.

Parameters:
data

File content, either plain text or base-64 encoded.

Type:

str

checksum
Type:

Union[Unset, ItemContentChecksum]

is_base_64_encoded

True if the data has been base-64 encoded. Default: False.

Type:

Union[Unset, bool]

Attributes

data

checksum

is_base_64_encoded

classmethod from_dict(src_dict)[source]

Create an instance of ItemContent from a dict

Parameters:

src_dict (Dict[str, Any])

Return type:

T

to_dict()[source]

Convert to a dict

Return type:

Dict[str, Any]