class documentation

JobSpec defines a job that will be run.

Class DiskSpec No class docstring; 2/2 properties, 0/1 class variable, 0/2 constant, 0/4 method documented
Class EnvironmentVariable EnvironmentVariable defines an environment variable for the endpoint's container.
Class Port No class docstring; 3/3 properties, 0/1 class variable, 0/2 constant, 0/5 method, 1/1 class documented
Class RegistryCredentials No class docstring; 3/3 properties, 0/1 class variable, 0/2 constant, 0/5 method documented
Class VolumeMount VolumeMount represents a volume mount for the endpoint's container.
Method __dir__ Undocumented
Method __init__ Create a wrapper around a protobuf message instance.
Method args.setter Undocumented
Method container_command.setter Undocumented
Method disk.setter Undocumented
Method environment_variables.setter Undocumented
Method image.setter Undocumented
Method platform.setter Undocumented
Method ports.setter Undocumented
Method preset.setter Undocumented
Method public_ip.setter Undocumented
Method registry_credentials.setter Undocumented
Method restart_attempts.setter Undocumented
Method shm_size_bytes.setter Undocumented
Method ssh_authorized_keys.setter Undocumented
Method subnet_id.setter Undocumented
Method timeout.setter Undocumented
Method volumes.setter Undocumented
Method working_dir.setter Undocumented
Constant __PB2_DESCRIPTOR__ Undocumented
Constant __PY_TO_PB2__ Undocumented
Class Variable __mask_functions__ Undocumented
Property args The arguments to pass to the entrypoint command.
Property container_command The entrypoint command for the job's container.
Property disk Disk spec for the main disk of the job.
Property environment_variables Specifies the environment variables for the job's container.
Property image The Docker image to use for the job's container.
Property platform Compute platform that the job will be run on.
Property ports Specifies the ports that the job exposes.
Property preset Compute preset that the job will be run on.
Property public_ip Whether to assign a public IP to the job.
Property registry_credentials Registry credentials for private Docker registry.
Property restart_attempts Restart attempts for the job.
Property shm_size_bytes Shared memory size in bytes for the job's container.
Property ssh_authorized_keys Public keys to be authorized for SSH access to the job.
Property subnet_id Subnet ID where the job will be deployed.
Property timeout Job timeout.
Property volumes Volumes to be mounted into the job's container.
Property working_dir The working directory for the job's container.

Inherited from Message:

Class Method get_descriptor Return the protobuf descriptor for this message class.
Class Method is_credentials Return True if the field contains credentials.
Class Method is_sensitive Return True if the field is marked as sensitive.
Method __repr__ Return a human-readable representation of the message, sanitizing sensitive fields.
Method check_presence Check explicit presence for a field in the protobuf message.
Method get_full_update_reset_mask Build a reset mask for a full update of this message.
Method get_mask Return the tracked reset mask.
Method is_default Return True if a field equals its default value.
Method set_mask Replace the tracked reset mask.
Method which_field_in_oneof Return the set field name for a given oneof.
Instance Variable __PB2_CLASS__ Protobuf message class associated with this wrapper.
Instance Variable __pb2_message__ Underlying protobuf message instance.
Method _clear_field Clear a field and record it in the reset mask.
Method _get_field Return a field value with optional wrapping and presence handling.
Method _set_field Set a field value and update the reset mask.
Class Variable __credentials_fields Undocumented
Class Variable __default Undocumented
Class Variable __sensitive_fields Undocumented
Instance Variable __recorded_reset_mask Mask tracking fields cleared or set to default.
def __dir__(self) -> abc.Iterable[builtins.str]: (source)

Undocumented

def __init__(self, initial_message: message_1.Message | None = None, *, image: builtins.str | None | unset.UnsetType = unset.Unset, environment_variables: abc.Iterable[JobSpec.EnvironmentVariable] | None | unset.UnsetType = unset.Unset, ports: abc.Iterable[JobSpec.Port] | None | unset.UnsetType = unset.Unset, container_command: builtins.str | None | unset.UnsetType = unset.Unset, args: builtins.str | None | unset.UnsetType = unset.Unset, working_dir: builtins.str | None | unset.UnsetType = unset.Unset, volumes: abc.Iterable[JobSpec.VolumeMount] | None | unset.UnsetType = unset.Unset, registry_credentials: JobSpec.RegistryCredentials | job_pb2.JobSpec.RegistryCredentials | None | unset.UnsetType = unset.Unset, platform: builtins.str | None | unset.UnsetType = unset.Unset, preset: builtins.str | None | unset.UnsetType = unset.Unset, shm_size_bytes: builtins.int | None | unset.UnsetType = unset.Unset, disk: JobSpec.DiskSpec | job_pb2.JobSpec.DiskSpec | None | unset.UnsetType = unset.Unset, subnet_id: builtins.str | None | unset.UnsetType = unset.Unset, public_ip: builtins.bool | None | unset.UnsetType = unset.Unset, ssh_authorized_keys: abc.Iterable[builtins.str] | None | unset.UnsetType = unset.Unset, restart_attempts: builtins.int | None | unset.UnsetType = unset.Unset, timeout: duration_pb2.Duration | datetime.timedelta | None | unset.UnsetType = unset.Unset): (source)

