Compute administration runtime and lifecycle common objects¶
Fields follow the current handler DTOs and converters. Unlike administrative lists, the three lifecycle APIs use the regular computeResourceDTO, including allowed_actions without adding workspace.
computeResourceDTO¶
Field |
Type |
Description |
|---|---|---|
|
string |
Compute instance ID. |
|
string |
The workspace that owns the instance, separate from the authentication header. |
|
string |
Instance name. |
|
string |
Instance description; may be an empty string. |
|
string |
task or query. |
|
string |
Associated specification ID. |
|
integer |
Legacy CPU specification in cores; do not confuse it with cpu_milli. |
|
integer |
Legacy memory specification in GiB. |
|
integer |
Legacy GPU specification. |
|
integer |
CPU specification in millicores. |
|
integer |
Memory specification in MiB. |
|
integer |
Number of GPUs in the specification. |
|
integer |
GPU memory specification in MiB. |
|
integer |
GPU core specification. |
|
integer |
Configured minimum replicas, distinct from currently observed replicas. |
|
integer |
Replica limit per Worker type, not a combined limit across all types. |
|
integer |
Current aggregate instance replica count, separate from observations by type. |
|
integer |
Target instance replica count; does not indicate readiness. |
|
string |
Legacy Go Worker image ID; may be empty. |
|
string |
Legacy Python Worker image ID; may be empty. |
|
object (array of objects), optional |
Images selected by Worker type; may be omitted. See the item fields below. |
|
string |
Worker platform configuration. |
|
integer |
Auto-suspension setting in minutes, not a completion-time guarantee for this operation. |
|
string |
Most recent scaling or lifecycle reason. |
|
boolean |
Whether this is the default instance; may be false. |
|
string |
Parent instance state. The current model includes IDLE, DEPLOYING, SCALING, ACTIVE, DRAINING, SUSPENDED, TERMINATING, and ERROR. Keep this separate from Worker states. |
|
string |
Status text; may be empty. |
|
string, optional |
Optional saved Python dependency text; may be returned when nonempty. Not declared in the current typed SDK model. |
|
string, optional |
Optional saved dependency content hash; not declared in the current typed SDK model. |
|
object, optional |
Optional observation object declared by the DTO, but not populated by the converters for these three lifecycle APIs. Do not rely on it for installation progress. |
|
string |
Creating principal. |
|
string (array of strings) |
Allowed-action projection. These three lifecycle APIs do not construct actions separately; an empty array does not determine administrator eligibility. |
|
string, optional |
Last activation time in RFC3339; omitted if not recorded. |
|
string, optional |
Last activity time in RFC3339; omitted if not recorded. |
|
string |
Creation time in RFC3339. |
|
string |
Update time in RFC3339; not a caller-supplied concurrency version. |
computeResourceWorkerImageDTO¶
Field |
Type |
Description |
|---|---|---|
|
string, optional |
Worker type identifier. Do not reduce arbitrary types to a Go/Python choice. |
|
string, optional |
Optional legacy Worker type alias; prefer worker_type. |
|
string |
Image ID. |
|
string |
Worker platform configuration. |
computeResourcePyDepsDTO¶
Field |
Type |
Description |
|---|---|---|
|
string |
Declared aggregate dependency state: EMPTY, INSTALLING, READY, or FAILED; not currently populated by these APIs. |
|
integer |
Declared number of instances with dependencies ready. These three lifecycle APIs do not populate the object. |
|
integer |
Declared total number of instances observed for dependencies. |
|
string, optional |
Optional dependency error; not populated by these three lifecycle APIs. |
computeResourceWorkerRuntimeDTO¶
Field |
Type |
Description |
|---|---|---|
|
string |
Associated parent compute instance ID. |
|
string |
Worker type identifier. Do not reduce arbitrary types to a Go/Python choice. |
|
string |
Lifecycle state recorded for this Worker type. Check it separately from the parent instance state. |
|
integer |
Target replica count for this Worker type. |
|
integer |
Current replica count for this Worker type. |
|
string, optional |
Last activation time in RFC3339; omitted if not recorded. |
|
string, optional |
Last activity time in RFC3339; omitted if not recorded. |
|
string |
Creation time in RFC3339. |
|
string |
Update time in RFC3339; not a caller-supplied concurrency version. |
Fields currently populated¶
computeResourceDTO declares py_deps, but computeResourceToDTO does not currently assign it. The three lifecycle APIs do not additionally read dependency aggregates, so this object is absent from current success examples. A field declaration does not prove these paths return observations. Its absence does not indicate that dependencies are disabled or installation is complete.
py_requirements_txt/sha are converted and returned when saved values are nonempty; otherwise omitempty removes them. Empty worker_images is omitted. Even nil allowed_actions becomes []. Missing optional activity timestamps are omitted. Current HTTP objects and typed SDKs expose different field sets; see the client page for compatibility.
max_replicas applies to each Worker type. Check parent desired/current fields and runtime fields by type separately. A single number does not guarantee everything is ready. GET runtime currently has no pagination or single-type filter and does not report a last probe time or prove external Pod health.