Skip to main content

Models

This article refers to SDK version v0.5.0. The current SDK version is N/A.

Plain dataclasses for the entities every resource method returns. Every entity keeps the original API payload in .raw, so a field the SDK hasn't typed yet is still reachable.

Node

FieldType
idstr
node_namestr
statusOptional[Dict[str, Any]]
cluster_idOptional[str]
rawDict[str, Any]

NetworkInterface

One row of the Networking card's Interfaces section — a physical Ethernet/WiFi/Mobile interface, or a VLAN, as returned by client.nodes.network.get().

FieldType
namestr
typestr
activeOptional[bool]
rawDict[str, Any]

NodeNetwork

The Networking card as a whole: every physical interface plus VPN and Proxy state, as returned by client.nodes.network.get().

FieldType
interfacesList[NetworkInterface]
vpnList[Dict[str, Any]]
proxyList[Dict[str, Any]]
rawDict[str, Any]

Cluster

FieldType
idstr
namestr
rawDict[str, Any]

Application

FieldType
idstr
namestr
rawDict[str, Any]

MLModel

FieldType
idstr
namestr
rawDict[str, Any]

Config

A reusable, named config document from the Config Repository — referenced by id (config_id) from a workload's/node's/cluster's own App Config or Global Config, rather than being one itself.

FieldType
idstr
namestr
config_typestr
rawDict[str, Any]

Group

FieldType
idstr
namestr
node_idsList[str]
rawDict[str, Any]

User

FieldType
idstr
emailstr
roleOptional[UserRole]
enabledOptional[bool]
rawDict[str, Any]

UserRole

Matches the labels Panel shows in the Organization view — not the raw JWT/API claim names, which use a different, undocumented casing (role_company_admin, etc.) for the same four levels.

Alert

FieldType
idstr
titleOptional[str]
severityOptional[int]
activeOptional[bool]
node_idOptional[str]
rawDict[str, Any]

AlertEvent

FieldType
idstr
event_typeOptional[int]
node_idOptional[str]
alert_idOptional[str]
rawDict[str, Any]

Workload

A workload (deviceSpace): a Docker app, Marketplace app, or Model deployed on a single node, or (when returned by ClusterWorkloadsResource) across every node in a cluster — same dataclass for both, since the cluster-level API mirrors the node-level one. Unlike most entities, the API doesn't return its own top-level id — it's the workload_id the caller already knows, kept here for symmetry with the other dataclasses.

FieldType
idstr
rawDict[str, Any]

GlobalSecret

A Barbara-managed node or cluster secret reference (name only — value is never returned unencrypted unless the caller has permission and asks for it). Shared by every workload on the node/cluster — distinct from a Marketplace app's own App Secrets, and from Docker-native Swarm Secrets.

name is decoded from base64, matching Barbara's convention for secret/credential names throughout the API.

FieldType
idstr
namestr
rawDict[str, Any]

DockerCredential

server/user are decoded from base64, matching Barbara's convention for docker credential fields throughout the API. password is deliberately not a field here — Panel never stores it once sent to the node, so the API never returns it, under any role.

FieldType
idstr
serverOptional[str]
userOptional[str]
rawDict[str, Any]

ModelVersion

FieldType
idstr
namestr
rawDict[str, Any]

Page

Generic page wrapper for list endpoints.

FieldType
itemsList[Any]
totalOptional[int]

Fields and types above are generated from barbara-api-sdk 0.5.0 docstrings. If a new SDK release changes one, this page needs a re-sync — the surrounding prose does not update itself.