Skip to content

Models and Enums

Álvaro Puente edited this page Oct 23, 2025 · 4 revisions

Enums

ExecReturnCode

Offloaded function execution return code.

Value Description
0 SUCCESS
-1 ERROR

FunctionLanguage

Programming language of the offloaded function.

Value Description
PY Python
C C

ExecutionMode

Execution mode of the offloaded function.

Value Description
sync Synchronous execution
async Asynchronous execution

Models

Geolocation

Represents geographic coordinates.

Field Type Description
latitude float Latitude coordinate
longitude float Longitude coordinate

Scheduling

Application runtime requirements.

Field Type Description
FLAVOUR str String describing the flavour of the Runtime. One identifier per DaaS/FaaS.
MAX_LATENCY int Maximum latency in milliseconds. Optional.
MAX_FUNCTION_EXECUTION_TIME float Maximum execution time allowed for the function. Optional.
MIN_ENERGY_RENEWABLE_USAGE int Minimum renewable energy percentage. Optional.
GEOLOCATION Geolocation Geolocation info (latitude and longitude).
ID str Unique identifier for the device.
PROVIDERS List[str] List of provider identifiers used to restrict cluster selection. Optional
IS_CONFIDENTIAL bool If confidential computing needs to be required. Optional

UploadFunctionDaaS

Represents a function to upload to the DaaS gateway.

Field Type Description
LANG FunctionLanguage Programming language of the function.
FC str Function bytes serialized and encoded in base64.
FC_HASH str SHA-256 hash of the function code, acts as function ID.

Call

Represents a function offloading request.

Field Type Description
function Callable The function to be offloaded.
fc_lang FunctionLanguage Language of the offloaded function. 'PY' or 'C'.
callback Callable or None Optional callback to execute after function finishes.
mode ExecutionMode Mode of execution: SYNC or ASYNC.
params List[Any] List of function parameters (base64 encoded).
timeout int or None Timeout in seconds. Optional.

ExecResponse

Represents the result of a function execution.

Field Type Description
ret_code ExecReturnCode Execution result: SUCCESS or ERROR.
res str or None Result of the offloaded function. Optional.
err str or None Error description if execution failed. Optional.

EdgeClusterFrontendResponse

Represents metadata of an Edge Cluster Frontend.

Field Type Description
ID int Cluster ID in the Cloud Edge Manager pool.
NAME str Cluster name.
HOSTS list[int] Hypervisor node IDs belonging to the cluster.
DATASTORES list[int] Datastore IDs belonging to the cluster.
VNETS list[int] Virtual Network IDs belonging to the cluster.
TEMPLATE dict Additional miscellaneous information of the cluster.

Clone this wiki locally