Create a wrapper around a protobuf message instance.

Raises
AttributeErrorIf the wrapper is missing required class metadata.
@args.setter
def args(self, value: builtins.str | None): (source)

Undocumented

@container_command.setter
def container_command(self, value: builtins.str | None): (source)

Undocumented

@disk.setter
def disk(self, value: JobSpec.DiskSpec | job_pb2.JobSpec.DiskSpec | None): (source)

Undocumented

Undocumented

@image.setter
def image(self, value: builtins.str | None): (source)

Undocumented

@platform.setter
def platform(self, value: builtins.str | None): (source)

Undocumented

Undocumented

@preset.setter
def preset(self, value: builtins.str | None): (source)

Undocumented

@public_ip.setter
def public_ip(self, value: builtins.bool | None): (source)

Undocumented

@registry_credentials.setter
def registry_credentials(self, value: JobSpec.RegistryCredentials | job_pb2.JobSpec.RegistryCredentials | None): (source)

Undocumented

@restart_attempts.setter
def restart_attempts(self, value: builtins.int | None): (source)

Undocumented

@shm_size_bytes.setter
def shm_size_bytes(self, value: builtins.int | None): (source)

Undocumented

@ssh_authorized_keys.setter
def ssh_authorized_keys(self, value: abc.Iterable[builtins.str] | None): (source)

Undocumented

@subnet_id.setter
def subnet_id(self, value: builtins.str | None): (source)

Undocumented

@timeout.setter
def timeout(self, value: duration_pb2.Duration | datetime.timedelta | None): (source)

Undocumented

Undocumented

@working_dir.setter
def working_dir(self, value: builtins.str | None): (source)

Undocumented

__PB2_DESCRIPTOR__ = (source)

Undocumented

Value
descriptor.DescriptorWrap[descriptor_1.Descriptor]('.nebius.ai.v1.JobSpec',
                                                   job_pb2.DESCRIPTOR,
                                                   descriptor_1.Descriptor)
__PY_TO_PB2__: builtins.dict[builtins.str, builtins.str] = (source)

Undocumented

Value
{'image': 'image',
 'environment_variables': 'environment_variables',
 'ports': 'ports',
 'container_command': 'container_command',
 'args': 'args',
 'working_dir': 'working_dir',
 'volumes': 'volumes',
...
@builtins.property
args: builtins.str = (source)

The arguments to pass to the entrypoint command.

@builtins.property
container_command: builtins.str = (source)

The entrypoint command for the job's container.

@builtins.property
disk: JobSpec.DiskSpec = (source)

Disk spec for the main disk of the job.

@builtins.property
environment_variables: abc.MutableSequence[JobSpec.EnvironmentVariable] = (source)

Specifies the environment variables for the job's container.

@builtins.property
image: builtins.str = (source)

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

@builtins.property
platform: builtins.str = (source)

Compute platform that the job will be run on.

@builtins.property
ports: abc.MutableSequence[JobSpec.Port] = (source)

Specifies the ports that the job exposes.

@builtins.property
preset: builtins.str = (source)

Compute preset that the job will be run on.

@builtins.property
public_ip: builtins.bool = (source)

Whether to assign a public IP to the job.

@builtins.property
registry_credentials: JobSpec.RegistryCredentials = (source)

Registry credentials for private Docker registry.

@builtins.property
restart_attempts: builtins.int = (source)

Restart attempts for the job.

@builtins.property
shm_size_bytes: builtins.int = (source)

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

@builtins.property
ssh_authorized_keys: abc.MutableSequence[builtins.str] = (source)

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

@builtins.property
subnet_id: builtins.str = (source)

Subnet ID where the job will be deployed.

@builtins.property
timeout: datetime.timedelta = (source)

Job timeout.

Volumes to be mounted into the job's container.

@builtins.property
working_dir: builtins.str = (source)

The working directory for the job's container.