From 1b9fefb969b688767f873497fd13a1483a2e6a64 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 26 Aug 2026 09:06:53 +0000 Subject: [PATCH] Publish proto files from 3c8f847a8b --- nebius/compute/v1/disk_snapshot.proto | 16 ++++++++-- nebius/compute/v1/disk_snapshot_service.proto | 30 ++++++++++++++--- nebius/compute/v1/image.proto | 15 +++++++-- nebius/registry/v1/registry_service.proto | 3 ++ nebius/storage/v1/bucket.proto | 7 +++- nebius/storage/v1/bucket_service.proto | 32 ++++++++++++++++--- 6 files changed, 87 insertions(+), 16 deletions(-) diff --git a/nebius/compute/v1/disk_snapshot.proto b/nebius/compute/v1/disk_snapshot.proto index d328526..2fcb461 100644 --- a/nebius/compute/v1/disk_snapshot.proto +++ b/nebius/compute/v1/disk_snapshot.proto @@ -13,7 +13,12 @@ option java_package = "ai.nebius.pub.compute.v1"; // DiskSnapshot resource message DiskSnapshot { - common.v1.ResourceMetadata metadata = 1; + common.v1.ResourceMetadata metadata = 1 [(nid) = { + parent_resource: [ + "tenant", + "project" + ] + }]; DiskSnapshotSpec spec = 2; @@ -24,7 +29,10 @@ message DiskSnapshotSpec { // Identifier of the source disk. May become stale if the disk is deleted. string source_disk_id = 1 [ (buf.validate.field).required = true, - (field_behavior) = IMMUTABLE + (field_behavior) = IMMUTABLE, + (nid) = { + resource: ["computedisk"] + } ]; // Arbitrary information about this snapshot provided by user. @@ -62,7 +70,9 @@ message DiskSnapshotStatus { message LockState { // The snapshot is locked for deletion while disk is being created from this snapshot. // Here is the list of these disks. - repeated string disks = 1; + repeated string disks = 1 [(nid) = { + resource: ["computedisk"] + }]; } // Indicates which resources prevent the disk snapshot from being deleted. diff --git a/nebius/compute/v1/disk_snapshot_service.proto b/nebius/compute/v1/disk_snapshot_service.proto index 44ec13e..9e4ba2d 100644 --- a/nebius/compute/v1/disk_snapshot_service.proto +++ b/nebius/compute/v1/disk_snapshot_service.proto @@ -39,11 +39,19 @@ service DiskSnapshotService { } message GetDiskSnapshotRequest { - string id = 1; + string id = 1 [(nid) = { + resource: ["computedisksnapshot"] + }]; } message ListDiskSnapshotsRequest { - string parent_id = 1; + // Identifier of the parent resource + string parent_id = 1 [(nid) = { + resource: [ + "tenant", + "project" + ] + }]; int64 page_size = 2; @@ -74,17 +82,29 @@ message ListDiskSnapshotsByDiskResponse { } message CreateDiskSnapshotRequest { - common.v1.ResourceMetadata metadata = 1; + common.v1.ResourceMetadata metadata = 1 [(nid) = { + parent_resource: [ + "tenant", + "project" + ] + }]; DiskSnapshotSpec spec = 2; } message UpdateDiskSnapshotRequest { - common.v1.ResourceMetadata metadata = 1; + common.v1.ResourceMetadata metadata = 1 [(nid) = { + parent_resource: [ + "tenant", + "project" + ] + }]; DiskSnapshotSpec spec = 2; } message DeleteDiskSnapshotRequest { - string id = 1; + string id = 1 [(nid) = { + resource: ["computedisksnapshot"] + }]; } diff --git a/nebius/compute/v1/image.proto b/nebius/compute/v1/image.proto index 8a20e57..3d40279 100644 --- a/nebius/compute/v1/image.proto +++ b/nebius/compute/v1/image.proto @@ -48,11 +48,22 @@ message ImageSpec { option (buf.validate.oneof).required = true; // ID of the disk to create the image from - string source_disk_id = 4 [(field_behavior) = IMMUTABLE]; + string source_disk_id = 4 [ + (field_behavior) = IMMUTABLE, + (nid) = { + resource: ["computedisk"] + } + ]; SourceStorage source_storage = 11 [(field_behavior) = IMMUTABLE]; - string source_disk_snapshot_id = 12 [(field_behavior) = IMMUTABLE]; + // Identifier of the disk snapshot to create the image from. + string source_disk_snapshot_id = 12 [ + (field_behavior) = IMMUTABLE, + (nid) = { + resource: ["computedisksnapshot"] + } + ]; } // CPU architecture supported by the image diff --git a/nebius/registry/v1/registry_service.proto b/nebius/registry/v1/registry_service.proto index a8e5114..3e14d44 100644 --- a/nebius/registry/v1/registry_service.proto +++ b/nebius/registry/v1/registry_service.proto @@ -18,6 +18,9 @@ service RegistryService { rpc Get(GetRegistryRequest) returns (Registry); + // Gets the Registry resource by its parent IAM container `parent_id` and `name` + rpc GetByName(common.v1.GetByNameRequest) returns (Registry); + rpc List(ListRegistriesRequest) returns (ListRegistriesResponse); rpc Create(CreateRegistryRequest) returns (common.v1.Operation); diff --git a/nebius/storage/v1/bucket.proto b/nebius/storage/v1/bucket.proto index 9c4829b..0794e73 100644 --- a/nebius/storage/v1/bucket.proto +++ b/nebius/storage/v1/bucket.proto @@ -21,7 +21,12 @@ option java_package = "ai.nebius.pub.storage.v1"; message Bucket { option (resource_behavior) = IMMUTABLE_NAME; - common.v1.ResourceMetadata metadata = 1 [(buf.validate.field).required = true]; + common.v1.ResourceMetadata metadata = 1 [ + (buf.validate.field).required = true, + (nid) = { + parent_resource: ["project"] + } + ]; BucketSpec spec = 2 [(buf.validate.field).required = true]; diff --git a/nebius/storage/v1/bucket_service.proto b/nebius/storage/v1/bucket_service.proto index e9a1a37..aa91dbd 100644 --- a/nebius/storage/v1/bucket_service.proto +++ b/nebius/storage/v1/bucket_service.proto @@ -51,7 +51,9 @@ message GetBucketRequest { } message GetBucketByNameRequest { - string parent_id = 1; + string parent_id = 1 [(nid) = { + resource: ["project"] + }]; string name = 2 [(buf.validate.field).required = true]; @@ -59,19 +61,34 @@ message GetBucketByNameRequest { } message CreateBucketRequest { - common.v1.ResourceMetadata metadata = 1 [(buf.validate.field).required = true]; + common.v1.ResourceMetadata metadata = 1 [ + (buf.validate.field).required = true, + (nid) = { + parent_resource: ["project"] + } + ]; BucketSpec spec = 2 [(field_behavior) = NON_EMPTY_DEFAULT]; } message UpdateBucketRequest { - common.v1.ResourceMetadata metadata = 1 [(buf.validate.field).required = true]; + common.v1.ResourceMetadata metadata = 1 [ + (buf.validate.field).required = true, + (nid) = { + parent_resource: ["project"] + } + ]; BucketSpec spec = 2; } message DeleteBucketRequest { - string id = 1 [(buf.validate.field).required = true]; + string id = 1 [ + (buf.validate.field).required = true, + (nid) = { + resource: ["storagebucket"] + } + ]; reserved 2; @@ -106,7 +123,12 @@ message UndeleteBucketRequest { message ListBucketsRequest { // Represents the container ID. - string parent_id = 1 [(buf.validate.field).required = true]; + string parent_id = 1 [ + (buf.validate.field).required = true, + (nid) = { + resource: ["project"] + } + ]; // Specifies the maximum number of items to return in the response. int64 page_size = 2;