@nebius/js-sdk - v0.2.78
    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;
        pricingModel?: PricingModelSpec;
        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.

    Main disk for 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 for the job.

    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 for the job.

    pricingModel?: PricingModelSpec

    Pricing model for the VM. Must match the preemptible flag. Preemptible VMs require follows_spot_price or spot_pricing_policy. Regular VMs use on_demand or omit this field.

    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. If omitted, the service uses the project's default subnet in the workload region.

    timeout?: Duration

    Job timeout.

    Volumes to be mounted into the job's container.

    workingDir: string

    The working directory for the job's container.