@nebius/js-sdk - v0.2.78
    Preparing search index...

    Interface DevlabSpec

    DevlabSpec defines an interactive workload that will be run.

    interface DevlabSpec {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.ai.v1.DevlabSpec";
        args: string;
        authTokenMysteryboxSecret?: DevlabSpec_MysteryBoxSecretRef;
        containerCommand: string;
        disk?: DevlabSpec_DiskSpec;
        environmentVariables: DevlabSpec_EnvironmentVariable[];
        image: string;
        injectedFiles: DevlabSpec_FileInjection[];
        platform: string;
        ports: DevlabSpec_Port[];
        preset: string;
        primaryRoute?: DevlabSpec_PrimaryRoute;
        publicIp: boolean;
        registryCredentials?: DevlabSpec_RegistryCredentials;
        shmSizeBytes: Long;
        sshAuthorizedKeys: string[];
        subnetId: string;
        template?: DevlabSpec_Template;
        volumes: DevlabSpec_VolumeMount[];
        workingDir: string;
        workspace?: DevlabSpec_Workspace;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      DevlabSpec defines an interactive workload that will be run.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • DevlabSpec defines an interactive workload that will be run.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "nebius.ai.v1.DevlabSpec"

    Contains the fully qualified protobuf type name.

    args: string

    The arguments to pass to the entrypoint command.

    authTokenMysteryboxSecret?: DevlabSpec_MysteryBoxSecretRef

    The MysteryBox 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. If absent, Serverless does not add this bearer-token check.

    containerCommand: string

    The entrypoint command for the Devlab's container.

    Disk spec for the main disk of the Devlab runtime VM.

    environmentVariables: DevlabSpec_EnvironmentVariable[]

    Specifies the environment variables for the Devlab's container.

    image: string

    The Docker image to use for the Devlab's container.

    Required unless template is set: the template declares the image.

    injectedFiles: DevlabSpec_FileInjection[]

    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.

    platform: string

    Compute platform that the Devlab will be run on.

    Specifies the ports that the Devlab exposes.

    preset: string

    Compute preset that the Devlab will be run on.

    Primary web route exposed through the managed HTTPS endpoint.

    Required unless template is set: the template declares the primary web UI port.

    publicIp: boolean

    Whether to assign a public IP to the Devlab runtime VM.

    registryCredentials?: DevlabSpec_RegistryCredentials

    Registry credentials for private Docker registry.

    shmSizeBytes: Long

    Shared memory size in bytes for the Devlab's container.

    sshAuthorizedKeys: string[]

    Public keys to be authorized for SSH access to the Devlab.

    subnetId: string

    Subnet ID where the Devlab will be deployed. If omitted, the service uses the project's default subnet in the workload region.

    Template 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.

    workingDir: string

    The working directory for the Devlab's container.

    Primary workspace storage for user state.