Skip to content

Commit

Permalink
feature: 完善导入AKS集群功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Maclon9573 committed Feb 1, 2024
1 parent 5006e27 commit d1edd6b
Show file tree
Hide file tree
Showing 20 changed files with 529 additions and 10 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,15 @@ service ClusterManager {
}

// Cloud Resource management
rpc GetResourceGroups(GetResourceGroupsRequest) returns (GetResourceGroupsResponse) {
option (google.api.http) = {
get : "/clustermanager/v1/clouds/{cloudID}/resourcegroups"
};
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
description : "查询resource groups列表"
summary : "查询resource groups列表"
};
}
rpc GetCloudRegions(GetCloudRegionsRequest) returns (GetCloudRegionsResponse) {
option (google.api.http) = {
get : "/clustermanager/v1/clouds/{cloudID}/regions"
Expand Down Expand Up @@ -5274,6 +5283,10 @@ message KubeConfigConnectReq {
title : "region",
description : "集群所在地域"
},(validate.rules).string = {max_len : 100, pattern : "^[0-9a-zA-Z-]+$"}];
string resourceGroupName = 6 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "resourceGroupName",
description : "AKS集群所属resource group"
}];
}

message KubeConfigResp {
Expand Down Expand Up @@ -10166,6 +10179,72 @@ message UpdateAutoScalingStatusResponse {
}];
}

message ResourceGroupInfo {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
json_schema : {
title : "ResourceGroupInfo"
description : "resource group信息"
}
};

string name = 1 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "name",
description : "resource group名称"
}];
string region = 2[(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "region",
description : "地域信息"
}];
string provisioningState = 3 [ (grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "provisioningState",
description : "resource group状态"
}];
}

message GetResourceGroupsRequest {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
json_schema : {
title : "GetResourceGroupsRequest"
description : "获取resource groups列表请求"
}
};

string cloudID = 1 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "cloudID",
description : "云信息"
},(validate.rules).string = {min_len : 2}];
string accountID = 2 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "accountID",
description : "云凭证ID"
}];
}

message GetResourceGroupsResponse {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
json_schema : {
title : "GetResourceGroupsResponse"
description : "获取resource groups列表"
}
};

uint32 code = 1 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "code",
description : "返回错误码"
}];
string message = 2[(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "message",
description : "返回错误信息"
}];
bool result = 3 [ (grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "result",
description : "返回结果"
}];
repeated ResourceGroupInfo data = 4 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {
title : "data",
description : "获取到的信息"
}];
}

message RegionInfo {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
json_schema : {
Expand Down
Loading

0 comments on commit d1edd6b

Please sign in to comment.