viktor.external.autodesk
AutodeskFile
- class viktor.external.autodesk.AutodeskFile(url)
- New in v14.25.0
Represents a file stored on Autodesk cloud storage (https://aps.autodesk.com/data-management-api)
- get_latest_version(access_token)
Get the latest version of the file on Autodesk cloud storage.
- Parameters:
access_token (
str
) – Autodesk cloud storage token to access the file.- Return type:
- property url: str
URL of the file on Autodesk cloud storage.
AutodeskFileVersion
- class viktor.external.autodesk.AutodeskFileVersion(_access_token, _data)
- New in v14.25.0
Warning
Do not instantiate this class directly, it is created from
AutodeskFile
.- property attributes: dict
Get the attributes of the latest version of the file on Autodesk cloud storage.
- get_file()
Download the content of the latest version of the file from Autodesk cloud storage.
- Return type:
- property urn: str
Get the unique resource name (also called “id”) of this version of the file on Autodesk cloud storage.