class documentation

Undocumented

Method __dir__ Undocumented
Method __init__ Undocumented
Method boot_disk.setter Undocumented
Method cloud_init_user_data.setter Undocumented
Method filesystems.setter Undocumented
Method gpu_cluster.setter Undocumented
Method network_interfaces.setter Undocumented
Method recovery_policy.setter Undocumented
Method resources.setter Undocumented
Method secondary_disks.setter Undocumented
Method service_account_id.setter Undocumented
Method stopped.setter Undocumented
Constant __PB2_DESCRIPTOR__ Undocumented
Constant __PY_TO_PB2__ Undocumented
Class Variable __mask_functions__ Undocumented
Property boot_disk Specified boot disk attached to the instance.
Property cloud_init_user_data Data in cloud-init format for customizing instance initialization. For details, see https://docs.nebius.com/compute/virtual-machines/manage#user-data
Property filesystems List of Shared Filesystems attached to the instance.
Property gpu_cluster If you want to interconnect several instances in a GPU cluster via NVIDIA InfiniBand, set the ID of an existing GPU cluster. You can only add the VM to the cluster when creating the VM. For details, see https://docs...
Property network_interfaces List of network interfaces attached to the instance.
Property recovery_policy Recovery policy defines how the instance will be treated in case of a failure. Common source of failure is a host failure, but it can be any other failure. Instance undergoing a guest shutdown (poweroff, etc...
Property resources Specification of compute resources allocated to the instance. For details, see https://docs.nebius.com/compute/virtual-machines/types
Property secondary_disks List of additional data disks attached to the instance beyond the boot disk.
Property service_account_id Unique identifier of the service account associated with this instance. For details, see https://docs.nebius.dev/en/iam/about-iam/concepts/service-accounts
Property stopped Indicates whether the instance should be stopped.

Inherited from Message:

Class Method get_descriptor Undocumented
Class Method is_credentials Undocumented
Class Method is_sensitive Undocumented
Method __repr__ Undocumented
Method check_presence Undocumented
Method get_full_update_reset_mask Undocumented
Method get_mask Undocumented
Method is_default Undocumented
Method set_mask Undocumented
Method which_field_in_oneof Undocumented
Class Variable __PB2_CLASS__ Undocumented
Instance Variable __pb2_message__ Undocumented
Method _clear_field Undocumented
Method _get_field Undocumented
Method _set_field Undocumented
Class Variable __credentials_fields Undocumented
Class Variable __default Undocumented
Class Variable __sensitive_fields Undocumented
Instance Variable __recorded_reset_mask Undocumented
def __dir__(self) -> abc.Iterable[builtins.str]: (source)

Undocumented

def __init__(self, initial_message: message_1.Message | None = None, *, service_account_id: builtins.str | None | unset.UnsetType = unset.Unset, resources: ResourcesSpec | instance_pb2.ResourcesSpec | None | unset.UnsetType = unset.Unset, gpu_cluster: InstanceGpuClusterSpec | instance_pb2.InstanceGpuClusterSpec | None | unset.UnsetType = unset.Unset, network_interfaces: abc.Iterable[NetworkInterfaceSpec] | None | unset.UnsetType = unset.Unset, boot_disk: AttachedDiskSpec | instance_pb2.AttachedDiskSpec | None | unset.UnsetType = unset.Unset, secondary_disks: abc.Iterable[AttachedDiskSpec] | None | unset.UnsetType = unset.Unset, filesystems: abc.Iterable[AttachedFilesystemSpec] | None | unset.UnsetType = unset.Unset, cloud_init_user_data: builtins.str | None | unset.UnsetType = unset.Unset, stopped: builtins.bool | None | unset.UnsetType = unset.Unset, recovery_policy: InstanceRecoveryPolicy | instance_pb2.InstanceRecoveryPolicy | None | unset.UnsetType = unset.Unset): (source)
def boot_disk(self, value: AttachedDiskSpec | instance_pb2.AttachedDiskSpec | None): (source)

Undocumented

def cloud_init_user_data(self, value: builtins.str | None): (source)

Undocumented

Undocumented

def gpu_cluster(self, value: InstanceGpuClusterSpec | instance_pb2.InstanceGpuClusterSpec | None): (source)

Undocumented

Undocumented

def recovery_policy(self, value: InstanceRecoveryPolicy | instance_pb2.InstanceRecoveryPolicy | None): (source)

Undocumented

def resources(self, value: ResourcesSpec | instance_pb2.ResourcesSpec | None): (source)

Undocumented

Undocumented

def service_account_id(self, value: builtins.str | None): (source)

Undocumented

def stopped(self, value: builtins.bool | None): (source)

Undocumented

__PB2_DESCRIPTOR__ = (source)

Undocumented

Value
descriptor.DescriptorWrap[descriptor_1.Descriptor]('.nebius.compute.v1.InstanceS
pec',
                                                   instance_pb2.DESCRIPTOR,
                                                   descriptor_1.Descriptor)
__PY_TO_PB2__: builtins.dict[builtins.str, builtins.str] = (source)

Undocumented

Value
{'service_account_id': 'service_account_id',
 'resources': 'resources',
 'gpu_cluster': 'gpu_cluster',
 'network_interfaces': 'network_interfaces',
 'boot_disk': 'boot_disk',
 'secondary_disks': 'secondary_disks',
 'filesystems': 'filesystems',
...
@builtins.property
boot_disk: AttachedDiskSpec = (source)

Specified boot disk attached to the instance.

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

Data in cloud-init format for customizing instance initialization. For details, see https://docs.nebius.com/compute/virtual-machines/manage#user-data

List of Shared Filesystems attached to the instance.

@builtins.property
gpu_cluster: InstanceGpuClusterSpec = (source)

If you want to interconnect several instances in a GPU cluster via NVIDIA InfiniBand, set the ID of an existing GPU cluster. You can only add the VM to the cluster when creating the VM. For details, see https://docs.nebius.com/compute/clusters/gpu

@builtins.property
network_interfaces: abc.MutableSequence[NetworkInterfaceSpec] = (source)

List of network interfaces attached to the instance.

@builtins.property
recovery_policy: InstanceRecoveryPolicy = (source)

Recovery policy defines how the instance will be treated in case of a failure. Common source of failure is a host failure, but it can be any other failure. Instance undergoing a guest shutdown (poweroff, etc.) will be subject to recovery policy, meaning that it could be restarted and billed accordingly. Stop instance via API or UI to stop it to avoid recovering. If set to RECOVER, instance will be restarted, if possible. It could be restarted on the same host or on another host. If set to FAIL, instance will be stopped and not restarted.

@builtins.property
resources: ResourcesSpec = (source)

Specification of compute resources allocated to the instance. For details, see https://docs.nebius.com/compute/virtual-machines/types

@builtins.property
secondary_disks: abc.MutableSequence[AttachedDiskSpec] = (source)

List of additional data disks attached to the instance beyond the boot disk.

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

Unique identifier of the service account associated with this instance. For details, see https://docs.nebius.dev/en/iam/about-iam/concepts/service-accounts

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

Indicates whether the instance should be stopped.