DevlabSpec defines an interactive workload that will be run.
DevlabSpec defines an interactive workload that will be run.
Optional[customReturns a safe value for JSON logs.
Returns a safe value for JSON logs.
Optional[unknownPreserves protobuf fields that this SDK version does not recognize.
Contains the fully qualified protobuf type name.
The arguments to pass to the entrypoint command.
OptionalauthThe SecretStash secret that contains the authentication token under the AUTH_TOKEN payload key.
This field enables an authentication proxy for the Devlab's HTTP ports.
The proxy rejects requests without an Authorization: Bearer <token> header that contains the matching token.
To disable the bearer-token check, omit the secret reference.
Read methods return the reference in this field.
OptionalauthPreferred field for the SecretStash secret that contains AUTH_TOKEN.
This secret enables bearer-token authentication for the Devlab's HTTP ports.
If you set both secret reference fields, use the same reference in both.
Read methods return the reference in auth_token_mysterybox_secret.
The entrypoint command for the Devlab's container.
CPU family and vCPU count, such as ["amd:16"]. Devlabs accept one entry, including template-based Devlabs. Mutually exclusive with gpu. Omit platform and preset in Create. Reads include the saved platform and preset. The caller still selects the disk.
OptionaldiskDisk spec for the main disk of the Devlab runtime VM.
Specifies the environment variables for the Devlab's container.
GPU model and optional count, such as ["H100:8"]. An omitted count means one GPU. Devlabs accept one entry, including template-based Devlabs. Mutually exclusive with cpu. Omit platform and preset in Create. Reads include the saved platform and preset. The caller still selects the disk.
The Docker image to use for the Devlab's container.
Required unless template is set: the template declares the image.
Small config files injected into the container before the user process starts. Intended for configs, not datasets. Read methods return target paths. File content is returned only by Get with view SECRET.
Compute platform that the Devlab will be run on. Reads return the saved platform for a selector-based Devlab.
Specifies the ports that the Devlab exposes.
Compute preset that the Devlab will be run on. Reads return the saved preset for a selector-based Devlab.
OptionalprimaryPrimary web route exposed through the managed HTTPS endpoint.
Required unless template is set: the template declares the primary
web UI port.
Whether to assign a public IP to the Devlab runtime VM.
OptionalregistryRegistry credentials for private Docker registry.
Shared memory size in bytes for the Devlab's container.
Public keys to be authorized for SSH access to the Devlab.
Subnet ID where the Devlab will be deployed. If omitted, the service uses the project's default subnet in the workload region.
OptionaltemplateTemplate that defines the Devlab's container.
When set, the template declares the container shape: image, entrypoint
command, arguments, working directory, ports, optional shared memory size,
the primary web route, and the default workspace path. The spec must leave
image, container command, arguments, working directory, and primary route
empty. Environment variables and ports extend the template-declared ones,
workspace.container_path may override the template default, and
shm_size_bytes may be set only when the template leaves it unset.
The template is consumed at creation time: read methods return the rendered container shape instead of the template reference.
Extra volumes to be mounted into the Devlab container.
The working directory for the Devlab's container.
OptionalworkspacePrimary workspace storage for user state.
DevlabSpec defines an interactive workload that will be run.