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

    Interface JobSpec

    JobSpec defines a job that will be run.

    interface JobSpec {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.ai.v1.JobSpec";
        args: string;
        containerCommand: string;
        disk?: JobSpec_DiskSpec;
        environmentVariables: JobSpec_EnvironmentVariable[];
        image: string;
        injectedFiles: JobSpec_FileInjection[];
        platform: string;
        ports: JobSpec_Port[];
        preemptible: boolean;
        preset: string;
        publicIp: boolean;
        registryCredentials?: JobSpec_RegistryCredentials;
        restartAttempts: Long;
        shmSizeBytes: Long;
        sshAuthorizedKeys: string[];
        subnetId: string;
        timeout?: Duration;
        volumes: JobSpec_VolumeMount[];
        workingDir: string;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

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

      JobSpec defines a job that will be run.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • JobSpec defines a job 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.JobSpec"

    Contains the fully qualified protobuf type name.

    args: string

    The arguments to pass to the entrypoint command.

    containerCommand: string

    The entrypoint command for the job's container.

    Disk spec for the main disk of the job.

    environmentVariables: JobSpec_EnvironmentVariable[]

    Specifies the environment variables for the job's container.

    image: string

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

    injectedFiles: JobSpec_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 job will be run on.

    ports: JobSpec_Port[]

    Specifies the ports that the job exposes.

    preemptible: boolean

    Whether to use a preemptible VM for the job. Preemptible VMs are cheaper but can be stopped by the platform at any time.

    preset: string

    Compute preset that the job will be run on.

    publicIp: boolean

    Whether to assign a public IP to the job.

    registryCredentials?: JobSpec_RegistryCredentials

    Registry credentials for private Docker registry.

    restartAttempts: Long

    Restart attempts for the job.

    shmSizeBytes: Long

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

    sshAuthorizedKeys: string[]

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

    subnetId: string

    Subnet ID where the job will be deployed.

    timeout?: Duration

    Job timeout.

    Volumes to be mounted into the job's container.

    workingDir: string

    The working directory for the job's container.