diff --git a/nebius/common/v1/operation_service.proto b/nebius/common/v1/operation_service.proto index 3872e3e..29db0af 100644 --- a/nebius/common/v1/operation_service.proto +++ b/nebius/common/v1/operation_service.proto @@ -10,9 +10,12 @@ option java_multiple_files = true; option java_outer_classname = "OperationServiceProto"; option java_package = "ai.nebius.pub.common.v1"; +// Service for reading operations. service OperationService { + // Returns the current state of the specified operation. rpc Get(GetOperationRequest) returns (Operation); + // Lists operations for the specified resource. rpc List(ListOperationsRequest) returns (ListOperationsResponse); } diff --git a/nebius/common/v1alpha1/operation_service.proto b/nebius/common/v1alpha1/operation_service.proto index c0c3e61..52c56bb 100644 --- a/nebius/common/v1alpha1/operation_service.proto +++ b/nebius/common/v1alpha1/operation_service.proto @@ -13,6 +13,7 @@ option java_multiple_files = true; option java_outer_classname = "OperationServiceProto"; option java_package = "ai.nebius.pub.common.v1alpha1"; +// Service for reading operations. service OperationService { option deprecated = true; option (service_deprecation_details) = { description: "migrate to common/v1" }; diff --git a/nebius/mk8s/v1/condition.proto b/nebius/mk8s/v1/condition.proto deleted file mode 100644 index b31e8bb..0000000 --- a/nebius/mk8s/v1/condition.proto +++ /dev/null @@ -1,61 +0,0 @@ -syntax = "proto3"; - -package nebius.mk8s.v1; - -import "google/protobuf/timestamp.proto"; - -option go_package = "github.com/nebius/gosdk/proto/nebius/mk8s/v1"; -option java_multiple_files = true; -option java_outer_classname = "ConditionProto"; -option java_package = "ai.nebius.pub.mk8s.v1"; - -message Condition { - // Type of condition. Should be CamelCase - string type = 1; - - // Status of the condition, one of TRUE, FALSE or UNKNOWN. - Status status = 2; - - // The last time the condition transitioned from one status to another. - google.protobuf.Timestamp last_transition_at = 3; - - // The reason for the condition's last transition in CamelCase. - // The values are considered a guaranteed API. - string reason = 4; - - // Explicit classification of Reason code, so the users or machines can immediately - // understand the current situation and act accordingly. - Severity severity = 5; - - // A human readable description message of this detail. - string description = 6; - - TransitionError last_transition_error = 7; - - enum Severity { - // Should apply only if the condition is in state "True". - NONE = 0; - - // Specifies that a failure of a condition type - // should be viewed as purely informational - INFO = 1; - - // Specifies that a failure of a condition type - // should be viewed as an error. - ERROR = 2; - } - - enum Status { - UNKNOWN = 0; - - TRUE = 1; - - FALSE = 2; - } - - message TransitionError { - string reason = 1; - - string description = 2; - } -} diff --git a/nebius/mk8s/v1/node_group.proto b/nebius/mk8s/v1/node_group.proto index 6757be3..112a4cb 100644 --- a/nebius/mk8s/v1/node_group.proto +++ b/nebius/mk8s/v1/node_group.proto @@ -8,7 +8,6 @@ import "nebius/annotations.proto"; import "nebius/common/v1/metadata.proto"; import "nebius/common/v1/resource_event.proto"; import "nebius/mk8s/v1/instance_template.proto"; -import "nebius/mk8s/v1/condition.proto"; option go_package = "github.com/nebius/gosdk/proto/nebius/mk8s/v1"; option java_multiple_files = true; @@ -343,14 +342,6 @@ message NodeGroupStatus { // Both outdated and up-to-date nodes are counted. int64 ready_node_count = 6; - repeated Condition conditions = 50 [ - deprecated = true, - (field_deprecation_details) = { - effective_at: "2025-08-01", - description: "it is not implemented well, messages should be used instead" - } - ]; - repeated common.v1.RecurrentResourceEvent events = 61; // Show that there are changes are in flight. diff --git a/nebius/mk8s/v1alpha1/condition.proto b/nebius/mk8s/v1alpha1/condition.proto deleted file mode 100644 index 60c7746..0000000 --- a/nebius/mk8s/v1alpha1/condition.proto +++ /dev/null @@ -1,66 +0,0 @@ -syntax = "proto3"; - -package nebius.mk8s.v1alpha1; - -import "nebius/annotations.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "github.com/nebius/gosdk/proto/nebius/mk8s/v1alpha1"; - -// Migrate to v1. -option deprecated = true; -option (file_deprecation_details) = { description: "migrate to v1" }; -option java_multiple_files = true; -option java_outer_classname = "ConditionProto"; -option java_package = "ai.nebius.pub.mk8s.v1alpha1"; - -message Condition { - // Type of condition. Should be CamelCase - string type = 1; - - // Status of the condition, one of TRUE, FALSE or UNKNOWN. - Status status = 2; - - // The last time the condition transitioned from one status to another. - google.protobuf.Timestamp last_transition_at = 3; - - // The reason for the condition's last transition in CamelCase. - // The values are considered a guaranteed API. - string reason = 4; - - // Explicit classification of Reason code, so the users or machines can immediately - // understand the current situation and act accordingly. - Severity severity = 5; - - // A human readable description message of this detail. - string description = 6; - - TransitionError last_transition_error = 7; - - enum Severity { - // Should apply only if the condition is in state "True". - NONE = 0; - - // Specifies that a failure of a condition type - // should be viewed as purely informational - INFO = 1; - - // Specifies that a failure of a condition type - // should be viewed as an error. - ERROR = 2; - } - - enum Status { - UNKNOWN = 0; - - TRUE = 1; - - FALSE = 2; - } - - message TransitionError { - string reason = 1; - - string description = 2; - } -} diff --git a/nebius/mk8s/v1alpha1/node_group.proto b/nebius/mk8s/v1alpha1/node_group.proto index f6e81fe..9f7097f 100644 --- a/nebius/mk8s/v1alpha1/node_group.proto +++ b/nebius/mk8s/v1alpha1/node_group.proto @@ -7,7 +7,6 @@ import "google/protobuf/duration.proto"; import "nebius/annotations.proto"; import "nebius/common/v1/metadata.proto"; import "nebius/mk8s/v1alpha1/instance_template.proto"; -import "nebius/mk8s/v1alpha1/condition.proto"; option go_package = "github.com/nebius/gosdk/proto/nebius/mk8s/v1alpha1"; @@ -321,14 +320,6 @@ message NodeGroupStatus { // Both outdated and up-to-date nodes are counted. int64 ready_node_count = 6; - repeated Condition conditions = 50 [ - deprecated = true, - (field_deprecation_details) = { - effective_at: "2025-08-01", - description: "it is not implemented well, messages should be used instead" - } - ]; - // Show that changes are in flight bool reconciling = 100; }