From 93a68912dc530030850ad7f724d80984a849c785 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 9 Feb 2026 09:59:24 +0000 Subject: [PATCH] Publish proto files from e3e451f01 --- nebius/common/v1/warning.proto | 12 +++++++----- nebius/compute/v1/instance.proto | 13 +++++++++++++ nebius/compute/v1/instance_service.proto | 3 ++- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/nebius/common/v1/warning.proto b/nebius/common/v1/warning.proto index 9bb570e..79c2524 100644 --- a/nebius/common/v1/warning.proto +++ b/nebius/common/v1/warning.proto @@ -37,11 +37,13 @@ message Warning { // Contains a Full Service/Method name or a select mask for a field. // Examples: - // nebius.compute.v1.InstanceService - // nebius.compute.v1.InstanceService/Get - // spec.control_plane.version - // spec.network_interfaces.0.subnet_id - // items.0.spec.control_plane.version + // ``` + // nebius.compute.v1.InstanceService + // nebius.compute.v1.InstanceService/Get + // spec.control_plane.version + // spec.network_interfaces.0.subnet_id + // items.0.spec.control_plane.version + // ``` string path = 7; enum Target { diff --git a/nebius/compute/v1/instance.proto b/nebius/compute/v1/instance.proto index c93c154..ebfcaad 100644 --- a/nebius/compute/v1/instance.proto +++ b/nebius/compute/v1/instance.proto @@ -146,6 +146,19 @@ message AttachedDiskSpec { oneof type { option (buf.validate.oneof).required = true; + // Attach an existing disk. + // + // Lifecycle: + // - The disk is preserved when the instance is deleted (it will be detached). + // + // Switching to a managed disk: + // - To delete the disk together with the instance, switch to ManagedDisk in the instance spec. + // - For the switch, `ManagedDisk.name` MUST match the current disk `name` + // (see DiskService.Get for the disk referenced by `ExistingDisk.id`). + // - When converting an ExistingDisk to a ManagedDisk, you must provide `ManagedDisk.name` and `ManagedDisk.spec` + // exactly as they are currently defined in the disk resource. + // Obtain the current values via `DiskService.Get` and copy them verbatim. + // If `ManagedDisk.spec` differs from the current disk spec, the instance update will fail. ExistingDisk existing_disk = 2; } diff --git a/nebius/compute/v1/instance_service.proto b/nebius/compute/v1/instance_service.proto index 31e9719..01e0cd0 100644 --- a/nebius/compute/v1/instance_service.proto +++ b/nebius/compute/v1/instance_service.proto @@ -33,7 +33,8 @@ service InstanceService { // Updates an existing VM instance with new configuration parameters. rpc Update(UpdateInstanceRequest) returns (common.v1.Operation); - // Deletes a VM instance by its ID. + // Deletes a VM instance by its ID. Also deletes all the managed disks, declared in the instance spec. + // Fails if cannot delete any of the managed disks. rpc Delete(DeleteInstanceRequest) returns (common.v1.Operation); // Starts a stopped VM instance.