优化API命名

This commit is contained in:
GoEdgeLab
2021-05-25 17:08:52 +08:00
parent 715f1cc972
commit 97936b8b23
12 changed files with 2867 additions and 1809 deletions

View File

@@ -237,7 +237,7 @@ func (x *DeleteNodeGroupRequest) GetGroupId() int64 {
}
// 查询所有分组
type FindAllEnabledNodeGroupsWithClusterIdRequest struct {
type FindAllEnabledNodeGroupsWithNodeClusterIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -245,8 +245,8 @@ type FindAllEnabledNodeGroupsWithClusterIdRequest struct {
NodeClusterId int64 `protobuf:"varint,1,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
}
func (x *FindAllEnabledNodeGroupsWithClusterIdRequest) Reset() {
*x = FindAllEnabledNodeGroupsWithClusterIdRequest{}
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) Reset() {
*x = FindAllEnabledNodeGroupsWithNodeClusterIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_group_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -254,13 +254,13 @@ func (x *FindAllEnabledNodeGroupsWithClusterIdRequest) Reset() {
}
}
func (x *FindAllEnabledNodeGroupsWithClusterIdRequest) String() string {
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledNodeGroupsWithClusterIdRequest) ProtoMessage() {}
func (*FindAllEnabledNodeGroupsWithNodeClusterIdRequest) ProtoMessage() {}
func (x *FindAllEnabledNodeGroupsWithClusterIdRequest) ProtoReflect() protoreflect.Message {
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_group_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -272,19 +272,19 @@ func (x *FindAllEnabledNodeGroupsWithClusterIdRequest) ProtoReflect() protorefle
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledNodeGroupsWithClusterIdRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNodeGroupsWithClusterIdRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllEnabledNodeGroupsWithNodeClusterIdRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNodeGroupsWithNodeClusterIdRequest) Descriptor() ([]byte, []int) {
return file_service_node_group_proto_rawDescGZIP(), []int{4}
}
func (x *FindAllEnabledNodeGroupsWithClusterIdRequest) GetNodeClusterId() int64 {
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) GetNodeClusterId() int64 {
if x != nil {
return x.NodeClusterId
}
return 0
}
type FindAllEnabledNodeGroupsWithClusterIdResponse struct {
type FindAllEnabledNodeGroupsWithNodeClusterIdResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -292,8 +292,8 @@ type FindAllEnabledNodeGroupsWithClusterIdResponse struct {
Groups []*NodeGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
}
func (x *FindAllEnabledNodeGroupsWithClusterIdResponse) Reset() {
*x = FindAllEnabledNodeGroupsWithClusterIdResponse{}
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdResponse) Reset() {
*x = FindAllEnabledNodeGroupsWithNodeClusterIdResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_group_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -301,13 +301,13 @@ func (x *FindAllEnabledNodeGroupsWithClusterIdResponse) Reset() {
}
}
func (x *FindAllEnabledNodeGroupsWithClusterIdResponse) String() string {
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledNodeGroupsWithClusterIdResponse) ProtoMessage() {}
func (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse) ProtoMessage() {}
func (x *FindAllEnabledNodeGroupsWithClusterIdResponse) ProtoReflect() protoreflect.Message {
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_group_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -319,12 +319,12 @@ func (x *FindAllEnabledNodeGroupsWithClusterIdResponse) ProtoReflect() protorefl
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledNodeGroupsWithClusterIdResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNodeGroupsWithClusterIdResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllEnabledNodeGroupsWithNodeClusterIdResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse) Descriptor() ([]byte, []int) {
return file_service_node_group_proto_rawDescGZIP(), []int{5}
}
func (x *FindAllEnabledNodeGroupsWithClusterIdResponse) GetGroups() []*NodeGroup {
func (x *FindAllEnabledNodeGroupsWithNodeClusterIdResponse) GetGroups() []*NodeGroup {
if x != nil {
return x.Groups
}
@@ -498,64 +498,65 @@ var file_service_node_group_proto_rawDesc = []byte{
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x32, 0x0a, 0x16, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x54, 0x0a,
0x2c, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6c, 0x75,
0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a,
0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65,
0x72, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x2d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x57,
0x69, 0x74, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x3a, 0x0a, 0x1c, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x72,
0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x08, 0x67,
0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x22, 0x37, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
0x22, 0x43, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x23, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x91, 0x04, 0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x2e,
0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x12, 0x8c, 0x01, 0x0a, 0x25, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x58, 0x0a,
0x30, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64,
0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x31, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74,
0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70,
0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x67, 0x72, 0x6f,
0x75, 0x70, 0x73, 0x22, 0x3a, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x22,
0x37, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18,
0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x57, 0x69, 0x74, 0x68,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75,
0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x9d, 0x04,
0x0a, 0x10, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d,
0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a,
0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70,
0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x98, 0x01, 0x0a,
0x29, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e,
0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64,
0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x34, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65,
0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x31, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
0x1a, 0x35, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x57, 0x69,
0x74, 0x68, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x20, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e,
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x59,
0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64,
0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73,
0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x59, 0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x47,
0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a,
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -572,31 +573,31 @@ func file_service_node_group_proto_rawDescGZIP() []byte {
var file_service_node_group_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_service_node_group_proto_goTypes = []interface{}{
(*CreateNodeGroupRequest)(nil), // 0: pb.CreateNodeGroupRequest
(*CreateNodeGroupResponse)(nil), // 1: pb.CreateNodeGroupResponse
(*UpdateNodeGroupRequest)(nil), // 2: pb.UpdateNodeGroupRequest
(*DeleteNodeGroupRequest)(nil), // 3: pb.DeleteNodeGroupRequest
(*FindAllEnabledNodeGroupsWithClusterIdRequest)(nil), // 4: pb.FindAllEnabledNodeGroupsWithClusterIdRequest
(*FindAllEnabledNodeGroupsWithClusterIdResponse)(nil), // 5: pb.FindAllEnabledNodeGroupsWithClusterIdResponse
(*UpdateNodeGroupOrdersRequest)(nil), // 6: pb.UpdateNodeGroupOrdersRequest
(*FindEnabledNodeGroupRequest)(nil), // 7: pb.FindEnabledNodeGroupRequest
(*FindEnabledNodeGroupResponse)(nil), // 8: pb.FindEnabledNodeGroupResponse
(*NodeGroup)(nil), // 9: pb.NodeGroup
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
(*CreateNodeGroupRequest)(nil), // 0: pb.CreateNodeGroupRequest
(*CreateNodeGroupResponse)(nil), // 1: pb.CreateNodeGroupResponse
(*UpdateNodeGroupRequest)(nil), // 2: pb.UpdateNodeGroupRequest
(*DeleteNodeGroupRequest)(nil), // 3: pb.DeleteNodeGroupRequest
(*FindAllEnabledNodeGroupsWithNodeClusterIdRequest)(nil), // 4: pb.FindAllEnabledNodeGroupsWithNodeClusterIdRequest
(*FindAllEnabledNodeGroupsWithNodeClusterIdResponse)(nil), // 5: pb.FindAllEnabledNodeGroupsWithNodeClusterIdResponse
(*UpdateNodeGroupOrdersRequest)(nil), // 6: pb.UpdateNodeGroupOrdersRequest
(*FindEnabledNodeGroupRequest)(nil), // 7: pb.FindEnabledNodeGroupRequest
(*FindEnabledNodeGroupResponse)(nil), // 8: pb.FindEnabledNodeGroupResponse
(*NodeGroup)(nil), // 9: pb.NodeGroup
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
}
var file_service_node_group_proto_depIdxs = []int32{
9, // 0: pb.FindAllEnabledNodeGroupsWithClusterIdResponse.groups:type_name -> pb.NodeGroup
9, // 0: pb.FindAllEnabledNodeGroupsWithNodeClusterIdResponse.groups:type_name -> pb.NodeGroup
9, // 1: pb.FindEnabledNodeGroupResponse.group:type_name -> pb.NodeGroup
0, // 2: pb.NodeGroupService.createNodeGroup:input_type -> pb.CreateNodeGroupRequest
2, // 3: pb.NodeGroupService.updateNodeGroup:input_type -> pb.UpdateNodeGroupRequest
3, // 4: pb.NodeGroupService.deleteNodeGroup:input_type -> pb.DeleteNodeGroupRequest
4, // 5: pb.NodeGroupService.findAllEnabledNodeGroupsWithClusterId:input_type -> pb.FindAllEnabledNodeGroupsWithClusterIdRequest
4, // 5: pb.NodeGroupService.findAllEnabledNodeGroupsWithNodeClusterId:input_type -> pb.FindAllEnabledNodeGroupsWithNodeClusterIdRequest
6, // 6: pb.NodeGroupService.updateNodeGroupOrders:input_type -> pb.UpdateNodeGroupOrdersRequest
7, // 7: pb.NodeGroupService.findEnabledNodeGroup:input_type -> pb.FindEnabledNodeGroupRequest
1, // 8: pb.NodeGroupService.createNodeGroup:output_type -> pb.CreateNodeGroupResponse
10, // 9: pb.NodeGroupService.updateNodeGroup:output_type -> pb.RPCSuccess
10, // 10: pb.NodeGroupService.deleteNodeGroup:output_type -> pb.RPCSuccess
5, // 11: pb.NodeGroupService.findAllEnabledNodeGroupsWithClusterId:output_type -> pb.FindAllEnabledNodeGroupsWithClusterIdResponse
5, // 11: pb.NodeGroupService.findAllEnabledNodeGroupsWithNodeClusterId:output_type -> pb.FindAllEnabledNodeGroupsWithNodeClusterIdResponse
10, // 12: pb.NodeGroupService.updateNodeGroupOrders:output_type -> pb.RPCSuccess
8, // 13: pb.NodeGroupService.findEnabledNodeGroup:output_type -> pb.FindEnabledNodeGroupResponse
8, // [8:14] is the sub-list for method output_type
@@ -663,7 +664,7 @@ func file_service_node_group_proto_init() {
}
}
file_service_node_group_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledNodeGroupsWithClusterIdRequest); i {
switch v := v.(*FindAllEnabledNodeGroupsWithNodeClusterIdRequest); i {
case 0:
return &v.state
case 1:
@@ -675,7 +676,7 @@ func file_service_node_group_proto_init() {
}
}
file_service_node_group_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledNodeGroupsWithClusterIdResponse); i {
switch v := v.(*FindAllEnabledNodeGroupsWithNodeClusterIdResponse); i {
case 0:
return &v.state
case 1:
@@ -762,7 +763,7 @@ type NodeGroupServiceClient interface {
// 删除分组
DeleteNodeGroup(ctx context.Context, in *DeleteNodeGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查询所有分组
FindAllEnabledNodeGroupsWithClusterId(ctx context.Context, in *FindAllEnabledNodeGroupsWithClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGroupsWithClusterIdResponse, error)
FindAllEnabledNodeGroupsWithNodeClusterId(ctx context.Context, in *FindAllEnabledNodeGroupsWithNodeClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error)
// 修改分组排序
UpdateNodeGroupOrders(ctx context.Context, in *UpdateNodeGroupOrdersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查找单个分组信息
@@ -804,9 +805,9 @@ func (c *nodeGroupServiceClient) DeleteNodeGroup(ctx context.Context, in *Delete
return out, nil
}
func (c *nodeGroupServiceClient) FindAllEnabledNodeGroupsWithClusterId(ctx context.Context, in *FindAllEnabledNodeGroupsWithClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGroupsWithClusterIdResponse, error) {
out := new(FindAllEnabledNodeGroupsWithClusterIdResponse)
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/findAllEnabledNodeGroupsWithClusterId", in, out, opts...)
func (c *nodeGroupServiceClient) FindAllEnabledNodeGroupsWithNodeClusterId(ctx context.Context, in *FindAllEnabledNodeGroupsWithNodeClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error) {
out := new(FindAllEnabledNodeGroupsWithNodeClusterIdResponse)
err := c.cc.Invoke(ctx, "/pb.NodeGroupService/findAllEnabledNodeGroupsWithNodeClusterId", in, out, opts...)
if err != nil {
return nil, err
}
@@ -840,7 +841,7 @@ type NodeGroupServiceServer interface {
// 删除分组
DeleteNodeGroup(context.Context, *DeleteNodeGroupRequest) (*RPCSuccess, error)
// 查询所有分组
FindAllEnabledNodeGroupsWithClusterId(context.Context, *FindAllEnabledNodeGroupsWithClusterIdRequest) (*FindAllEnabledNodeGroupsWithClusterIdResponse, error)
FindAllEnabledNodeGroupsWithNodeClusterId(context.Context, *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error)
// 修改分组排序
UpdateNodeGroupOrders(context.Context, *UpdateNodeGroupOrdersRequest) (*RPCSuccess, error)
// 查找单个分组信息
@@ -860,8 +861,8 @@ func (*UnimplementedNodeGroupServiceServer) UpdateNodeGroup(context.Context, *Up
func (*UnimplementedNodeGroupServiceServer) DeleteNodeGroup(context.Context, *DeleteNodeGroupRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteNodeGroup not implemented")
}
func (*UnimplementedNodeGroupServiceServer) FindAllEnabledNodeGroupsWithClusterId(context.Context, *FindAllEnabledNodeGroupsWithClusterIdRequest) (*FindAllEnabledNodeGroupsWithClusterIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeGroupsWithClusterId not implemented")
func (*UnimplementedNodeGroupServiceServer) FindAllEnabledNodeGroupsWithNodeClusterId(context.Context, *FindAllEnabledNodeGroupsWithNodeClusterIdRequest) (*FindAllEnabledNodeGroupsWithNodeClusterIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeGroupsWithNodeClusterId not implemented")
}
func (*UnimplementedNodeGroupServiceServer) UpdateNodeGroupOrders(context.Context, *UpdateNodeGroupOrdersRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeGroupOrders not implemented")
@@ -928,20 +929,20 @@ func _NodeGroupService_DeleteNodeGroup_Handler(srv interface{}, ctx context.Cont
return interceptor(ctx, in, info, handler)
}
func _NodeGroupService_FindAllEnabledNodeGroupsWithClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledNodeGroupsWithClusterIdRequest)
func _NodeGroupService_FindAllEnabledNodeGroupsWithNodeClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledNodeGroupsWithNodeClusterIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeGroupServiceServer).FindAllEnabledNodeGroupsWithClusterId(ctx, in)
return srv.(NodeGroupServiceServer).FindAllEnabledNodeGroupsWithNodeClusterId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeGroupService/FindAllEnabledNodeGroupsWithClusterId",
FullMethod: "/pb.NodeGroupService/FindAllEnabledNodeGroupsWithNodeClusterId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeGroupServiceServer).FindAllEnabledNodeGroupsWithClusterId(ctx, req.(*FindAllEnabledNodeGroupsWithClusterIdRequest))
return srv.(NodeGroupServiceServer).FindAllEnabledNodeGroupsWithNodeClusterId(ctx, req.(*FindAllEnabledNodeGroupsWithNodeClusterIdRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -999,8 +1000,8 @@ var _NodeGroupService_serviceDesc = grpc.ServiceDesc{
Handler: _NodeGroupService_DeleteNodeGroup_Handler,
},
{
MethodName: "findAllEnabledNodeGroupsWithClusterId",
Handler: _NodeGroupService_FindAllEnabledNodeGroupsWithClusterId_Handler,
MethodName: "findAllEnabledNodeGroupsWithNodeClusterId",
Handler: _NodeGroupService_FindAllEnabledNodeGroupsWithNodeClusterId_Handler,
},
{
MethodName: "updateNodeGroupOrders",