Compute
Node-size overrides of the workload pools (platform admins).
Access it as client.compute on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.
Methods
All methods
delete_pre_warmed
delete_pre_warmed(workload_type: str) -> None
Remove a workload pool's override, restoring its saved Compute settings.
Parameters
workload_type(str): The pool, as forset_pre_warmed.
Raises
PermissionDeniedError: You are not a platform admin.ValidationError: An unknown pool.
list_pre_warmed
list_pre_warmed() -> dict[str, PreWarmedPool]
Return every workload pool's node-size override.
Returns
dict[str, PreWarmedPool]: Each pool's override, by pool name; a pool never overridden shows its defaults, disabled.
Raises
PermissionDeniedError: You are not a platform admin.
set_pre_warmed
set_pre_warmed(workload_type: str, *, enabled: bool, count: int, instance_category: str, instance_size: str) -> PreWarmedPool
Set a workload pool's node-size override.
Parameters
workload_type(str): The pool:"general","ai","mcp","user-addons","user-workspaces","user-jobs"or"user-apps".enabled(bool):Truepins the pool's nodes;Falsekeeps the values without applying them.count(int): The number of nodes, 1 to 5 (stored with the override).instance_category(str): The instance family, such as"m","c"or"g"; one the pool allows.instance_size(str): The smallest node size, from"small"up to the pool's maximum ("medium","large","xlarge","2xlarge"and so on).
Returns
PreWarmedPool: The pool's override as saved, aspre_warmedshows it.
Raises
PermissionDeniedError: You are not a platform admin.ValidationError: An unknown pool, or a count, family or size the pool refuses.