Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.81 KB

FileLinkDto.md

File metadata and controls

31 lines (23 loc) · 1.81 KB

FileLinkDto

The address the content of a file is fetched from, together with the signature that authorises the fetch, as the document service is handed it.

Properties

Name Type Description Notes
filetype str The format the stored content is in, lower-cased and with the leading dot, which is how the document service learns how to read the bytes behind the address. It stays empty when the file title carries no extension at all.
token str Signs the address and the format above so that the document service can trust them. It stays empty on a portal that has no signature secret configured for the document service, and the address is then meant to be fetched unsigned. [optional]
url str Where the content is fetched from: the portal download handler, pinned to the revision the file was at when the address was issued and carrying an authorisation key of limited validity. It is addressed to the host the document service can reach, which on a deployment with a private editor network is not the address a browser should follow.

Example

from docspace_api_sdk.models.file_link_dto import FileLinkDto

# TODO update the JSON string below
json = "{}"
# create an instance of FileLinkDto from a JSON string
file_link_dto_instance = FileLinkDto.from_json(json)
# print the JSON string representation of the object
print(FileLinkDto.to_json())

# convert the object into a dict
file_link_dto_dict = file_link_dto_instance.to_dict()
# create an instance of FileLinkDto from a dict
file_link_dto_from_dict = FileLinkDto.from_dict(file_link_dto_dict)

[Back to Model list] [Back to API list] [Back to README]