air_sdk.types
air_sdk.types
Attributes
Classes
Functions
Module Contents
Bases: str, enum.Enum
Simulation state constants.
Use these instead of raw strings for type safety and IDE autocomplete.
Example:
Bases: typing.TypedDict
Docker tmpfs mount configuration.
Bases: typing.TypedDict
Docker run parameters for simulator containers.
Bases: typing.TypedDict
Resource overhead for a simulator/platform.
Bases: typing.TypedDict
Emulated platform configuration.
Bases: typing.TypedDict
Emulation parameters for a simulator/platform.
Bases: typing.TypedDict
v2 bulk assignment payload format.
Bases: typing.TypedDict
v3 bulk assignment payload format.
Bases: typing.TypedDict
Payload for resetting a node.
Bases: typing.TypedDict
Payload for rebuilding a node.
Bases: typing.TypedDict
Per-interface management address info returned by the Node API.
ip may be None when the interface opts out of OOB-managed DHCP
while remaining wired to the leaf switch.
Bases: typing.TypedDict
Current resource usage within an organization’s budget.
Number of CPU cores currently in use
Memory currently in use, in MiB
Disk storage currently in use, in GB
Image storage currently in use, in GB
User configs content currently in use, in bytes
Bases: typing.TypedDict
Per-model platform information and OS template pins.
Bases: typing.TypedDict
OS image capability flags; key presence means supported.
Bases: typing.TypedDict
Required fields for OSImageManifestSpec.
Bases: air_sdk.types._OSImageManifestSpecRequired
OS image manifest payload for api.images.upload() (no image).
Bases: typing.TypedDict
A single history entry from a resource’s nested history endpoint.
Read-only and immutable - returned by list_history() on simulations,
images, and marketplace demos. This is distinct from the legacy History
model returned by the deprecated flat histories endpoint.
ID of the entity this entry is about (e.g. a simulation ID)
Type of entity being tracked (e.g. ‘simulation’)
When the entry was recorded
Email or identifier of the user who performed the action
Human-readable description of what happened
Event severity. Values: ‘INFO’, ‘ERROR’
Backend-assigned labels (e.g. ‘publishing’), used for filtering
Bases: typing.TypedDict
Distinct history filter values available for a single resource.
Returned by the nested history-filters endpoint on a resource (e.g. a
simulation, image, or marketplace demo). The values span all of that
resource’s history and are intended to populate filter dropdowns.
Distinct actor values present on the resource’s history entries
Distinct severity values (e.g. ‘INFO’, ‘ERROR’)
Distinct label values (e.g. ‘publishing’)
Bases: typing.TypedDict
Required resources for a simulation.
Determine if the expected_type provided is a subclass of TypedDict.
Perform type checking when the expected_type is a subclass of TypedDict.
This currently does not work if the expected_type is also a dataclass.
Resolve a ForwardRef in a way that works across Python versions.
Passing recursive_guard positionally (as older code did) raises
TypeError on Python 3.13, which surfaces to users as a spurious
UserWarning and silently skips type validation. Pass it by keyword
(valid on 3.10-3.13) and supply type_params only when the running
interpreter expects it (see _FORWARD_REF_EVALUATE_HAS_TYPE_PARAMS).
Recursively check if the value matches the expected type.