diff --git a/build/rpc.json b/build/rpc.json index 03c5a3c..443c4c4 100644 --- a/build/rpc.json +++ b/build/rpc.json @@ -7262,6 +7262,92 @@ "filename": "service_ns_node.proto", "doc": "域名服务器节点服务" }, + { + "name": "NSPlanService", + "methods": [ + { + "name": "createNSPlan", + "requestMessageName": "CreateNSPlanRequest", + "responseMessageName": "CreateNSPlanResponse", + "code": "rpc createNSPlan(CreateNSPlanRequest) returns (CreateNSPlanResponse);", + "doc": "创建DNS套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "updateNSPlan", + "requestMessageName": "UpdateNSPlanRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateNSPlan(UpdateNSPlanRequest) returns (RPCSuccess);", + "doc": "修改DNS套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "sortNSPlanOrders", + "requestMessageName": "SortNSPlansRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc sortNSPlanOrders(SortNSPlansRequest) returns (RPCSuccess);", + "doc": "修改DNS套餐顺序", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllNSPlans", + "requestMessageName": "FindAllNSPlansRequest", + "responseMessageName": "FindAllNSPlansResponse", + "code": "rpc findAllNSPlans(FindAllNSPlansRequest) returns (FindAllNSPlansResponse);", + "doc": "查找所有DNS套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllEnabledNSPlans", + "requestMessageName": "FindAllEnabledNSPlansRequest", + "responseMessageName": "FindAllEnabledNSPlansResponse", + "code": "rpc findAllEnabledNSPlans(FindAllEnabledNSPlansRequest) returns (FindAllEnabledNSPlansResponse);", + "doc": "查找所有可用DNS套餐", + "roles": [ + "admin", + "user" + ], + "isDeprecated": false + }, + { + "name": "findNSPlan", + "requestMessageName": "FindNSPlanRequest", + "responseMessageName": "FindNSPlanResponse", + "code": "rpc findNSPlan(FindNSPlanRequest) returns (FindNSPlanResponse);", + "doc": "查找DNS套餐", + "roles": [ + "admin", + "user" + ], + "isDeprecated": false + }, + { + "name": "deleteNSPlan", + "requestMessageName": "DeleteNSPlanRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteNSPlan(DeleteNSPlanRequest) returns (RPCSuccess);", + "doc": "删除DNS套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_ns_plan.proto", + "doc": "DNS套餐服务" + }, { "name": "NSQuestionOptionService", "methods": [ @@ -7425,6 +7511,18 @@ ], "isDeprecated": false }, + { + "name": "countAllNSRecordsWithName", + "requestMessageName": "CountAllNSRecordsWithNameRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countAllNSRecordsWithName (CountAllNSRecordsWithNameRequest) returns (RPCCountResponse);", + "doc": "查询相同记录名的记录数", + "roles": [ + "admin", + "user" + ], + "isDeprecated": false + }, { "name": "listNSRecords", "requestMessageName": "ListNSRecordsRequest", @@ -7540,7 +7638,8 @@ "code": "rpc createNSRoute (CreateNSRouteRequest) returns (CreateNSRouteResponse);", "doc": "创建自定义线路", "roles": [ - "admin" + "admin", + "user" ], "isDeprecated": false }, @@ -7551,7 +7650,8 @@ "code": "rpc updateNSRoute (UpdateNSRouteRequest) returns (RPCSuccess);", "doc": "修改自定义线路", "roles": [ - "admin" + "admin", + "user" ], "isDeprecated": false }, @@ -7562,7 +7662,8 @@ "code": "rpc deleteNSRoute (DeleteNSRouteRequest) returns (RPCSuccess);", "doc": "删除自定义线路", "roles": [ - "admin" + "admin", + "user" ], "isDeprecated": false }, @@ -7573,7 +7674,20 @@ "code": "rpc findNSRoute (FindNSRouteRequest) returns (FindNSRouteResponse);", "doc": "获取单个自定义路线信息", "roles": [ - "admin" + "admin", + "user" + ], + "isDeprecated": false + }, + { + "name": "countAllNSRoutes", + "requestMessageName": "CountAllNSRoutesRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countAllNSRoutes(CountAllNSRoutesRequest) returns (RPCCountResponse);", + "doc": "查询自定义线路数量", + "roles": [ + "admin", + "user" ], "isDeprecated": false }, @@ -7596,7 +7710,8 @@ "code": "rpc updateNSRouteOrders (UpdateNSRouteOrdersRequest) returns (RPCSuccess);", "doc": "设置自定义线路排序", "roles": [ - "admin" + "admin", + "user" ], "isDeprecated": false }, @@ -7651,6 +7766,80 @@ "filename": "service_ns_route.proto", "doc": "线路相关服务" }, + { + "name": "NSUserPlanService", + "methods": [ + { + "name": "createNSUserPlan", + "requestMessageName": "CreateNSUserPlanRequest", + "responseMessageName": "CreateNSUserPlanResponse", + "code": "rpc createNSUserPlan(CreateNSUserPlanRequest) returns (CreateNSUserPlanResponse);", + "doc": "创建用户套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "updateNSUserPlan", + "requestMessageName": "UpdateNSUserPlanRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateNSUserPlan(UpdateNSUserPlanRequest) returns (RPCSuccess);", + "doc": "修改用户套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "deleteNSUserPlan", + "requestMessageName": "DeleteNSUserPlanRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteNSUserPlan(DeleteNSUserPlanRequest) returns (RPCSuccess);", + "doc": "删除用户套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findNSUserPlan", + "requestMessageName": "FindNSUserPlanRequest", + "responseMessageName": "FindNSUserPlanResponse", + "code": "rpc findNSUserPlan(FindNSUserPlanRequest) returns (FindNSUserPlanResponse);", + "doc": "读取用户套餐", + "roles": [ + "admin", + "user" + ], + "isDeprecated": false + }, + { + "name": "countNSUserPlans", + "requestMessageName": "CountNSUserPlansRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countNSUserPlans(CountNSUserPlansRequest) returns (RPCCountResponse);", + "doc": "计算用户套餐数量", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "listNSUserPlans", + "requestMessageName": "ListNSUserPlansRequest", + "responseMessageName": "ListNSUserPlansResponse", + "code": "rpc listNSUserPlans(ListNSUserPlansRequest) returns (ListNSUserPlansResponse);", + "doc": "列出单页套餐", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_ns_user_plan.proto", + "doc": "用户DNS套餐服务" + }, { "name": "OrderMethodService", "methods": [ @@ -10006,7 +10195,6 @@ "code": "rpc updateSysSetting (UpdateSysSettingRequest) returns (RPCSuccess);", "doc": "更改配置", "roles": [ - "user", "admin" ], "isDeprecated": false @@ -10018,8 +10206,8 @@ "code": "rpc readSysSetting (ReadSysSettingRequest) returns (ReadSysSettingResponse);", "doc": "读取配置", "roles": [ - "user", - "admin" + "admin", + "user" ], "isDeprecated": false } @@ -11183,20 +11371,15 @@ "code": "message CountAPIMethodStatsWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n}", "doc": "检查是否有统计数据" }, - { - "name": "FindACMEAuthenticationKeyWithTokenResponse", - "code": "message FindACMEAuthenticationKeyWithTokenResponse {\n\tstring key = 1;\n}", - "doc": "" - }, { "name": "FindACMEAuthenticationKeyWithTokenRequest", "code": "message FindACMEAuthenticationKeyWithTokenRequest {\n\tstring token = 1;\n}", "doc": "获取Key" }, { - "name": "FindAllACMEProvidersRequest", - "code": "message FindAllACMEProvidersRequest {\n\n}", - "doc": "查找所有的服务商" + "name": "FindACMEAuthenticationKeyWithTokenResponse", + "code": "message FindACMEAuthenticationKeyWithTokenResponse {\n\tstring key = 1;\n}", + "doc": "" }, { "name": "FindAllACMEProvidersResponse", @@ -11213,51 +11396,31 @@ "code": "message FindACMEProviderWithCodeResponse {\n\tACMEProvider acmeProvider = 1;\n}", "doc": "" }, + { + "name": "FindAllACMEProvidersRequest", + "code": "message FindAllACMEProvidersRequest {\n\n}", + "doc": "查找所有的服务商" + }, { "name": "CreateACMEProviderAccountRequest", "code": "message CreateACMEProviderAccountRequest {\n\tstring name = 1;\n\tstring providerCode = 2;\n\tstring eabKid = 3;\n\tstring eabKey = 4;\n}", "doc": "创建服务商" }, - { - "name": "CreateACMEProviderAccountResponse", - "code": "message CreateACMEProviderAccountResponse {\n\tint64 acmeProviderAccountId = 1;\n}", - "doc": "" - }, - { - "name": "FindAllACMEProviderAccountsWithProviderCodeRequest", - "code": "message FindAllACMEProviderAccountsWithProviderCodeRequest {\n\tstring acmeProviderCode = 1;\n}", - "doc": "使用代号查找服务商账号" - }, - { - "name": "FindEnabledACMEProviderAccountRequest", - "code": "message FindEnabledACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n}", - "doc": "查找单个服务商账号" - }, - { - "name": "ListEnabledACMEProviderAccountsRequest", - "code": "message ListEnabledACMEProviderAccountsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页服务商账号" - }, - { - "name": "ListEnabledACMEProviderAccountsResponse", - "code": "message ListEnabledACMEProviderAccountsResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", - "doc": "" - }, { "name": "FindAllACMEProviderAccountsWithProviderCodeResponse", "code": "message FindAllACMEProviderAccountsWithProviderCodeResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", "doc": "" }, - { - "name": "UpdateACMEProviderAccountRequest", - "code": "message UpdateACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n\tstring name = 2;\n\tstring eabKid = 3;\n\tstring eabKey = 4;\n}", - "doc": "修改服务商账号" - }, { "name": "DeleteACMEProviderAccountRequest", "code": "message DeleteACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n}", "doc": "删除服务商账号" }, + { + "name": "FindEnabledACMEProviderAccountRequest", + "code": "message FindEnabledACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n}", + "doc": "查找单个服务商账号" + }, { "name": "FindEnabledACMEProviderAccountResponse", "code": "message FindEnabledACMEProviderAccountResponse {\n\tACMEProviderAccount acmeProviderAccount = 1;\n}", @@ -11269,9 +11432,39 @@ "doc": "计算所有服务商账号数量" }, { - "name": "CreateACMETaskRequest", - "code": "message CreateACMETaskRequest {\n\tint64 acmeUserId = 1;\n\tint64 dnsProviderId = 2;\n\tstring dnsDomain = 3;\n\trepeated string domains = 4;\n\tbool autoRenew = 5;\n\tstring authType = 6;\n\tstring authURL = 7;\n}", - "doc": "创建任务" + "name": "ListEnabledACMEProviderAccountsRequest", + "code": "message ListEnabledACMEProviderAccountsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页服务商账号" + }, + { + "name": "CreateACMEProviderAccountResponse", + "code": "message CreateACMEProviderAccountResponse {\n\tint64 acmeProviderAccountId = 1;\n}", + "doc": "" + }, + { + "name": "FindAllACMEProviderAccountsWithProviderCodeRequest", + "code": "message FindAllACMEProviderAccountsWithProviderCodeRequest {\n\tstring acmeProviderCode = 1;\n}", + "doc": "使用代号查找服务商账号" + }, + { + "name": "UpdateACMEProviderAccountRequest", + "code": "message UpdateACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n\tstring name = 2;\n\tstring eabKid = 3;\n\tstring eabKey = 4;\n}", + "doc": "修改服务商账号" + }, + { + "name": "ListEnabledACMEProviderAccountsResponse", + "code": "message ListEnabledACMEProviderAccountsResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", + "doc": "" + }, + { + "name": "ListEnabledACMETasksResponse", + "code": "message ListEnabledACMETasksResponse {\n\trepeated ACMETask acmeTasks = 1;\n}", + "doc": "" + }, + { + "name": "CreateACMETaskResponse", + "code": "message CreateACMETaskResponse {\n\tint64 acmeTaskId = 1;\n}", + "doc": "" }, { "name": "DeleteACMETaskRequest", @@ -11289,9 +11482,14 @@ "doc": "计算某个ACME用户相关的任务数量" }, { - "name": "ListEnabledACMETasksResponse", - "code": "message ListEnabledACMETasksResponse {\n\trepeated ACMETask acmeTasks = 1;\n}", - "doc": "" + "name": "CountEnabledACMETasksWithDNSProviderIdRequest", + "code": "message CountEnabledACMETasksWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算跟某个DNS服务商相关的任务数量" + }, + { + "name": "CountAllEnabledACMETasksRequest", + "code": "message CountAllEnabledACMETasksRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tbool isAvailable = 3;\n\tbool isExpired = 4;\n\tint32 expiringDays = 5;\n\tstring keyword = 6;\n}", + "doc": "计算所有任务数量" }, { "name": "ListEnabledACMETasksRequest", @@ -11299,9 +11497,9 @@ "doc": "列出单页任务" }, { - "name": "CreateACMETaskResponse", - "code": "message CreateACMETaskResponse {\n\tint64 acmeTaskId = 1;\n}", - "doc": "" + "name": "CreateACMETaskRequest", + "code": "message CreateACMETaskRequest {\n\tint64 acmeUserId = 1;\n\tint64 dnsProviderId = 2;\n\tstring dnsDomain = 3;\n\trepeated string domains = 4;\n\tbool autoRenew = 5;\n\tstring authType = 6;\n\tstring authURL = 7;\n}", + "doc": "创建任务" }, { "name": "UpdateACMETaskRequest", @@ -11323,36 +11521,6 @@ "code": "message FindEnabledACMETaskResponse {\n\tACMETask acmeTask = 1;\n}", "doc": "" }, - { - "name": "CountEnabledACMETasksWithDNSProviderIdRequest", - "code": "message CountEnabledACMETasksWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算跟某个DNS服务商相关的任务数量" - }, - { - "name": "CountAllEnabledACMETasksRequest", - "code": "message CountAllEnabledACMETasksRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tbool isAvailable = 3;\n\tbool isExpired = 4;\n\tint32 expiringDays = 5;\n\tstring keyword = 6;\n}", - "doc": "计算所有任务数量" - }, - { - "name": "CreateACMEUserRequest", - "code": "message CreateACMEUserRequest {\n\tstring email = 1;\n\tstring description = 2;\n\tstring acmeProviderCode = 3;\n\tint64 acmeProviderAccountId = 4;\n}", - "doc": "创建用户" - }, - { - "name": "CreateACMEUserResponse", - "code": "message CreateACMEUserResponse {\n\tint64 acmeUserId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledACMEUserRequest", - "code": "message FindEnabledACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", - "doc": "查找单个用户" - }, - { - "name": "FindEnabledACMEUserResponse", - "code": "message FindEnabledACMEUserResponse {\n\tACMEUser acmeUser = 1;\n}", - "doc": "" - }, { "name": "FindAllACMEUsersRequest", "code": "message FindAllACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring acmeProviderCode = 3;\n}", @@ -11383,34 +11551,39 @@ "code": "message ListACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", "doc": "列出单页用户" }, + { + "name": "FindEnabledACMEUserResponse", + "code": "message FindEnabledACMEUserResponse {\n\tACMEUser acmeUser = 1;\n}", + "doc": "" + }, + { + "name": "CreateACMEUserRequest", + "code": "message CreateACMEUserRequest {\n\tstring email = 1;\n\tstring description = 2;\n\tstring acmeProviderCode = 3;\n\tint64 acmeProviderAccountId = 4;\n}", + "doc": "创建用户" + }, + { + "name": "CreateACMEUserResponse", + "code": "message CreateACMEUserResponse {\n\tint64 acmeUserId = 1;\n}", + "doc": "" + }, { "name": "ListACMEUsersResponse", "code": "message ListACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 1;\n}", "doc": "" }, { - "name": "CountAllEnabledAdminsRequest", - "code": "message CountAllEnabledAdminsRequest {\n\n}", - "doc": "计算管理员数量" + "name": "FindEnabledACMEUserRequest", + "code": "message FindEnabledACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", + "doc": "查找单个用户" }, { - "name": "ComposeAdminDashboardRequest", - "code": "message ComposeAdminDashboardRequest {\n\tstring apiVersion = 1;\n}", - "doc": "取得管理员Dashboard数据" + "name": "CheckAdminUsernameRequest", + "code": "message CheckAdminUsernameRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n}", + "doc": "检查用户名是否存在" }, { - "name": "CreateAdminResponse", - "code": "message CreateAdminResponse {\n\tint64 adminId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateAdminLoginRequest", - "code": "message UpdateAdminLoginRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", - "doc": "修改管理员登录信息" - }, - { - "name": "FindAllAdminModulesResponse", - "code": "message FindAllAdminModulesResponse {\n\trepeated AdminModuleList adminModules = 1;\n}", + "name": "FindAdminFullnameResponse", + "code": "message FindAdminFullnameResponse {\n\tstring fullname = 1;\n}", "doc": "" }, { @@ -11419,8 +11592,63 @@ "doc": "列出单页的管理员" }, { - "name": "FindAdminFullnameResponse", - "code": "message FindAdminFullnameResponse {\n\tstring fullname = 1;\n}", + "name": "ComposeAdminDashboardRequest", + "code": "message ComposeAdminDashboardRequest {\n\tstring apiVersion = 1;\n}", + "doc": "取得管理员Dashboard数据" + }, + { + "name": "UpdateAdminLoginRequest", + "code": "message UpdateAdminLoginRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", + "doc": "修改管理员登录信息" + }, + { + "name": "CheckAdminUsernameResponse", + "code": "message CheckAdminUsernameResponse {\n\tbool exists = 1;\n}", + "doc": "" + }, + { + "name": "FindAdminFullnameRequest", + "code": "message FindAdminFullnameRequest {\n\tint64 adminId = 1;\n}", + "doc": "获取管理员名称" + }, + { + "name": "CheckAdminOTPWithUsernameResponse", + "code": "message CheckAdminOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", + "doc": "" + }, + { + "name": "CreateOrUpdateAdminRequest", + "code": "message CreateOrUpdateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", + "doc": "创建或修改管理员" + }, + { + "name": "UpdateAdminInfoRequest", + "code": "message UpdateAdminInfoRequest {\n\tint64 adminId = 1;\n\tstring fullname = 2;\n}", + "doc": "修改管理员信息" + }, + { + "name": "CheckAdminOTPWithUsernameRequest", + "code": "message CheckAdminOTPWithUsernameRequest {\n\tstring username = 1;\n}", + "doc": "根据用户名检查是否需要输入OTP" + }, + { + "name": "CreateOrUpdateAdminResponse", + "code": "message CreateOrUpdateAdminResponse {\n\tint64 adminId = 1;\n}", + "doc": "" + }, + { + "name": "FindAllAdminModulesResponse", + "code": "message FindAllAdminModulesResponse {\n\trepeated AdminModuleList adminModules = 1;\n}", + "doc": "" + }, + { + "name": "UpdateAdminRequest", + "code": "message UpdateAdminRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tbytes modulesJSON = 5;\n\tbool isSuper = 6;\n\tbool isOn = 7;\n\tbool canLogin = 8;\n}", + "doc": "修改管理员" + }, + { + "name": "ListEnabledAdminsResponse", + "code": "message ListEnabledAdminsResponse {\n\trepeated Admin admins = 1;\n}", "doc": "" }, { @@ -11428,74 +11656,34 @@ "code": "message DeleteAdminRequest {\n\tint64 adminId = 1;\n}", "doc": "删除管理员" }, - { - "name": "FindEnabledAdminRequest", - "code": "message FindEnabledAdminRequest {\n\tint64 adminId = 1;\n}", - "doc": "获取管理员信息" - }, - { - "name": "CreateAdminRequest", - "code": "message CreateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring fullname = 3;\n\tbytes modulesJSON = 4;\n\tbool isSuper = 5;\n\tbool canLogin = 6;\n}", - "doc": "创建管理员" - }, - { - "name": "UpdateAdminRequest", - "code": "message UpdateAdminRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tbytes modulesJSON = 5;\n\tbool isSuper = 6;\n\tbool isOn = 7;\n\tbool canLogin = 8;\n}", - "doc": "修改管理员" - }, - { - "name": "CheckAdminOTPWithUsernameResponse", - "code": "message CheckAdminOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", - "doc": "" - }, - { - "name": "UpdateAdminThemeRequest", - "code": "message UpdateAdminThemeRequest {\n\tint64 adminId = 1;\n\tstring theme = 2;\n}", - "doc": "修改管理员使用的界面风格" - }, { "name": "LoginAdminRequest", "code": "message LoginAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", "doc": "登录" }, - { - "name": "FindAdminFullnameRequest", - "code": "message FindAdminFullnameRequest {\n\tint64 adminId = 1;\n}", - "doc": "获取管理员名称" - }, - { - "name": "CreateOrUpdateAdminRequest", - "code": "message CreateOrUpdateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", - "doc": "创建或修改管理员" - }, - { - "name": "CheckAdminOTPWithUsernameRequest", - "code": "message CheckAdminOTPWithUsernameRequest {\n\tstring username = 1;\n}", - "doc": "根据用户名检查是否需要输入OTP" - }, - { - "name": "CheckAdminUsernameResponse", - "code": "message CheckAdminUsernameResponse {\n\tbool exists = 1;\n}", - "doc": "" - }, - { - "name": "CheckAdminUsernameRequest", - "code": "message CheckAdminUsernameRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n}", - "doc": "检查用户名是否存在" - }, { "name": "CheckAdminExistsRequest", "code": "message CheckAdminExistsRequest {\n\tint64 adminId = 1;\n}", "doc": "检查管理员是否存在" }, + { + "name": "FindEnabledAdminRequest", + "code": "message FindEnabledAdminRequest {\n\tint64 adminId = 1;\n}", + "doc": "获取管理员信息" + }, { "name": "FindEnabledAdminResponse", "code": "message FindEnabledAdminResponse {\n\tAdmin admin = 1;\n}", "doc": "" }, { - "name": "CreateOrUpdateAdminResponse", - "code": "message CreateOrUpdateAdminResponse {\n\tint64 adminId = 1;\n}", + "name": "CreateAdminRequest", + "code": "message CreateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring fullname = 3;\n\tbytes modulesJSON = 4;\n\tbool isSuper = 5;\n\tbool canLogin = 6;\n}", + "doc": "创建管理员" + }, + { + "name": "LoginAdminResponse", + "code": "message LoginAdminResponse {\n\tint64 adminId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", "doc": "" }, { @@ -11504,8 +11692,18 @@ "doc": "获取管理所有权限列表" }, { - "name": "ListEnabledAdminsResponse", - "code": "message ListEnabledAdminsResponse {\n\trepeated Admin admins = 1;\n}", + "name": "CountAllEnabledAdminsRequest", + "code": "message CountAllEnabledAdminsRequest {\n\n}", + "doc": "计算管理员数量" + }, + { + "name": "CheckAdminExistsResponse", + "code": "message CheckAdminExistsResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", + "doc": "" + }, + { + "name": "CreateAdminResponse", + "code": "message CreateAdminResponse {\n\tint64 adminId = 1;\n}", "doc": "" }, { @@ -11514,19 +11712,9 @@ "doc": "" }, { - "name": "LoginAdminResponse", - "code": "message LoginAdminResponse {\n\tint64 adminId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", - "doc": "" - }, - { - "name": "UpdateAdminInfoRequest", - "code": "message UpdateAdminInfoRequest {\n\tint64 adminId = 1;\n\tstring fullname = 2;\n}", - "doc": "修改管理员信息" - }, - { - "name": "CheckAdminExistsResponse", - "code": "message CheckAdminExistsResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", - "doc": "" + "name": "UpdateAdminThemeRequest", + "code": "message UpdateAdminThemeRequest {\n\tint64 adminId = 1;\n\tstring theme = 2;\n}", + "doc": "修改管理员使用的界面风格" }, { "name": "GetAPIAccessTokenRequest", @@ -11539,14 +11727,29 @@ "doc": "" }, { - "name": "CountAllEnabledAPINodesRequest", - "code": "message CountAllEnabledAPINodesRequest {\n\n}", - "doc": "计算API节点数量" + "name": "FindCurrentAPINodeResponse", + "code": "message FindCurrentAPINodeResponse {\n\tAPINode apiNode = 1;\n}", + "doc": "" }, { - "name": "CountAllEnabledAndOnAPINodesRequest", - "code": "message CountAllEnabledAndOnAPINodesRequest {\n\n}", - "doc": "计算启用的API节点数量" + "name": "CountAllEnabledAPINodesWithSSLCertIdRequest", + "code": "message CountAllEnabledAPINodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的API节点数量" + }, + { + "name": "DebugAPINodeRequest", + "code": "message DebugAPINodeRequest {\n\tbool debug = 1;\n}", + "doc": "修改调试模式状态" + }, + { + "name": "FindAllEnabledAPINodesResponse", + "code": "message FindAllEnabledAPINodesResponse {\n\trepeated APINode apiNodes = 1;\n}", + "doc": "" + }, + { + "name": "FindCurrentAPINodeVersionRequest", + "code": "message FindCurrentAPINodeVersionRequest {\n\n}", + "doc": "获取当前API节点的版本" }, { "name": "ListEnabledAPINodesResponse", @@ -11554,9 +11757,24 @@ "doc": "" }, { - "name": "FindEnabledAPINodeRequest", - "code": "message FindEnabledAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", - "doc": "根据ID查找节点" + "name": "CreateAPINodeRequest", + "code": "message CreateAPINodeRequest {\n\tstring name = 1;\n\tstring description = 2;\n\tbytes httpJSON = 3;\n\tbytes httpsJSON = 4;\n\tbytes accessAddrsJSON = 5;\n\tbool isOn = 6;\n\tbool restIsOn = 7;\n\tbytes restHTTPJSON = 8;\n\tbytes restHTTPSJSON = 9;\n}", + "doc": "创建API节点" + }, + { + "name": "FindAllEnabledAPINodesRequest", + "code": "message FindAllEnabledAPINodesRequest {\n\n}", + "doc": "列出所有可用API节点" + }, + { + "name": "DeleteAPINodeRequest", + "code": "message DeleteAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", + "doc": "删除API节点" + }, + { + "name": "ListEnabledAPINodesRequest", + "code": "message ListEnabledAPINodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的API节点" }, { "name": "FindEnabledAPINodeResponse", @@ -11574,29 +11792,9 @@ "doc": "修改API节点" }, { - "name": "FindAllEnabledAPINodesRequest", - "code": "message FindAllEnabledAPINodesRequest {\n\n}", - "doc": "列出所有可用API节点" - }, - { - "name": "ListEnabledAPINodesRequest", - "code": "message ListEnabledAPINodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页的API节点" - }, - { - "name": "CreateAPINodeRequest", - "code": "message CreateAPINodeRequest {\n\tstring name = 1;\n\tstring description = 2;\n\tbytes httpJSON = 3;\n\tbytes httpsJSON = 4;\n\tbytes accessAddrsJSON = 5;\n\tbool isOn = 6;\n\tbool restIsOn = 7;\n\tbytes restHTTPJSON = 8;\n\tbytes restHTTPSJSON = 9;\n}", - "doc": "创建API节点" - }, - { - "name": "FindAllEnabledAPINodesResponse", - "code": "message FindAllEnabledAPINodesResponse {\n\trepeated APINode apiNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentAPINodeVersionRequest", - "code": "message FindCurrentAPINodeVersionRequest {\n\n}", - "doc": "获取当前API节点的版本" + "name": "FindEnabledAPINodeRequest", + "code": "message FindEnabledAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", + "doc": "根据ID查找节点" }, { "name": "FindCurrentAPINodeVersionResponse", @@ -11604,24 +11802,14 @@ "doc": "" }, { - "name": "DeleteAPINodeRequest", - "code": "message DeleteAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", - "doc": "删除API节点" + "name": "CountAllEnabledAPINodesRequest", + "code": "message CountAllEnabledAPINodesRequest {\n\n}", + "doc": "计算API节点数量" }, { - "name": "FindCurrentAPINodeResponse", - "code": "message FindCurrentAPINodeResponse {\n\tAPINode apiNode = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledAPINodesWithSSLCertIdRequest", - "code": "message CountAllEnabledAPINodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的API节点数量" - }, - { - "name": "DebugAPINodeRequest", - "code": "message DebugAPINodeRequest {\n\tbool debug = 1;\n}", - "doc": "修改调试模式状态" + "name": "CountAllEnabledAndOnAPINodesRequest", + "code": "message CountAllEnabledAndOnAPINodesRequest {\n\n}", + "doc": "计算启用的API节点数量" }, { "name": "FindAllEnabledAPITokensRequest", @@ -11654,19 +11842,9 @@ "doc": "清空表" }, { - "name": "CreateDBNodeRequest", - "code": "message CreateDBNodeRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring host = 4;\n\tint32 port = 5;\n\tstring database = 6;\n\tstring username = 7;\n\tstring password = 8;\n\tstring charset = 9;\n}", - "doc": "创建数据库节点" - }, - { - "name": "UpdateDBNodeRequest", - "code": "message UpdateDBNodeRequest {\n\tint64 dbNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n\tstring host = 5;\n\tint32 port = 6;\n\tstring database = 7;\n\tstring username = 8;\n\tstring password = 9;\n\tstring charset = 10;\n}", - "doc": "修改数据库节点" - }, - { - "name": "FindAllDBNodeTablesRequest", - "code": "message FindAllDBNodeTablesRequest {\n\tint64 dbNodeId = 1;\n}", - "doc": "获取所有表信息" + "name": "FindAllDBNodeTablesResponse", + "code": "message FindAllDBNodeTablesResponse {\n\trepeated DBTable dbNodeTables = 1;\n}", + "doc": "" }, { "name": "CheckDBNodeStatusRequest", @@ -11674,49 +11852,24 @@ "doc": "检查数据库节点状态" }, { - "name": "CountAllEnabledDBNodesRequest", - "code": "message CountAllEnabledDBNodesRequest {\n\n}", - "doc": "计算可用的数据库节点数量" - }, - { - "name": "FindEnabledDBNodeResponse", - "code": "message FindEnabledDBNodeResponse {\n\tDBNode dbNode = 1;\n}", - "doc": "" + "name": "CreateDBNodeRequest", + "code": "message CreateDBNodeRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring host = 4;\n\tint32 port = 5;\n\tstring database = 6;\n\tstring username = 7;\n\tstring password = 8;\n\tstring charset = 9;\n}", + "doc": "创建数据库节点" }, { "name": "CreateDBNodeResponse", "code": "message CreateDBNodeResponse {\n\tint64 dbNodeId = 1;\n}", "doc": "" }, - { - "name": "ListEnabledDBNodesRequest", - "code": "message ListEnabledDBNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页的数据库节点" - }, - { - "name": "FindEnabledDBNodeRequest", - "code": "message FindEnabledDBNodeRequest {\n\tint64 dbNodeId = 1;\n}", - "doc": "根据ID查找可用的数据库节点" - }, - { - "name": "CheckDBNodeStatusResponse", - "code": "message CheckDBNodeStatusResponse {\n\tDBNodeStatus dbNodeStatus = 1;\n}", - "doc": "" - }, { "name": "DeleteDBNodeRequest", "code": "message DeleteDBNodeRequest {\n\tint64 dbNodeId = 1;\n}", "doc": "删除节点" }, { - "name": "ListEnabledDBNodesResponse", - "code": "message ListEnabledDBNodesResponse {\n\trepeated DBNode dbNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindAllDBNodeTablesResponse", - "code": "message FindAllDBNodeTablesResponse {\n\trepeated DBTable dbNodeTables = 1;\n}", - "doc": "" + "name": "FindAllDBNodeTablesRequest", + "code": "message FindAllDBNodeTablesRequest {\n\tint64 dbNodeId = 1;\n}", + "doc": "获取所有表信息" }, { "name": "DeleteDBNodeTableRequest", @@ -11729,8 +11882,38 @@ "doc": "清空表" }, { - "name": "FindAllDNSIssuesResponse", - "code": "message FindAllDNSIssuesResponse {\n\trepeated DNSIssue issues = 1;\n}", + "name": "UpdateDBNodeRequest", + "code": "message UpdateDBNodeRequest {\n\tint64 dbNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n\tstring host = 5;\n\tint32 port = 6;\n\tstring database = 7;\n\tstring username = 8;\n\tstring password = 9;\n\tstring charset = 10;\n}", + "doc": "修改数据库节点" + }, + { + "name": "ListEnabledDBNodesResponse", + "code": "message ListEnabledDBNodesResponse {\n\trepeated DBNode dbNodes = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledDBNodeRequest", + "code": "message FindEnabledDBNodeRequest {\n\tint64 dbNodeId = 1;\n}", + "doc": "根据ID查找可用的数据库节点" + }, + { + "name": "CountAllEnabledDBNodesRequest", + "code": "message CountAllEnabledDBNodesRequest {\n\n}", + "doc": "计算可用的数据库节点数量" + }, + { + "name": "ListEnabledDBNodesRequest", + "code": "message ListEnabledDBNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的数据库节点" + }, + { + "name": "FindEnabledDBNodeResponse", + "code": "message FindEnabledDBNodeResponse {\n\tDBNode dbNode = 1;\n}", + "doc": "" + }, + { + "name": "CheckDBNodeStatusResponse", + "code": "message CheckDBNodeStatusResponse {\n\tDBNodeStatus dbNodeStatus = 1;\n}", "doc": "" }, { @@ -11739,13 +11922,8 @@ "doc": "查找问题" }, { - "name": "ExistAvailableDomainsResponse", - "code": "message ExistAvailableDomainsResponse {\n\tbool exist = 1;\n}", - "doc": "" - }, - { - "name": "ExistDNSDomainRecordResponse", - "code": "message ExistDNSDomainRecordResponse {\n\tbool isOk = 1;\n}", + "name": "FindAllDNSIssuesResponse", + "code": "message FindAllDNSIssuesResponse {\n\trepeated DNSIssue issues = 1;\n}", "doc": "" }, { @@ -11758,71 +11936,26 @@ "code": "message UpdateDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", "doc": "修改域名" }, - { - "name": "DeleteDNSDomainRequest", - "code": "message DeleteDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "删除域名" - }, - { - "name": "FindEnabledDNSDomainRequest", - "code": "message FindEnabledDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查询单个域名信息" - }, - { - "name": "FindEnabledDNSDomainResponse", - "code": "message FindEnabledDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", - "doc": "" - }, - { - "name": "FindAllDNSDomainRoutesResponse", - "code": "message FindAllDNSDomainRoutesResponse {\n\trepeated DNSRoute routes = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledBasicDNSDomainRequest", - "code": "message FindEnabledBasicDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查询单个域名的基础信息" - }, { "name": "FindEnabledBasicDNSDomainResponse", "code": "message FindEnabledBasicDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", "doc": "" }, + { + "name": "CountAllEnabledDNSDomainsWithDNSProviderIdRequest", + "code": "message CountAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算服务商下的域名数量" + }, + { + "name": "FindAllEnabledDNSDomainsWithDNSProviderIdResponse", + "code": "message FindAllEnabledDNSDomainsWithDNSProviderIdResponse {\n\trepeated DNSDomain dnsDomains = 1;\n}", + "doc": "" + }, { "name": "SyncDNSDomainDataRequest", "code": "message SyncDNSDomainDataRequest {\n\tint64 dnsDomainId = 1;\n\tint64 nodeClusterId = 2; // 如果指定,表示只更新单个集群ID\n}", "doc": "同步域名数据" }, - { - "name": "ExistDNSDomainRecordRequest", - "code": "message ExistDNSDomainRecordRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tstring type = 3; // 解析类型,比如A, CNAME等\n\tstring route = 4; // 线路\n\tstring value = 5; // 值\n}", - "doc": "检查域名是否在记录中" - }, - { - "name": "SyncDNSDomainsFromProviderResponse", - "code": "message SyncDNSDomainsFromProviderResponse {\n\tbool hasChanges = 1;\n}", - "doc": "" - }, - { - "name": "RecoverDNSDomainRequest", - "code": "message RecoverDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "恢复删除的域名" - }, - { - "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest", - "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "列出服务商下的所有域名基本信息" - }, - { - "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse", - "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse {\n\trepeated DNSDomain dnsDomains = 1;\n}", - "doc": "" - }, - { - "name": "SyncDNSDomainDataResponse", - "code": "message SyncDNSDomainDataResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n\tbool shouldFix = 3;\n}", - "doc": "" - }, { "name": "FindAllDNSDomainRoutesRequest", "code": "message FindAllDNSDomainRoutesRequest {\n\tint64 dnsDomainId = 1;\n}", @@ -11834,35 +11967,155 @@ "doc": "判断是否有域名可选" }, { - "name": "CreateDNSDomainRequest", - "code": "message CreateDNSDomainRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n}", - "doc": "创建域名" - }, - { - "name": "CountAllEnabledDNSDomainsWithDNSProviderIdRequest", - "code": "message CountAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算服务商下的域名数量" - }, - { - "name": "FindAllEnabledDNSDomainsWithDNSProviderIdRequest", - "code": "message FindAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "列出服务商下的所有域名" - }, - { - "name": "FindAllEnabledDNSDomainsWithDNSProviderIdResponse", - "code": "message FindAllEnabledDNSDomainsWithDNSProviderIdResponse {\n\trepeated DNSDomain dnsDomains = 1;\n}", + "name": "ExistAvailableDomainsResponse", + "code": "message ExistAvailableDomainsResponse {\n\tbool exist = 1;\n}", "doc": "" }, + { + "name": "ExistDNSDomainRecordResponse", + "code": "message ExistDNSDomainRecordResponse {\n\tbool isOk = 1;\n}", + "doc": "" + }, + { + "name": "RecoverDNSDomainRequest", + "code": "message RecoverDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "恢复删除的域名" + }, { "name": "SyncDNSDomainsFromProviderRequest", "code": "message SyncDNSDomainsFromProviderRequest {\n\tint64 dnsProviderId = 1;\n}", "doc": "从服务商同步域名" }, + { + "name": "SyncDNSDomainsFromProviderResponse", + "code": "message SyncDNSDomainsFromProviderResponse {\n\tbool hasChanges = 1;\n}", + "doc": "" + }, + { + "name": "DeleteDNSDomainRequest", + "code": "message DeleteDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "删除域名" + }, + { + "name": "FindEnabledDNSDomainResponse", + "code": "message FindEnabledDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledBasicDNSDomainRequest", + "code": "message FindEnabledBasicDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查询单个域名的基础信息" + }, + { + "name": "FindAllEnabledDNSDomainsWithDNSProviderIdRequest", + "code": "message FindAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "列出服务商下的所有域名" + }, + { + "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse", + "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse {\n\trepeated DNSDomain dnsDomains = 1;\n}", + "doc": "" + }, + { + "name": "CreateDNSDomainRequest", + "code": "message CreateDNSDomainRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n}", + "doc": "创建域名" + }, + { + "name": "FindEnabledDNSDomainRequest", + "code": "message FindEnabledDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查询单个域名信息" + }, + { + "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest", + "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "列出服务商下的所有域名基本信息" + }, + { + "name": "SyncDNSDomainDataResponse", + "code": "message SyncDNSDomainDataResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n\tbool shouldFix = 3;\n}", + "doc": "" + }, + { + "name": "FindAllDNSDomainRoutesResponse", + "code": "message FindAllDNSDomainRoutesResponse {\n\trepeated DNSRoute routes = 1;\n}", + "doc": "" + }, + { + "name": "ExistDNSDomainRecordRequest", + "code": "message ExistDNSDomainRecordRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tstring type = 3; // 解析类型,比如A, CNAME等\n\tstring route = 4; // 线路\n\tstring value = 5; // 值\n}", + "doc": "检查域名是否在记录中" + }, + { + "name": "FindEnabledDNSProviderResponse", + "code": "message FindEnabledDNSProviderResponse {\n\tDNSProvider dnsProvider = 1;\n}", + "doc": "" + }, + { + "name": "FindAllDNSProviderTypesResponse", + "code": "message FindAllDNSProviderTypesResponse {\n\trepeated DNSProviderType providerTypes = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledDNSProvidersWithTypeRequest", + "code": "message FindAllEnabledDNSProvidersWithTypeRequest {\n\tstring providerTypeCode = 1;\n}", + "doc": "取得某个类型的所有服务商" + }, + { + "name": "FindAllDNSProviderTypesRequest", + "code": "message FindAllDNSProviderTypesRequest {\n\n}", + "doc": "取得所有服务商类型" + }, + { + "name": "DNSProviderType", + "code": "message DNSProviderType {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledDNSProvidersWithTypeResponse", + "code": "message FindAllEnabledDNSProvidersWithTypeResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", + "doc": "" + }, { "name": "CreateDNSProviderResponse", "code": "message CreateDNSProviderResponse {\n\tint64 dnsProviderId = 1;\n}", "doc": "" }, + { + "name": "UpdateDNSProviderRequest", + "code": "message UpdateDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n\tbytes apiParamsJSON = 3;\n}", + "doc": "修改服务商" + }, + { + "name": "ListEnabledDNSProvidersResponse", + "code": "message ListEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledDNSProvidersRequest", + "code": "message FindAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n}", + "doc": "查找所有的DNS服务商" + }, + { + "name": "CreateDNSProviderRequest", + "code": "message CreateDNSProviderRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes apiParamsJSON = 3;\n}", + "doc": "创建服务商" + }, + { + "name": "FindAllEnabledDNSProvidersResponse", + "code": "message FindAllEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", + "doc": "" + }, + { + "name": "DeleteDNSProviderRequest", + "code": "message DeleteDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "删除服务商" + }, + { + "name": "CountAllEnabledDNSProvidersRequest", + "code": "message CountAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring keyword = 3;\n\tstring domain = 4;\n\tstring type = 5;\n}", + "doc": "计算服务商数量" + }, { "name": "ListEnabledDNSProvidersRequest", "code": "message ListEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring keyword = 5;\n\tstring domain = 6;\n\tstring type = 7;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", @@ -11873,71 +12126,6 @@ "code": "message FindEnabledDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", "doc": "查找单个服务商" }, - { - "name": "FindAllDNSProviderTypesRequest", - "code": "message FindAllDNSProviderTypesRequest {\n\n}", - "doc": "取得所有服务商类型" - }, - { - "name": "UpdateDNSProviderRequest", - "code": "message UpdateDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n\tbytes apiParamsJSON = 3;\n}", - "doc": "修改服务商" - }, - { - "name": "FindAllEnabledDNSProvidersRequest", - "code": "message FindAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n}", - "doc": "查找所有的DNS服务商" - }, - { - "name": "DeleteDNSProviderRequest", - "code": "message DeleteDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "删除服务商" - }, - { - "name": "FindEnabledDNSProviderResponse", - "code": "message FindEnabledDNSProviderResponse {\n\tDNSProvider dnsProvider = 1;\n}", - "doc": "" - }, - { - "name": "DNSProviderType", - "code": "message DNSProviderType {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n}", - "doc": "" - }, - { - "name": "CreateDNSProviderRequest", - "code": "message CreateDNSProviderRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes apiParamsJSON = 3;\n}", - "doc": "创建服务商" - }, - { - "name": "ListEnabledDNSProvidersResponse", - "code": "message ListEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledDNSProvidersWithTypeRequest", - "code": "message FindAllEnabledDNSProvidersWithTypeRequest {\n\tstring providerTypeCode = 1;\n}", - "doc": "取得某个类型的所有服务商" - }, - { - "name": "CountAllEnabledDNSProvidersRequest", - "code": "message CountAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring keyword = 3;\n\tstring domain = 4;\n\tstring type = 5;\n}", - "doc": "计算服务商数量" - }, - { - "name": "FindAllEnabledDNSProvidersResponse", - "code": "message FindAllEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", - "doc": "" - }, - { - "name": "FindAllDNSProviderTypesResponse", - "code": "message FindAllDNSProviderTypesResponse {\n\trepeated DNSProviderType providerTypes = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledDNSProvidersWithTypeResponse", - "code": "message FindAllEnabledDNSProvidersWithTypeResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", - "doc": "" - }, { "name": "ExistsDNSTasksRequest", "code": "message ExistsDNSTasksRequest {\n\n}", @@ -11988,21 +12176,6 @@ "code": "message FindEnabledFileRequest {\n\tint64 fileId = 1;\n}", "doc": "查找文件" }, - { - "name": "DownloadFileChunkRequest", - "code": "message DownloadFileChunkRequest {\n\tint64 fileChunkId = 1;\n}", - "doc": "下载文件片段" - }, - { - "name": "DownloadFileChunkResponse", - "code": "message DownloadFileChunkResponse {\n\tFileChunk fileChunk = 1;\n}", - "doc": "" - }, - { - "name": "CreateFileChunkRequest", - "code": "message CreateFileChunkRequest {\n\tint64 fileId = 1;\n\tbytes data = 2;\n}", - "doc": "创建文件片段" - }, { "name": "CreateFileChunkResponse", "code": "message CreateFileChunkResponse {\n\tint64 fileChunkId = 1;\n}", @@ -12019,30 +12192,60 @@ "doc": "" }, { - "name": "NotifyHTTPFirewallEventRequest", - "code": "message NotifyHTTPFirewallEventRequest {\n\tint64 serverId = 1;\n\tint64 httpFirewallPolicyId = 2;\n\tint64 httpFirewallRuleGroupId = 3;\n\tint64 httpFirewallRuleSetId = 4;\n\tint64 createdAt = 5;\n}", - "doc": "发送告警(notify)消息" + "name": "DownloadFileChunkRequest", + "code": "message DownloadFileChunkRequest {\n\tint64 fileChunkId = 1;\n}", + "doc": "下载文件片段" + }, + { + "name": "DownloadFileChunkResponse", + "code": "message DownloadFileChunkResponse {\n\tFileChunk fileChunk = 1;\n}", + "doc": "" + }, + { + "name": "CreateFileChunkRequest", + "code": "message CreateFileChunkRequest {\n\tint64 fileId = 1;\n\tbytes data = 2;\n}", + "doc": "创建文件片段" }, { "name": "CountFirewallDailyBlocksRequest", "code": "message CountFirewallDailyBlocksRequest {\n\n}", "doc": "读取当前Block动作次数" }, - { - "name": "ComposeFirewallGlobalBoardRequest", - "code": "message ComposeFirewallGlobalBoardRequest {\n\n}", - "doc": "组合看板数据" - }, { "name": "ComposeFirewallGlobalBoardResponse", "code": "message ComposeFirewallGlobalBoardResponse {\n\tint64 countDailyLogs = 1;\n\tint64 countDailyBlocks = 2;\n\tint64 countDailyCaptcha = 3;\n\tint64 countWeeklyBlocks = 4;\n\n\trepeated HTTPFirewallRuleGroupStat httpFirewallRuleGroups = 30;\n\trepeated DailyStat dailyStats = 31;\n\trepeated HourlyStat hourlyStats = 32;\n\trepeated NodeStat topNodeStats = 33;\n\trepeated DomainStat topDomainStats = 34;\n\trepeated CountryStat topCountryStats = 35;\n\n\n\tmessage HTTPFirewallRuleGroupStat {\n\t\tHTTPFirewallRuleGroup httpFirewallRuleGroup = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage HourlyStat {\n\t\tstring hour = 1;\n\t\tint64 countLogs = 2;\n\t\tint64 countCaptcha = 3;\n\t\tint64 countBlocks = 4;\n\t}\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 countLogs = 2;\n\t\tint64 countCaptcha = 3;\n\t\tint64 countBlocks = 4;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage CountryStat {\n\t\tstring countryName = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t\tfloat percent = 4; // 流量占比\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", "doc": "" }, + { + "name": "NotifyHTTPFirewallEventRequest", + "code": "message NotifyHTTPFirewallEventRequest {\n\tint64 serverId = 1;\n\tint64 httpFirewallPolicyId = 2;\n\tint64 httpFirewallRuleGroupId = 3;\n\tint64 httpFirewallRuleSetId = 4;\n\tint64 createdAt = 5;\n}", + "doc": "发送告警(notify)消息" + }, { "name": "CountFirewallDailyBlocksResponse", "code": "message CountFirewallDailyBlocksResponse {\n\tint64 countBlocks = 1;\n}", "doc": "" }, + { + "name": "ComposeFirewallGlobalBoardRequest", + "code": "message ComposeFirewallGlobalBoardRequest {\n\n}", + "doc": "组合看板数据" + }, + { + "name": "ListHTTPAccessLogsRequest", + "code": "message ListHTTPAccessLogsRequest {\n\tstring requestId = 1; // 上一页请求ID,可选\n\tint64 serverId = 2; // 服务ID\n\tint64 size = 3; // 单页条数\n\tstring day = 4; // 日期,格式YYYYMMDD\n\tstring hourFrom = 17; // 开始小时\n\tstring hourTo = 18; // 结束小时\n\tbool reverse = 5; // 是否反向查找,可选\n\tbool hasError = 6; // 是否有错误,可选\n\tint64 firewallPolicyId = 7; // WAF策略ID,可选\n\tint64 firewallRuleGroupId = 8; // WAF分组ID,可选\n\tint64 firewallRuleSetId = 9; // WAF规则集ID,可选\n\tint64 userId = 10; // 用户ID\n\tbool hasFirewallPolicy = 11; // 是否有WAF策略\n\tstring keyword = 12; // 关键词\n\tstring ip = 13;\n\tstring domain = 14;\n\tint64 nodeClusterId = 15;\n\tint64 nodeId = 16;\n\tint32 partition = 19; // 分区\n}", + "doc": "列出往前的单页访问日志" + }, + { + "name": "ListHTTPAccessLogsResponse", + "code": "message ListHTTPAccessLogsResponse {\n\trepeated HTTPAccessLog accessLogs = 1 [deprecated = true];\n\trepeated HTTPAccessLog httpAccessLogs = 4;\n\tstring requestId = 2;\n\tbool hasMore = 3;\n}", + "doc": "" + }, + { + "name": "FindHTTPAccessLogRequest", + "code": "message FindHTTPAccessLogRequest {\n\tstring requestId = 1;\n}", + "doc": "查找单个日志" + }, { "name": "FindHTTPAccessLogResponse", "code": "message FindHTTPAccessLogResponse {\n\tHTTPAccessLog httpAccessLog = 1;\n}", @@ -12069,50 +12272,15 @@ "doc": "" }, { - "name": "ListHTTPAccessLogsRequest", - "code": "message ListHTTPAccessLogsRequest {\n\tstring requestId = 1; // 上一页请求ID,可选\n\tint64 serverId = 2; // 服务ID\n\tint64 size = 3; // 单页条数\n\tstring day = 4; // 日期,格式YYYYMMDD\n\tstring hourFrom = 17; // 开始小时\n\tstring hourTo = 18; // 结束小时\n\tbool reverse = 5; // 是否反向查找,可选\n\tbool hasError = 6; // 是否有错误,可选\n\tint64 firewallPolicyId = 7; // WAF策略ID,可选\n\tint64 firewallRuleGroupId = 8; // WAF分组ID,可选\n\tint64 firewallRuleSetId = 9; // WAF规则集ID,可选\n\tint64 userId = 10; // 用户ID\n\tbool hasFirewallPolicy = 11; // 是否有WAF策略\n\tstring keyword = 12; // 关键词\n\tstring ip = 13;\n\tstring domain = 14;\n\tint64 nodeClusterId = 15;\n\tint64 nodeId = 16;\n\tint32 partition = 19; // 分区\n}", - "doc": "列出往前的单页访问日志" - }, - { - "name": "ListHTTPAccessLogsResponse", - "code": "message ListHTTPAccessLogsResponse {\n\trepeated HTTPAccessLog accessLogs = 1 [deprecated = true];\n\trepeated HTTPAccessLog httpAccessLogs = 4;\n\tstring requestId = 2;\n\tbool hasMore = 3;\n}", - "doc": "" - }, - { - "name": "FindHTTPAccessLogRequest", - "code": "message FindHTTPAccessLogRequest {\n\tstring requestId = 1;\n}", - "doc": "查找单个日志" - }, - { - "name": "ListHTTPAccessLogPoliciesResponse", - "code": "message ListHTTPAccessLogPoliciesResponse {\n\trepeated HTTPAccessLogPolicy httpAccessLogPolicies = 1;\n}", - "doc": "" - }, - { - "name": "CreateHTTPAccessLogPolicyResponse", - "code": "message CreateHTTPAccessLogPolicyResponse {\n\tint64 httpAccessLogPolicyId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPAccessLogPolicyRequest", - "code": "message UpdateHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tbytes optionsJSON = 4;\n\tbytes condsJSON = 5;\n\tbool isPublic = 6;\n\tbool firewallOnly = 7;\n}", - "doc": "修改访问日志策略" - }, - { - "name": "WriteHTTPAccessLogPolicyRequest", - "code": "message WriteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tHTTPAccessLog httpAccessLog = 2;\n}", - "doc": "测试写入某个访问日志策略" + "name": "CountAllHTTPAccessLogPoliciesRequest", + "code": "message CountAllHTTPAccessLogPoliciesRequest {\n\n}", + "doc": "计算访问日志策略数量" }, { "name": "ListHTTPAccessLogPoliciesRequest", "code": "message ListHTTPAccessLogPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页访问日志策略" }, - { - "name": "CreateHTTPAccessLogPolicyRequest", - "code": "message CreateHTTPAccessLogPolicyRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes optionsJSON = 3;\n\tbytes condsJSON = 4;\n\tbool isPublic = 5;\n\tbool firewallOnly = 6;\n}", - "doc": "创建访问日志策略" - }, { "name": "FindHTTPAccessLogPolicyRequest", "code": "message FindHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n}", @@ -12129,20 +12297,30 @@ "doc": "删除策略" }, { - "name": "CountAllHTTPAccessLogPoliciesRequest", - "code": "message CountAllHTTPAccessLogPoliciesRequest {\n\n}", - "doc": "计算访问日志策略数量" - }, - { - "name": "FindEnabledHTTPAuthPolicyRequest", - "code": "message FindEnabledHTTPAuthPolicyRequest {\n\tint64 httpAuthPolicyId = 1;\n}", - "doc": "查找策略信息" - }, - { - "name": "FindEnabledHTTPAuthPolicyResponse", - "code": "message FindEnabledHTTPAuthPolicyResponse {\n\tHTTPAuthPolicy httpAuthPolicy = 1;\n}", + "name": "ListHTTPAccessLogPoliciesResponse", + "code": "message ListHTTPAccessLogPoliciesResponse {\n\trepeated HTTPAccessLogPolicy httpAccessLogPolicies = 1;\n}", "doc": "" }, + { + "name": "CreateHTTPAccessLogPolicyRequest", + "code": "message CreateHTTPAccessLogPolicyRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes optionsJSON = 3;\n\tbytes condsJSON = 4;\n\tbool isPublic = 5;\n\tbool firewallOnly = 6;\n}", + "doc": "创建访问日志策略" + }, + { + "name": "CreateHTTPAccessLogPolicyResponse", + "code": "message CreateHTTPAccessLogPolicyResponse {\n\tint64 httpAccessLogPolicyId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPAccessLogPolicyRequest", + "code": "message UpdateHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tbytes optionsJSON = 4;\n\tbytes condsJSON = 5;\n\tbool isPublic = 6;\n\tbool firewallOnly = 7;\n}", + "doc": "修改访问日志策略" + }, + { + "name": "WriteHTTPAccessLogPolicyRequest", + "code": "message WriteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tHTTPAccessLog httpAccessLog = 2;\n}", + "doc": "测试写入某个访问日志策略" + }, { "name": "CreateHTTPAuthPolicyRequest", "code": "message CreateHTTPAuthPolicyRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", @@ -12159,10 +12337,45 @@ "doc": "修改策略" }, { - "name": "CreateHTTPCachePolicyResponse", - "code": "message CreateHTTPCachePolicyResponse {\n\tint64 httpCachePolicyId = 1;\n}", + "name": "FindEnabledHTTPAuthPolicyRequest", + "code": "message FindEnabledHTTPAuthPolicyRequest {\n\tint64 httpAuthPolicyId = 1;\n}", + "doc": "查找策略信息" + }, + { + "name": "FindEnabledHTTPAuthPolicyResponse", + "code": "message FindEnabledHTTPAuthPolicyResponse {\n\tHTTPAuthPolicy httpAuthPolicy = 1;\n}", "doc": "" }, + { + "name": "CountAllEnabledHTTPCachePoliciesRequest", + "code": "message CountAllEnabledHTTPCachePoliciesRequest {\n\tstring keyword = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n}", + "doc": "计算缓存策略数量" + }, + { + "name": "ListEnabledHTTPCachePoliciesRequest", + "code": "message ListEnabledHTTPCachePoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n\tint64 nodeClusterId = 4;\n\tstring type = 5;\n}", + "doc": "列出单页的缓存策略" + }, + { + "name": "FindEnabledHTTPCachePolicyConfigResponse", + "code": "message FindEnabledHTTPCachePolicyConfigResponse {\n\tbytes httpCachePolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledHTTPCachePoliciesResponse", + "code": "message FindAllEnabledHTTPCachePoliciesResponse {\n\trepeated HTTPCachePolicy cachePolicies = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPCachePolicyRequest", + "code": "message UpdateHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tbytes capacityJSON = 5;\n\tint64 maxKeys = 6;\n\tbytes maxSizeJSON = 7;\n\tstring type = 8;\n\tbytes optionsJSON = 9;\n\tbool syncCompressionCache = 10;\n}", + "doc": "修改缓存策略" + }, + { + "name": "DeleteHTTPCachePolicyRequest", + "code": "message DeleteHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "删除缓存策略" + }, { "name": "ListEnabledHTTPCachePoliciesResponse", "code": "message ListEnabledHTTPCachePoliciesResponse {\n\tbytes httpCachePoliciesJSON = 1;\n}", @@ -12173,16 +12386,16 @@ "code": "message FindEnabledHTTPCachePolicyConfigRequest {\n\tint64 httpCachePolicyId = 1;\n}", "doc": "查找单个缓存策略配置" }, + { + "name": "CreateHTTPCachePolicyResponse", + "code": "message CreateHTTPCachePolicyResponse {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "" + }, { "name": "FindEnabledHTTPCachePolicyRequest", "code": "message FindEnabledHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", "doc": "查找单个缓存策略信息" }, - { - "name": "UpdateHTTPCachePolicyRefsRequest", - "code": "message UpdateHTTPCachePolicyRefsRequest {\n\tint64 httpCachePolicyId = 1;\n\tbytes refsJSON = 2;\n}", - "doc": "设置缓存策略的默认条件" - }, { "name": "FindAllEnabledHTTPCachePoliciesRequest", "code": "message FindAllEnabledHTTPCachePoliciesRequest {\n\n}", @@ -12199,75 +12412,15 @@ "doc": "" }, { - "name": "UpdateHTTPCachePolicyRequest", - "code": "message UpdateHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tbytes capacityJSON = 5;\n\tint64 maxKeys = 6;\n\tbytes maxSizeJSON = 7;\n\tstring type = 8;\n\tbytes optionsJSON = 9;\n\tbool syncCompressionCache = 10;\n}", - "doc": "修改缓存策略" - }, - { - "name": "FindEnabledHTTPCachePolicyConfigResponse", - "code": "message FindEnabledHTTPCachePolicyConfigResponse {\n\tbytes httpCachePolicyJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledHTTPCachePoliciesRequest", - "code": "message CountAllEnabledHTTPCachePoliciesRequest {\n\tstring keyword = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n}", - "doc": "计算缓存策略数量" - }, - { - "name": "ListEnabledHTTPCachePoliciesRequest", - "code": "message ListEnabledHTTPCachePoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n\tint64 nodeClusterId = 4;\n\tstring type = 5;\n}", - "doc": "列出单页的缓存策略" - }, - { - "name": "FindAllEnabledHTTPCachePoliciesResponse", - "code": "message FindAllEnabledHTTPCachePoliciesResponse {\n\trepeated HTTPCachePolicy cachePolicies = 1;\n}", - "doc": "" - }, - { - "name": "DeleteHTTPCachePolicyRequest", - "code": "message DeleteHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "删除缓存策略" - }, - { - "name": "FindEnabledHTTPCacheTaskResponse", - "code": "message FindEnabledHTTPCacheTaskResponse {\n\tHTTPCacheTask httpCacheTask = 1;\n}", - "doc": "" + "name": "UpdateHTTPCachePolicyRefsRequest", + "code": "message UpdateHTTPCachePolicyRefsRequest {\n\tint64 httpCachePolicyId = 1;\n\tbytes refsJSON = 2;\n}", + "doc": "设置缓存策略的默认条件" }, { "name": "ListHTTPCacheTasksRequest", "code": "message ListHTTPCacheTasksRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页任务" }, - { - "name": "ResetHTTPCacheTaskRequest", - "code": "message ResetHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", - "doc": "重置任务状态" - }, - { - "name": "CountHTTPCacheTasksRequest", - "code": "message CountHTTPCacheTasksRequest {\n\n}", - "doc": "计算任务总数量" - }, - { - "name": "CreateHTTPCacheTaskResponse", - "code": "message CreateHTTPCacheTaskResponse {\n\tint64 httpCacheTaskId = 1;\n\tint64 countKeys = 2;\n}", - "doc": "" - }, - { - "name": "CountDoingHTTPCacheTasksRequest", - "code": "message CountDoingHTTPCacheTasksRequest {\n\n}", - "doc": "计算正在执行的任务数量" - }, - { - "name": "FindEnabledHTTPCacheTaskRequest", - "code": "message FindEnabledHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", - "doc": "查找单个任务" - }, - { - "name": "ListHTTPCacheTasksResponse", - "code": "message ListHTTPCacheTasksResponse {\n\trepeated HTTPCacheTask httpCacheTasks = 1;\n}", - "doc": "" - }, { "name": "DeleteHTTPCacheTaskRequest", "code": "message DeleteHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", @@ -12279,9 +12432,39 @@ "doc": "创建任务" }, { - "name": "UpdateHTTPCacheTaskKeysStatusRequest", - "code": "message UpdateHTTPCacheTaskKeysStatusRequest {\n\trepeated KeyResult keyResults = 1;\n\n\n\tmessage KeyResult {\n\t\tint64 id = 1;\n\t\tint64 nodeClusterId = 2; // 特意设置的冗余数据\n\t\tstring error = 3;\n\t}\n}", - "doc": "更新一组Key状态" + "name": "CountHTTPCacheTasksRequest", + "code": "message CountHTTPCacheTasksRequest {\n\n}", + "doc": "计算任务总数量" + }, + { + "name": "CountDoingHTTPCacheTasksRequest", + "code": "message CountDoingHTTPCacheTasksRequest {\n\n}", + "doc": "计算正在执行的任务数量" + }, + { + "name": "FindEnabledHTTPCacheTaskResponse", + "code": "message FindEnabledHTTPCacheTaskResponse {\n\tHTTPCacheTask httpCacheTask = 1;\n}", + "doc": "" + }, + { + "name": "CreateHTTPCacheTaskResponse", + "code": "message CreateHTTPCacheTaskResponse {\n\tint64 httpCacheTaskId = 1;\n\tint64 countKeys = 2;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPCacheTaskRequest", + "code": "message FindEnabledHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", + "doc": "查找单个任务" + }, + { + "name": "ListHTTPCacheTasksResponse", + "code": "message ListHTTPCacheTasksResponse {\n\trepeated HTTPCacheTask httpCacheTasks = 1;\n}", + "doc": "" + }, + { + "name": "ResetHTTPCacheTaskRequest", + "code": "message ResetHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", + "doc": "重置任务状态" }, { "name": "ValidateHTTPCacheTaskKeysRequest", @@ -12304,14 +12487,9 @@ "doc": "" }, { - "name": "FindEnabledHTTPFastcgiConfigRequest", - "code": "message FindEnabledHTTPFastcgiConfigRequest {\n\tint64 httpFastcgiId = 1;\n}", - "doc": "获取Fastcgi配置" - }, - { - "name": "FindEnabledHTTPFastcgiConfigResponse", - "code": "message FindEnabledHTTPFastcgiConfigResponse {\n\tbytes httpFastcgiJSON = 1;\n}", - "doc": "" + "name": "UpdateHTTPCacheTaskKeysStatusRequest", + "code": "message UpdateHTTPCacheTaskKeysStatusRequest {\n\trepeated KeyResult keyResults = 1;\n\n\n\tmessage KeyResult {\n\t\tint64 id = 1;\n\t\tint64 nodeClusterId = 2; // 特意设置的冗余数据\n\t\tstring error = 3;\n\t}\n}", + "doc": "更新一组Key状态" }, { "name": "CreateHTTPFastcgiRequest", @@ -12339,53 +12517,18 @@ "doc": "" }, { - "name": "FindEnabledHTTPFirewallPolicyConfigRequest", - "code": "message FindEnabledHTTPFirewallPolicyConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "查找单个防火墙配置" + "name": "FindEnabledHTTPFastcgiConfigRequest", + "code": "message FindEnabledHTTPFastcgiConfigRequest {\n\tint64 httpFastcgiId = 1;\n}", + "doc": "获取Fastcgi配置" }, { - "name": "ImportHTTPFirewallPolicyRequest", - "code": "message ImportHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes httpFirewallPolicyJSON = 2;\n}", - "doc": "导入策略数据" - }, - { - "name": "FindAllEnabledHTTPFirewallPoliciesRequest", - "code": "message FindAllEnabledHTTPFirewallPoliciesRequest {\n\n}", - "doc": "获取所有可用策略" - }, - { - "name": "UpdateHTTPFirewallPolicyGroupsRequest", - "code": "message UpdateHTTPFirewallPolicyGroupsRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n\tbytes outboundJSON = 3;\n}", - "doc": "修改分组信息" - }, - { - "name": "CountAllEnabledHTTPFirewallPoliciesRequest", - "code": "message CountAllEnabledHTTPFirewallPoliciesRequest {\n\tstring keyword = 1;\n\tint64 nodeClusterId = 2;\n}", - "doc": "计算可用的防火墙策略数量" - }, - { - "name": "CheckHTTPFirewallPolicyIPStatusRequest", - "code": "message CheckHTTPFirewallPolicyIPStatusRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tstring ip = 2;\n}", - "doc": "检查IP状态" - }, - { - "name": "FindAllEnabledHTTPFirewallPoliciesResponse", - "code": "message FindAllEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy firewallPolicies = 1;\n}", + "name": "FindEnabledHTTPFastcgiConfigResponse", + "code": "message FindEnabledHTTPFastcgiConfigResponse {\n\tbytes httpFastcgiJSON = 1;\n}", "doc": "" }, { - "name": "ListEnabledHTTPFirewallPoliciesResponse", - "code": "message ListEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy httpFirewallPolicies = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledHTTPFirewallPolicyConfigResponse", - "code": "message FindEnabledHTTPFirewallPolicyConfigResponse {\n\tbytes httpFirewallPolicyJSON = 1;\n}", - "doc": "" - }, - { - "name": "CheckHTTPFirewallPolicyIPStatusResponse", - "code": "message CheckHTTPFirewallPolicyIPStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPList ipList = 5; // 匹配的IPList\n\tIPItem ipItem = 6; // 匹配的IPItem\n\tRegionCountry regionCountry = 7; // 匹配到封禁的地区\n\tRegionProvince regionProvince = 8; // 匹配到封禁的省份\n}", + "name": "CreateEmptyHTTPFirewallPolicyResponse", + "code": "message CreateEmptyHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", "doc": "" }, { @@ -12399,28 +12542,48 @@ "doc": "删除某个防火墙策略" }, { - "name": "FindEnabledHTTPFirewallPolicyRequest", - "code": "message FindEnabledHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "获取防火墙的基本信息" + "name": "FindEnabledHTTPFirewallPolicyConfigRequest", + "code": "message FindEnabledHTTPFirewallPolicyConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "查找单个防火墙配置" }, { - "name": "CreateEmptyHTTPFirewallPolicyResponse", - "code": "message CreateEmptyHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", + "name": "FindEnabledHTTPFirewallPolicyResponse", + "code": "message FindEnabledHTTPFirewallPolicyResponse {\n\tHTTPFirewallPolicy httpFirewallPolicy = 1;\n}", "doc": "" }, + { + "name": "UpdateHTTPFirewallPolicyGroupsRequest", + "code": "message UpdateHTTPFirewallPolicyGroupsRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n\tbytes outboundJSON = 3;\n}", + "doc": "修改分组信息" + }, { "name": "UpdateHTTPFirewallInboundConfigRequest", "code": "message UpdateHTTPFirewallInboundConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n}", "doc": "修改inbound信息" }, { - "name": "ListEnabledHTTPFirewallPoliciesRequest", - "code": "message ListEnabledHTTPFirewallPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n\tint64 nodeClusterId = 4;\n}", - "doc": "列出单页的防火墙策略" + "name": "CountAllEnabledHTTPFirewallPoliciesRequest", + "code": "message CountAllEnabledHTTPFirewallPoliciesRequest {\n\tstring keyword = 1;\n\tint64 nodeClusterId = 2;\n}", + "doc": "计算可用的防火墙策略数量" }, { - "name": "FindEnabledHTTPFirewallPolicyResponse", - "code": "message FindEnabledHTTPFirewallPolicyResponse {\n\tHTTPFirewallPolicy httpFirewallPolicy = 1;\n}", + "name": "ListEnabledHTTPFirewallPoliciesResponse", + "code": "message ListEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy httpFirewallPolicies = 1;\n}", + "doc": "" + }, + { + "name": "CheckHTTPFirewallPolicyIPStatusResponse", + "code": "message CheckHTTPFirewallPolicyIPStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPList ipList = 5; // 匹配的IPList\n\tIPItem ipItem = 6; // 匹配的IPItem\n\tRegionCountry regionCountry = 7; // 匹配到封禁的地区\n\tRegionProvince regionProvince = 8; // 匹配到封禁的省份\n}", + "doc": "" + }, + { + "name": "FindAllEnabledHTTPFirewallPoliciesRequest", + "code": "message FindAllEnabledHTTPFirewallPoliciesRequest {\n\n}", + "doc": "获取所有可用策略" + }, + { + "name": "FindAllEnabledHTTPFirewallPoliciesResponse", + "code": "message FindAllEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy firewallPolicies = 1;\n}", "doc": "" }, { @@ -12428,46 +12591,56 @@ "code": "message CreateHTTPFirewallPolicyRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\trepeated string httpFirewallGroupCodes = 4;\n\tint64 serverId = 5;\n\tint64 serverGroupId = 6;\n}", "doc": "创建防火墙策略" }, - { - "name": "CreateHTTPFirewallPolicyResponse", - "code": "message CreateHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "" - }, { "name": "CreateEmptyHTTPFirewallPolicyRequest", "code": "message CreateEmptyHTTPFirewallPolicyRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tint64 serverId = 4;\n\tint64 serverGroupId = 5;\n}", "doc": "创建空防火墙策略" }, { - "name": "UpdateHTTPFirewallRuleGroupIsOnRequest", - "code": "message UpdateHTTPFirewallRuleGroupIsOnRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 2;\n}", - "doc": "设置是否启用分组" + "name": "ListEnabledHTTPFirewallPoliciesRequest", + "code": "message ListEnabledHTTPFirewallPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n\tint64 nodeClusterId = 4;\n}", + "doc": "列出单页的防火墙策略" + }, + { + "name": "FindEnabledHTTPFirewallPolicyConfigResponse", + "code": "message FindEnabledHTTPFirewallPolicyConfigResponse {\n\tbytes httpFirewallPolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "CreateHTTPFirewallPolicyResponse", + "code": "message CreateHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPFirewallPolicyRequest", + "code": "message FindEnabledHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "获取防火墙的基本信息" + }, + { + "name": "ImportHTTPFirewallPolicyRequest", + "code": "message ImportHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes httpFirewallPolicyJSON = 2;\n}", + "doc": "导入策略数据" + }, + { + "name": "CheckHTTPFirewallPolicyIPStatusRequest", + "code": "message CheckHTTPFirewallPolicyIPStatusRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tstring ip = 2;\n}", + "doc": "检查IP状态" + }, + { + "name": "CreateHTTPFirewallRuleGroupRequest", + "code": "message CreateHTTPFirewallRuleGroupRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring code = 4;\n\tstring description = 3;\n}", + "doc": "创建分组" }, { "name": "CreateHTTPFirewallRuleGroupResponse", "code": "message CreateHTTPFirewallRuleGroupResponse {\n\tint64 firewallRuleGroupId = 1;\n}", "doc": "" }, - { - "name": "UpdateHTTPFirewallRuleGroupRequest", - "code": "message UpdateHTTPFirewallRuleGroupRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tstring code = 5;\n}", - "doc": "修改分组" - }, { "name": "FindEnabledHTTPFirewallRuleGroupConfigRequest", "code": "message FindEnabledHTTPFirewallRuleGroupConfigRequest {\n\tint64 firewallRuleGroupId = 1;\n}", "doc": "获取分组配置" }, - { - "name": "FindEnabledHTTPFirewallRuleGroupConfigResponse", - "code": "message FindEnabledHTTPFirewallRuleGroupConfigResponse {\n\tbytes firewallRuleGroupJSON = 1;\n}", - "doc": "" - }, - { - "name": "CreateHTTPFirewallRuleGroupRequest", - "code": "message CreateHTTPFirewallRuleGroupRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring code = 4;\n\tstring description = 3;\n}", - "doc": "创建分组" - }, { "name": "FindEnabledHTTPFirewallRuleGroupRequest", "code": "message FindEnabledHTTPFirewallRuleGroupRequest {\n\tint64 firewallRuleGroupId = 1;\n}", @@ -12489,13 +12662,18 @@ "doc": "添加规则集" }, { - "name": "FindEnabledHTTPFirewallRuleSetRequest", - "code": "message FindEnabledHTTPFirewallRuleSetRequest {\n\tint64 firewallRuleSetId = 1;\n}", - "doc": "查找规则集" + "name": "UpdateHTTPFirewallRuleGroupIsOnRequest", + "code": "message UpdateHTTPFirewallRuleGroupIsOnRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 2;\n}", + "doc": "设置是否启用分组" }, { - "name": "FindEnabledHTTPFirewallRuleSetResponse", - "code": "message FindEnabledHTTPFirewallRuleSetResponse {\n\tHTTPFirewallRuleSet firewallRuleSet = 1;\n}", + "name": "UpdateHTTPFirewallRuleGroupRequest", + "code": "message UpdateHTTPFirewallRuleGroupRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tstring code = 5;\n}", + "doc": "修改分组" + }, + { + "name": "FindEnabledHTTPFirewallRuleGroupConfigResponse", + "code": "message FindEnabledHTTPFirewallRuleGroupConfigResponse {\n\tbytes firewallRuleGroupJSON = 1;\n}", "doc": "" }, { @@ -12524,9 +12702,14 @@ "doc": "" }, { - "name": "UpdateHTTPGzipRequest", - "code": "message UpdateHTTPGzipRequest {\n\tint64 httpGzipId = 1;\n\tint32 level = 2;\n\tSizeCapacity minLength = 3;\n\tSizeCapacity maxLength = 4;\n\tbytes condsJSON = 5;\n}", - "doc": "修改Gzip配置" + "name": "FindEnabledHTTPFirewallRuleSetRequest", + "code": "message FindEnabledHTTPFirewallRuleSetRequest {\n\tint64 firewallRuleSetId = 1;\n}", + "doc": "查找规则集" + }, + { + "name": "FindEnabledHTTPFirewallRuleSetResponse", + "code": "message FindEnabledHTTPFirewallRuleSetResponse {\n\tHTTPFirewallRuleSet firewallRuleSet = 1;\n}", + "doc": "" }, { "name": "CreateHTTPGzipRequest", @@ -12549,9 +12732,9 @@ "doc": "" }, { - "name": "FindEnabledHTTPHeaderConfigResponse", - "code": "message FindEnabledHTTPHeaderConfigResponse {\n\tbytes headerJSON = 1;\n}", - "doc": "" + "name": "UpdateHTTPGzipRequest", + "code": "message UpdateHTTPGzipRequest {\n\tint64 httpGzipId = 1;\n\tint32 level = 2;\n\tSizeCapacity minLength = 3;\n\tSizeCapacity maxLength = 4;\n\tbytes condsJSON = 5;\n}", + "doc": "修改Gzip配置" }, { "name": "CreateHTTPHeaderRequest", @@ -12574,25 +12757,15 @@ "doc": "查找配置" }, { - "name": "FindEnabledHTTPHeaderPolicyConfigRequest", - "code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 headerPolicyId = 1;\n}", - "doc": "查找策略" - }, - { - "name": "UpdateHTTPHeaderPolicyAddingHeadersRequest", - "code": "message UpdateHTTPHeaderPolicyAddingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", - "doc": "修改AddHeaders" + "name": "FindEnabledHTTPHeaderConfigResponse", + "code": "message FindEnabledHTTPHeaderConfigResponse {\n\tbytes headerJSON = 1;\n}", + "doc": "" }, { "name": "UpdateHTTPHeaderPolicySettingHeadersRequest", "code": "message UpdateHTTPHeaderPolicySettingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", "doc": "修改SetHeaders" }, - { - "name": "UpdateHTTPHeaderPolicyDeletingHeadersRequest", - "code": "message UpdateHTTPHeaderPolicyDeletingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\trepeated string headerNames = 2;\n}", - "doc": "修改删除的Headers" - }, { "name": "FindEnabledHTTPHeaderPolicyConfigResponse", "code": "message FindEnabledHTTPHeaderPolicyConfigResponse {\n\tbytes headerPolicyJSON = 1;\n}", @@ -12608,6 +12781,16 @@ "code": "message CreateHTTPHeaderPolicyResponse {\n\tint64 headerPolicyId = 1;\n}", "doc": "" }, + { + "name": "UpdateHTTPHeaderPolicyAddingHeadersRequest", + "code": "message UpdateHTTPHeaderPolicyAddingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", + "doc": "修改AddHeaders" + }, + { + "name": "FindEnabledHTTPHeaderPolicyConfigRequest", + "code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 headerPolicyId = 1;\n}", + "doc": "查找策略" + }, { "name": "UpdateHTTPHeaderPolicyAddingTrailersRequest", "code": "message UpdateHTTPHeaderPolicyAddingTrailersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", @@ -12619,39 +12802,9 @@ "doc": "修改ReplaceHeaders" }, { - "name": "UpdateHTTPLocationRequest", - "code": "message UpdateHTTPLocationRequest {\n\tint64 locationId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring pattern = 4;\n\tbool isOn = 5;\n\tbool isBreak = 6;\n\tbytes condsJSON = 7;\n\trepeated string domains = 8;\n}", - "doc": "修改路径规则" - }, - { - "name": "FindEnabledHTTPLocationConfigRequest", - "code": "message FindEnabledHTTPLocationConfigRequest {\n\tint64 locationId = 1;\n}", - "doc": "查找路径规则配置" - }, - { - "name": "FindAndInitHTTPLocationReverseProxyConfigResponse", - "code": "message FindAndInitHTTPLocationReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindAndInitHTTPLocationWebConfigResponse", - "code": "message FindAndInitHTTPLocationWebConfigResponse {\n\tbytes webJSON = 1;\n}", - "doc": "" - }, - { - "name": "CreateHTTPLocationRequest", - "code": "message CreateHTTPLocationRequest {\n\tint64 parentId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring pattern = 4;\n\tbool isBreak = 5;\n\tbytes condsJSON = 6;\n\trepeated string domains = 7;\n}", - "doc": "创建路径规则" - }, - { - "name": "CreateHTTPLocationResponse", - "code": "message CreateHTTPLocationResponse {\n\tint64 locationId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledHTTPLocationConfigResponse", - "code": "message FindEnabledHTTPLocationConfigResponse {\n\tbytes locationJSON = 1;\n}", - "doc": "" + "name": "UpdateHTTPHeaderPolicyDeletingHeadersRequest", + "code": "message UpdateHTTPHeaderPolicyDeletingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\trepeated string headerNames = 2;\n}", + "doc": "修改删除的Headers" }, { "name": "DeleteHTTPLocationRequest", @@ -12668,11 +12821,51 @@ "code": "message FindAndInitHTTPLocationWebConfigRequest {\n\tint64 locationId = 1;\n}", "doc": "初始化Web设置" }, + { + "name": "CreateHTTPLocationRequest", + "code": "message CreateHTTPLocationRequest {\n\tint64 parentId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring pattern = 4;\n\tbool isBreak = 5;\n\tbytes condsJSON = 6;\n\trepeated string domains = 7;\n}", + "doc": "创建路径规则" + }, + { + "name": "CreateHTTPLocationResponse", + "code": "message CreateHTTPLocationResponse {\n\tint64 locationId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPLocationRequest", + "code": "message UpdateHTTPLocationRequest {\n\tint64 locationId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring pattern = 4;\n\tbool isOn = 5;\n\tbool isBreak = 6;\n\tbytes condsJSON = 7;\n\trepeated string domains = 8;\n}", + "doc": "修改路径规则" + }, + { + "name": "FindEnabledHTTPLocationConfigRequest", + "code": "message FindEnabledHTTPLocationConfigRequest {\n\tint64 locationId = 1;\n}", + "doc": "查找路径规则配置" + }, + { + "name": "FindEnabledHTTPLocationConfigResponse", + "code": "message FindEnabledHTTPLocationConfigResponse {\n\tbytes locationJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAndInitHTTPLocationReverseProxyConfigResponse", + "code": "message FindAndInitHTTPLocationReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "doc": "" + }, + { + "name": "FindAndInitHTTPLocationWebConfigResponse", + "code": "message FindAndInitHTTPLocationWebConfigResponse {\n\tbytes webJSON = 1;\n}", + "doc": "" + }, { "name": "UpdateHTTPLocationReverseProxyRequest", "code": "message UpdateHTTPLocationReverseProxyRequest {\n\tint64 locationId = 1;\n\tbytes reverseProxyJSON = 2;\n}", "doc": "修改反向代理设置" }, + { + "name": "CreateHTTPPageResponse", + "code": "message CreateHTTPPageResponse {\n\tint64 httpPageId = 1;\n}", + "doc": "" + }, { "name": "UpdateHTTPPageRequest", "code": "message UpdateHTTPPageRequest {\n\tint64 httpPageId = 1;\n\trepeated string statusList = 2;\n\tstring bodyType = 6;\n\tstring url = 3;\n\tstring body = 5;\n\tint32 newStatus = 4;\n}", @@ -12693,11 +12886,6 @@ "code": "message CreateHTTPPageRequest {\n\trepeated string statusList = 1;\n\tstring bodyType = 5;\n\tstring url = 2;\n\tstring body = 4;\n\tint32 newStatus = 3;\n}", "doc": "创建Page" }, - { - "name": "CreateHTTPPageResponse", - "code": "message CreateHTTPPageResponse {\n\tint64 httpPageId = 1;\n}", - "doc": "" - }, { "name": "CreateHTTPRewriteRuleRequest", "code": "message CreateHTTPRewriteRuleRequest {\n\tstring pattern = 1;\n\tstring replace = 2;\n\tstring mode = 3;\n\tint32 redirectStatus = 4;\n\tbool isBreak = 5;\n\tstring proxyHost = 6;\n\tbool isOn = 7;\n\tbool withQuery = 8;\n\tbytes condsJSON = 9;\n}", @@ -12714,44 +12902,24 @@ "doc": "修改重写规则" }, { - "name": "FindEnabledHTTPWebResponse", - "code": "message FindEnabledHTTPWebResponse {\n\tHTTPWeb httpWeb = 1;\n}", - "doc": "" + "name": "CreateHTTPWebRequest", + "code": "message CreateHTTPWebRequest {\n\tbytes rootJSON = 1;\n}", + "doc": "创建Web配置" }, { - "name": "UpdateHTTPWebRequest", - "code": "message UpdateHTTPWebRequest {\n\tint64 httpWebId = 1;\n\tbytes rootJSON = 2;\n}", - "doc": "更改Web配置" + "name": "UpdateHTTPWebPagesRequest", + "code": "message UpdateHTTPWebPagesRequest {\n\tint64 httpWebId = 1;\n\tbytes pagesJSON = 2;\n}", + "doc": "更改Pages" }, { - "name": "UpdateHTTPWebLocationsRequest", - "code": "message UpdateHTTPWebLocationsRequest {\n\tint64 httpWebId = 1;\n\tbytes locationsJSON = 3;\n}", - "doc": "更改路径规则配置" + "name": "UpdateHTTPWebCacheRequest", + "code": "message UpdateHTTPWebCacheRequest {\n\tint64 httpWebId = 1;\n\tbytes cacheJSON = 2; // @link json:http_cache_config\n}", + "doc": "更改缓存配置" }, { - "name": "UpdateHTTPWebUAMRequest", - "code": "message UpdateHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n\tbytes uamJSON = 2;\n}", - "doc": "修改服务UAM设置" - }, - { - "name": "UpdateHTTPWebRemoteAddrRequest", - "code": "message UpdateHTTPWebRemoteAddrRequest {\n\tint64 httpWebId = 1;\n\tbytes remoteAddrJSON = 2; // @link json:http_remote_addr_config\n}", - "doc": "更改RemoteAddr配置" - }, - { - "name": "UpdateHTTPWebRequestHeaderRequest", - "code": "message UpdateHTTPWebRequestHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", - "doc": "更改请求Header策略" - }, - { - "name": "UpdateHTTPWebShutdownRequest", - "code": "message UpdateHTTPWebShutdownRequest {\n\tint64 httpWebId = 1;\n\tbytes shutdownJSON = 2;\n}", - "doc": "更改Shutdown" - }, - { - "name": "FindEnabledHTTPWebConfigResponse", - "code": "message FindEnabledHTTPWebConfigResponse {\n\tbytes httpWebJSON = 1;\n}", - "doc": "" + "name": "UpdateHTTPWebRedirectToHTTPSRequest", + "code": "message UpdateHTTPWebRedirectToHTTPSRequest {\n\tint64 httpWebId = 1;\n\tbytes redirectToHTTPSJSON = 2;\n}", + "doc": "更改跳转到HTTPS设置" }, { "name": "UpdateHTTPWebCompressionRequest", @@ -12759,53 +12927,118 @@ "doc": "更改压缩配置" }, { - "name": "UpdateHTTPWebRewriteRulesRequest", - "code": "message UpdateHTTPWebRewriteRulesRequest {\n\tint64 httpWebId = 1;\n\tbytes rewriteRulesJSON = 2;\n}", - "doc": "更改重写规则设置" + "name": "UpdateHTTPWebShutdownRequest", + "code": "message UpdateHTTPWebShutdownRequest {\n\tint64 httpWebId = 1;\n\tbytes shutdownJSON = 2;\n}", + "doc": "更改Shutdown" }, { - "name": "UpdateHTTPWebAuthRequest", - "code": "message UpdateHTTPWebAuthRequest {\n\tint64 httpWebId = 1;\n\tbytes authJSON = 2;\n}", - "doc": "更改认证设置" - }, - { - "name": "UpdateHTTPWebRequestScriptsRequest", - "code": "message UpdateHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n\tbytes requestScriptsJSON = 2;\n}", - "doc": "修改请求脚本" - }, - { - "name": "FindHTTPWebRequestScriptsResponse", - "code": "message FindHTTPWebRequestScriptsResponse {\n\tbytes requestScriptsJSON = 1;\n}", - "doc": "" - }, - { - "name": "CreateHTTPWebResponse", - "code": "message CreateHTTPWebResponse {\n\tint64 httpWebId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledHTTPWebConfigRequest", - "code": "message FindEnabledHTTPWebConfigRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找Web配置" - }, - { - "name": "UpdateHTTPWebWebPRequest", - "code": "message UpdateHTTPWebWebPRequest {\n\tint64 httpWebId = 1;\n\tbytes webpJSON = 2;\n}", - "doc": "更改WebP配置" + "name": "UpdateHTTPWebHostRedirectsRequest", + "code": "message UpdateHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n\tbytes hostRedirectsJSON = 2;\n}", + "doc": "更改主机跳转设置" }, { "name": "UpdateHTTPWebCommonRequest", "code": "message UpdateHTTPWebCommonRequest {\n\tint64 httpWebId = 1;\n\tbool mergeSlashes = 2;\n}", "doc": "更改通用设置" }, + { + "name": "FindHTTPWebRequestLimitResponse", + "code": "message FindHTTPWebRequestLimitResponse {\n\tbytes requestLimitJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPWebRequestScriptsRequest", + "code": "message UpdateHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n\tbytes requestScriptsJSON = 2;\n}", + "doc": "修改请求脚本" + }, + { + "name": "FindHTTPWebRequestScriptsRequest", + "code": "message FindHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找请求脚本" + }, + { + "name": "FindEnabledHTTPWebResponse", + "code": "message FindEnabledHTTPWebResponse {\n\tHTTPWeb httpWeb = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPWebWebsocketRequest", + "code": "message UpdateHTTPWebWebsocketRequest {\n\tint64 httpWebId = 1;\n\tbytes websocketJSON = 2; // @link json:http_websocket_ref\n}", + "doc": "更改Websocket设置" + }, + { + "name": "UpdateHTTPWebUAMRequest", + "code": "message UpdateHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n\tbytes uamJSON = 2;\n}", + "doc": "修改服务UAM设置" + }, + { + "name": "CreateHTTPWebResponse", + "code": "message CreateHTTPWebResponse {\n\tint64 httpWebId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPWebRemoteAddrRequest", + "code": "message UpdateHTTPWebRemoteAddrRequest {\n\tint64 httpWebId = 1;\n\tbytes remoteAddrJSON = 2; // @link json:http_remote_addr_config\n}", + "doc": "更改RemoteAddr配置" + }, + { + "name": "FindHTTPWebRequestLimitRequest", + "code": "message FindHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找请求限制" + }, + { + "name": "FindHTTPWebUAMRequest", + "code": "message FindHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找服务UAM设置" + }, + { + "name": "UpdateHTTPWebRewriteRulesRequest", + "code": "message UpdateHTTPWebRewriteRulesRequest {\n\tint64 httpWebId = 1;\n\tbytes rewriteRulesJSON = 2;\n}", + "doc": "更改重写规则设置" + }, + { + "name": "FindEnabledHTTPWebRequest", + "code": "message FindEnabledHTTPWebRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找Web信息" + }, + { + "name": "FindEnabledHTTPWebConfigRequest", + "code": "message FindEnabledHTTPWebConfigRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找Web配置" + }, + { + "name": "UpdateHTTPWebCharsetRequest", + "code": "message UpdateHTTPWebCharsetRequest {\n\tint64 httpWebId = 1;\n\tbytes charsetJSON = 2;\n}", + "doc": "更改字符集配置" + }, + { + "name": "UpdateHTTPWebResponseHeaderRequest", + "code": "message UpdateHTTPWebResponseHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", + "doc": "更改响应Header策略" + }, + { + "name": "UpdateHTTPWebAccessLogRequest", + "code": "message UpdateHTTPWebAccessLogRequest {\n\tint64 httpWebId = 1;\n\tbytes accessLogJSON = 2; // @link json:http_access_log_ref\n}", + "doc": "更改访问日志配置" + }, + { + "name": "UpdateHTTPWebLocationsRequest", + "code": "message UpdateHTTPWebLocationsRequest {\n\tint64 httpWebId = 1;\n\tbytes locationsJSON = 3;\n}", + "doc": "更改路径规则配置" + }, + { + "name": "UpdateHTTPWebFastcgiRequest", + "code": "message UpdateHTTPWebFastcgiRequest {\n\tint64 httpWebId = 1;\n\tbytes fastcgiJSON = 2;\n}", + "doc": "更改Fastcgi设置" + }, { "name": "FindHTTPWebHostRedirectsRequest", "code": "message FindHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n}", "doc": "查找主机跳转设置" }, { - "name": "FindHTTPWebRequestLimitResponse", - "code": "message FindHTTPWebRequestLimitResponse {\n\tbytes requestLimitJSON = 1;\n}", + "name": "FindEnabledHTTPWebConfigResponse", + "code": "message FindEnabledHTTPWebConfigResponse {\n\tbytes httpWebJSON = 1;\n}", "doc": "" }, { @@ -12814,34 +13047,14 @@ "doc": "更改防火墙设置" }, { - "name": "UpdateHTTPWebRedirectToHTTPSRequest", - "code": "message UpdateHTTPWebRedirectToHTTPSRequest {\n\tint64 httpWebId = 1;\n\tbytes redirectToHTTPSJSON = 2;\n}", - "doc": "更改跳转到HTTPS设置" + "name": "FindHTTPWebRequestScriptsResponse", + "code": "message FindHTTPWebRequestScriptsResponse {\n\tbytes requestScriptsJSON = 1;\n}", + "doc": "" }, { - "name": "UpdateHTTPWebWebsocketRequest", - "code": "message UpdateHTTPWebWebsocketRequest {\n\tint64 httpWebId = 1;\n\tbytes websocketJSON = 2; // @link json:http_websocket_ref\n}", - "doc": "更改Websocket设置" - }, - { - "name": "FindHTTPWebUAMRequest", - "code": "message FindHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找服务UAM设置" - }, - { - "name": "UpdateHTTPWebResponseHeaderRequest", - "code": "message UpdateHTTPWebResponseHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", - "doc": "更改响应Header策略" - }, - { - "name": "UpdateHTTPWebPagesRequest", - "code": "message UpdateHTTPWebPagesRequest {\n\tint64 httpWebId = 1;\n\tbytes pagesJSON = 2;\n}", - "doc": "更改Pages" - }, - { - "name": "UpdateHTTPWebAccessLogRequest", - "code": "message UpdateHTTPWebAccessLogRequest {\n\tint64 httpWebId = 1;\n\tbytes accessLogJSON = 2; // @link json:http_access_log_ref\n}", - "doc": "更改访问日志配置" + "name": "UpdateHTTPWebRequestHeaderRequest", + "code": "message UpdateHTTPWebRequestHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", + "doc": "更改请求Header策略" }, { "name": "UpdateHTTPWebStatRequest", @@ -12849,65 +13062,35 @@ "doc": "更改统计配置" }, { - "name": "UpdateHTTPWebFastcgiRequest", - "code": "message UpdateHTTPWebFastcgiRequest {\n\tint64 httpWebId = 1;\n\tbytes fastcgiJSON = 2;\n}", - "doc": "更改Fastcgi设置" + "name": "FindHTTPWebHostRedirectsResponse", + "code": "message FindHTTPWebHostRedirectsResponse {\n\tbytes hostRedirectsJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPWebAuthRequest", + "code": "message UpdateHTTPWebAuthRequest {\n\tint64 httpWebId = 1;\n\tbytes authJSON = 2;\n}", + "doc": "更改认证设置" }, { "name": "UpdateHTTPWebRequestLimitRequest", "code": "message UpdateHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n\tbytes requestLimitJSON = 2;\n}", "doc": "修改请求限制" }, + { + "name": "UpdateHTTPWebRequest", + "code": "message UpdateHTTPWebRequest {\n\tint64 httpWebId = 1;\n\tbytes rootJSON = 2;\n}", + "doc": "更改Web配置" + }, + { + "name": "UpdateHTTPWebWebPRequest", + "code": "message UpdateHTTPWebWebPRequest {\n\tint64 httpWebId = 1;\n\tbytes webpJSON = 2;\n}", + "doc": "更改WebP配置" + }, { "name": "FindHTTPWebUAMResponse", "code": "message FindHTTPWebUAMResponse {\n\tbytes uamJSON = 1;\n}", "doc": "" }, - { - "name": "CreateHTTPWebRequest", - "code": "message CreateHTTPWebRequest {\n\tbytes rootJSON = 1;\n}", - "doc": "创建Web配置" - }, - { - "name": "FindEnabledHTTPWebRequest", - "code": "message FindEnabledHTTPWebRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找Web信息" - }, - { - "name": "UpdateHTTPWebCharsetRequest", - "code": "message UpdateHTTPWebCharsetRequest {\n\tint64 httpWebId = 1;\n\tbytes charsetJSON = 2;\n}", - "doc": "更改字符集配置" - }, - { - "name": "UpdateHTTPWebCacheRequest", - "code": "message UpdateHTTPWebCacheRequest {\n\tint64 httpWebId = 1;\n\tbytes cacheJSON = 2; // @link json:http_cache_config\n}", - "doc": "更改缓存配置" - }, - { - "name": "UpdateHTTPWebHostRedirectsRequest", - "code": "message UpdateHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n\tbytes hostRedirectsJSON = 2;\n}", - "doc": "更改主机跳转设置" - }, - { - "name": "FindHTTPWebHostRedirectsResponse", - "code": "message FindHTTPWebHostRedirectsResponse {\n\tbytes hostRedirectsJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindHTTPWebRequestLimitRequest", - "code": "message FindHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找请求限制" - }, - { - "name": "FindHTTPWebRequestScriptsRequest", - "code": "message FindHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找请求脚本" - }, - { - "name": "CreateHTTPWebsocketRequest", - "code": "message CreateHTTPWebsocketRequest {\n\tbytes handshakeTimeoutJSON = 1;\n\tbool allowAllOrigins = 2;\n\trepeated string allowedOrigins = 3;\n\tbool requestSameOrigin = 4;\n\tstring requestOrigin = 5;\n}", - "doc": "创建Websocket配置" - }, { "name": "CreateHTTPWebsocketResponse", "code": "message CreateHTTPWebsocketResponse {\n\tint64 websocketId = 1;\n}", @@ -12919,75 +13102,80 @@ "doc": "修改Websocket配置" }, { - "name": "CheckIPItemStatusRequest", - "code": "message CheckIPItemStatusRequest {\n\tint64 ipListId = 1;\n\tstring ip = 2;\n}", - "doc": "检查IP状态" + "name": "CreateHTTPWebsocketRequest", + "code": "message CreateHTTPWebsocketRequest {\n\tbytes handshakeTimeoutJSON = 1;\n\tbool allowAllOrigins = 2;\n\trepeated string allowedOrigins = 3;\n\tbool requestSameOrigin = 4;\n\tstring requestOrigin = 5;\n}", + "doc": "创建Websocket配置" }, { - "name": "ExistsEnabledIPItemResponse", - "code": "message ExistsEnabledIPItemResponse {\n\tbool exists = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledIPItemsRequest", - "code": "message CountAllEnabledIPItemsRequest {\n\tstring ip = 1;\n\tbool globalOnly = 2;\n\tbool unread = 3;\n\tstring eventLevel = 4;\n\tstring listType = 5;\n}", - "doc": "计算所有IP数量" - }, - { - "name": "UpdateIPItemsReadRequest", - "code": "message UpdateIPItemsReadRequest {\n\n}", - "doc": "设置所有为已读" + "name": "ExistsEnabledIPItemRequest", + "code": "message ExistsEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", + "doc": "检查IP是否存在" }, { "name": "ListAllEnabledIPItemsResponse", "code": "message ListAllEnabledIPItemsResponse {\n\trepeated Result results = 1;\n\n\n\tmessage Result {\n\t\tIPList ipList = 1; // 所属名单\n\t\tIPItem ipItem = 2; // IP信息\n\t\tServer server = 3; // 所属服务\n\t\tHTTPFirewallPolicy httpFirewallPolicy = 4; // 所属WAF策略\n\t}\n}", "doc": "" }, - { - "name": "CreateIPItemResponse", - "code": "message CreateIPItemResponse {\n\tint64 ipItemId = 1;\n}", - "doc": "" - }, { "name": "DeleteIPItemRequest", "code": "message DeleteIPItemRequest {\n\tint64 ipItemId = 1; // IP条目的ID\n\n\tstring ipFrom = 2; // v0.4.8新增,开始IP,和ipItemId二选一\n\tstring ipTo = 3; // v0.4.8新增,结束IP,和ipItemId二选一\n\tint64 ipListId = 4; // v0.4.8新增,IP列表,IP所在的IP列表,如果不指定,则会删除所有IP列表中的相关IP信息\n}", "doc": "删除IP\n可以使用 ipItemId 删除,也可以使用 ipFrom+ipTo+ipListId 删除,如果只是单个IP,则不需要指定ipTo" }, + { + "name": "ListIPItemsWithListIdRequest", + "code": "message ListIPItemsWithListIdRequest {\n\tint64 ipListId = 1;\n\tstring keyword = 4;\n\tstring ipFrom = 5;\n\tstring ipTo = 6;\n\tstring eventLevel = 7;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页的IP" + }, + { + "name": "FindEnabledIPItemRequest", + "code": "message FindEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", + "doc": "查找单个IP" + }, { "name": "FindEnabledIPItemResponse", "code": "message FindEnabledIPItemResponse {\n\tIPItem ipItem = 1;\n}", "doc": "" }, + { + "name": "UpdateIPItemsReadRequest", + "code": "message UpdateIPItemsReadRequest {\n\n}", + "doc": "设置所有为已读" + }, + { + "name": "CreateIPItemResponse", + "code": "message CreateIPItemResponse {\n\tint64 ipItemId = 1;\n}", + "doc": "" + }, + { + "name": "CheckIPItemStatusResponse", + "code": "message CheckIPItemStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPItem ipItem = 5; // 匹配的IPItem\n}", + "doc": "" + }, + { + "name": "CountAllEnabledIPItemsRequest", + "code": "message CountAllEnabledIPItemsRequest {\n\tstring ip = 1;\n\tbool globalOnly = 2;\n\tbool unread = 3;\n\tstring eventLevel = 4;\n\tstring listType = 5;\n}", + "doc": "计算所有IP数量" + }, + { + "name": "ListAllEnabledIPItemsRequest", + "code": "message ListAllEnabledIPItemsRequest {\n\tstring ip = 1;\n\tbool globalOnly = 2;\n\tbool unread = 5;\n\tstring eventLevel = 6;\n\tstring listType = 7;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出所有名单中的IP" + }, { "name": "ListIPItemsAfterVersionRequest", "code": "message ListIPItemsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", "doc": "根据版本列出一组IP" }, { - "name": "ListIPItemsAfterVersionResponse", - "code": "message ListIPItemsAfterVersionResponse {\n\trepeated IPItem ipItems = 1;\n}", + "name": "CheckIPItemStatusRequest", + "code": "message CheckIPItemStatusRequest {\n\tint64 ipListId = 1;\n\tstring ip = 2;\n}", + "doc": "检查IP状态" + }, + { + "name": "ExistsEnabledIPItemResponse", + "code": "message ExistsEnabledIPItemResponse {\n\tbool exists = 1;\n}", "doc": "" }, - { - "name": "DeleteIPItemsRequest", - "code": "message DeleteIPItemsRequest {\n\trepeated int64 ipItemIds = 1;\n}", - "doc": "批量删除IP" - }, - { - "name": "CountIPItemsWithListIdRequest", - "code": "message CountIPItemsWithListIdRequest {\n\tint64 ipListId = 1;\n\tstring keyword = 2;\n\tstring ipFrom = 3;\n\tstring ipTo = 4;\n\tstring eventLevel = 5;\n}", - "doc": "计算IP数量" - }, - { - "name": "ListIPItemsWithListIdRequest", - "code": "message ListIPItemsWithListIdRequest {\n\tint64 ipListId = 1;\n\tstring keyword = 4;\n\tstring ipFrom = 5;\n\tstring ipTo = 6;\n\tstring eventLevel = 7;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页的IP" - }, - { - "name": "ExistsEnabledIPItemRequest", - "code": "message ExistsEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", - "doc": "检查IP是否存在" - }, { "name": "CreateIPItemRequest", "code": "message CreateIPItemRequest {\n\tint64 ipListId = 1; // IP列表ID\n\tstring ipFrom = 2; // 开始IP\n\tstring ipTo = 3; // 结束IP(可选)\n\tint64 expiredAt = 4; // 过期时间戳(可选)\n\tstring reason = 5; // 加入理由(可选)\n\tstring type = 6; // 类型\n\tstring eventLevel = 7; // 级别\n\n\tint64 nodeId = 8; // 所属节点ID\n\tint64 serverId = 9; // 所属服务ID\n\n\tint64 sourceNodeId = 10;\n\tint64 sourceServerId = 11;\n\tint64 sourceHTTPFirewallPolicyId = 12;\n\tint64 sourceHTTPFirewallRuleGroupId = 13;\n\tint64 sourceHTTPFirewallRuleSetId = 14;\n}", @@ -12999,9 +13187,9 @@ "doc": "修改IP" }, { - "name": "FindEnabledIPItemRequest", - "code": "message FindEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", - "doc": "查找单个IP" + "name": "CountIPItemsWithListIdRequest", + "code": "message CountIPItemsWithListIdRequest {\n\tint64 ipListId = 1;\n\tstring keyword = 2;\n\tstring ipFrom = 3;\n\tstring ipTo = 4;\n\tstring eventLevel = 5;\n}", + "doc": "计算IP数量" }, { "name": "ListIPItemsWithListIdResponse", @@ -13009,73 +13197,38 @@ "doc": "" }, { - "name": "CheckIPItemStatusResponse", - "code": "message CheckIPItemStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPItem ipItem = 5; // 匹配的IPItem\n}", + "name": "DeleteIPItemsRequest", + "code": "message DeleteIPItemsRequest {\n\trepeated int64 ipItemIds = 1;\n}", + "doc": "批量删除IP" + }, + { + "name": "ListIPItemsAfterVersionResponse", + "code": "message ListIPItemsAfterVersionResponse {\n\trepeated IPItem ipItems = 1;\n}", "doc": "" }, - { - "name": "ListAllEnabledIPItemsRequest", - "code": "message ListAllEnabledIPItemsRequest {\n\tstring ip = 1;\n\tbool globalOnly = 2;\n\tbool unread = 5;\n\tstring eventLevel = 6;\n\tstring listType = 7;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出所有名单中的IP" - }, - { - "name": "FindEnabledIPLibraryResponse", - "code": "message FindEnabledIPLibraryResponse {\n\tIPLibrary ipLibrary = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledIPLibrariesWithTypeRequest", - "code": "message FindAllEnabledIPLibrariesWithTypeRequest {\n\tstring type = 1;\n}", - "doc": "列出某个类型的所有IP库" - }, - { - "name": "LookupIPRegionRequest", - "code": "message LookupIPRegionRequest {\n\tstring ip = 1;\n}", - "doc": "查询某个IP信息" - }, { "name": "LookupIPRegionsResponse", "code": "message LookupIPRegionsResponse {\n\tmap\u003cstring, IPRegion\u003e ipRegionMap = 1;\n}", "doc": "" }, - { - "name": "FindEnabledIPLibraryRequest", - "code": "message FindEnabledIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", - "doc": "查找单个IP库" - }, - { - "name": "IPRegion", - "code": "message IPRegion {\n\tstring country = 1;\n\tstring region = 2;\n\tstring province = 3;\n\tstring city = 4;\n\tstring isp = 5;\n\tint64 countryId = 6;\n\tint64 provinceId = 7;\n\tstring summary = 8; // 完整的地区组合\n}", - "doc": "IP信息" - }, - { - "name": "DeleteIPLibraryRequest", - "code": "message DeleteIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", - "doc": "删除IP库" - }, - { - "name": "FindAllEnabledIPLibrariesWithTypeResponse", - "code": "message FindAllEnabledIPLibrariesWithTypeResponse {\n\trepeated IPLibrary ipLibraries = 1;\n}", - "doc": "" - }, { "name": "CreateIPLibraryResponse", "code": "message CreateIPLibraryResponse {\n\tint64 ipLibraryId = 1;\n}", "doc": "" }, + { + "name": "FindEnabledIPLibraryResponse", + "code": "message FindEnabledIPLibraryResponse {\n\tIPLibrary ipLibrary = 1;\n}", + "doc": "" + }, { "name": "FindLatestIPLibraryWithTypeRequest", "code": "message FindLatestIPLibraryWithTypeRequest {\n\tstring type = 1;\n}", "doc": "查找最新的IP库" }, { - "name": "FindLatestIPLibraryWithTypeResponse", - "code": "message FindLatestIPLibraryWithTypeResponse {\n\tIPLibrary ipLibrary = 1;\n}", - "doc": "" - }, - { - "name": "LookupIPRegionResponse", - "code": "message LookupIPRegionResponse {\n\tIPRegion ipRegion = 1;\n}", + "name": "FindAllEnabledIPLibrariesWithTypeResponse", + "code": "message FindAllEnabledIPLibrariesWithTypeResponse {\n\trepeated IPLibrary ipLibraries = 1;\n}", "doc": "" }, { @@ -13089,30 +13242,40 @@ "doc": "创建IP库" }, { - "name": "FindAllIPLibraryArtifactsResponse", - "code": "message FindAllIPLibraryArtifactsResponse {\n\trepeated IPLibraryArtifact ipLibraryArtifacts = 1;\n}", + "name": "FindAllEnabledIPLibrariesWithTypeRequest", + "code": "message FindAllEnabledIPLibrariesWithTypeRequest {\n\tstring type = 1;\n}", + "doc": "列出某个类型的所有IP库" + }, + { + "name": "LookupIPRegionRequest", + "code": "message LookupIPRegionRequest {\n\tstring ip = 1;\n}", + "doc": "查询某个IP信息" + }, + { + "name": "LookupIPRegionResponse", + "code": "message LookupIPRegionResponse {\n\tIPRegion ipRegion = 1;\n}", "doc": "" }, { - "name": "FindIPLibraryArtifactRequest", - "code": "message FindIPLibraryArtifactRequest {\n\tint64 ipLibraryArtifactId = 1;\n}", - "doc": "查找单个制品信息" + "name": "FindEnabledIPLibraryRequest", + "code": "message FindEnabledIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", + "doc": "查找单个IP库" }, { - "name": "FindIPLibraryArtifactResponse", - "code": "message FindIPLibraryArtifactResponse {\n\tIPLibraryArtifact ipLibraryArtifact = 1;\n}", + "name": "DeleteIPLibraryRequest", + "code": "message DeleteIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", + "doc": "删除IP库" + }, + { + "name": "IPRegion", + "code": "message IPRegion {\n\tstring country = 1;\n\tstring region = 2;\n\tstring province = 3;\n\tstring city = 4;\n\tstring isp = 5;\n\tint64 countryId = 6;\n\tint64 provinceId = 7;\n\tstring summary = 8; // 完整的地区组合\n}", + "doc": "IP信息" + }, + { + "name": "FindLatestIPLibraryWithTypeResponse", + "code": "message FindLatestIPLibraryWithTypeResponse {\n\tIPLibrary ipLibrary = 1;\n}", "doc": "" }, - { - "name": "FindPublicIPLibraryArtifactRequest", - "code": "message FindPublicIPLibraryArtifactRequest {\n\n}", - "doc": "查找当前正在使用的制品" - }, - { - "name": "CreateIPLibraryArtifactRequest", - "code": "message CreateIPLibraryArtifactRequest {\n\tint64 fileId = 1;\n\tbytes metaJSON = 2;\n\tstring name = 3;\n}", - "doc": "创建制品" - }, { "name": "CreateIPLibraryArtifactResponse", "code": "message CreateIPLibraryArtifactResponse {\n\tint64 ipLibraryArtifactId = 1;\n}", @@ -13128,6 +13291,31 @@ "code": "message FindAllIPLibraryArtifactsRequest {\n\n}", "doc": "查询所有制品" }, + { + "name": "FindIPLibraryArtifactResponse", + "code": "message FindIPLibraryArtifactResponse {\n\tIPLibraryArtifact ipLibraryArtifact = 1;\n}", + "doc": "" + }, + { + "name": "FindPublicIPLibraryArtifactRequest", + "code": "message FindPublicIPLibraryArtifactRequest {\n\n}", + "doc": "查找当前正在使用的制品" + }, + { + "name": "CreateIPLibraryArtifactRequest", + "code": "message CreateIPLibraryArtifactRequest {\n\tint64 fileId = 1;\n\tbytes metaJSON = 2;\n\tstring name = 3;\n}", + "doc": "创建制品" + }, + { + "name": "FindAllIPLibraryArtifactsResponse", + "code": "message FindAllIPLibraryArtifactsResponse {\n\trepeated IPLibraryArtifact ipLibraryArtifacts = 1;\n}", + "doc": "" + }, + { + "name": "FindIPLibraryArtifactRequest", + "code": "message FindIPLibraryArtifactRequest {\n\tint64 ipLibraryArtifactId = 1;\n}", + "doc": "查找单个制品信息" + }, { "name": "FindPublicIPLibraryArtifactResponse", "code": "message FindPublicIPLibraryArtifactResponse {\n\tIPLibraryArtifact ipLibraryArtifact = 1;\n}", @@ -13138,45 +13326,20 @@ "code": "message DeleteIPLibraryArtifactRequest {\n\tint64 ipLibraryArtifactId = 1;\n}", "doc": "删除制品" }, - { - "name": "FindAllUnfinishedIPLibraryFilesResponse", - "code": "message FindAllUnfinishedIPLibraryFilesResponse {\n\trepeated IPLibraryFile ipLibraryFiles = 1;\n}", - "doc": "" - }, { "name": "CheckProvincesWithIPLibraryFileIdRequest", "code": "message CheckProvincesWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", "doc": "检查省份/州" }, { - "name": "CheckCitiesWithIPLibraryFileIdRequest", - "code": "message CheckCitiesWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "检查城市/市" - }, - { - "name": "GenerateIPLibraryFileRequest", - "code": "message GenerateIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "生成IP库文件" - }, - { - "name": "CheckCitiesWithIPLibraryFileIdResponse", - "code": "message CheckCitiesWithIPLibraryFileIdResponse {\n\trepeated MissingCity missingCities = 1;\n\n\n\tmessage MissingCity {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\tstring cityName = 3;\n\t\trepeated RegionCity similarCities = 4;\n\t}\n}", + "name": "CheckTownsWithIPLibraryFileIdResponse", + "code": "message CheckTownsWithIPLibraryFileIdResponse {\n\trepeated MissingTown missingTowns = 1;\n\n\n\tmessage MissingTown {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\tstring cityName = 3;\n\t\tstring townName = 4;\n\t\trepeated RegionTown similarTowns = 5;\n\t}\n}", "doc": "" }, { - "name": "FindAllFinishedIPLibraryFilesRequest", - "code": "message FindAllFinishedIPLibraryFilesRequest {\n\n}", - "doc": "查找所有已完成的IP库文件" - }, - { - "name": "FindIPLibraryFileRequest", - "code": "message FindIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "查找单个IP库文件" - }, - { - "name": "FindIPLibraryFileResponse", - "code": "message FindIPLibraryFileResponse {\n\tIPLibraryFile ipLibraryFile = 1;\n}", - "doc": "" + "name": "UpdateIPLibraryFileFinishedRequest", + "code": "message UpdateIPLibraryFileFinishedRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "设置某个IP库为已完成" }, { "name": "CreateIPLibraryFileRequest", @@ -13184,8 +13347,48 @@ "doc": "创建IP库文件" }, { - "name": "CheckProvincesWithIPLibraryFileIdResponse", - "code": "message CheckProvincesWithIPLibraryFileIdResponse {\n\trepeated MissingProvince missingProvinces = 1;\n\n\n\tmessage MissingProvince {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\trepeated RegionProvince similarProvinces = 3;\n\t}\n}", + "name": "CheckCountriesWithIPLibraryFileIdRequest", + "code": "message CheckCountriesWithIPLibraryFileIdRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查国家/地区" + }, + { + "name": "CheckCountriesWithIPLibraryFileIdResponse", + "code": "message CheckCountriesWithIPLibraryFileIdResponse {\n\trepeated MissingCountry missingCountries = 1;\n\n\n\tmessage MissingCountry {\n\t\tstring countryName = 1;\n\t\trepeated RegionCountry similarCountries = 2;\n\t}\n}", + "doc": "" + }, + { + "name": "CheckProvidersWithIPLibraryFileIdRequest", + "code": "message CheckProvidersWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查ISP运营商" + }, + { + "name": "DeleteIPLibraryFileRequest", + "code": "message DeleteIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "删除IP库文件" + }, + { + "name": "FindIPLibraryFileRequest", + "code": "message FindIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "查找单个IP库文件" + }, + { + "name": "CreateIPLibraryFileResponse", + "code": "message CreateIPLibraryFileResponse {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "" + }, + { + "name": "FindIPLibraryFileResponse", + "code": "message FindIPLibraryFileResponse {\n\tIPLibraryFile ipLibraryFile = 1;\n}", + "doc": "" + }, + { + "name": "CheckTownsWithIPLibraryFileIdRequest", + "code": "message CheckTownsWithIPLibraryFileIdRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查区县" + }, + { + "name": "CheckCitiesWithIPLibraryFileIdResponse", + "code": "message CheckCitiesWithIPLibraryFileIdResponse {\n\trepeated MissingCity missingCities = 1;\n\n\n\tmessage MissingCity {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\tstring cityName = 3;\n\t\trepeated RegionCity similarCities = 4;\n\t}\n}", "doc": "" }, { @@ -13199,70 +13402,35 @@ "doc": "查找所有未完成的IP库文件" }, { - "name": "CheckCountriesWithIPLibraryFileIdRequest", - "code": "message CheckCountriesWithIPLibraryFileIdRequest {\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "检查国家/地区" - }, - { - "name": "CheckTownsWithIPLibraryFileIdResponse", - "code": "message CheckTownsWithIPLibraryFileIdResponse {\n\trepeated MissingTown missingTowns = 1;\n\n\n\tmessage MissingTown {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\tstring cityName = 3;\n\t\tstring townName = 4;\n\t\trepeated RegionTown similarTowns = 5;\n\t}\n}", + "name": "FindAllUnfinishedIPLibraryFilesResponse", + "code": "message FindAllUnfinishedIPLibraryFilesResponse {\n\trepeated IPLibraryFile ipLibraryFiles = 1;\n}", "doc": "" }, { - "name": "CheckProvidersWithIPLibraryFileIdRequest", - "code": "message CheckProvidersWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "检查ISP运营商" + "name": "GenerateIPLibraryFileRequest", + "code": "message GenerateIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "生成IP库文件" }, { - "name": "CreateIPLibraryFileResponse", - "code": "message CreateIPLibraryFileResponse {\n\tint64 ipLibraryFileId = 1;\n}", + "name": "CheckProvincesWithIPLibraryFileIdResponse", + "code": "message CheckProvincesWithIPLibraryFileIdResponse {\n\trepeated MissingProvince missingProvinces = 1;\n\n\n\tmessage MissingProvince {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\trepeated RegionProvince similarProvinces = 3;\n\t}\n}", "doc": "" }, + { + "name": "FindAllFinishedIPLibraryFilesRequest", + "code": "message FindAllFinishedIPLibraryFilesRequest {\n\n}", + "doc": "查找所有已完成的IP库文件" + }, + { + "name": "CheckCitiesWithIPLibraryFileIdRequest", + "code": "message CheckCitiesWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查城市/市" + }, { "name": "CheckProvidersWithIPLibraryFileIdResponse", "code": "message CheckProvidersWithIPLibraryFileIdResponse {\n\trepeated MissingProvider missingProviders = 1;\n\n\n\tmessage MissingProvider {\n\t\tstring providerName = 1;\n\t\trepeated RegionProvider similarProviders = 2;\n\t}\n}", "doc": "" }, - { - "name": "CheckTownsWithIPLibraryFileIdRequest", - "code": "message CheckTownsWithIPLibraryFileIdRequest {\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "检查区县" - }, - { - "name": "UpdateIPLibraryFileFinishedRequest", - "code": "message UpdateIPLibraryFileFinishedRequest {\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "设置某个IP库为已完成" - }, - { - "name": "DeleteIPLibraryFileRequest", - "code": "message DeleteIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", - "doc": "删除IP库文件" - }, - { - "name": "CheckCountriesWithIPLibraryFileIdResponse", - "code": "message CheckCountriesWithIPLibraryFileIdResponse {\n\trepeated MissingCountry missingCountries = 1;\n\n\n\tmessage MissingCountry {\n\t\tstring countryName = 1;\n\t\trepeated RegionCountry similarCountries = 2;\n\t}\n}", - "doc": "" - }, - { - "name": "FindEnabledIPListRequest", - "code": "message FindEnabledIPListRequest {\n\tint64 ipListId = 1;\n}", - "doc": "查找IP列表信息" - }, - { - "name": "ListEnabledIPListsRequest", - "code": "message ListEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页名单" - }, - { - "name": "ListEnabledIPListsResponse", - "code": "message ListEnabledIPListsResponse {\n\trepeated IPList ipLists = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledIPListsRequest", - "code": "message CountAllEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n}", - "doc": "计算名单数量" - }, { "name": "DeleteIPListRequest", "code": "message DeleteIPListRequest {\n\tint64 ipListId = 1;\n}", @@ -13273,6 +13441,36 @@ "code": "message ExistsEnabledIPListRequest {\n\tint64 ipListId = 1;\n}", "doc": "检查IPList是否存在" }, + { + "name": "FindEnabledIPListContainsIPRequest", + "code": "message FindEnabledIPListContainsIPRequest {\n\tstring ip = 1;\n}", + "doc": "根据IP来搜索IP名单" + }, + { + "name": "FindEnabledIPListContainsIPResponse", + "code": "message FindEnabledIPListContainsIPResponse {\n\trepeated IPList ipLists = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledIPListRequest", + "code": "message FindEnabledIPListRequest {\n\tint64 ipListId = 1;\n}", + "doc": "查找IP列表信息" + }, + { + "name": "FindEnabledIPListResponse", + "code": "message FindEnabledIPListResponse {\n\tIPList ipList = 1;\n}", + "doc": "" + }, + { + "name": "ListEnabledIPListsRequest", + "code": "message ListEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页名单" + }, + { + "name": "ListEnabledIPListsResponse", + "code": "message ListEnabledIPListsResponse {\n\trepeated IPList ipLists = 1;\n}", + "doc": "" + }, { "name": "ExistsEnabledIPListResponse", "code": "message ExistsEnabledIPListResponse {\n\tbool exists = 1;\n}", @@ -13294,40 +13492,15 @@ "doc": "修改IP列表" }, { - "name": "FindEnabledIPListResponse", - "code": "message FindEnabledIPListResponse {\n\tIPList ipList = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledIPListContainsIPRequest", - "code": "message FindEnabledIPListContainsIPRequest {\n\tstring ip = 1;\n}", - "doc": "根据IP来搜索IP名单" - }, - { - "name": "FindEnabledIPListContainsIPResponse", - "code": "message FindEnabledIPListContainsIPResponse {\n\trepeated IPList ipLists = 1;\n}", - "doc": "" + "name": "CountAllEnabledIPListsRequest", + "code": "message CountAllEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n}", + "doc": "计算名单数量" }, { "name": "IncreaseLatestItemRequest", "code": "message IncreaseLatestItemRequest {\n\tstring itemType = 1;\n\tint64 itemId = 2;\n}", "doc": "记录最近使用的条目" }, - { - "name": "ListLogsRequest", - "code": "message ListLogsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring dayFrom = 3;\n\tstring dayTo = 4;\n\tstring keyword = 5;\n\tstring userType = 6;\n}", - "doc": "列出单页日志" - }, - { - "name": "DeleteLogsPermanentlyRequest", - "code": "message DeleteLogsPermanentlyRequest {\n\trepeated int64 logIds = 1;\n}", - "doc": "批量删除" - }, - { - "name": "SumLogsSizeRequest", - "code": "message SumLogsSizeRequest {\n\n}", - "doc": "计算日志容量大小" - }, { "name": "SumLogsResponse", "code": "message SumLogsResponse {\n\tint64 sizeBytes = 1;\n}", @@ -13338,6 +13511,26 @@ "code": "message CreateLogRequest {\n\tstring level = 1;\n\tstring description = 2;\n\tstring action = 3;\n\tstring ip = 4;\n}", "doc": "创建日志" }, + { + "name": "ListLogsRequest", + "code": "message ListLogsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring dayFrom = 3;\n\tstring dayTo = 4;\n\tstring keyword = 5;\n\tstring userType = 6;\n}", + "doc": "列出单页日志" + }, + { + "name": "ListLogsResponse", + "code": "message ListLogsResponse {\n\trepeated Log logs = 1;\n}", + "doc": "" + }, + { + "name": "DeleteLogsPermanentlyRequest", + "code": "message DeleteLogsPermanentlyRequest {\n\trepeated int64 logIds = 1;\n}", + "doc": "批量删除" + }, + { + "name": "SumLogsSizeRequest", + "code": "message SumLogsSizeRequest {\n\n}", + "doc": "计算日志容量大小" + }, { "name": "CreateLogResponse", "code": "message CreateLogResponse {\n\n}", @@ -13348,11 +13541,6 @@ "code": "message CountLogRequest {\n\tstring dayFrom = 1;\n\tstring dayTo = 2;\n\tstring keyword = 3;\n\tstring userType = 4; // admin|user\n}", "doc": "计算日志数量" }, - { - "name": "ListLogsResponse", - "code": "message ListLogsResponse {\n\trepeated Log logs = 1;\n}", - "doc": "" - }, { "name": "DeleteLogPermanentlyRequest", "code": "message DeleteLogPermanentlyRequest {\n\tint64 logId = 1;\n}", @@ -13363,6 +13551,11 @@ "code": "message CleanLogsPermanentlyRequest {\n\tint32 days = 1;\n\tbool clearAll = 2;\n}", "doc": "清理" }, + { + "name": "FindEnabledLoginRequest", + "code": "message FindEnabledLoginRequest {\n\tint64 adminId = 1;\n\tint64 userId = 3;\n\tstring type = 2;\n}", + "doc": "查找认证" + }, { "name": "FindEnabledLoginResponse", "code": "message FindEnabledLoginResponse {\n\tLogin login = 1;\n}", @@ -13374,9 +13567,9 @@ "doc": "修改认证" }, { - "name": "FindEnabledLoginRequest", - "code": "message FindEnabledLoginRequest {\n\tint64 adminId = 1;\n\tint64 userId = 3;\n\tstring type = 2;\n}", - "doc": "查找认证" + "name": "ListUnreadMessagesResponse", + "code": "message ListUnreadMessagesResponse {\n\trepeated Message messages = 1;\n}", + "doc": "" }, { "name": "UpdateMessageReadRequest", @@ -13403,11 +13596,6 @@ "code": "message ListUnreadMessagesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页未读消息" }, - { - "name": "ListUnreadMessagesResponse", - "code": "message ListUnreadMessagesResponse {\n\trepeated Message messages = 1;\n}", - "doc": "" - }, { "name": "FindAllMessageMediasRequest", "code": "message FindAllMessageMediasRequest {\n\n}", @@ -13424,14 +13612,9 @@ "doc": "设置所有支持的媒介" }, { - "name": "CreateMessageMediaInstanceRequest", - "code": "message CreateMessageMediaInstanceRequest {\n\tstring name = 1;\n\tstring mediaType = 2;\n\tbytes paramsJSON = 3;\n\trepeated int64 groupIds = 4;\n\tstring description = 5;\n\tbytes rateJSON = 6;\n\tint32 hashLife = 7;\n}", - "doc": "创建接收人" - }, - { - "name": "CountAllEnabledMessageMediaInstancesRequest", - "code": "message CountAllEnabledMessageMediaInstancesRequest {\n\tstring mediaType = 1;\n\tstring keyword = 2;\n}", - "doc": "计算接收人数量" + "name": "CreateMessageMediaInstanceResponse", + "code": "message CreateMessageMediaInstanceResponse {\n\tint64 messageMediaInstanceId = 1;\n}", + "doc": "" }, { "name": "ListEnabledMessageMediaInstancesRequest", @@ -13439,9 +13622,9 @@ "doc": "列出单页接收人" }, { - "name": "FindEnabledMessageMediaInstanceRequest", - "code": "message FindEnabledMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", - "doc": "查找单个接收人信息" + "name": "ListEnabledMessageMediaInstancesResponse", + "code": "message ListEnabledMessageMediaInstancesResponse {\n\trepeated MessageMediaInstance messageMediaInstances = 1;\n}", + "doc": "" }, { "name": "FindEnabledMessageMediaInstanceResponse", @@ -13449,9 +13632,14 @@ "doc": "" }, { - "name": "CreateMessageMediaInstanceResponse", - "code": "message CreateMessageMediaInstanceResponse {\n\tint64 messageMediaInstanceId = 1;\n}", - "doc": "" + "name": "FindEnabledMessageMediaInstanceRequest", + "code": "message FindEnabledMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", + "doc": "查找单个接收人信息" + }, + { + "name": "CreateMessageMediaInstanceRequest", + "code": "message CreateMessageMediaInstanceRequest {\n\tstring name = 1;\n\tstring mediaType = 2;\n\tbytes paramsJSON = 3;\n\trepeated int64 groupIds = 4;\n\tstring description = 5;\n\tbytes rateJSON = 6;\n\tint32 hashLife = 7;\n}", + "doc": "创建接收人" }, { "name": "UpdateMessageMediaInstanceRequest", @@ -13464,9 +13652,9 @@ "doc": "删除接收人" }, { - "name": "ListEnabledMessageMediaInstancesResponse", - "code": "message ListEnabledMessageMediaInstancesResponse {\n\trepeated MessageMediaInstance messageMediaInstances = 1;\n}", - "doc": "" + "name": "CountAllEnabledMessageMediaInstancesRequest", + "code": "message CountAllEnabledMessageMediaInstancesRequest {\n\tstring mediaType = 1;\n\tstring keyword = 2;\n}", + "doc": "计算接收人数量" }, { "name": "UpdateMessageReceiversRequest", @@ -13494,43 +13682,43 @@ "doc": "计算接收者数量" }, { - "name": "CreateMessageRecipientResponse", - "code": "message CreateMessageRecipientResponse {\n\tint64 messageRecipientId = 1;\n}", + "name": "FindEnabledMessageRecipientResponse", + "code": "message FindEnabledMessageRecipientResponse {\n\tMessageRecipient messageRecipient = 1;\n}", "doc": "" }, - { - "name": "CountAllEnabledMessageRecipientsRequest", - "code": "message CountAllEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n}", - "doc": "计算接收人数量" - }, - { - "name": "FindEnabledMessageRecipientRequest", - "code": "message FindEnabledMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n}", - "doc": "查找单个接收人信息" - }, - { - "name": "CreateMessageRecipientRequest", - "code": "message CreateMessageRecipientRequest {\n\tint64 adminId = 1;\n\tint64 messageMediaInstanceId = 2;\n\trepeated int64 messageRecipientGroupIds = 3;\n\tstring description = 4;\n\tstring user = 5;\n\tstring timeFrom = 6;\n\tstring timeTo = 7;\n}", - "doc": "创建接收人" - }, { "name": "DeleteMessageRecipientRequest", "code": "message DeleteMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n}", "doc": "删除接收人" }, - { - "name": "ListEnabledMessageRecipientsRequest", - "code": "message ListEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", - "doc": "列出单页接收人" - }, { "name": "ListEnabledMessageRecipientsResponse", "code": "message ListEnabledMessageRecipientsResponse {\n\trepeated MessageRecipient messageRecipients = 1;\n}", "doc": "" }, { - "name": "FindEnabledMessageRecipientResponse", - "code": "message FindEnabledMessageRecipientResponse {\n\tMessageRecipient messageRecipient = 1;\n}", + "name": "FindEnabledMessageRecipientRequest", + "code": "message FindEnabledMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n}", + "doc": "查找单个接收人信息" + }, + { + "name": "CountAllEnabledMessageRecipientsRequest", + "code": "message CountAllEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n}", + "doc": "计算接收人数量" + }, + { + "name": "ListEnabledMessageRecipientsRequest", + "code": "message ListEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "列出单页接收人" + }, + { + "name": "CreateMessageRecipientRequest", + "code": "message CreateMessageRecipientRequest {\n\tint64 adminId = 1;\n\tint64 messageMediaInstanceId = 2;\n\trepeated int64 messageRecipientGroupIds = 3;\n\tstring description = 4;\n\tstring user = 5;\n\tstring timeFrom = 6;\n\tstring timeTo = 7;\n}", + "doc": "创建接收人" + }, + { + "name": "CreateMessageRecipientResponse", + "code": "message CreateMessageRecipientResponse {\n\tint64 messageRecipientId = 1;\n}", "doc": "" }, { @@ -13538,6 +13726,16 @@ "code": "message UpdateMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n\tint64 adminId = 2;\n\tint64 messageMediaInstanceId = 3;\n\trepeated int64 messageRecipientGroupIds = 4;\n\tstring description = 5;\n\tbool isOn = 6;\n\tstring user = 7;\n\tstring timeFrom = 8;\n\tstring timeTo = 9;\n}", "doc": "修改接收人" }, + { + "name": "CreateMessageRecipientGroupResponse", + "code": "message CreateMessageRecipientGroupResponse {\n\tint64 messageRecipientGroupId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateMessageRecipientGroupRequest", + "code": "message UpdateMessageRecipientGroupRequest {\n\tint64 messageRecipientGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", + "doc": "修改分组" + }, { "name": "FindAllEnabledMessageRecipientGroupsRequest", "code": "message FindAllEnabledMessageRecipientGroupsRequest {\n\n}", @@ -13569,28 +13767,8 @@ "doc": "创建分组" }, { - "name": "CreateMessageRecipientGroupResponse", - "code": "message CreateMessageRecipientGroupResponse {\n\tint64 messageRecipientGroupId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateMessageRecipientGroupRequest", - "code": "message UpdateMessageRecipientGroupRequest {\n\tint64 messageRecipientGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", - "doc": "修改分组" - }, - { - "name": "CreateMessageTaskRequest", - "code": "message CreateMessageTaskRequest {\n\tint64 recipientId = 1;\n\tint64 instanceId = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tbool isPrimary = 6;\n}", - "doc": "创建消息任务" - }, - { - "name": "FindEnabledMessageTaskRequest", - "code": "message FindEnabledMessageTaskRequest {\n\tint64 messageTaskId = 1;\n}", - "doc": "读取消息任务状态" - }, - { - "name": "FindEnabledMessageTaskResponse", - "code": "message FindEnabledMessageTaskResponse {\n\tMessageTask messageTask = 1;\n}", + "name": "CreateMessageTaskResponse", + "code": "message CreateMessageTaskResponse {\n\tint64 messageTaskId = 1;\n}", "doc": "" }, { @@ -13599,14 +13777,14 @@ "doc": "删除消息任务" }, { - "name": "ListMessageTasksWithStatusResponse", - "code": "message ListMessageTasksWithStatusResponse {\n\trepeated MessageTask messageTasks = 1;\n}", - "doc": "" + "name": "FindEnabledMessageTaskRequest", + "code": "message FindEnabledMessageTaskRequest {\n\tint64 messageTaskId = 1;\n}", + "doc": "读取消息任务状态" }, { - "name": "CreateMessageTaskResponse", - "code": "message CreateMessageTaskResponse {\n\tint64 messageTaskId = 1;\n}", - "doc": "" + "name": "CreateMessageTaskRequest", + "code": "message CreateMessageTaskRequest {\n\tint64 recipientId = 1;\n\tint64 instanceId = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tbool isPrimary = 6;\n}", + "doc": "创建消息任务" }, { "name": "FindSendingMessageTasksRequest", @@ -13623,6 +13801,16 @@ "code": "message UpdateMessageTaskStatusRequest {\n\tint64 messageTaskId = 1;\n\tint32 status = 2;\n\tMessageTaskResult result = 3;\n}", "doc": "修改消息任务状态" }, + { + "name": "FindEnabledMessageTaskResponse", + "code": "message FindEnabledMessageTaskResponse {\n\tMessageTask messageTask = 1;\n}", + "doc": "" + }, + { + "name": "ListMessageTasksWithStatusResponse", + "code": "message ListMessageTasksWithStatusResponse {\n\trepeated MessageTask messageTasks = 1;\n}", + "doc": "" + }, { "name": "CountMessageTaskLogsRequest", "code": "message CountMessageTaskLogsRequest {\n\n}", @@ -13638,11 +13826,36 @@ "code": "message ListMessageTaskLogsResponse {\n\trepeated MessageTaskLog messageTaskLogs = 1;\n}", "doc": "" }, + { + "name": "CreateMetricChartResponse", + "code": "message CreateMetricChartResponse {\n\tint64 metricChartId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledMetricChartRequest", + "code": "message FindEnabledMetricChartRequest {\n\tint64 metricChartId = 1;\n}", + "doc": "查找单个图表" + }, { "name": "FindEnabledMetricChartResponse", "code": "message FindEnabledMetricChartResponse {\n\tMetricChart metricChart = 1;\n}", "doc": "" }, + { + "name": "DeleteMetricChartRequest", + "code": "message DeleteMetricChartRequest {\n\tint64 metricChartId = 1;\n}", + "doc": "删除图表" + }, + { + "name": "CreateMetricChartRequest", + "code": "message CreateMetricChartRequest {\n\tint64 metricItemId = 1;\n\tstring name = 2;\n\tstring type = 3;\n\tint32 widthDiv = 4;\n\tbytes paramsJSON = 5;\n\tint32 maxItems = 6;\n\tbool ignoreEmptyKeys = 7;\n\trepeated string ignoredKeys = 8;\n}", + "doc": "创建图表" + }, + { + "name": "UpdateMetricChartRequest", + "code": "message UpdateMetricChartRequest {\n\tint64 metricChartId = 1;\n\tstring name = 2;\n\tstring type = 3;\n\tint32 widthDiv = 4;\n\tbytes paramsJSON = 5;\n\tbool isOn = 6;\n\tint32 maxItems = 7;\n\tbool ignoreEmptyKeys = 8;\n\trepeated string ignoredKeys = 9;\n}", + "doc": "修改图表" + }, { "name": "CountEnabledMetricChartsRequest", "code": "message CountEnabledMetricChartsRequest {\n\tint64 metricItemId = 1;\n}", @@ -13658,55 +13871,25 @@ "code": "message ListEnabledMetricChartsResponse {\n\trepeated MetricChart metricCharts = 1;\n}", "doc": "" }, - { - "name": "UpdateMetricChartRequest", - "code": "message UpdateMetricChartRequest {\n\tint64 metricChartId = 1;\n\tstring name = 2;\n\tstring type = 3;\n\tint32 widthDiv = 4;\n\tbytes paramsJSON = 5;\n\tbool isOn = 6;\n\tint32 maxItems = 7;\n\tbool ignoreEmptyKeys = 8;\n\trepeated string ignoredKeys = 9;\n}", - "doc": "修改图表" - }, - { - "name": "CreateMetricChartResponse", - "code": "message CreateMetricChartResponse {\n\tint64 metricChartId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledMetricChartRequest", - "code": "message FindEnabledMetricChartRequest {\n\tint64 metricChartId = 1;\n}", - "doc": "查找单个图表" - }, - { - "name": "DeleteMetricChartRequest", - "code": "message DeleteMetricChartRequest {\n\tint64 metricChartId = 1;\n}", - "doc": "删除图表" - }, - { - "name": "CreateMetricChartRequest", - "code": "message CreateMetricChartRequest {\n\tint64 metricItemId = 1;\n\tstring name = 2;\n\tstring type = 3;\n\tint32 widthDiv = 4;\n\tbytes paramsJSON = 5;\n\tint32 maxItems = 6;\n\tbool ignoreEmptyKeys = 7;\n\trepeated string ignoredKeys = 8;\n}", - "doc": "创建图表" - }, - { - "name": "CreateMetricItemRequest", - "code": "message CreateMetricItemRequest {\n\tstring code = 1;\n\tstring category = 2;\n\tstring name = 3;\n\trepeated string keys = 4;\n\tint32 period = 5;\n\tstring periodUnit = 6;\n\tint32 expiresPeriod = 9;\n\tstring value = 7;\n\tbool isPublic = 8;\n}", - "doc": "创建指标" - }, - { - "name": "CreateMetricItemResponse", - "code": "message CreateMetricItemResponse {\n\tint64 metricItemId = 1;\n}", - "doc": "" - }, { "name": "UpdateMetricItemRequest", "code": "message UpdateMetricItemRequest {\n\tint64 metricItemId = 1;\n\tstring name = 2;\n\trepeated string keys = 3;\n\tint32 period = 4;\n\tstring periodUnit = 5;\n\tint32 expiresPeriod = 9;\n\tstring value = 6;\n\tbool isOn = 7;\n\tbool isPublic = 8;\n}", "doc": "修改指标" }, + { + "name": "CountAllEnabledMetricItemsRequest", + "code": "message CountAllEnabledMetricItemsRequest {\n\tstring category = 1;\n}", + "doc": "计算指标数量" + }, { "name": "ListEnabledMetricItemsResponse", "code": "message ListEnabledMetricItemsResponse {\n\trepeated MetricItem metricItems = 1;\n}", "doc": "" }, { - "name": "DeleteMetricItemRequest", - "code": "message DeleteMetricItemRequest {\n\tint64 metricItemId = 1;\n}", - "doc": "删除指标" + "name": "CreateMetricItemRequest", + "code": "message CreateMetricItemRequest {\n\tstring code = 1;\n\tstring category = 2;\n\tstring name = 3;\n\trepeated string keys = 4;\n\tint32 period = 5;\n\tstring periodUnit = 6;\n\tint32 expiresPeriod = 9;\n\tstring value = 7;\n\tbool isPublic = 8;\n}", + "doc": "创建指标" }, { "name": "FindEnabledMetricItemRequest", @@ -13718,16 +13901,21 @@ "code": "message FindEnabledMetricItemResponse {\n\tMetricItem metricItem = 1;\n}", "doc": "" }, - { - "name": "CountAllEnabledMetricItemsRequest", - "code": "message CountAllEnabledMetricItemsRequest {\n\tstring category = 1;\n}", - "doc": "计算指标数量" - }, { "name": "ListEnabledMetricItemsRequest", "code": "message ListEnabledMetricItemsRequest {\n\tstring category = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", "doc": "列出单页指标" }, + { + "name": "DeleteMetricItemRequest", + "code": "message DeleteMetricItemRequest {\n\tint64 metricItemId = 1;\n}", + "doc": "删除指标" + }, + { + "name": "CreateMetricItemResponse", + "code": "message CreateMetricItemResponse {\n\tint64 metricItemId = 1;\n}", + "doc": "" + }, { "name": "UploadMetricStatsRequest", "code": "message UploadMetricStatsRequest {\n\tint64 serverId = 1;\n\tstring time = 2;\n\tint64 count = 3;\n\tfloat total = 4;\n\tint32 version = 5;\n\tint64 itemId = 6;\n\trepeated UploadingMetricStat metricStats = 7;\n}", @@ -13749,45 +13937,15 @@ "doc": "" }, { - "name": "CreateMonitorNodeResponse", - "code": "message CreateMonitorNodeResponse {\n\tint64 monitorNodeId = 1;\n}", + "name": "UpdateMonitorNodeRequest", + "code": "message UpdateMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n}", + "doc": "修改监控节点" + }, + { + "name": "FindAllEnabledMonitorNodesResponse", + "code": "message FindAllEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", "doc": "" }, - { - "name": "ListEnabledMonitorNodesResponse", - "code": "message ListEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledMonitorNodesRequest", - "code": "message FindAllEnabledMonitorNodesRequest {\n\n}", - "doc": "列出所有可用监控节点" - }, - { - "name": "FindEnabledMonitorNodeResponse", - "code": "message FindEnabledMonitorNodeResponse {\n\tMonitorNode monitorNode = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentMonitorNodeRequest", - "code": "message FindCurrentMonitorNodeRequest {\n\n}", - "doc": "获取当前监控节点" - }, - { - "name": "FindCurrentMonitorNodeResponse", - "code": "message FindCurrentMonitorNodeResponse {\n\tMonitorNode monitorNode = 1;\n}", - "doc": "" - }, - { - "name": "DeleteMonitorNodeRequest", - "code": "message DeleteMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", - "doc": "删除监控节点" - }, - { - "name": "CountAllEnabledMonitorNodesRequest", - "code": "message CountAllEnabledMonitorNodesRequest {\n\n}", - "doc": "计算监控节点数量" - }, { "name": "ListEnabledMonitorNodesRequest", "code": "message ListEnabledMonitorNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", @@ -13798,20 +13956,30 @@ "code": "message FindEnabledMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", "doc": "根据ID查找节点" }, + { + "name": "FindEnabledMonitorNodeResponse", + "code": "message FindEnabledMonitorNodeResponse {\n\tMonitorNode monitorNode = 1;\n}", + "doc": "" + }, + { + "name": "FindCurrentMonitorNodeResponse", + "code": "message FindCurrentMonitorNodeResponse {\n\tMonitorNode monitorNode = 1;\n}", + "doc": "" + }, { "name": "CreateMonitorNodeRequest", "code": "message CreateMonitorNodeRequest {\n\tstring name = 1;\n\tstring description = 2;\n\tbool isOn = 3;\n}", "doc": "创建监控节点" }, { - "name": "UpdateMonitorNodeRequest", - "code": "message UpdateMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n}", - "doc": "修改监控节点" + "name": "DeleteMonitorNodeRequest", + "code": "message DeleteMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", + "doc": "删除监控节点" }, { - "name": "FindAllEnabledMonitorNodesResponse", - "code": "message FindAllEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", - "doc": "" + "name": "FindCurrentMonitorNodeRequest", + "code": "message FindCurrentMonitorNodeRequest {\n\n}", + "doc": "获取当前监控节点" }, { "name": "UpdateMonitorNodeStatusRequest", @@ -13819,39 +13987,124 @@ "doc": "更新监控状态" }, { - "name": "FindEnabledBasicNodeResponse", - "code": "message FindEnabledBasicNodeResponse {\n\tBasicNode node = 1;\n}", + "name": "CreateMonitorNodeResponse", + "code": "message CreateMonitorNodeResponse {\n\tint64 monitorNodeId = 1;\n}", "doc": "" }, { - "name": "InstallNodeRequest", - "code": "message InstallNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "安装节点" + "name": "FindAllEnabledMonitorNodesRequest", + "code": "message FindAllEnabledMonitorNodesRequest {\n\n}", + "doc": "列出所有可用监控节点" }, { - "name": "StartNodeRequest", - "code": "message StartNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "启动节点" + "name": "CountAllEnabledMonitorNodesRequest", + "code": "message CountAllEnabledMonitorNodesRequest {\n\n}", + "doc": "计算监控节点数量" }, { - "name": "StopNodeResponse", - "code": "message StopNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "name": "ListEnabledMonitorNodesResponse", + "code": "message ListEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", "doc": "" }, + { + "name": "FindAllEnabledNodesWithNodeClusterIdResponse", + "code": "message FindAllEnabledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeStatusRequest", + "code": "message UpdateNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", + "doc": "更新节点状态" + }, + { + "name": "CountAllEnabledNodesWithNodeGrantIdRequest", + "code": "message CountAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "计算使用某个认证的节点数量" + }, { "name": "FindAllEnabledNodesWithNodeGrantIdResponse", "code": "message FindAllEnabledNodesWithNodeGrantIdResponse {\n\trepeated Node nodes = 1;\n}", "doc": "" }, + { + "name": "FindNodeInstallStatusResponse", + "code": "message FindNodeInstallStatusResponse {\n\tNodeInstallStatus installStatus = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodesWithIdsResponse", + "code": "message FindEnabledNodesWithIdsResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, + { + "name": "ListEnabledNodesMatchResponse", + "code": "message ListEnabledNodesMatchResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodesMatchRequest", + "code": "message CountAllEnabledNodesMatchRequest {\n\tint64 nodeClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\tint64 nodeGroupId = 5;\n\tint64 nodeRegionId = 6;\n\tint32 level = 7;\n}", + "doc": "计算匹配的节点数量" + }, + { + "name": "FindNodeInstallStatusRequest", + "code": "message FindNodeInstallStatusRequest {\n\tint64 nodeId = 1;\n}", + "doc": "读取节点安装状态" + }, + { + "name": "UpdateNodeRequest", + "code": "message UpdateNodeRequest {\n\tint64 nodeId = 1;\n\tstring name = 2;\n\tint64 nodeClusterId = 3;\n\trepeated int64 secondaryNodeClusterIds = 13;\n\tbool isOn = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 10;\n\tint32 level = 14;\n\trepeated string lnAddrs = 15; // Ln节点访问地址\n}", + "doc": "修改节点" + }, + { + "name": "FindCurrentNodeConfigRequest", + "code": "message FindCurrentNodeConfigRequest {\n\t// 由于登录信息中已经包含了节点信息,所以这里不需要nodeId\n\tint64 version = 1;\n\tbool compress = 2; // 是否压缩\n\tint64 nodeTaskVersion = 3; // 通知任务版本\n}", + "doc": "组合单个节点配置" + }, + { + "name": "StopNodeRequest", + "code": "message StopNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "停止节点" + }, + { + "name": "FindAllEnabledNodesDNSWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodesDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "取得某个集群下的所有节点" + }, + { + "name": "UpdateNodeCacheRequest", + "code": "message UpdateNodeCacheRequest {\n\tint64 nodeId = 1;\n\tSizeCapacity maxCacheDiskCapacity = 2;\n\tSizeCapacity maxCacheMemoryCapacity = 3;\n\tstring cacheDiskDir = 4;\n}", + "doc": "修改节点缓存设置" + }, + { + "name": "FindAllNotInstalledNodesWithNodeClusterIdResponse", + "code": "message FindAllNotInstalledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, { "name": "CountAllNotInstalledNodesWithNodeClusterIdRequest", "code": "message CountAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "计算未安装的节点数量" }, { - "name": "FindAllEnabledNodesDNSWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodesDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "取得某个集群下的所有节点" + "name": "FindNodeDNSResolverResponse", + "code": "message FindNodeDNSResolverResponse {\n\tbytes dnsResolverJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeDNSResolverRequest", + "code": "message UpdateNodeDNSResolverRequest {\n\tint64 nodeId = 1;\n\tbytes dnsResolverJSON = 2;\n}", + "doc": "修改DNS Resolver" + }, + { + "name": "FindAllEnabledNodesWithNodeGrantIdRequest", + "code": "message FindAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "查找使用某个认证的所有节点" + }, + { + "name": "FindAllUpgradeNodesWithNodeClusterIdRequest", + "code": "message FindAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "列出所有需要升级的节点" }, { "name": "DeleteNodeRequest", @@ -13859,88 +14112,8 @@ "doc": "删除节点" }, { - "name": "FindEnabledNodeConfigInfoRequest", - "code": "message FindEnabledNodeConfigInfoRequest {\n\tint64 nodeId = 1;\n}", - "doc": "取得节点的配置概要信息" - }, - { - "name": "CheckNodeLatestVersionResponse", - "code": "message CheckNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", - "doc": "" - }, - { - "name": "UpdateNodeRequest", - "code": "message UpdateNodeRequest {\n\tint64 nodeId = 1;\n\tstring name = 2;\n\tint64 nodeClusterId = 3;\n\trepeated int64 secondaryNodeClusterIds = 13;\n\tbool isOn = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 10;\n\tint32 level = 14;\n\trepeated string lnAddrs = 15; // Ln节点访问地址\n}", - "doc": "修改节点" - }, - { - "name": "NodeStreamMessage", - "code": "message NodeStreamMessage {\n\tint64 nodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", - "doc": "节点stream" - }, - { - "name": "CreateNodeRequest", - "code": "message CreateNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n\tint64 nodeGroupId = 4;\n\tint64 dnsDomainId = 5 [deprecated = true];\n\trepeated string dnsRoutes = 6;\n\tint64 nodeRegionId = 7;\n}", - "doc": "创建节点" - }, - { - "name": "CountAllEnabledNodesMatchRequest", - "code": "message CountAllEnabledNodesMatchRequest {\n\tint64 nodeClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\tint64 nodeGroupId = 5;\n\tint64 nodeRegionId = 6;\n\tint32 level = 7;\n}", - "doc": "计算匹配的节点数量" - }, - { - "name": "FindAllEnabledNodesWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1; // 集群ID\n\tbool includeSecondary = 2; // 是否检查节点的从集群,如果为false,则只检查主集群ID\n}", - "doc": "根据集群查找所有节点" - }, - { - "name": "UpdateNodeDNSRequest", - "code": "message UpdateNodeDNSRequest {\n\tint64 nodeId = 1;\n\tstring ipAddr = 2;\n\tint64 dnsDomainId = 3;\n\trepeated string routes = 4;\n}", - "doc": "修改节点的DNS信息" - }, - { - "name": "UpdateNodeUpRequest", - "code": "message UpdateNodeUpRequest {\n\tint64 nodeId = 1;\n\tbool isUp = 2;\n}", - "doc": "设置节点上线状态" - }, - { - "name": "FindNodeDDoSProtectionResponse", - "code": "message FindNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeResponse", - "code": "message FindEnabledNodeResponse {\n\tNode node = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledBasicNodeRequest", - "code": "message FindEnabledBasicNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取单个节点基本信息" - }, - { - "name": "UpdateNodeIsInstalledRequest", - "code": "message UpdateNodeIsInstalledRequest {\n\tint64 nodeId = 1;\n\tbool isInstalled = 2;\n}", - "doc": "修改节点安装状态" - }, - { - "name": "CountAllEnabledNodesWithNodeGrantIdRequest", - "code": "message CountAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "计算使用某个认证的节点数量" - }, - { - "name": "FindEnabledNodesWithIdsResponse", - "code": "message FindEnabledNodesWithIdsResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledNodesRequest", - "code": "message CountAllEnabledNodesRequest {\n\n}", - "doc": "所有可用的节点数量" - }, - { - "name": "FindNodeInstallStatusResponse", - "code": "message FindNodeInstallStatusResponse {\n\tNodeInstallStatus installStatus = 1;\n}", + "name": "StopNodeResponse", + "code": "message StopNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", "doc": "" }, { @@ -13949,14 +14122,159 @@ "doc": "查找单个节点的域名解析信息" }, { - "name": "FindNodeDNSResolverRequest", - "code": "message FindNodeDNSResolverRequest{\n\tint64 nodeId = 1;\n}", - "doc": "读取节点DNS Resolver" + "name": "UpdateNodeDNSRequest", + "code": "message UpdateNodeDNSRequest {\n\tint64 nodeId = 1;\n\tstring ipAddr = 2;\n\tint64 dnsDomainId = 3;\n\trepeated string routes = 4;\n}", + "doc": "修改节点的DNS信息" }, { - "name": "UpdateNodeDDoSProtectionRequest", - "code": "message UpdateNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改节点的DDoS设置" + "name": "FindNodeLevelInfoResponse", + "code": "message FindNodeLevelInfoResponse {\n\tint32 level = 1;\n\tbytes parentNodesMapJSON = 2;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeDNSResponse", + "code": "message FindEnabledNodeDNSResponse {\n\tNodeDNSInfo node = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodesWithIdsRequest", + "code": "message FindEnabledNodesWithIdsRequest {\n\trepeated int64 nodeIds = 1;\n}", + "doc": "根据一组ID获取节点信息" + }, + { + "name": "FindEnabledNodeResponse", + "code": "message FindEnabledNodeResponse {\n\tNode node = 1;\n}", + "doc": "" + }, + { + "name": "InstallNodeRequest", + "code": "message InstallNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "安装节点" + }, + { + "name": "CountAllUpgradeNodesWithNodeClusterIdRequest", + "code": "message CountAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "计算需要升级的节点数量" + }, + { + "name": "CountAllEnabledNodesWithNodeGroupIdRequest", + "code": "message CountAllEnabledNodesWithNodeGroupIdRequest {\n\tint64 nodeGroupId = 1;\n}", + "doc": "计算某个节点分组内的节点数量" + }, + { + "name": "FindCurrentNodeConfigResponse", + "code": "message FindCurrentNodeConfigResponse {\n\tbytes nodeJSON = 1;\n\tbool isChanged = 2;\n\tbool isCompressed = 3;\n\tint64 dataSize = 4;\n\tint64 timestamp = 5;\n}", + "doc": "" + }, + { + "name": "StartNodeRequest", + "code": "message StartNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "启动节点" + }, + { + "name": "UpdateNodeLoginRequest", + "code": "message UpdateNodeLoginRequest {\n\tint64 nodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", + "doc": "修改节点登录信息" + }, + { + "name": "NodeDNSInfo", + "code": "message NodeDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring ipAddr = 3;\n\trepeated DNSRoute routes = 4;\n\tint64 nodeClusterId = 5;\n\tint64 dnsDomainId = 6;\n\tstring dnsDomainName = 7;\n\tstring nodeClusterDNSName = 8;\n}", + "doc": "" + }, + { + "name": "FindNodeDDoSProtectionRequest", + "code": "message FindNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取节点的DDoS设置" + }, + { + "name": "FindAllUpgradeNodesWithNodeClusterIdResponse", + "code": "message FindAllUpgradeNodesWithNodeClusterIdResponse {\n\trepeated NodeUpgrade nodes = 1;\n\n\n\tmessage NodeUpgrade {\n\t\tNode node = 1;\n\t\tstring os = 2;\n\t\tstring arch = 3;\n\t\tstring oldVersion = 4;\n\t\tstring newVersion = 5;\n\t}\n}", + "doc": "" + }, + { + "name": "RegisterClusterNodeResponse", + "code": "message RegisterClusterNodeResponse {\n\tstring uniqueId = 1;\n\tstring secret = 2;\n\trepeated string endpoints = 3;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodesRequest", + "code": "message CountAllEnabledNodesRequest {\n\n}", + "doc": "所有可用的节点数量" + }, + { + "name": "FindEnabledNodeConfigInfoRequest", + "code": "message FindEnabledNodeConfigInfoRequest {\n\tint64 nodeId = 1;\n}", + "doc": "取得节点的配置概要信息" + }, + { + "name": "FindEnabledNodeConfigInfoResponse", + "code": "message FindEnabledNodeConfigInfoResponse {\n\tbool hasDNSInfo = 1;\n\tbool hasCacheInfo = 2;\n\tbool hasThresholds = 3;\n\tbool hasSSH = 4;\n\tbool hasSystemSettings = 5;\n\tbool hasDDoSProtection = 6;\n}", + "doc": "" + }, + { + "name": "FindNodeDDoSProtectionResponse", + "code": "message FindNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "doc": "" + }, + { + "name": "RegisterClusterNodeRequest", + "code": "message RegisterClusterNodeRequest {\n\tstring name = 1;\n}", + "doc": "注册集群节点" + }, + { + "name": "ListEnabledNodesMatchRequest", + "code": "message ListEnabledNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nodeClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 8;\n\tint32 level = 9;\n\n\tbool cpuAsc = 20;\n\tbool cpuDesc = 21;\n\tbool memoryAsc = 22;\n\tbool memoryDesc = 23;\n\tbool trafficInAsc = 24;\n\tbool trafficInDesc = 25;\n\tbool trafficOutAsc = 26;\n\tbool trafficOutDesc = 27;\n\tbool loadAsc = 28;\n\tbool loadDesc = 29;\n}", + "doc": "列出单页节点" + }, + { + "name": "FindEnabledNodeRequest", + "code": "message FindEnabledNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取单个节点信息" + }, + { + "name": "CountAllEnabledNodesWithNodeRegionIdRequest", + "code": "message CountAllEnabledNodesWithNodeRegionIdRequest {\n\tint64 nodeRegionId = 1;\n}", + "doc": "计算某个区域下的节点数量" + }, + { + "name": "UpdateNodeUpRequest", + "code": "message UpdateNodeUpRequest {\n\tint64 nodeId = 1;\n\tbool isUp = 2;\n}", + "doc": "设置节点上线状态" + }, + { + "name": "DownloadNodeInstallationFileResponse", + "code": "message DownloadNodeInstallationFileResponse {\n\tbytes chunkData = 1;\n\tstring sum = 2; // 文件的md5sum\n\tint64 offset = 3;\n\tstring version = 4;\n\tstring filename = 5;\n}", + "doc": "" + }, + { + "name": "UpdateNodeSystemRequest", + "code": "message UpdateNodeSystemRequest {\n\tint64 nodeId = 1;\n\tint32 maxCPU = 2;\n}", + "doc": "修改节点系统信息" + }, + { + "name": "FindAllNotInstalledNodesWithNodeClusterIdRequest", + "code": "message FindAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "列出所有未安装的节点" + }, + { + "name": "CheckNodeLatestVersionResponse", + "code": "message CheckNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", + "doc": "" + }, + { + "name": "CreateNodeRequest", + "code": "message CreateNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n\tint64 nodeGroupId = 4;\n\tint64 dnsDomainId = 5 [deprecated = true];\n\trepeated string dnsRoutes = 6;\n\tint64 nodeRegionId = 7;\n}", + "doc": "创建节点" + }, + { + "name": "FindEnabledBasicNodeRequest", + "code": "message FindEnabledBasicNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取单个节点基本信息" + }, + { + "name": "NodeStreamMessage", + "code": "message NodeStreamMessage {\n\tint64 nodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", + "doc": "节点stream" }, { "name": "InstallNodeResponse", @@ -13964,9 +14282,59 @@ "doc": "" }, { - "name": "CountAllEnabledNodesWithNodeGroupIdRequest", - "code": "message CountAllEnabledNodesWithNodeGroupIdRequest {\n\tint64 nodeGroupId = 1;\n}", - "doc": "计算某个节点分组内的节点数量" + "name": "UpgradeNodeRequest", + "code": "message UpgradeNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "升级节点" + }, + { + "name": "UpdateNodeConnectedAPINodesRequest", + "code": "message UpdateNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", + "doc": "更改节点连接的API节点信息" + }, + { + "name": "UpdateNodeDDoSProtectionRequest", + "code": "message UpdateNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", + "doc": "修改节点的DDoS设置" + }, + { + "name": "DeleteNodeFromNodeClusterRequest", + "code": "message DeleteNodeFromNodeClusterRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\n}", + "doc": "从集群中删除节点" + }, + { + "name": "FindNodeDNSResolverRequest", + "code": "message FindNodeDNSResolverRequest{\n\tint64 nodeId = 1;\n}", + "doc": "读取节点DNS Resolver" + }, + { + "name": "CreateNodeResponse", + "code": "message CreateNodeResponse {\n\tint64 nodeId = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodesWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1; // 集群ID\n\tbool includeSecondary = 2; // 是否检查节点的从集群,如果为false,则只检查主集群ID\n}", + "doc": "根据集群查找所有节点" + }, + { + "name": "FindEnabledBasicNodeResponse", + "code": "message FindEnabledBasicNodeResponse {\n\tBasicNode node = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodesDNSWithNodeClusterIdResponse", + "code": "message FindAllEnabledNodesDNSWithNodeClusterIdResponse {\n\trepeated NodeDNSInfo nodes = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeIsInstalledRequest", + "code": "message UpdateNodeIsInstalledRequest {\n\tint64 nodeId = 1;\n\tbool isInstalled = 2;\n}", + "doc": "修改节点安装状态" + }, + { + "name": "StartNodeResponse", + "code": "message StartNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" }, { "name": "CheckNodeLatestVersionRequest", @@ -13979,198 +14347,8 @@ "doc": "下载最新边缘节点安装文件" }, { - "name": "UpdateNodeCacheRequest", - "code": "message UpdateNodeCacheRequest {\n\tint64 nodeId = 1;\n\tSizeCapacity maxCacheDiskCapacity = 2;\n\tSizeCapacity maxCacheMemoryCapacity = 3;\n\tstring cacheDiskDir = 4;\n}", - "doc": "修改节点缓存设置" - }, - { - "name": "FindNodeDDoSProtectionRequest", - "code": "message FindNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取节点的DDoS设置" - }, - { - "name": "UpdateNodeConnectedAPINodesRequest", - "code": "message UpdateNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", - "doc": "更改节点连接的API节点信息" - }, - { - "name": "FindAllEnabledNodesDNSWithNodeClusterIdResponse", - "code": "message FindAllEnabledNodesDNSWithNodeClusterIdResponse {\n\trepeated NodeDNSInfo nodes = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledNodesWithNodeRegionIdRequest", - "code": "message CountAllEnabledNodesWithNodeRegionIdRequest {\n\tint64 nodeRegionId = 1;\n}", - "doc": "计算某个区域下的节点数量" - }, - { - "name": "FindEnabledNodesWithIdsRequest", - "code": "message FindEnabledNodesWithIdsRequest {\n\trepeated int64 nodeIds = 1;\n}", - "doc": "根据一组ID获取节点信息" - }, - { - "name": "FindEnabledNodeConfigInfoResponse", - "code": "message FindEnabledNodeConfigInfoResponse {\n\tbool hasDNSInfo = 1;\n\tbool hasCacheInfo = 2;\n\tbool hasThresholds = 3;\n\tbool hasSSH = 4;\n\tbool hasSystemSettings = 5;\n\tbool hasDDoSProtection = 6;\n}", - "doc": "" - }, - { - "name": "FindCurrentNodeConfigRequest", - "code": "message FindCurrentNodeConfigRequest {\n\t// 由于登录信息中已经包含了节点信息,所以这里不需要nodeId\n\tint64 version = 1;\n\tbool compress = 2; // 是否压缩\n\tint64 nodeTaskVersion = 3; // 通知任务版本\n}", - "doc": "组合单个节点配置" - }, - { - "name": "ListEnabledNodesMatchResponse", - "code": "message ListEnabledNodesMatchResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "StartNodeResponse", - "code": "message StartNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, - { - "name": "FindAllUpgradeNodesWithNodeClusterIdRequest", - "code": "message FindAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "列出所有需要升级的节点" - }, - { - "name": "FindNodeInstallStatusRequest", - "code": "message FindNodeInstallStatusRequest {\n\tint64 nodeId = 1;\n}", - "doc": "读取节点安装状态" - }, - { - "name": "ListEnabledNodesMatchRequest", - "code": "message ListEnabledNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nodeClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 8;\n\tint32 level = 9;\n\n\tbool cpuAsc = 20;\n\tbool cpuDesc = 21;\n\tbool memoryAsc = 22;\n\tbool memoryDesc = 23;\n\tbool trafficInAsc = 24;\n\tbool trafficInDesc = 25;\n\tbool trafficOutAsc = 26;\n\tbool trafficOutDesc = 27;\n\tbool loadAsc = 28;\n\tbool loadDesc = 29;\n}", - "doc": "列出单页节点" - }, - { - "name": "NodeDNSInfo", - "code": "message NodeDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring ipAddr = 3;\n\trepeated DNSRoute routes = 4;\n\tint64 nodeClusterId = 5;\n\tint64 dnsDomainId = 6;\n\tstring dnsDomainName = 7;\n\tstring nodeClusterDNSName = 8;\n}", - "doc": "" - }, - { - "name": "UpgradeNodeRequest", - "code": "message UpgradeNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "升级节点" - }, - { - "name": "UpdateNodeSystemRequest", - "code": "message UpdateNodeSystemRequest {\n\tint64 nodeId = 1;\n\tint32 maxCPU = 2;\n}", - "doc": "修改节点系统信息" - }, - { - "name": "FindAllEnabledNodesWithNodeClusterIdResponse", - "code": "message FindAllEnabledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "StopNodeRequest", - "code": "message StopNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "停止节点" - }, - { - "name": "FindAllNotInstalledNodesWithNodeClusterIdResponse", - "code": "message FindAllNotInstalledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "CountAllUpgradeNodesWithNodeClusterIdRequest", - "code": "message CountAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算需要升级的节点数量" - }, - { - "name": "FindEnabledNodeDNSResponse", - "code": "message FindEnabledNodeDNSResponse {\n\tNodeDNSInfo node = 1;\n}", - "doc": "" - }, - { - "name": "DownloadNodeInstallationFileResponse", - "code": "message DownloadNodeInstallationFileResponse {\n\tbytes chunkData = 1;\n\tstring sum = 2; // 文件的md5sum\n\tint64 offset = 3;\n\tstring version = 4;\n\tstring filename = 5;\n}", - "doc": "" - }, - { - "name": "DeleteNodeFromNodeClusterRequest", - "code": "message DeleteNodeFromNodeClusterRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\n}", - "doc": "从集群中删除节点" - }, - { - "name": "RegisterClusterNodeResponse", - "code": "message RegisterClusterNodeResponse {\n\tstring uniqueId = 1;\n\tstring secret = 2;\n\trepeated string endpoints = 3;\n}", - "doc": "" - }, - { - "name": "FindCurrentNodeConfigResponse", - "code": "message FindCurrentNodeConfigResponse {\n\tbytes nodeJSON = 1;\n\tbool isChanged = 2;\n\tbool isCompressed = 3;\n\tint64 dataSize = 4;\n\tint64 timestamp = 5;\n}", - "doc": "" - }, - { - "name": "FindAllNotInstalledNodesWithNodeClusterIdRequest", - "code": "message FindAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "列出所有未安装的节点" - }, - { - "name": "CreateNodeResponse", - "code": "message CreateNodeResponse {\n\tint64 nodeId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeRequest", - "code": "message FindEnabledNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取单个节点信息" - }, - { - "name": "UpdateNodeStatusRequest", - "code": "message UpdateNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", - "doc": "更新节点状态" - }, - { - "name": "UpdateNodeLoginRequest", - "code": "message UpdateNodeLoginRequest {\n\tint64 nodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", - "doc": "修改节点登录信息" - }, - { - "name": "FindNodeLevelInfoResponse", - "code": "message FindNodeLevelInfoResponse {\n\tint32 level = 1;\n\tbytes parentNodesMapJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindNodeDNSResolverResponse", - "code": "message FindNodeDNSResolverResponse {\n\tbytes dnsResolverJSON = 1;\n}", - "doc": "" - }, - { - "name": "RegisterClusterNodeRequest", - "code": "message RegisterClusterNodeRequest {\n\tstring name = 1;\n}", - "doc": "注册集群节点" - }, - { - "name": "UpdateNodeDNSResolverRequest", - "code": "message UpdateNodeDNSResolverRequest {\n\tint64 nodeId = 1;\n\tbytes dnsResolverJSON = 2;\n}", - "doc": "修改DNS Resolver" - }, - { - "name": "FindAllUpgradeNodesWithNodeClusterIdResponse", - "code": "message FindAllUpgradeNodesWithNodeClusterIdResponse {\n\trepeated NodeUpgrade nodes = 1;\n\n\n\tmessage NodeUpgrade {\n\t\tNode node = 1;\n\t\tstring os = 2;\n\t\tstring arch = 3;\n\t\tstring oldVersion = 4;\n\t\tstring newVersion = 5;\n\t}\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesWithNodeGrantIdRequest", - "code": "message FindAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "查找使用某个认证的所有节点" - }, - { - "name": "UpdateNodeClusterSystemServiceRequest", - "code": "message UpdateNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", - "doc": "修改集群的系统服务设置" - }, - { - "name": "FindNodeClusterSystemServiceRequest", - "code": "message FindNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n}", - "doc": "查找集群的系统服务设置" - }, - { - "name": "FindEnabledNodeClusterWebPPolicyResponse", - "code": "message FindEnabledNodeClusterWebPPolicyResponse {\n\tbytes webpPolicyJSON = 1;\n}", + "name": "CreateNodeClusterResponse", + "code": "message CreateNodeClusterResponse {\n\tint64 nodeClusterId = 1;\n}", "doc": "" }, { @@ -14179,54 +14357,29 @@ "doc": "删除集群" }, { - "name": "FindAPINodesWithNodeClusterRequest", - "code": "message FindAPINodesWithNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的API节点信息" - }, - { - "name": "FindEnabledNodeClusterDNSRequest", - "code": "message FindEnabledNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的DNS配置" - }, - { - "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", - "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "查找使用某个WAF策略的所有集群" - }, - { - "name": "FindEnabledNodeClusterConfigInfoRequest", - "code": "message FindEnabledNodeClusterConfigInfoRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "取得集群的配置概要信息" - }, - { - "name": "FindEnabledNodeClusterUAMPolicyResponse", - "code": "message FindEnabledNodeClusterUAMPolicyResponse {\n\tbytes uamPolicyJSON = 1;\n}", + "name": "FindAPINodesWithNodeClusterResponse", + "code": "message FindAPINodesWithNodeClusterResponse {\n\tbool useAllAPINodes = 1;\n\trepeated APINode apiNodes = 2;\n}", "doc": "" }, { - "name": "UpdateNodeClusterDDoSProtectionRequest", - "code": "message UpdateNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改集群的DDoS设置" + "name": "UpdateNodeClusterRequest", + "code": "message UpdateNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tint64 nodeGrantId = 3;\n\tstring installDir = 4;\n\tstring timeZone = 5;\n\tint32 nodeMaxThreads = 6;\n\n\tbool autoOpenPorts = 8;\n}", + "doc": "修改集群" }, { - "name": "FindEnabledNodeClusterTOARequest", - "code": "message FindEnabledNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的TOA配置" + "name": "FindAllEnabledNodeClustersWithDNSDomainIdRequest", + "code": "message FindAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查找使用某个域名的所有集群" }, { - "name": "FindEnabledNodeClusterTOAResponse", - "code": "message FindEnabledNodeClusterTOAResponse {\n\tbytes toaJSON = 1;\n}", - "doc": "" + "name": "UpdateNodeClusterUAMPolicyRequest", + "code": "message UpdateNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes uamPolicyJSON = 2;\n}", + "doc": "设置集群的UAM策略" }, { - "name": "CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", - "code": "message CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "计算使用某个缓存策略的集群数量" - }, - { - "name": "CountAllEnabledNodeClustersWithDNSDomainIdRequest", - "code": "message CountAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "计算使用某个DNS域名的集群数量" + "name": "ListEnabledNodeClustersRequest", + "code": "message ListEnabledNodeClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n}", + "doc": "列出单页集群" }, { "name": "UpdateNodeClusterDNSRequest", @@ -14234,9 +14387,29 @@ "doc": "修改集群的域名设置" }, { - "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", - "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "查找使用缓存策略的所有集群" + "name": "FindNodeClusterSystemServiceRequest", + "code": "message FindNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n}", + "doc": "查找集群的系统服务设置" + }, + { + "name": "FindEnabledNodeClusterUAMPolicyResponse", + "code": "message FindEnabledNodeClusterUAMPolicyResponse {\n\tbytes uamPolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindNodeClusterDDoSProtectionResponse", + "code": "message FindNodeClusterDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindNodeClusterHealthCheckConfigRequest", + "code": "message FindNodeClusterHealthCheckConfigRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的健康检查配置" + }, + { + "name": "FindEnabledNodeClusterDNSResponse", + "code": "message FindEnabledNodeClusterDNSResponse {\n\tstring name = 1;\n\tDNSDomain domain = 2;\n\tDNSProvider provider = 3;\n\tstring defaultRoute = 6;\n\tbool nodesAutoSync = 4;\n\tbool serversAutoSync = 5;\n\trepeated string cnameRecords = 7;\n\tint32 ttl = 8;\n\tbool cnameAsDomain = 9;\n\tbool includingLnNodes = 10;\n}", + "doc": "" }, { "name": "FindFreePortInNodeClusterRequest", @@ -14244,64 +14417,29 @@ "doc": "获取集群中可以使用的端口" }, { - "name": "FindAllEnabledNodeClustersRequest", - "code": "message FindAllEnabledNodeClustersRequest {\n\n}", - "doc": "获取所有集群的信息" + "name": "FindLatestNodeClustersRequest", + "code": "message FindLatestNodeClustersRequest {\n\tint64 size = 1;\n}", + "doc": "查找最近访问的集群" }, { - "name": "CreateNodeClusterRequest", - "code": "message CreateNodeClusterRequest {\n\tstring name = 1;\n\tint64 nodeGrantId = 2;\n\tstring installDir = 3;\n\tint64 dnsDomainId = 4;\n\tstring dnsName = 5;\n\tint32 dnsTTL = 9;\n\tint64 httpCachePolicyId = 6;\n\tint64 httpFirewallPolicyId = 7;\n\tbytes systemServicesJSON = 8; // 系统服务设置\n}", - "doc": "创建集群" + "name": "CountAllEnabledNodeClustersWithDNSProviderIdRequest", + "code": "message CountAllEnabledNodeClustersWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算使用某个DNS服务商的集群数量" }, { - "name": "FindNodeClusterHealthCheckConfigResponse", - "code": "message FindNodeClusterHealthCheckConfigResponse {\n\tbytes healthCheckJSON = 1;\n}", - "doc": "" + "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", + "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "查找使用缓存策略的所有集群" }, { - "name": "UpdateNodeClusterHealthCheckRequest", - "code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}", - "doc": "修改集群健康检查设置" + "name": "UpdateNodeClusterWebPPolicyRequest", + "code": "message UpdateNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes webpPolicyJSON = 2;\n}", + "doc": "设置集群WebP策略" }, { - "name": "UpdateNodeClusterPinnedRequest", - "code": "message UpdateNodeClusterPinnedRequest {\n\tint64 nodeClusterId = 1;\n\tbool isPinned = 2;\n}", - "doc": "设置集群是否置顶" - }, - { - "name": "FindEnabledNodeClusterUAMPolicyRequest", - "code": "message FindEnabledNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "读取集群的UAM策略" - }, - { - "name": "FindLatestNodeClustersResponse", - "code": "message FindLatestNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodeClustersWithNodeGrantIdResponse", - "code": "message FindAllEnabledNodeClustersWithNodeGrantIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse", - "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeClusterConfigInfoResponse", - "code": "message FindEnabledNodeClusterConfigInfoResponse {\n\tbool healthCheckIsOn = 1;\n\tbool hasFirewallActions = 2;\n\tbool hasThresholds = 3;\n\tbool hasMessageReceivers = 4;\n\tbool isTOAEnabled = 5;\n\tbool hasMetricItems = 6;\n\tbool webpIsOn = 7;\n\tbool uamIsOn = 10;\n\tbool hasSystemServices = 8;\n\tbool hasDDoSProtection = 9;\n}", - "doc": "" - }, - { - "name": "FindNodeClusterDDoSProtectionRequest", - "code": "message FindNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "获取集群的DDoS设置" - }, - { - "name": "FindEnabledNodeClusterRequest", - "code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找单个集群信息" + "name": "FindEnabledNodeClusterWebPPolicyRequest", + "code": "message FindEnabledNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "读取集群WebP策略" }, { "name": "ListEnabledNodeClustersResponse", @@ -14314,18 +14452,38 @@ "doc": "检查集群域名是否已经被使用" }, { - "name": "CheckNodeClusterDNSChangesResponse", - "code": "message CheckNodeClusterDNSChangesResponse {\n\tbool isChanged = 1;\n}", + "name": "FindEnabledNodeClusterConfigInfoRequest", + "code": "message FindEnabledNodeClusterConfigInfoRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "取得集群的配置概要信息" + }, + { + "name": "UpdateNodeClusterTOARequest", + "code": "message UpdateNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n\tbytes toaJSON = 2;\n}", + "doc": "修改集群的TOA设置" + }, + { + "name": "FindNodeClusterSystemServiceResponse", + "code": "message FindNodeClusterSystemServiceResponse {\n\tbytes paramsJSON = 1;\n}", "doc": "" }, { - "name": "UpdateNodeClusterUAMPolicyRequest", - "code": "message UpdateNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes uamPolicyJSON = 2;\n}", - "doc": "设置集群的UAM策略" + "name": "FindAllEnabledNodeClustersRequest", + "code": "message FindAllEnabledNodeClustersRequest {\n\n}", + "doc": "获取所有集群的信息" }, { - "name": "FindNodeClusterDDoSProtectionResponse", - "code": "message FindNodeClusterDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "name": "FindAPINodesWithNodeClusterRequest", + "code": "message FindAPINodesWithNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的API节点信息" + }, + { + "name": "CountAllEnabledNodeClustersWithNodeGrantIdRequest", + "code": "message CountAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "计算使用某个认证的集群数量" + }, + { + "name": "FindEnabledNodeClusterTOAResponse", + "code": "message FindEnabledNodeClusterTOAResponse {\n\tbytes toaJSON = 1;\n}", "doc": "" }, { @@ -14334,79 +14492,9 @@ "doc": "" }, { - "name": "FindEnabledNodeClusterResponse", - "code": "message FindEnabledNodeClusterResponse {\n\tNodeCluster nodeCluster = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledNodeClustersWithDNSProviderIdRequest", - "code": "message CountAllEnabledNodeClustersWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算使用某个DNS服务商的集群数量" - }, - { - "name": "FindAllEnabledNodeClustersWithDNSDomainIdResponse", - "code": "message FindAllEnabledNodeClustersWithDNSDomainIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterTOARequest", - "code": "message UpdateNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n\tbytes toaJSON = 2;\n}", - "doc": "修改集群的TOA设置" - }, - { - "name": "CheckPortIsUsingInNodeClusterRequest", - "code": "message CheckPortIsUsingInNodeClusterRequest {\n\tint32 port = 1;\n\tint64 nodeClusterId = 2;\n\tint64 excludeServerId = 3;\n\tstring excludeProtocol = 4;\n\tstring protocolFamily = 5;\n}", - "doc": "检查端口是否已经被使用" - }, - { - "name": "ExecuteNodeClusterHealthCheckResponse", - "code": "message ExecuteNodeClusterHealthCheckResponse {\n\trepeated Result results = 1;\n\n\n\tmessage Result {\n\t\tNode node = 1;\n\t\tstring nodeAddr = 2;\n\t\tbool isOk = 3;\n\t\tstring error = 4;\n\t\tfloat costMs = 5;\n\t}\n}", - "doc": "" - }, - { - "name": "FindNodeClusterHealthCheckConfigRequest", - "code": "message FindNodeClusterHealthCheckConfigRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的健康检查配置" - }, - { - "name": "CreateNodeClusterResponse", - "code": "message CreateNodeClusterResponse {\n\tint64 nodeClusterId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterRequest", - "code": "message UpdateNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tint64 nodeGrantId = 3;\n\tstring installDir = 4;\n\tstring timeZone = 5;\n\tint32 nodeMaxThreads = 6;\n\n\tbool autoOpenPorts = 8;\n}", - "doc": "修改集群" - }, - { - "name": "FindAPINodesWithNodeClusterResponse", - "code": "message FindAPINodesWithNodeClusterResponse {\n\tbool useAllAPINodes = 1;\n\trepeated APINode apiNodes = 2;\n}", - "doc": "" - }, - { - "name": "ListEnabledNodeClustersRequest", - "code": "message ListEnabledNodeClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n}", - "doc": "列出单页集群" - }, - { - "name": "CheckNodeClusterDNSChangesRequest", - "code": "message CheckNodeClusterDNSChangesRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "检查集群的DNS是否有变化" - }, - { - "name": "FindLatestNodeClustersRequest", - "code": "message FindLatestNodeClustersRequest {\n\tint64 size = 1;\n}", - "doc": "查找最近访问的集群" - }, - { - "name": "UpdateNodeClusterWebPPolicyRequest", - "code": "message UpdateNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes webpPolicyJSON = 2;\n}", - "doc": "设置集群WebP策略" - }, - { - "name": "CheckNodeClusterDNSNameResponse", - "code": "message CheckNodeClusterDNSNameResponse {\n\tbool isUsed = 1;\n}", - "doc": "" + "name": "CountAllEnabledNodeClustersRequest", + "code": "message CountAllEnabledNodeClustersRequest {\n\tstring keyword = 1;\n}", + "doc": "计算所有集群数量" }, { "name": "CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", @@ -14414,34 +14502,34 @@ "doc": "计算使用某个WAF策略的集群数量" }, { - "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse", - "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", + "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "查找使用某个WAF策略的所有集群" + }, + { + "name": "FindNodeClusterHealthCheckConfigResponse", + "code": "message FindNodeClusterHealthCheckConfigResponse {\n\tbytes healthCheckJSON = 1;\n}", "doc": "" }, { - "name": "CheckPortIsUsingInNodeClusterResponse", - "code": "message CheckPortIsUsingInNodeClusterResponse {\n\tbool isUsing = 1;\n}", + "name": "UpdateNodeClusterHealthCheckRequest", + "code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}", + "doc": "修改集群健康检查设置" + }, + { + "name": "CheckNodeClusterDNSChangesRequest", + "code": "message CheckNodeClusterDNSChangesRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "检查集群的DNS是否有变化" + }, + { + "name": "CheckNodeClusterDNSChangesResponse", + "code": "message CheckNodeClusterDNSChangesResponse {\n\tbool isChanged = 1;\n}", "doc": "" }, { - "name": "FindEnabledNodeClusterWebPPolicyRequest", - "code": "message FindEnabledNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "读取集群WebP策略" - }, - { - "name": "ExecuteNodeClusterHealthCheckRequest", - "code": "message ExecuteNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "执行健康检查" - }, - { - "name": "CountAllEnabledNodeClustersWithNodeGrantIdRequest", - "code": "message CountAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "计算使用某个认证的集群数量" - }, - { - "name": "FindAllEnabledNodeClustersWithNodeGrantIdRequest", - "code": "message FindAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "查找使用某个认证的所有集群" + "name": "CreateNodeClusterRequest", + "code": "message CreateNodeClusterRequest {\n\tstring name = 1;\n\tint64 nodeGrantId = 2;\n\tstring installDir = 3;\n\tint64 dnsDomainId = 4;\n\tstring dnsName = 5;\n\tint32 dnsTTL = 9;\n\tint64 httpCachePolicyId = 6;\n\tint64 httpFirewallPolicyId = 7;\n\tbytes systemServicesJSON = 8; // 系统服务设置\n}", + "doc": "创建集群" }, { "name": "UpdateNodeClusterHTTPFirewallPolicyIdRequest", @@ -14449,35 +14537,160 @@ "doc": "修改集群的WAF策略" }, { - "name": "CountAllEnabledNodeClustersRequest", - "code": "message CountAllEnabledNodeClustersRequest {\n\tstring keyword = 1;\n}", - "doc": "计算所有集群数量" + "name": "UpdateNodeClusterSystemServiceRequest", + "code": "message UpdateNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", + "doc": "修改集群的系统服务设置" }, { - "name": "FindAllEnabledNodeClustersWithDNSDomainIdRequest", - "code": "message FindAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查找使用某个域名的所有集群" + "name": "FindEnabledNodeClusterUAMPolicyRequest", + "code": "message FindEnabledNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "读取集群的UAM策略" }, { - "name": "FindNodeClusterSystemServiceResponse", - "code": "message FindNodeClusterSystemServiceResponse {\n\tbytes paramsJSON = 1;\n}", + "name": "ExecuteNodeClusterHealthCheckResponse", + "code": "message ExecuteNodeClusterHealthCheckResponse {\n\trepeated Result results = 1;\n\n\n\tmessage Result {\n\t\tNode node = 1;\n\t\tstring nodeAddr = 2;\n\t\tbool isOk = 3;\n\t\tstring error = 4;\n\t\tfloat costMs = 5;\n\t}\n}", "doc": "" }, { - "name": "FindEnabledNodeClusterDNSResponse", - "code": "message FindEnabledNodeClusterDNSResponse {\n\tstring name = 1;\n\tDNSDomain domain = 2;\n\tDNSProvider provider = 3;\n\tstring defaultRoute = 6;\n\tbool nodesAutoSync = 4;\n\tbool serversAutoSync = 5;\n\trepeated string cnameRecords = 7;\n\tint32 ttl = 8;\n\tbool cnameAsDomain = 9;\n\tbool includingLnNodes = 10;\n}", + "name": "FindEnabledNodeClusterResponse", + "code": "message FindEnabledNodeClusterResponse {\n\tNodeCluster nodeCluster = 1;\n}", "doc": "" }, + { + "name": "CountAllEnabledNodeClustersWithDNSDomainIdRequest", + "code": "message CountAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "计算使用某个DNS域名的集群数量" + }, + { + "name": "FindEnabledNodeClusterTOARequest", + "code": "message FindEnabledNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的TOA配置" + }, + { + "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse", + "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodeClustersWithNodeGrantIdResponse", + "code": "message FindAllEnabledNodeClustersWithNodeGrantIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeClusterDNSRequest", + "code": "message FindEnabledNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的DNS配置" + }, + { + "name": "FindNodeClusterDDoSProtectionRequest", + "code": "message FindNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "获取集群的DDoS设置" + }, + { + "name": "FindEnabledNodeClusterWebPPolicyResponse", + "code": "message FindEnabledNodeClusterWebPPolicyResponse {\n\tbytes webpPolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterDDoSProtectionRequest", + "code": "message UpdateNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", + "doc": "修改集群的DDoS设置" + }, + { + "name": "FindAllEnabledNodeClustersWithNodeGrantIdRequest", + "code": "message FindAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "查找使用某个认证的所有集群" + }, + { + "name": "CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", + "code": "message CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "计算使用某个缓存策略的集群数量" + }, { "name": "UpdateNodeClusterHTTPCachePolicyIdRequest", "code": "message UpdateNodeClusterHTTPCachePolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpCachePolicyId = 2;\n}", "doc": "修改集群的缓存策略" }, + { + "name": "CheckPortIsUsingInNodeClusterRequest", + "code": "message CheckPortIsUsingInNodeClusterRequest {\n\tint32 port = 1;\n\tint64 nodeClusterId = 2;\n\tint64 excludeServerId = 3;\n\tstring excludeProtocol = 4;\n\tstring protocolFamily = 5;\n}", + "doc": "检查端口是否已经被使用" + }, + { + "name": "CheckPortIsUsingInNodeClusterResponse", + "code": "message CheckPortIsUsingInNodeClusterResponse {\n\tbool isUsing = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterPinnedRequest", + "code": "message UpdateNodeClusterPinnedRequest {\n\tint64 nodeClusterId = 1;\n\tbool isPinned = 2;\n}", + "doc": "设置集群是否置顶" + }, + { + "name": "FindEnabledNodeClusterRequest", + "code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找单个集群信息" + }, + { + "name": "ExecuteNodeClusterHealthCheckRequest", + "code": "message ExecuteNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "执行健康检查" + }, + { + "name": "FindAllEnabledNodeClustersWithDNSDomainIdResponse", + "code": "message FindAllEnabledNodeClustersWithDNSDomainIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse", + "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "CheckNodeClusterDNSNameResponse", + "code": "message CheckNodeClusterDNSNameResponse {\n\tbool isUsed = 1;\n}", + "doc": "" + }, { "name": "FindFreePortInNodeClusterResponse", "code": "message FindFreePortInNodeClusterResponse {\n\tint32 port = 1;\n}", "doc": "" }, + { + "name": "FindLatestNodeClustersResponse", + "code": "message FindLatestNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeClusterConfigInfoResponse", + "code": "message FindEnabledNodeClusterConfigInfoResponse {\n\tbool healthCheckIsOn = 1;\n\tbool hasFirewallActions = 2;\n\tbool hasThresholds = 3;\n\tbool hasMessageReceivers = 4;\n\tbool isTOAEnabled = 5;\n\tbool hasMetricItems = 6;\n\tbool webpIsOn = 7;\n\tbool uamIsOn = 10;\n\tbool hasSystemServices = 8;\n\tbool hasDDoSProtection = 9;\n}", + "doc": "" + }, + { + "name": "DeleteNodeClusterFirewallActionRequest", + "code": "message DeleteNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", + "doc": "删除动作" + }, + { + "name": "FindAllEnabledNodeClusterFirewallActionsRequest", + "code": "message FindAllEnabledNodeClusterFirewallActionsRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查询集群的所有动作" + }, + { + "name": "FindEnabledNodeClusterFirewallActionRequest", + "code": "message FindEnabledNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", + "doc": "查询单个动作" + }, + { + "name": "CreateNodeClusterFirewallActionRequest", + "code": "message CreateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", + "doc": "创建动作" + }, + { + "name": "NodeClusterFirewallActionResponse", + "code": "message NodeClusterFirewallActionResponse {\n\tint64 nodeClusterFirewallActionId = 1;\n}", + "doc": "" + }, { "name": "FindEnabledNodeClusterFirewallActionResponse", "code": "message FindEnabledNodeClusterFirewallActionResponse {\n\tNodeClusterFirewallAction nodeClusterFirewallAction = 1;\n}", @@ -14489,14 +14702,9 @@ "doc": "计算动作数量" }, { - "name": "CreateNodeClusterFirewallActionRequest", - "code": "message CreateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", - "doc": "创建动作" - }, - { - "name": "NodeClusterFirewallActionResponse", - "code": "message NodeClusterFirewallActionResponse {\n\tint64 nodeClusterFirewallActionId = 1;\n}", - "doc": "" + "name": "UpdateNodeClusterFirewallActionRequest", + "code": "message UpdateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", + "doc": "修改动作" }, { "name": "FindAllEnabledNodeClusterFirewallActionsResponse", @@ -14504,24 +14712,14 @@ "doc": "" }, { - "name": "FindEnabledNodeClusterFirewallActionRequest", - "code": "message FindEnabledNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", - "doc": "查询单个动作" + "name": "DisableNodeClusterMetricItemRequest", + "code": "message DisableNodeClusterMetricItemRequest {\n\tint64 nodeClusterId = 1;\n\tint64 metricItemId = 2;\n}", + "doc": "禁用某个指标" }, { - "name": "UpdateNodeClusterFirewallActionRequest", - "code": "message UpdateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", - "doc": "修改动作" - }, - { - "name": "DeleteNodeClusterFirewallActionRequest", - "code": "message DeleteNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", - "doc": "删除动作" - }, - { - "name": "FindAllEnabledNodeClusterFirewallActionsRequest", - "code": "message FindAllEnabledNodeClusterFirewallActionsRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查询集群的所有动作" + "name": "FindAllNodeClusterMetricItemsRequest", + "code": "message FindAllNodeClusterMetricItemsRequest {\n\tint64 nodeClusterId = 1;\n\tstring category = 2;\n}", + "doc": "查找集群中所有指标" }, { "name": "FindAllNodeClusterMetricItemsResponse", @@ -14549,44 +14747,9 @@ "doc": "启用某个指标" }, { - "name": "DisableNodeClusterMetricItemRequest", - "code": "message DisableNodeClusterMetricItemRequest {\n\tint64 nodeClusterId = 1;\n\tint64 metricItemId = 2;\n}", - "doc": "禁用某个指标" - }, - { - "name": "FindAllNodeClusterMetricItemsRequest", - "code": "message FindAllNodeClusterMetricItemsRequest {\n\tint64 nodeClusterId = 1;\n\tstring category = 2;\n}", - "doc": "查找集群中所有指标" - }, - { - "name": "CreateNodeGrantRequest", - "code": "message CreateNodeGrantRequest {\n\tstring name = 1;\n\tstring method = 2;\n\tstring username = 3;\n\tstring password = 4;\n\tstring privateKey = 5;\n\tstring passphrase = 8;\n\tstring description = 6;\n\tint64 nodeId = 7;\n\tbool su = 9;\n}", - "doc": "创建节点认证" - }, - { - "name": "UpdateNodeGrantRequest", - "code": "message UpdateNodeGrantRequest {\n\tint64 nodeGrantId = 8;\n\tstring name = 1;\n\tstring method = 2;\n\tstring username = 3;\n\tstring password = 4;\n\tstring privateKey = 5;\n\tstring passphrase = 9;\n\tstring description = 6;\n\tint64 nodeId = 7;\n\tbool su = 10;\n}", - "doc": "修改节点认证" - }, - { - "name": "FindEnabledNodeGrantResponse", - "code": "message FindEnabledNodeGrantResponse {\n\tNodeGrant nodeGrant = 1;\n}", - "doc": "" - }, - { - "name": "TestNodeGrantRequest", - "code": "message TestNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n\tstring host = 2;\n\tint32 port = 3;\n}", - "doc": "测试连接" - }, - { - "name": "CreateNodeGrantResponse", - "code": "message CreateNodeGrantResponse {\n\tint64 nodeGrantId = 1;\n}", - "doc": "" - }, - { - "name": "DisableNodeGrantResponse", - "code": "message DisableNodeGrantResponse {\n\n}", - "doc": "" + "name": "FindAllEnabledNodeGrantsRequest", + "code": "message FindAllEnabledNodeGrantsRequest {\n\n}", + "doc": "获取所有认证信息" }, { "name": "ListEnabledNodeGrantsRequest", @@ -14598,30 +14761,25 @@ "code": "message FindEnabledNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", "doc": "获取认证信息" }, - { - "name": "FindSuggestNodeGrantsResponse", - "code": "message FindSuggestNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", - "doc": "" - }, { "name": "DisableNodeGrantRequest", "code": "message DisableNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", "doc": "禁用节点认证" }, { - "name": "FindAllEnabledNodeGrantsResponse", - "code": "message FindAllEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", + "name": "CreateNodeGrantResponse", + "code": "message CreateNodeGrantResponse {\n\tint64 nodeGrantId = 1;\n}", "doc": "" }, { - "name": "TestNodeGrantResponse", - "code": "message TestNodeGrantResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" + "name": "UpdateNodeGrantRequest", + "code": "message UpdateNodeGrantRequest {\n\tint64 nodeGrantId = 8;\n\tstring name = 1;\n\tstring method = 2;\n\tstring username = 3;\n\tstring password = 4;\n\tstring privateKey = 5;\n\tstring passphrase = 9;\n\tstring description = 6;\n\tint64 nodeId = 7;\n\tbool su = 10;\n}", + "doc": "修改节点认证" }, { - "name": "CountAllEnabledNodeGrantsRequest", - "code": "message CountAllEnabledNodeGrantsRequest {\n\tstring keyword = 1;\n}", - "doc": "计算节点认证数量" + "name": "DisableNodeGrantResponse", + "code": "message DisableNodeGrantResponse {\n\n}", + "doc": "" }, { "name": "ListEnabledNodeGrantsResponse", @@ -14629,9 +14787,24 @@ "doc": "" }, { - "name": "FindAllEnabledNodeGrantsRequest", - "code": "message FindAllEnabledNodeGrantsRequest {\n\n}", - "doc": "获取所有认证信息" + "name": "FindAllEnabledNodeGrantsResponse", + "code": "message FindAllEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", + "doc": "" + }, + { + "name": "TestNodeGrantRequest", + "code": "message TestNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n\tstring host = 2;\n\tint32 port = 3;\n}", + "doc": "测试连接" + }, + { + "name": "TestNodeGrantResponse", + "code": "message TestNodeGrantResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "CreateNodeGrantRequest", + "code": "message CreateNodeGrantRequest {\n\tstring name = 1;\n\tstring method = 2;\n\tstring username = 3;\n\tstring password = 4;\n\tstring privateKey = 5;\n\tstring passphrase = 8;\n\tstring description = 6;\n\tint64 nodeId = 7;\n\tbool su = 9;\n}", + "doc": "创建节点认证" }, { "name": "FindSuggestNodeGrantsRequest", @@ -14639,9 +14812,19 @@ "doc": "查找集群推荐的认证" }, { - "name": "UpdateNodeGroupOrdersRequest", - "code": "message UpdateNodeGroupOrdersRequest {\n\trepeated int64 nodeGroupIds = 1;\n}", - "doc": "修改分组排序" + "name": "FindEnabledNodeGrantResponse", + "code": "message FindEnabledNodeGrantResponse {\n\tNodeGrant nodeGrant = 1;\n}", + "doc": "" + }, + { + "name": "FindSuggestNodeGrantsResponse", + "code": "message FindSuggestNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodeGrantsRequest", + "code": "message CountAllEnabledNodeGrantsRequest {\n\tstring keyword = 1;\n}", + "doc": "计算节点认证数量" }, { "name": "FindEnabledNodeGroupRequest", @@ -14653,26 +14836,6 @@ "code": "message FindEnabledNodeGroupResponse {\n\tNodeGroup nodeGroup = 1;\n}", "doc": "" }, - { - "name": "DeleteNodeGroupRequest", - "code": "message DeleteNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n}", - "doc": "删除分组" - }, - { - "name": "FindAllEnabledNodeGroupsWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查询所有分组" - }, - { - "name": "UpdateNodeGroupRequest", - "code": "message UpdateNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n\tstring name = 2;\n}", - "doc": "修改分组" - }, - { - "name": "FindAllEnabledNodeGroupsWithNodeClusterIdResponse", - "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdResponse {\n\trepeated NodeGroup nodeGroups = 1;\n}", - "doc": "" - }, { "name": "CreateNodeGroupRequest", "code": "message CreateNodeGroupRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n}", @@ -14684,8 +14847,33 @@ "doc": "" }, { - "name": "DisableAllNodeIPAddressesWithNodeIdResponse", - "code": "message DisableAllNodeIPAddressesWithNodeIdResponse {\n\n}", + "name": "UpdateNodeGroupRequest", + "code": "message UpdateNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n\tstring name = 2;\n}", + "doc": "修改分组" + }, + { + "name": "DeleteNodeGroupRequest", + "code": "message DeleteNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n}", + "doc": "删除分组" + }, + { + "name": "FindAllEnabledNodeGroupsWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查询所有分组" + }, + { + "name": "FindAllEnabledNodeGroupsWithNodeClusterIdResponse", + "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdResponse {\n\trepeated NodeGroup nodeGroups = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeGroupOrdersRequest", + "code": "message UpdateNodeGroupOrdersRequest {\n\trepeated int64 nodeGroupIds = 1;\n}", + "doc": "修改分组排序" + }, + { + "name": "CreateNodeIPAddressResponse", + "code": "message CreateNodeIPAddressResponse {\n\tint64 nodeIPAddressId = 1;\n}", "doc": "" }, { @@ -14694,19 +14882,19 @@ "doc": "" }, { - "name": "RestoreNodeIPAddressBackupIPRequest", - "code": "message RestoreNodeIPAddressBackupIPRequest {\n\tint64 nodeIPAddressId = 1;\n}", - "doc": "还原备用IP状态" + "name": "FindAllEnabledNodeIPAddressesWithNodeIdRequest", + "code": "message FindAllEnabledNodeIPAddressesWithNodeIdRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n}", + "doc": "查找节点的所有地址" }, { - "name": "DisableNodeIPAddressResponse", - "code": "message DisableNodeIPAddressResponse {\n\n}", - "doc": "" + "name": "ListEnabledNodeIPAddressesRequest", + "code": "message ListEnabledNodeIPAddressesRequest {\n\tint64 nodeClusterId = 1;\n\tstring role = 2;\n\tint32 upState = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "列出单页IP地址" }, { - "name": "CreateNodeIPAddressesRequest", - "code": "message CreateNodeIPAddressesRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\trepeated string ipList = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n\tstring groupValue = 7;\n}", - "doc": "批量创建IP地址" + "name": "CreateNodeIPAddressRequest", + "code": "message CreateNodeIPAddressRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\tstring ip = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n}", + "doc": "创建IP地址" }, { "name": "UpdateNodeIPAddressRequest", @@ -14718,14 +14906,44 @@ "code": "message UpdateNodeIPAddressNodeIdRequest {\n\tint64 nodeIPAddressId = 1;\n\tint64 nodeId = 2;\n}", "doc": "修改IP地址所属节点" }, + { + "name": "DisableNodeIPAddressRequest", + "code": "message DisableNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", + "doc": "禁用单个IP地址" + }, + { + "name": "ListEnabledNodeIPAddressesResponse", + "code": "message ListEnabledNodeIPAddressesResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeIPAddressRequest", + "code": "message FindEnabledNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", + "doc": "查找单个IP地址" + }, + { + "name": "FindAllEnabledNodeIPAddressesWithNodeIdResponse", + "code": "message FindAllEnabledNodeIPAddressesWithNodeIdResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", + "doc": "" + }, { "name": "CountAllEnabledNodeIPAddressesRequest", "code": "message CountAllEnabledNodeIPAddressesRequest {\n\tint64 nodeClusterId = 1;\n\tstring role = 2;\n\tint32 upState = 3;\n\tstring keyword = 4;\n}", "doc": "计算IP地址数量" }, { - "name": "CreateNodeIPAddressResponse", - "code": "message CreateNodeIPAddressResponse {\n\tint64 nodeIPAddressId = 1;\n}", + "name": "CreateNodeIPAddressesRequest", + "code": "message CreateNodeIPAddressesRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\trepeated string ipList = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n\tstring groupValue = 7;\n}", + "doc": "批量创建IP地址" + }, + { + "name": "CreateNodeIPAddressesResponse", + "code": "message CreateNodeIPAddressesResponse {\n\trepeated int64 nodeIPAddressIds = 1;\n}", + "doc": "" + }, + { + "name": "DisableNodeIPAddressResponse", + "code": "message DisableNodeIPAddressResponse {\n\n}", "doc": "" }, { @@ -14734,54 +14952,19 @@ "doc": "禁用节点的所有IP地址" }, { - "name": "FindEnabledNodeIPAddressRequest", - "code": "message FindEnabledNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", - "doc": "查找单个IP地址" - }, - { - "name": "FindAllEnabledNodeIPAddressesWithNodeIdRequest", - "code": "message FindAllEnabledNodeIPAddressesWithNodeIdRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n}", - "doc": "查找节点的所有地址" - }, - { - "name": "ListEnabledNodeIPAddressesResponse", - "code": "message ListEnabledNodeIPAddressesResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", + "name": "DisableAllNodeIPAddressesWithNodeIdResponse", + "code": "message DisableAllNodeIPAddressesWithNodeIdResponse {\n\n}", "doc": "" }, - { - "name": "CreateNodeIPAddressRequest", - "code": "message CreateNodeIPAddressRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\tstring ip = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n}", - "doc": "创建IP地址" - }, - { - "name": "DisableNodeIPAddressRequest", - "code": "message DisableNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", - "doc": "禁用单个IP地址" - }, - { - "name": "FindAllEnabledNodeIPAddressesWithNodeIdResponse", - "code": "message FindAllEnabledNodeIPAddressesWithNodeIdResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledNodeIPAddressesRequest", - "code": "message ListEnabledNodeIPAddressesRequest {\n\tint64 nodeClusterId = 1;\n\tstring role = 2;\n\tint32 upState = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", - "doc": "列出单页IP地址" - }, { "name": "UpdateNodeIPAddressIsUpRequest", "code": "message UpdateNodeIPAddressIsUpRequest {\n\tint64 nodeIPAddressId = 1;\n\tbool isUp = 2;\n}", "doc": "设置上下线状态" }, { - "name": "CreateNodeIPAddressesResponse", - "code": "message CreateNodeIPAddressesResponse {\n\trepeated int64 nodeIPAddressIds = 1;\n}", - "doc": "" - }, - { - "name": "ListNodeIPAddressLogsResponse", - "code": "message ListNodeIPAddressLogsResponse {\n\trepeated NodeIPAddressLog nodeIPAddressLogs = 1;\n}", - "doc": "" + "name": "RestoreNodeIPAddressBackupIPRequest", + "code": "message RestoreNodeIPAddressBackupIPRequest {\n\tint64 nodeIPAddressId = 1;\n}", + "doc": "还原备用IP状态" }, { "name": "CountAllNodeIPAddressLogsRequest", @@ -14793,6 +14976,21 @@ "code": "message ListNodeIPAddressLogsRequest {\n\tint64 nodeIPAddressId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", "doc": "列出单页日志" }, + { + "name": "ListNodeIPAddressLogsResponse", + "code": "message ListNodeIPAddressLogsResponse {\n\trepeated NodeIPAddressLog nodeIPAddressLogs = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeIPAddressThresholdRequest", + "code": "message UpdateNodeIPAddressThresholdRequest {\n\tint64 nodeIPAddressThresholdId = 1;\n\tbytes itemsJSON = 2;\n\tbytes actionsJSON = 3;\n}", + "doc": "修改阈值" + }, + { + "name": "DeleteNodeIPAddressThresholdRequest", + "code": "message DeleteNodeIPAddressThresholdRequest {\n\tint64 nodeIPAddressThresholdId = 1;\n}", + "doc": "删除阈值" + }, { "name": "FindAllEnabledNodeIPAddressThresholdsRequest", "code": "message FindAllEnabledNodeIPAddressThresholdsRequest {\n\tint64 nodeIPAddressId = 1;\n}", @@ -14824,14 +15022,9 @@ "doc": "" }, { - "name": "UpdateNodeIPAddressThresholdRequest", - "code": "message UpdateNodeIPAddressThresholdRequest {\n\tint64 nodeIPAddressThresholdId = 1;\n\tbytes itemsJSON = 2;\n\tbytes actionsJSON = 3;\n}", - "doc": "修改阈值" - }, - { - "name": "DeleteNodeIPAddressThresholdRequest", - "code": "message DeleteNodeIPAddressThresholdRequest {\n\tint64 nodeIPAddressThresholdId = 1;\n}", - "doc": "删除阈值" + "name": "UpdateNodeLogsReadRequest", + "code": "message UpdateNodeLogsReadRequest {\n\trepeated int64 nodeLogIds = 1;\n\n\tint64 nodeId = 2;\n\tstring role = 3;\n}", + "doc": "设置日志为已读" }, { "name": "UpdateAllNodeLogsReadRequest", @@ -14843,16 +15036,16 @@ "code": "message CreateNodeLogsRequest {\n\trepeated NodeLog nodeLogs = 1;\n}", "doc": "创建日志" }, - { - "name": "CountNodeLogsRequest", - "code": "message CountNodeLogsRequest {\n\tint64 nodeClusterId = 11;\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring dayFrom = 3;\n\tstring dayTo = 4;\n\tstring keyword = 5;\n\tstring level = 6;\n\tint64 serverId = 7;\n\tint64 originId = 8;\n\tbool isUnread = 9;\n\tstring tag = 10;\n\tint32 fixedState = 12;\n\tbool allServers = 13; // 是否获取所有服务相关的日志\n}", - "doc": "查询日志数量" - }, { "name": "ListNodeLogsRequest", "code": "message ListNodeLogsRequest {\n\tint64 nodeClusterId = 15;\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n\n\tstring dayFrom = 5;\n\tstring dayTo = 6;\n\tstring keyword = 7;\n\tstring level = 8;\n\tint64 serverId = 9;\n\tint32 fixedState = 10;\n\tbool allServers = 11; // 是否获取所有服务相关的日志\n\tint64 originId = 12;\n\tbool isUnread = 13;\n\tstring tag = 14;\n}", "doc": "列出单页日志" }, + { + "name": "ListNodeLogsResponse", + "code": "message ListNodeLogsResponse {\n\trepeated NodeLog nodeLogs = 1;\n}", + "doc": "" + }, { "name": "FixNodeLogsRequest", "code": "message FixNodeLogsRequest {\n\trepeated int64 nodeLogIds = 1;\n}", @@ -14869,14 +15062,9 @@ "doc": "" }, { - "name": "ListNodeLogsResponse", - "code": "message ListNodeLogsResponse {\n\trepeated NodeLog nodeLogs = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeLogsReadRequest", - "code": "message UpdateNodeLogsReadRequest {\n\trepeated int64 nodeLogIds = 1;\n\n\tint64 nodeId = 2;\n\tstring role = 3;\n}", - "doc": "设置日志为已读" + "name": "CountNodeLogsRequest", + "code": "message CountNodeLogsRequest {\n\tint64 nodeClusterId = 11;\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring dayFrom = 3;\n\tstring dayTo = 4;\n\tstring keyword = 5;\n\tstring level = 6;\n\tint64 serverId = 7;\n\tint64 originId = 8;\n\tbool isUnread = 9;\n\tstring tag = 10;\n\tint32 fixedState = 12;\n\tbool allServers = 13; // 是否获取所有服务相关的日志\n}", + "doc": "查询日志数量" }, { "name": "FindNodeLoginSuggestPortsRequest", @@ -14889,15 +15077,30 @@ "doc": "" }, { - "name": "UpdateNodePriceItemRequest", - "code": "message UpdateNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 bitsFrom = 4;\n\tint64 bitsTo = 5;\n}", - "doc": "修改区域价格" + "name": "FindAllEnabledNodePriceItemsResponse", + "code": "message FindAllEnabledNodePriceItemsResponse {\n\trepeated NodePriceItem NodePriceItems = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodePriceItemRequest", + "code": "message FindEnabledNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", + "doc": "查找单个区域价格信息" + }, + { + "name": "CreateNodePriceItemResponse", + "code": "message CreateNodePriceItemResponse {\n\tint64 NodePriceItemId = 1;\n}", + "doc": "" }, { "name": "DeleteNodePriceItemRequest", "code": "message DeleteNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", "doc": "删除区域价格" }, + { + "name": "FindAllEnabledNodePriceItemsRequest", + "code": "message FindAllEnabledNodePriceItemsRequest {\n\tstring type = 1;\n}", + "doc": "查找所有区域价格" + }, { "name": "FindAllAvailableNodePriceItemsRequest", "code": "message FindAllAvailableNodePriceItemsRequest {\n\tstring type = 1;\n}", @@ -14919,39 +15122,9 @@ "doc": "创建区域价格" }, { - "name": "CreateNodePriceItemResponse", - "code": "message CreateNodePriceItemResponse {\n\tint64 NodePriceItemId = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodePriceItemsRequest", - "code": "message FindAllEnabledNodePriceItemsRequest {\n\tstring type = 1;\n}", - "doc": "查找所有区域价格" - }, - { - "name": "FindAllEnabledNodePriceItemsResponse", - "code": "message FindAllEnabledNodePriceItemsResponse {\n\trepeated NodePriceItem NodePriceItems = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodePriceItemRequest", - "code": "message FindEnabledNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", - "doc": "查找单个区域价格信息" - }, - { - "name": "UpdateNodeRegionOrdersRequest", - "code": "message UpdateNodeRegionOrdersRequest {\n\trepeated int64 nodeRegionIds = 1;\n}", - "doc": "排序" - }, - { - "name": "FindEnabledNodeRegionRequest", - "code": "message FindEnabledNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", - "doc": "查找单个区域信息" - }, - { - "name": "FindEnabledNodeRegionResponse", - "code": "message FindEnabledNodeRegionResponse {\n\tNodeRegion nodeRegion = 1;\n}", - "doc": "" + "name": "UpdateNodePriceItemRequest", + "code": "message UpdateNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 bitsFrom = 4;\n\tint64 bitsTo = 5;\n}", + "doc": "修改区域价格" }, { "name": "CreateNodeRegionRequest", @@ -14963,26 +15136,46 @@ "code": "message UpdateNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n}", "doc": "修改区域" }, - { - "name": "DeleteNodeRegionRequest", - "code": "message DeleteNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", - "doc": "删除区域" - }, { "name": "FindAllEnabledNodeRegionsRequest", "code": "message FindAllEnabledNodeRegionsRequest {\n\n}", "doc": "查找所有区域" }, { - "name": "FindAllEnabledNodeRegionsResponse", - "code": "message FindAllEnabledNodeRegionsResponse {\n\trepeated NodeRegion nodeRegions = 1;\n}", + "name": "FindEnabledNodeRegionResponse", + "code": "message FindEnabledNodeRegionResponse {\n\tNodeRegion nodeRegion = 1;\n}", "doc": "" }, + { + "name": "UpdateNodeRegionOrdersRequest", + "code": "message UpdateNodeRegionOrdersRequest {\n\trepeated int64 nodeRegionIds = 1;\n}", + "doc": "排序" + }, + { + "name": "FindEnabledNodeRegionRequest", + "code": "message FindEnabledNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", + "doc": "查找单个区域信息" + }, + { + "name": "UpdateNodeRegionPriceRequest", + "code": "message UpdateNodeRegionPriceRequest {\n\tint64 nodeRegionId = 1;\n\tint64 nodeItemId = 2;\n\tfloat price = 3;\n}", + "doc": "修改价格项价格" + }, { "name": "CreateNodeRegionResponse", "code": "message CreateNodeRegionResponse {\n\tint64 nodeRegionId = 1;\n}", "doc": "" }, + { + "name": "DeleteNodeRegionRequest", + "code": "message DeleteNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", + "doc": "删除区域" + }, + { + "name": "FindAllEnabledNodeRegionsResponse", + "code": "message FindAllEnabledNodeRegionsResponse {\n\trepeated NodeRegion nodeRegions = 1;\n}", + "doc": "" + }, { "name": "FindAllAvailableNodeRegionsRequest", "code": "message FindAllAvailableNodeRegionsRequest {\n\n}", @@ -14993,51 +15186,56 @@ "code": "message FindAllAvailableNodeRegionsResponse {\n\trepeated NodeRegion nodeRegions = 1;\n}", "doc": "" }, - { - "name": "UpdateNodeRegionPriceRequest", - "code": "message UpdateNodeRegionPriceRequest {\n\tint64 nodeRegionId = 1;\n\tint64 nodeItemId = 2;\n\tfloat price = 3;\n}", - "doc": "修改价格项价格" - }, { "name": "FindNodeTasksResponse", "code": "message FindNodeTasksResponse {\n\trepeated NodeTask nodeTasks = 1;\n}", "doc": "" }, + { + "name": "ExistsNodeTasksResponse", + "code": "message ExistsNodeTasksResponse {\n\tbool existTasks = 1;\n\tbool existError = 2;\n}", + "doc": "" + }, + { + "name": "DeleteNodeTaskRequest", + "code": "message DeleteNodeTaskRequest {\n\tint64 nodeTaskId = 1;\n}", + "doc": "删除任务" + }, + { + "name": "DeleteNodeTasksRequest", + "code": "message DeleteNodeTasksRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", + "doc": "批量删除任务" + }, + { + "name": "FindNotifyingNodeTasksRequest", + "code": "message FindNotifyingNodeTasksRequest {\n\tint64 size = 1;\n}", + "doc": "查找需要通知的任务" + }, + { + "name": "FindNodeTasksRequest", + "code": "message FindNodeTasksRequest {\n\n}", + "doc": "获取单节点同步任务" + }, + { + "name": "FindNodeClusterTasksRequest", + "code": "message FindNodeClusterTasksRequest {\n\n}", + "doc": "获取所有正在同步的集群信息" + }, + { + "name": "ClusterTask", + "code": "message ClusterTask {\n\tint64 clusterId = 1;\n\tstring clusterName = 2;\n\trepeated NodeTask nodeTasks = 3;\n}", + "doc": "" + }, { "name": "ExistsNodeTasksRequest", "code": "message ExistsNodeTasksRequest {\n\trepeated string excludeTypes = 1;\n}", "doc": "检查是否有正在执行的任务" }, - { - "name": "DeleteNodeTasksRequest", - "code": "message DeleteNodeTasksRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", - "doc": "批量删除任务" - }, - { - "name": "FindNotifyingNodeTasksResponse", - "code": "message FindNotifyingNodeTasksResponse {\n\trepeated NodeTask nodeTasks = 1;\n}", - "doc": "" - }, { "name": "UpdateNodeTasksNotifiedRequest", "code": "message UpdateNodeTasksNotifiedRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", "doc": "设置任务已通知" }, - { - "name": "FindNodeTasksRequest", - "code": "message FindNodeTasksRequest {\n\n}", - "doc": "获取单节点同步任务" - }, - { - "name": "ClusterTask", - "code": "message ClusterTask {\n\tint64 clusterId = 1;\n\tstring clusterName = 2;\n\trepeated NodeTask nodeTasks = 3;\n}", - "doc": "" - }, - { - "name": "FindNotifyingNodeTasksRequest", - "code": "message FindNotifyingNodeTasksRequest {\n\tint64 size = 1;\n}", - "doc": "查找需要通知的任务" - }, { "name": "ReportNodeTaskDoneRequest", "code": "message ReportNodeTaskDoneRequest {\n\tint64 nodeTaskId = 1;\n\tbool isOk = 2;\n\tstring error = 3;\n}", @@ -15054,28 +15252,8 @@ "doc": "计算正在执行的任务数量" }, { - "name": "FindNodeClusterTasksRequest", - "code": "message FindNodeClusterTasksRequest {\n\n}", - "doc": "获取所有正在同步的集群信息" - }, - { - "name": "ExistsNodeTasksResponse", - "code": "message ExistsNodeTasksResponse {\n\tbool existTasks = 1;\n\tbool existError = 2;\n}", - "doc": "" - }, - { - "name": "DeleteNodeTaskRequest", - "code": "message DeleteNodeTaskRequest {\n\tint64 nodeTaskId = 1;\n}", - "doc": "删除任务" - }, - { - "name": "CreateNodeThresholdRequest", - "code": "message CreateNodeThresholdRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tint64 nodeId = 3;\n\tstring item = 4;\n\tstring param = 5;\n\tstring operator = 6;\n\tbytes valueJSON = 7;\n\tstring message = 8;\n\tint32 duration = 9;\n\tstring durationUnit = 10;\n\tstring sumMethod = 11;\n\tint32 notifyDuration = 12;\n}", - "doc": "创建阈值" - }, - { - "name": "CreateNodeThresholdResponse", - "code": "message CreateNodeThresholdResponse {\n\tint64 nodeThresholdId = 1;\n}", + "name": "FindNotifyingNodeTasksResponse", + "code": "message FindNotifyingNodeTasksResponse {\n\trepeated NodeTask nodeTasks = 1;\n}", "doc": "" }, { @@ -15083,16 +15261,6 @@ "code": "message UpdateNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n\tstring item = 2;\n\tstring param = 3;\n\tstring operator = 4;\n\tbytes valueJSON = 5;\n\tstring message = 6;\n\tint32 duration = 7;\n\tstring durationUnit = 8;\n\tstring sumMethod = 9;\n\tbool isOn = 10;\n\tint32 notifyDuration = 11;\n}", "doc": "修改阈值" }, - { - "name": "FindAllEnabledNodeThresholdsResponse", - "code": "message FindAllEnabledNodeThresholdsResponse {\n\trepeated NodeThreshold nodeThresholds = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeThresholdResponse", - "code": "message FindEnabledNodeThresholdResponse {\n\tNodeThreshold nodeThreshold = 1;\n}", - "doc": "" - }, { "name": "DeleteNodeThresholdRequest", "code": "message DeleteNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n}", @@ -15103,6 +15271,26 @@ "code": "message FindAllEnabledNodeThresholdsRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tint64 nodeId = 3;\n}", "doc": "查询阈值" }, + { + "name": "FindAllEnabledNodeThresholdsResponse", + "code": "message FindAllEnabledNodeThresholdsResponse {\n\trepeated NodeThreshold nodeThresholds = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeThresholdResponse", + "code": "message FindEnabledNodeThresholdResponse {\n\tNodeThreshold nodeThreshold = 1;\n}", + "doc": "" + }, + { + "name": "CreateNodeThresholdRequest", + "code": "message CreateNodeThresholdRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tint64 nodeId = 3;\n\tstring item = 4;\n\tstring param = 5;\n\tstring operator = 6;\n\tbytes valueJSON = 7;\n\tstring message = 8;\n\tint32 duration = 9;\n\tstring durationUnit = 10;\n\tstring sumMethod = 11;\n\tint32 notifyDuration = 12;\n}", + "doc": "创建阈值" + }, + { + "name": "CreateNodeThresholdResponse", + "code": "message CreateNodeThresholdResponse {\n\tint64 nodeThresholdId = 1;\n}", + "doc": "" + }, { "name": "CountAllEnabledNodeThresholdsRequest", "code": "message CountAllEnabledNodeThresholdsRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tint64 nodeId = 3;\n}", @@ -15113,11 +15301,6 @@ "code": "message FindEnabledNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n}", "doc": "查询单个阈值详情" }, - { - "name": "ListNodeValuesResponse", - "code": "message ListNodeValuesResponse {\n\trepeated NodeValue nodeValues = 1;\n}", - "doc": "" - }, { "name": "SumAllNodeValueStatsRequest", "code": "message SumAllNodeValueStatsRequest {\n\n}", @@ -15139,8 +15322,8 @@ "doc": "读取数据" }, { - "name": "ComposeNSBoardResponse", - "code": "message ComposeNSBoardResponse {\n\tint64 countNSDomains = 1;\n\tint64 countNSRecords = 2;\n\tint64 countNSClusters = 3;\n\tint64 countNSNodes = 4;\n\tint64 countOfflineNSNodes = 5;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNSNodeStats = 32;\n\trepeated DomainStat topNSDomainStats = 33;\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nsClusterId = 1;\n\t\tint64 nsNodeId = 2;\n\t\tstring nsNodeName = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 bytes = 5;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 nsDomainId = 1;\n\t\tstring nsDomainName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", + "name": "ListNodeValuesResponse", + "code": "message ListNodeValuesResponse {\n\trepeated NodeValue nodeValues = 1;\n}", "doc": "" }, { @@ -15148,6 +15331,21 @@ "code": "message ComposeNSBoardRequest {\n\n}", "doc": "组合看板数据" }, + { + "name": "ComposeNSBoardResponse", + "code": "message ComposeNSBoardResponse {\n\tint64 countNSDomains = 1;\n\tint64 countNSRecords = 2;\n\tint64 countNSClusters = 3;\n\tint64 countNSNodes = 4;\n\tint64 countOfflineNSNodes = 5;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNSNodeStats = 32;\n\trepeated DomainStat topNSDomainStats = 33;\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nsClusterId = 1;\n\t\tint64 nsNodeId = 2;\n\t\tstring nsNodeName = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 bytes = 5;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 nsDomainId = 1;\n\t\tstring nsDomainName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", + "doc": "" + }, + { + "name": "FindNSAccessLogRequest", + "code": "message FindNSAccessLogRequest {\n\tstring requestId = 1;\n}", + "doc": "查找单个日志" + }, + { + "name": "FindNSAccessLogResponse", + "code": "message FindNSAccessLogResponse {\n\tNSAccessLog nsAccessLog = 1;\n}", + "doc": "" + }, { "name": "CreateNSAccessLogsRequest", "code": "message CreateNSAccessLogsRequest {\n\trepeated NSAccessLog nsAccessLogs = 1;\n}", @@ -15169,93 +15367,8 @@ "doc": "" }, { - "name": "FindNSAccessLogRequest", - "code": "message FindNSAccessLogRequest {\n\tstring requestId = 1;\n}", - "doc": "查找单个日志" - }, - { - "name": "FindNSAccessLogResponse", - "code": "message FindNSAccessLogResponse {\n\tNSAccessLog nsAccessLog = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterAccessLogResponse", - "code": "message FindNSClusterAccessLogResponse {\n\tbytes AccessLogJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterTCPConfigRequest", - "code": "message FindNSClusterTCPConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群的TCP设置" - }, - { - "name": "FindNSClusterTCPConfigResponse", - "code": "message FindNSClusterTCPConfigResponse {\n\tbytes tcpJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterUDPConfigResponse", - "code": "message FindNSClusterUDPConfigResponse {\n\tbytes udpJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountAllNSClustersWithSSLCertIdRequest", - "code": "message CountAllNSClustersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的集群数量" - }, - { - "name": "CreateNSClusterRequest", - "code": "message CreateNSClusterRequest {\n\tstring name = 1;\n\tbytes accessLogJSON = 2;\n\trepeated string hosts = 3;\n}", - "doc": "创建集群" - }, - { - "name": "UpdateNSClusterRequest", - "code": "message UpdateNSClusterRequest {\n\tint64 nsClusterId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\trepeated string hosts = 4;\n}", - "doc": "修改集群" - }, - { - "name": "FindNSClusterDDoSProtectionResponse", - "code": "message FindNSClusterDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterResponse", - "code": "message FindNSClusterResponse {\n\tNSCluster nsCluster = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterRecursionConfigRequest", - "code": "message FindNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "读取递归DNS配置" - }, - { - "name": "FindNSClusterTLSConfigResponse", - "code": "message FindNSClusterTLSConfigResponse {\n\tbytes tlsJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSClusterTCPRequest", - "code": "message UpdateNSClusterTCPRequest {\n\tint64 nsClusterId = 1;\n\tbytes tcpJSON = 2;\n}", - "doc": "修改集群的TCP设置" - }, - { - "name": "UpdateNSClusterTLSRequest", - "code": "message UpdateNSClusterTLSRequest {\n\tint64 nsClusterId = 1;\n\tbytes tlsJSON = 2;\n}", - "doc": "修改集群的TLS设置" - }, - { - "name": "ListNSClustersResponse", - "code": "message ListNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindAllNSClustersRequest", - "code": "message FindAllNSClustersRequest {\n\n}", - "doc": "查找所有可用集群" - }, - { - "name": "FindNSClusterRecursionConfigResponse", - "code": "message FindNSClusterRecursionConfigResponse {\n\tbytes recursionJSON = 1;\n}", + "name": "FindAllNSClustersResponse", + "code": "message FindAllNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", "doc": "" }, { @@ -15264,64 +15377,29 @@ "doc": "查找集群的TLS设置" }, { - "name": "FindNSClusterUDPConfigRequest", - "code": "message FindNSClusterUDPConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群的UDP设置" + "name": "CreateNSClusterRequest", + "code": "message CreateNSClusterRequest {\n\tstring name = 1;\n\tbytes accessLogJSON = 2;\n\trepeated string hosts = 3;\n}", + "doc": "创建集群" }, { - "name": "UpdateNSClusterUDPRequest", - "code": "message UpdateNSClusterUDPRequest {\n\tint64 nsClusterId = 1;\n\tbytes udpJSON = 2;\n}", - "doc": "修改集群的UDP设置" - }, - { - "name": "UpdateNSClusterDDoSProtectionRequest", - "code": "message UpdateNSClusterDDoSProtectionRequest {\n\tint64 nsClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改集群的DDoS设置" - }, - { - "name": "CreateNSClusterResponse", - "code": "message CreateNSClusterResponse {\n\tint64 nsClusterId = 1;\n}", + "name": "FindNSClusterTCPConfigResponse", + "code": "message FindNSClusterTCPConfigResponse {\n\tbytes tcpJSON = 1;\n}", "doc": "" }, - { - "name": "UpdateNSClusterAccessLogRequest", - "code": "message UpdateNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n\tbytes accessLogJSON = 2;\n}", - "doc": "修改集群访问日志配置" - }, { "name": "DeleteNSCluster", "code": "message DeleteNSCluster {\n\tint64 nsClusterId = 1;\n}", "doc": "删除集群" }, { - "name": "FindNSClusterRequest", - "code": "message FindNSClusterRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找单个可用集群信息" - }, - { - "name": "UpdateNSClusterRecursionConfigRequest", - "code": "message UpdateNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n\tbytes recursionJSON = 2;\n}", - "doc": "设置递归DNS配置" - }, - { - "name": "FindAvailableNSHostsForUserResponse", - "code": "message FindAvailableNSHostsForUserResponse {\n\trepeated string hosts = 1;\n}", + "name": "FindNSClusterUDPConfigResponse", + "code": "message FindNSClusterUDPConfigResponse {\n\tbytes udpJSON = 1;\n}", "doc": "" }, { - "name": "FindNSClusterAccessLogRequest", - "code": "message FindNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群访问日志配置" - }, - { - "name": "ListNSClustersRequest", - "code": "message ListNSClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页可用集群" - }, - { - "name": "FindAllNSClustersResponse", - "code": "message FindAllNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", - "doc": "" + "name": "UpdateNSClusterTLSRequest", + "code": "message UpdateNSClusterTLSRequest {\n\tint64 nsClusterId = 1;\n\tbytes tlsJSON = 2;\n}", + "doc": "修改集群的TLS设置" }, { "name": "FindNSClusterDDoSProtectionRequest", @@ -15333,14 +15411,214 @@ "code": "message FindAvailableNSHostsForUserRequest {\n\tint64 userId = 1;\n}", "doc": "查找用户可以使用的主机地址" }, + { + "name": "FindNSClusterResponse", + "code": "message FindNSClusterResponse {\n\tNSCluster nsCluster = 1;\n}", + "doc": "" + }, + { + "name": "FindNSClusterTLSConfigResponse", + "code": "message FindNSClusterTLSConfigResponse {\n\tbytes tlsJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindNSClusterUDPConfigRequest", + "code": "message FindNSClusterUDPConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群的UDP设置" + }, + { + "name": "UpdateNSClusterDDoSProtectionRequest", + "code": "message UpdateNSClusterDDoSProtectionRequest {\n\tint64 nsClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", + "doc": "修改集群的DDoS设置" + }, + { + "name": "FindNSClusterAccessLogResponse", + "code": "message FindNSClusterAccessLogResponse {\n\tbytes AccessLogJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAllNSClustersRequest", + "code": "message FindAllNSClustersRequest {\n\n}", + "doc": "查找所有可用集群" + }, + { + "name": "FindNSClusterRecursionConfigRequest", + "code": "message FindNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "读取递归DNS配置" + }, + { + "name": "UpdateNSClusterTCPRequest", + "code": "message UpdateNSClusterTCPRequest {\n\tint64 nsClusterId = 1;\n\tbytes tcpJSON = 2;\n}", + "doc": "修改集群的TCP设置" + }, + { + "name": "CountAllNSClustersWithSSLCertIdRequest", + "code": "message CountAllNSClustersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的集群数量" + }, + { + "name": "UpdateNSClusterRequest", + "code": "message UpdateNSClusterRequest {\n\tint64 nsClusterId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\trepeated string hosts = 4;\n}", + "doc": "修改集群" + }, + { + "name": "UpdateNSClusterAccessLogRequest", + "code": "message UpdateNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n\tbytes accessLogJSON = 2;\n}", + "doc": "修改集群访问日志配置" + }, + { + "name": "ListNSClustersResponse", + "code": "message ListNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindAvailableNSHostsForUserResponse", + "code": "message FindAvailableNSHostsForUserResponse {\n\trepeated string hosts = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSClusterResponse", + "code": "message CreateNSClusterResponse {\n\tint64 nsClusterId = 1;\n}", + "doc": "" + }, + { + "name": "FindNSClusterAccessLogRequest", + "code": "message FindNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群访问日志配置" + }, + { + "name": "FindNSClusterRequest", + "code": "message FindNSClusterRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找单个可用集群信息" + }, + { + "name": "UpdateNSClusterRecursionConfigRequest", + "code": "message UpdateNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n\tbytes recursionJSON = 2;\n}", + "doc": "设置递归DNS配置" + }, + { + "name": "FindNSClusterRecursionConfigResponse", + "code": "message FindNSClusterRecursionConfigResponse {\n\tbytes recursionJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSClusterUDPRequest", + "code": "message UpdateNSClusterUDPRequest {\n\tint64 nsClusterId = 1;\n\tbytes udpJSON = 2;\n}", + "doc": "修改集群的UDP设置" + }, + { + "name": "ListNSClustersRequest", + "code": "message ListNSClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页可用集群" + }, + { + "name": "FindNSClusterTCPConfigRequest", + "code": "message FindNSClusterTCPConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群的TCP设置" + }, + { + "name": "FindNSClusterDDoSProtectionResponse", + "code": "message FindNSClusterDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "doc": "" + }, + { + "name": "DeleteNSDomainRequest", + "code": "message DeleteNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", + "doc": "删除域名" + }, + { + "name": "FindNSDomainRequest", + "code": "message FindNSDomainRequest {\n\tint64 nsDomainId = 1; // 域名ID\n}", + "doc": "查找单个域名" + }, + { + "name": "VerifyNSDomainRequest", + "code": "message VerifyNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", + "doc": "验证域名信息" + }, + { + "name": "FindNSDomainWithNameResponse", + "code": "message FindNSDomainWithNameResponse {\n\tNSDomain nsDomain = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSDomainTSIGRequest", + "code": "message UpdateNSDomainTSIGRequest {\n\tint64 nsDomainId = 1;\n\tbytes tsigJSON = 2;\n}", + "doc": "修改TSIG配置" + }, + { + "name": "ExistVerifiedNSDomainsRequest", + "code": "message ExistVerifiedNSDomainsRequest {\n\trepeated string names = 1;\n}", + "doc": "检查一组域名是否已通过验证" + }, + { + "name": "CreateNSDomainResponse", + "code": "message CreateNSDomainResponse {\n\tint64 nsDomainId = 1;\n}", + "doc": "" + }, + { + "name": "FindNSDomainResponse", + "code": "message FindNSDomainResponse {\n\tNSDomain nsDomain = 1;\n}", + "doc": "" + }, + { + "name": "FindNSDomainWithNameRequest", + "code": "message FindNSDomainWithNameRequest {\n\tstring name = 1;\n}", + "doc": "根据域名名称查找域名" + }, + { + "name": "UpdateNSDomainStatusRequest", + "code": "message UpdateNSDomainStatusRequest {\n\tint64 nsDomainId = 1;\n\tstring status = 2;\n}", + "doc": "修改域名状态" + }, + { + "name": "ExistNSDomainsRequest", + "code": "message ExistNSDomainsRequest {\n\trepeated string names = 1;\n\tint64 userId = 2;\n}", + "doc": "检查一组域名是否在用户账户中存在" + }, + { + "name": "FindNSDomainVerifyingInfoRequest", + "code": "message FindNSDomainVerifyingInfoRequest {\n\tint64 nsDomainId = 1;\n}", + "doc": "获取域名验证信息" + }, + { + "name": "ListNSDomainsResponse", + "code": "message ListNSDomainsResponse {\n\trepeated NSDomain nsDomains = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSDomainRequest", + "code": "message CreateNSDomainRequest {\n\tint64 nsClusterId = 1; // 所属集群\n\tint64 userId = 2; // 所属用户\n\tstring name = 3; // 域名\n\trepeated int64 nsDomainGroupIds = 4; // 域名分组ID\n}", + "doc": "创建单个域名" + }, { "name": "CreateNSDomainsRequest", "code": "message CreateNSDomainsRequest {\n\tint64 nsClusterId = 1; // 所属集群\n\tint64 userId = 2; // 所属用户\n\trepeated string names = 3; // 一组域名\n\trepeated int64 nsDomainGroupIds = 4; // 域名分组ID\n}", "doc": "批量创建域名" }, { - "name": "CreateNSDomainsResponse", - "code": "message CreateNSDomainsResponse {\n\trepeated int64 nsDomainIds = 1;\n}", + "name": "DeleteNSDomainsRequest", + "code": "message DeleteNSDomainsRequest {\n\trepeated string names = 1;\n\tint64 userId = 2; // 域名所属用户ID\n}", + "doc": "批量删除域名" + }, + { + "name": "UpdateNSDomainRequest", + "code": "message UpdateNSDomainRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsClusterId = 2;\n\tint64 userId = 3;\n\trepeated int64 nsDomainGroupIds = 5; // 域名分组ID\n\tbool isOn = 4;\n}", + "doc": "修改域名\n注意:名称不允许修改" + }, + { + "name": "ExistNSDomainsResponse", + "code": "message ExistNSDomainsResponse {\n\trepeated string existingNames = 1;\n}", + "doc": "" + }, + { + "name": "ExistVerifiedNSDomainsResponse", + "code": "message ExistVerifiedNSDomainsResponse {\n\trepeated string existingNames = 1;\n}", + "doc": "" + }, + { + "name": "FindNSDomainVerifyingInfoResponse", + "code": "message FindNSDomainVerifyingInfoResponse {\n\tstring txt = 1;\n\tint64 expiresAt = 2;\n\tstring status = 3;\n}", "doc": "" }, { @@ -15353,135 +15631,35 @@ "code": "message ListNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n\tint64 nsDomainGroupId = 6;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", "doc": "列出单页域名" }, - { - "name": "DeleteNSDomainRequest", - "code": "message DeleteNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", - "doc": "删除域名" - }, - { - "name": "FindNSDomainVerifyingInfoRequest", - "code": "message FindNSDomainVerifyingInfoRequest {\n\tint64 nsDomainId = 1;\n}", - "doc": "获取域名验证信息" - }, - { - "name": "FindNSDomainWithNameResponse", - "code": "message FindNSDomainWithNameResponse {\n\tNSDomain nsDomain = 1;\n}", - "doc": "" - }, - { - "name": "FindNSDomainTSIGResponse", - "code": "message FindNSDomainTSIGResponse {\n\tbytes tsigJSON = 1;\n}", - "doc": "" - }, - { - "name": "ExistVerifiedNSDomainsResponse", - "code": "message ExistVerifiedNSDomainsResponse {\n\trepeated string existingNames = 1;\n}", - "doc": "" - }, { "name": "ListNSDomainsAfterVersionResponse", "code": "message ListNSDomainsAfterVersionResponse {\n\trepeated NSDomain nsDomains = 1;\n}", "doc": "" }, - { - "name": "CreateNSDomainResponse", - "code": "message CreateNSDomainResponse {\n\tint64 nsDomainId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSDomainRequest", - "code": "message UpdateNSDomainRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsClusterId = 2;\n\tint64 userId = 3;\n\trepeated int64 nsDomainGroupIds = 5; // 域名分组ID\n\tbool isOn = 4;\n}", - "doc": "修改域名\n注意:名称不允许修改" - }, - { - "name": "UpdateNSDomainStatusRequest", - "code": "message UpdateNSDomainStatusRequest {\n\tint64 nsDomainId = 1;\n\tstring status = 2;\n}", - "doc": "修改域名状态" - }, - { - "name": "FindNSDomainWithNameRequest", - "code": "message FindNSDomainWithNameRequest {\n\tstring name = 1;\n}", - "doc": "根据域名名称查找域名" - }, - { - "name": "UpdateNSDomainTSIGRequest", - "code": "message UpdateNSDomainTSIGRequest {\n\tint64 nsDomainId = 1;\n\tbytes tsigJSON = 2;\n}", - "doc": "修改TSIG配置" - }, - { - "name": "VerifyNSDomainRequest", - "code": "message VerifyNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", - "doc": "验证域名信息" - }, - { - "name": "FindNSDomainResponse", - "code": "message FindNSDomainResponse {\n\tNSDomain nsDomain = 1;\n}", - "doc": "" - }, - { - "name": "ListNSDomainsResponse", - "code": "message ListNSDomainsResponse {\n\trepeated NSDomain nsDomains = 1;\n}", - "doc": "" - }, - { - "name": "ExistNSDomainsRequest", - "code": "message ExistNSDomainsRequest {\n\trepeated string names = 1;\n\tint64 userId = 2;\n}", - "doc": "检查一组域名是否在用户账户中存在" - }, - { - "name": "FindNSDomainVerifyingInfoResponse", - "code": "message FindNSDomainVerifyingInfoResponse {\n\tstring txt = 1;\n\tint64 expiresAt = 2;\n\tstring status = 3;\n}", - "doc": "" - }, - { - "name": "ListNSDomainsAfterVersionRequest", - "code": "message ListNSDomainsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", - "doc": "根据版本列出一组域名" - }, { "name": "FindNSDomainTSIGRequest", "code": "message FindNSDomainTSIGRequest {\n\tint64 nsDomainId = 1;\n}", "doc": "查找TSIG配置" }, { - "name": "ExistNSDomainsResponse", - "code": "message ExistNSDomainsResponse {\n\trepeated string existingNames = 1;\n}", + "name": "FindNSDomainTSIGResponse", + "code": "message FindNSDomainTSIGResponse {\n\tbytes tsigJSON = 1;\n}", "doc": "" }, - { - "name": "CreateNSDomainRequest", - "code": "message CreateNSDomainRequest {\n\tint64 nsClusterId = 1; // 所属集群\n\tint64 userId = 2; // 所属用户\n\tstring name = 3; // 域名\n\trepeated int64 nsDomainGroupIds = 4; // 域名分组ID\n}", - "doc": "创建单个域名" - }, - { - "name": "DeleteNSDomainsRequest", - "code": "message DeleteNSDomainsRequest {\n\trepeated string names = 1;\n\tint64 userId = 2; // 域名所属用户ID\n}", - "doc": "批量删除域名" - }, - { - "name": "FindNSDomainRequest", - "code": "message FindNSDomainRequest {\n\tint64 nsDomainId = 1; // 域名ID\n}", - "doc": "查找单个域名" - }, - { - "name": "ExistVerifiedNSDomainsRequest", - "code": "message ExistVerifiedNSDomainsRequest {\n\trepeated string names = 1;\n}", - "doc": "检查一组域名是否已通过验证" - }, { "name": "VerifyNSDomainResponse", "code": "message VerifyNSDomainResponse {\n\tbool isOk = 1; // 是否成功\n\tstring errorCode = 2; // 错误代码\n\tstring errorMessage = 3; // 错误消息\n}", "doc": "" }, { - "name": "DeleteNSDomainGroupRequest", - "code": "message DeleteNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n}", - "doc": "删除分组" + "name": "CreateNSDomainsResponse", + "code": "message CreateNSDomainsResponse {\n\trepeated int64 nsDomainIds = 1;\n}", + "doc": "" }, { - "name": "FindAllNSDomainGroupsResponse", - "code": "message FindAllNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", - "doc": "" + "name": "ListNSDomainsAfterVersionRequest", + "code": "message ListNSDomainsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组域名" }, { "name": "FindAllAvailableNSDomainGroupsRequest", @@ -15504,14 +15682,9 @@ "doc": "创建分组" }, { - "name": "CreateNSDomainGroupResponse", - "code": "message CreateNSDomainGroupResponse {\n\tint64 nsDomainGroupId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSDomainGroupRequest", - "code": "message UpdateNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", - "doc": "修改分组" + "name": "DeleteNSDomainGroupRequest", + "code": "message DeleteNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n}", + "doc": "删除分组" }, { "name": "FindAllNSDomainGroupsRequest", @@ -15523,6 +15696,21 @@ "code": "message CountAllAvailableNSDomainGroupsRequest {\n\tint64 userId = 1;\n}", "doc": "查询可用分组数量" }, + { + "name": "CreateNSDomainGroupResponse", + "code": "message CreateNSDomainGroupResponse {\n\tint64 nsDomainGroupId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSDomainGroupRequest", + "code": "message UpdateNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", + "doc": "修改分组" + }, + { + "name": "FindAllNSDomainGroupsResponse", + "code": "message FindAllNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", + "doc": "" + }, { "name": "FindNSDomainGroupRequest", "code": "message FindNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n}", @@ -15533,36 +15721,6 @@ "code": "message CreateNSKeyRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n\tstring name = 3;\n\tstring algo = 4;\n\tstring secret = 5;\n\tstring secretType = 6;\n}", "doc": "创建密钥" }, - { - "name": "FindNSKeyResponse", - "code": "message FindNSKeyResponse {\n\tNSKey nsKey = 1;\n}", - "doc": "" - }, - { - "name": "ListNSKeysRequest", - "code": "message ListNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出单页密钥" - }, - { - "name": "ListNSKeysAfterVersionRequest", - "code": "message ListNSKeysAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", - "doc": "根据版本列出一组密钥" - }, - { - "name": "ListNSKeysAfterVersionResponse", - "code": "message ListNSKeysAfterVersionResponse {\n\trepeated NSKey nsKeys = 1;\n}", - "doc": "" - }, - { - "name": "ListNSKeysResponse", - "code": "message ListNSKeysResponse {\n\trepeated NSKey nsKeys = 1;\n}", - "doc": "" - }, - { - "name": "CreateNSKeyResponse", - "code": "message CreateNSKeyResponse {\n\tint64 nsKeyId = 1;\n}", - "doc": "" - }, { "name": "UpdateNSKeyRequest", "code": "message UpdateNSKeyRequest {\n\tint64 nsKeyId = 1;\n\tstring name = 2;\n\tstring algo = 3;\n\tstring secret = 4;\n\tstring secretType = 5;\n\tbool isOn = 6;\n}", @@ -15578,105 +15736,45 @@ "code": "message FindNSKeyRequest {\n\tint64 nsKeyId = 1;\n}", "doc": "查找单个密钥" }, + { + "name": "ListNSKeysRequest", + "code": "message ListNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页密钥" + }, + { + "name": "CreateNSKeyResponse", + "code": "message CreateNSKeyResponse {\n\tint64 nsKeyId = 1;\n}", + "doc": "" + }, + { + "name": "FindNSKeyResponse", + "code": "message FindNSKeyResponse {\n\tNSKey nsKey = 1;\n}", + "doc": "" + }, { "name": "CountAllNSKeysRequest", "code": "message CountAllNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n}", "doc": "计算密钥数量" }, { - "name": "UpdateNSNodeDDoSProtectionRequest", - "code": "message UpdateNSNodeDDoSProtectionRequest {\n\tint64 nsNodeId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改NS节点的DDoS设置" - }, - { - "name": "CountAllNSNodesMatchRequest", - "code": "message CountAllNSNodesMatchRequest {\n\tint64 nsClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\t//int64 nodeGroupId = 5;\n\t//int64 nodeRegionId = 6;\n}", - "doc": "计算匹配的NS节点数量" - }, - { - "name": "CheckNSNodeLatestVersionResponse", - "code": "message CheckNSNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", + "name": "ListNSKeysResponse", + "code": "message ListNSKeysResponse {\n\trepeated NSKey nsKeys = 1;\n}", "doc": "" }, { - "name": "UpdateNSNodeConnectedAPINodesRequest", - "code": "message UpdateNSNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", - "doc": "更改NS节点连接的API节点信息" + "name": "ListNSKeysAfterVersionRequest", + "code": "message ListNSKeysAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组密钥" }, { - "name": "InstallNSNodeResponse", - "code": "message InstallNSNodeResponse {\n\n}", + "name": "ListNSKeysAfterVersionResponse", + "code": "message ListNSKeysAfterVersionResponse {\n\trepeated NSKey nsKeys = 1;\n}", "doc": "" }, { - "name": "DownloadNSNodeInstallationFileRequest", - "code": "message DownloadNSNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", - "doc": "下载最新NS节点安装文件" - }, - { - "name": "UpdateNSNodeLoginRequest", - "code": "message UpdateNSNodeLoginRequest {\n\tint64 nsNodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", - "doc": "修改NS节点登录信息" - }, - { - "name": "FindAllNSNodesWithNSClusterIdRequest", - "code": "message FindAllNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "根据集群查找所有NS节点" - }, - { - "name": "CountAllUpgradeNSNodesWithNSClusterIdRequest", - "code": "message CountAllUpgradeNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "计算需要升级的NS节点数量" - }, - { - "name": "FindNSNodeResponse", - "code": "message FindNSNodeResponse {\n\tNSNode nsNode = 1;\n}", - "doc": "" - }, - { - "name": "FindAllNSNodesWithNSClusterIdResponse", - "code": "message FindAllNSNodesWithNSClusterIdResponse {\n\trepeated NSNode nsNodes = 1;\n}", - "doc": "" - }, - { - "name": "StartNSNodeRequest", - "code": "message StartNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "启动NS节点" - }, - { - "name": "StopNSNodeResponse", - "code": "message StopNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, - { - "name": "CreateNSNodeRequest", - "code": "message CreateNSNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n}", - "doc": "创建NS节点" - }, - { - "name": "StartNSNodeResponse", - "code": "message StartNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, - { - "name": "FindNSNodeDDoSProtectionResponse", - "code": "message FindNSNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", - "doc": "" - }, - { - "name": "CheckNSNodeLatestVersionRequest", - "code": "message CheckNSNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", - "doc": "检查NS节点新版本" - }, - { - "name": "CountAllNSNodesRequest", - "code": "message CountAllNSNodesRequest {\n\n}", - "doc": "所有可用的NS节点数量" - }, - { - "name": "ListNSNodesMatchRequest", - "code": "message ListNSNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nsClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\t//int64 nodeGroupId = 7;\n\t//int64 nodeRegionId = 8;\n}", - "doc": "列出单页NS节点" + "name": "FindNSNodeInstallStatusRequest", + "code": "message FindNSNodeInstallStatusRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "读取NS节点安装状态" }, { "name": "UpdateNSNodeStatusRequest", @@ -15684,19 +15782,9 @@ "doc": "更新NS节点状态" }, { - "name": "StopNSNodeRequest", - "code": "message StopNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "停止NS节点" - }, - { - "name": "UpdateNSNodeRequest", - "code": "message UpdateNSNodeRequest {\n\tint64 nsNodeId = 1;\n\tstring name = 2;\n\tint64 nsClusterId = 3;\n\tNodeLogin nodeLogin = 4;\n\tbool isOn = 6;\n}", - "doc": "修改NS节点" - }, - { - "name": "FindLatestNSNodeVersionRequest", - "code": "message FindLatestNSNodeVersionRequest {\n\n}", - "doc": "取得最新的版本号" + "name": "FindLatestNSNodeVersionResponse", + "code": "message FindLatestNSNodeVersionResponse {\n\tstring version = 1;\n}", + "doc": "" }, { "name": "NSNodeStreamMessage", @@ -15704,24 +15792,9 @@ "doc": "NS节点stream" }, { - "name": "FindNSNodeInstallStatusResponse", - "code": "message FindNSNodeInstallStatusResponse {\n\tNodeInstallStatus installStatus = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSNodeIsInstalledRequest", - "code": "message UpdateNSNodeIsInstalledRequest {\n\tint64 nsNodeId = 1;\n\tbool isInstalled = 2;\n}", - "doc": "修改NS节点安装状态" - }, - { - "name": "FindLatestNSNodeVersionResponse", - "code": "message FindLatestNSNodeVersionResponse {\n\tstring version = 1;\n}", - "doc": "" - }, - { - "name": "FindNSNodeDDoSProtectionRequest", - "code": "message FindNSNodeDDoSProtectionRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "获取NS节点的DDoS设置" + "name": "UpdateNSNodeConnectedAPINodesRequest", + "code": "message UpdateNSNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", + "doc": "更改NS节点连接的API节点信息" }, { "name": "CreateNSNodeResponse", @@ -15733,19 +15806,139 @@ "code": "message DeleteNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", "doc": "删除NS节点" }, + { + "name": "FindNSNodeInstallStatusResponse", + "code": "message FindNSNodeInstallStatusResponse {\n\tNodeInstallStatus installStatus = 1;\n}", + "doc": "" + }, + { + "name": "FindCurrentNSNodeConfigResponse", + "code": "message FindCurrentNSNodeConfigResponse {\n\tbytes nsNodeJSON = 1;\n}", + "doc": "" + }, + { + "name": "CheckNSNodeLatestVersionRequest", + "code": "message CheckNSNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", + "doc": "检查NS节点新版本" + }, + { + "name": "FindNSNodeDDoSProtectionRequest", + "code": "message FindNSNodeDDoSProtectionRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "获取NS节点的DDoS设置" + }, + { + "name": "FindNSNodeDDoSProtectionResponse", + "code": "message FindNSNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAllNSNodesWithNSClusterIdResponse", + "code": "message FindAllNSNodesWithNSClusterIdResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "doc": "" + }, + { + "name": "CountAllNSNodesRequest", + "code": "message CountAllNSNodesRequest {\n\n}", + "doc": "所有可用的NS节点数量" + }, + { + "name": "UpdateNSNodeRequest", + "code": "message UpdateNSNodeRequest {\n\tint64 nsNodeId = 1;\n\tstring name = 2;\n\tint64 nsClusterId = 3;\n\tNodeLogin nodeLogin = 4;\n\tbool isOn = 6;\n}", + "doc": "修改NS节点" + }, + { + "name": "CheckNSNodeLatestVersionResponse", + "code": "message CheckNSNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", + "doc": "" + }, + { + "name": "DownloadNSNodeInstallationFileRequest", + "code": "message DownloadNSNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", + "doc": "下载最新NS节点安装文件" + }, + { + "name": "StartNSNodeRequest", + "code": "message StartNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "启动NS节点" + }, + { + "name": "CountAllUpgradeNSNodesWithNSClusterIdRequest", + "code": "message CountAllUpgradeNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "计算需要升级的NS节点数量" + }, + { + "name": "FindNSNodeRequest", + "code": "message FindNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "获取单个NS节点信息" + }, + { + "name": "FindNSNodeResponse", + "code": "message FindNSNodeResponse {\n\tNSNode nsNode = 1;\n}", + "doc": "" + }, { "name": "InstallNSNodeRequest", "code": "message InstallNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", "doc": "安装NS节点" }, + { + "name": "UpdateNSNodeDDoSProtectionRequest", + "code": "message UpdateNSNodeDDoSProtectionRequest {\n\tint64 nsNodeId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", + "doc": "修改NS节点的DDoS设置" + }, + { + "name": "ListNSNodesMatchRequest", + "code": "message ListNSNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nsClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\t//int64 nodeGroupId = 7;\n\t//int64 nodeRegionId = 8;\n}", + "doc": "列出单页NS节点" + }, { "name": "FindCurrentNSNodeConfigRequest", "code": "message FindCurrentNSNodeConfigRequest {\n\n}", "doc": "获取当前NS节点信息" }, { - "name": "FindCurrentNSNodeConfigResponse", - "code": "message FindCurrentNSNodeConfigResponse {\n\tbytes nsNodeJSON = 1;\n}", + "name": "UpdateNSNodeLoginRequest", + "code": "message UpdateNSNodeLoginRequest {\n\tint64 nsNodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", + "doc": "修改NS节点登录信息" + }, + { + "name": "StopNSNodeRequest", + "code": "message StopNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "停止NS节点" + }, + { + "name": "StopNSNodeResponse", + "code": "message StopNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "FindAllNSNodesWithNSClusterIdRequest", + "code": "message FindAllNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "根据集群查找所有NS节点" + }, + { + "name": "ListNSNodesMatchResponse", + "code": "message ListNSNodesMatchResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSNodeRequest", + "code": "message CreateNSNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n}", + "doc": "创建NS节点" + }, + { + "name": "FindLatestNSNodeVersionRequest", + "code": "message FindLatestNSNodeVersionRequest {\n\n}", + "doc": "取得最新的版本号" + }, + { + "name": "StartNSNodeResponse", + "code": "message StartNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "InstallNSNodeResponse", + "code": "message InstallNSNodeResponse {\n\n}", "doc": "" }, { @@ -15754,29 +15947,69 @@ "doc": "" }, { - "name": "ListNSNodesMatchResponse", - "code": "message ListNSNodesMatchResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "name": "CountAllNSNodesMatchRequest", + "code": "message CountAllNSNodesMatchRequest {\n\tint64 nsClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\t//int64 nodeGroupId = 5;\n\t//int64 nodeRegionId = 6;\n}", + "doc": "计算匹配的NS节点数量" + }, + { + "name": "UpdateNSNodeIsInstalledRequest", + "code": "message UpdateNSNodeIsInstalledRequest {\n\tint64 nsNodeId = 1;\n\tbool isInstalled = 2;\n}", + "doc": "修改NS节点安装状态" + }, + { + "name": "UpdateNSPlanRequest", + "code": "message UpdateNSPlanRequest {\n\tint64 nsPlanId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tfloat monthlyPrice = 4;\n\tfloat yearlyPrice = 5;\n\tbytes configJSON = 6;\n}", + "doc": "修改DNS套餐" + }, + { + "name": "SortNSPlansRequest", + "code": "message SortNSPlansRequest {\n\trepeated int64 nsPlanIds = 1;\n}", + "doc": "修改DNS套餐顺序" + }, + { + "name": "FindAllEnabledNSPlansRequest", + "code": "message FindAllEnabledNSPlansRequest {\n\n}", + "doc": "查找所有可用DNS套餐" + }, + { + "name": "FindAllEnabledNSPlansResponse", + "code": "message FindAllEnabledNSPlansResponse {\n\trepeated NSPlan nsPlans = 1;\n}", "doc": "" }, { - "name": "FindNSNodeRequest", - "code": "message FindNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "获取单个NS节点信息" + "name": "FindNSPlanRequest", + "code": "message FindNSPlanRequest {\n\tint64 nsPlanId = 1;\n}", + "doc": "查找DNS套餐" }, { - "name": "FindNSNodeInstallStatusRequest", - "code": "message FindNSNodeInstallStatusRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "读取NS节点安装状态" - }, - { - "name": "FindNSQuestionOptionResponse", - "code": "message FindNSQuestionOptionResponse {\n\tNSQuestionOption nsQuestionOption = 1;\n}", + "name": "CreateNSPlanResponse", + "code": "message CreateNSPlanResponse {\n\tint64 nsPlanId = 1;\n}", "doc": "" }, { - "name": "DeleteNSQuestionOptionRequest", - "code": "message DeleteNSQuestionOptionRequest {\n\tint64 nsQuestionOptionId = 1;\n}", - "doc": "删除选项" + "name": "FindAllNSPlansRequest", + "code": "message FindAllNSPlansRequest {\n\n}", + "doc": "查找所有DNS套餐" + }, + { + "name": "FindAllNSPlansResponse", + "code": "message FindAllNSPlansResponse {\n\trepeated NSPlan nsPlans = 1;\n}", + "doc": "" + }, + { + "name": "FindNSPlanResponse", + "code": "message FindNSPlanResponse {\n\tNSPlan nsPlan = 1;\n}", + "doc": "" + }, + { + "name": "DeleteNSPlanRequest", + "code": "message DeleteNSPlanRequest {\n\tint64 nsPlanId = 1;\n}", + "doc": "删除DNS套餐" + }, + { + "name": "CreateNSPlanRequest", + "code": "message CreateNSPlanRequest {\n\tstring name = 1;\n\tfloat monthlyPrice = 2;\n\tfloat yearlyPrice = 3;\n\tbytes configJSON = 4;\n}", + "doc": "创建DNS套餐" }, { "name": "CreateNSQuestionOptionRequest", @@ -15794,19 +16027,24 @@ "doc": "读取选项" }, { - "name": "CreateNSRecordsWithDomainNamesRequest", - "code": "message CreateNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tbytes recordsJSON = 2;\n\tbool removeOld = 3;\n\tbool removeAll = 4;\n\tint64 userId = 5;\n}", - "doc": "为一组域名批量创建记录" + "name": "FindNSQuestionOptionResponse", + "code": "message FindNSQuestionOptionResponse {\n\tNSQuestionOption nsQuestionOption = 1;\n}", + "doc": "" }, { - "name": "UpdateNSRecordsWithDomainNamesRequest", - "code": "message UpdateNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tstring newName = 6;\n\tstring newValue = 7;\n\tstring newType = 8;\n\trepeated string newNSRouteCodes = 9;\n\tint64 userId = 10;\n}", - "doc": "批量修改一组域名的一组记录" + "name": "DeleteNSQuestionOptionRequest", + "code": "message DeleteNSQuestionOptionRequest {\n\tint64 nsQuestionOptionId = 1;\n}", + "doc": "删除选项" }, { - "name": "FindNSRecordRequest", - "code": "message FindNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", - "doc": "查询单个记录信息" + "name": "DeleteNSRecordsWithDomainNamesRequest", + "code": "message DeleteNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tint64 userId = 6;\n}", + "doc": "批量删除一组域名的一组记录" + }, + { + "name": "DeleteNSRecordRequest", + "code": "message DeleteNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", + "doc": "删除记录" }, { "name": "FindNSRecordResponse", @@ -15814,24 +16052,34 @@ "doc": "" }, { - "name": "CreateNSRecordResponse", - "code": "message CreateNSRecordResponse {\n\tint64 nsRecordId = 1;\n}", + "name": "ListNSRecordsAfterVersionRequest", + "code": "message ListNSRecordsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组记录" + }, + { + "name": "ListNSRecordsAfterVersionResponse", + "code": "message ListNSRecordsAfterVersionResponse {\n\trepeated NSRecord nsRecords = 1;\n}", "doc": "" }, + { + "name": "ImportNSRecordsRequest", + "code": "message ImportNSRecordsRequest {\n\trepeated Record nsRecords = 1;\n\tint64 userId = 2;\n\n\n\tmessage Record {\n\t\tstring nsDomainName = 1;\n\t\tstring name = 2;\n\t\tstring type = 3;\n\t\tstring value = 4;\n\t\tint32 ttl = 5;\n\t}\n}", + "doc": "导入域名解析" + }, { "name": "CreateNSRecordsRequest", "code": "message CreateNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring description = 2;\n\trepeated string names = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated string nsRouteCodes = 7; // 路线代号\n}", "doc": "批量创建记录" }, { - "name": "ListNSRecordsAfterVersionRequest", - "code": "message ListNSRecordsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", - "doc": "根据版本列出一组记录" + "name": "CreateNSRecordsResponse", + "code": "message CreateNSRecordsResponse {\n\trepeated int64 nsRecordIds = 1;\n}", + "doc": "" }, { - "name": "CreateNSRecordRequest", - "code": "message CreateNSRecordRequest {\n\tint64 nsDomainId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\trepeated string nsRouteCodes = 8; // 路线代号\n}", - "doc": "创建记录" + "name": "UpdateNSRecordsWithDomainNamesRequest", + "code": "message UpdateNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tstring newName = 6;\n\tstring newValue = 7;\n\tstring newType = 8;\n\trepeated string newNSRouteCodes = 9;\n\tint64 userId = 10;\n}", + "doc": "批量修改一组域名的一组记录" }, { "name": "CountAllNSRecordsRequest", @@ -15849,34 +16097,29 @@ "doc": "" }, { - "name": "ListNSRecordsAfterVersionResponse", - "code": "message ListNSRecordsAfterVersionResponse {\n\trepeated NSRecord nsRecords = 1;\n}", + "name": "FindNSRecordWithNameAndTypeRequest", + "code": "message FindNSRecordWithNameAndTypeRequest {\n\tint64 nsDomainId = 1;\n\tstring name = 2;\n\tstring type = 3;\n}", + "doc": "使用名称和类型查询单个记录信息" + }, + { + "name": "CreateNSRecordRequest", + "code": "message CreateNSRecordRequest {\n\tint64 nsDomainId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\trepeated string nsRouteCodes = 8; // 路线代号\n}", + "doc": "创建记录" + }, + { + "name": "CreateNSRecordResponse", + "code": "message CreateNSRecordResponse {\n\tint64 nsRecordId = 1;\n}", "doc": "" }, - { - "name": "ImportNSRecordsRequest", - "code": "message ImportNSRecordsRequest {\n\trepeated Record nsRecords = 1;\n\tint64 userId = 2;\n\n\n\tmessage Record {\n\t\tstring nsDomainName = 1;\n\t\tstring name = 2;\n\t\tstring type = 3;\n\t\tstring value = 4;\n\t\tint32 ttl = 5;\n\t}\n}", - "doc": "导入域名解析" - }, - { - "name": "UpdateNSRecordsIsOnWithDomainNamesRequest", - "code": "message UpdateNSRecordsIsOnWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tbool isOn = 6;\n\tint64 userId = 7;\n}", - "doc": "批量一组域名的一组记录启用状态" - }, - { - "name": "DeleteNSRecordRequest", - "code": "message DeleteNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", - "doc": "删除记录" - }, { "name": "UpdateNSRecordRequest", "code": "message UpdateNSRecordRequest {\n\tint64 nsRecordId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\tbool isOn = 8;\n\trepeated string nsRouteCodes = 9; // 路线代号\n}", "doc": "修改记录" }, { - "name": "FindNSRecordWithNameAndTypeRequest", - "code": "message FindNSRecordWithNameAndTypeRequest {\n\tint64 nsDomainId = 1;\n\tstring name = 2;\n\tstring type = 3;\n}", - "doc": "使用名称和类型查询单个记录信息" + "name": "FindNSRecordRequest", + "code": "message FindNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", + "doc": "查询单个记录信息" }, { "name": "FindNSRecordWithNameAndTypeResponse", @@ -15884,14 +16127,19 @@ "doc": "" }, { - "name": "CreateNSRecordsResponse", - "code": "message CreateNSRecordsResponse {\n\trepeated int64 nsRecordIds = 1;\n}", - "doc": "" + "name": "CreateNSRecordsWithDomainNamesRequest", + "code": "message CreateNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tbytes recordsJSON = 2;\n\tbool removeOld = 3;\n\tbool removeAll = 4;\n\tint64 userId = 5;\n}", + "doc": "为一组域名批量创建记录" }, { - "name": "DeleteNSRecordsWithDomainNamesRequest", - "code": "message DeleteNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tint64 userId = 6;\n}", - "doc": "批量删除一组域名的一组记录" + "name": "UpdateNSRecordsIsOnWithDomainNamesRequest", + "code": "message UpdateNSRecordsIsOnWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tbool isOn = 6;\n\tint64 userId = 7;\n}", + "doc": "批量一组域名的一组记录启用状态" + }, + { + "name": "CountAllNSRecordsWithNameRequest", + "code": "message CountAllNSRecordsWithNameRequest {\n\tint64 nsDomainId = 1;\n\tstring name = 2;\n\tstring type = 3;\n}", + "doc": "查询相同记录名的记录数" }, { "name": "UploadNSRecordHourlyStatsRequest", @@ -15928,6 +16176,86 @@ "code": "message FindNSRecordHourlyStatWithRecordIdsResponse {\n\trepeated NSRecordHourlyStat nsRecordHourlyStats = 1;\n}", "doc": "" }, + { + "name": "FindNSRouteRequest", + "code": "message FindNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", + "doc": "获取单个自定义路线信息" + }, + { + "name": "FindAllDefaultChinaProvinceRoutesRequest", + "code": "message FindAllDefaultChinaProvinceRoutesRequest {\n\n}", + "doc": "查找默认的中国省份线路" + }, + { + "name": "CreateNSRouteResponse", + "code": "message CreateNSRouteResponse {\n\tint64 nsRouteId = 1;\n}", + "doc": "" + }, + { + "name": "FindNSRouteResponse", + "code": "message FindNSRouteResponse {\n\tNSRoute nsRoute = 1;\n}", + "doc": "" + }, + { + "name": "FindAllNSRoutesResponse", + "code": "message FindAllNSRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSRouteOrdersRequest", + "code": "message UpdateNSRouteOrdersRequest {\n\trepeated int64 nsRouteIds = 1;\n}", + "doc": "设置自定义线路排序" + }, + { + "name": "FindAllDefaultChinaProvinceRoutesResponse", + "code": "message FindAllDefaultChinaProvinceRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSRouteRequest", + "code": "message CreateNSRouteRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n\tstring name = 4;\n\tbytes rangesJSON = 5;\n}", + "doc": "创建自定义线路" + }, + { + "name": "UpdateNSRouteRequest", + "code": "message UpdateNSRouteRequest {\n\tint64 nsRouteId = 1;\n\tstring name = 2;\n\tbytes rangesJSON = 3;\n}", + "doc": "修改自定义线路" + }, + { + "name": "DeleteNSRouteRequest", + "code": "message DeleteNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", + "doc": "删除自定义线路" + }, + { + "name": "FindAllNSRoutesRequest", + "code": "message FindAllNSRoutesRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n}", + "doc": "读取所有自定义线路" + }, + { + "name": "ListNSRoutesAfterVersionRequest", + "code": "message ListNSRoutesAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组自定义线路" + }, + { + "name": "FindAllDefaultWorldRegionRoutesRequest", + "code": "message FindAllDefaultWorldRegionRoutesRequest {\n\n}", + "doc": "查找默认的世界区域线路" + }, + { + "name": "CountAllNSRoutesRequest", + "code": "message CountAllNSRoutesRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n}", + "doc": "查询自定义线路数量" + }, + { + "name": "ListNSRoutesAfterVersionResponse", + "code": "message ListNSRoutesAfterVersionResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "doc": "" + }, + { + "name": "FindAllDefaultWorldRegionRoutesResponse", + "code": "message FindAllDefaultWorldRegionRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "doc": "" + }, { "name": "FindAllDefaultISPRoutesRequest", "code": "message FindAllDefaultISPRoutesRequest {\n\n}", @@ -15939,85 +16267,70 @@ "doc": "" }, { - "name": "DeleteNSRouteRequest", - "code": "message DeleteNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", - "doc": "删除自定义线路" + "name": "CreateNSUserPlanRequest", + "code": "message CreateNSUserPlanRequest {\n\tint64 userId = 1;\n\tint64 nsPlanId = 2;\n\tstring dayFrom = 3; // YYYYMMDD\n\tstring dayTo = 4; // YYYYMMDD\n\tstring periodUnit = 5; // yearly|monthly\n}", + "doc": "创建用户套餐" }, { - "name": "FindAllNSRoutesResponse", - "code": "message FindAllNSRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "name": "FindNSUserPlanRequest", + "code": "message FindNSUserPlanRequest {\n\tint64 userId = 1; // 和 nsUserPlanId 二选一\n\tint64 nsUserPlanId = 2;\n}", + "doc": "读取用户套餐" + }, + { + "name": "ListNSUserPlansRequest", + "code": "message ListNSUserPlansRequest {\n\tint64 userId = 1;\n\tint64 nsPlanId = 2;\n\tstring periodUnit = 3;\n\tbool isExpired = 4;\n\tint32 expireDays = 5;\n\tint64 offset = 6;\n\tint64 size = 7;\n}", + "doc": "列出单页套餐" + }, + { + "name": "ListNSUserPlansResponse", + "code": "message ListNSUserPlansResponse {\n\trepeated NSUserPlan nsUserPlans = 1;\n}", "doc": "" }, { - "name": "ListNSRoutesAfterVersionRequest", - "code": "message ListNSRoutesAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", - "doc": "根据版本列出一组自定义线路" - }, - { - "name": "FindAllDefaultChinaProvinceRoutesResponse", - "code": "message FindAllDefaultChinaProvinceRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "name": "CreateNSUserPlanResponse", + "code": "message CreateNSUserPlanResponse {\n\tint64 nsUserPlanId = 1;\n}", "doc": "" }, { - "name": "UpdateNSRouteOrdersRequest", - "code": "message UpdateNSRouteOrdersRequest {\n\trepeated int64 nsRouteIds = 1;\n}", - "doc": "设置自定义线路排序" + "name": "UpdateNSUserPlanRequest", + "code": "message UpdateNSUserPlanRequest {\n\tint64 nsUserPlanId = 1;\n\tint64 nsPlanId = 2;\n\tstring dayFrom = 3; // YYYYMMDD\n\tstring dayTo = 4; // YYYYMMDD\n\tstring periodUnit = 5; // yearly|monthly\n}", + "doc": "修改用户套餐" }, { - "name": "ListNSRoutesAfterVersionResponse", - "code": "message ListNSRoutesAfterVersionResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "name": "DeleteNSUserPlanRequest", + "code": "message DeleteNSUserPlanRequest{\n\tint64 nsUserPlanId = 1;\n}", + "doc": "删除用户套餐" + }, + { + "name": "FindNSUserPlanResponse", + "code": "message FindNSUserPlanResponse {\n\tNSUserPlan nsUserPlan = 1;\n}", "doc": "" }, { - "name": "FindAllDefaultChinaProvinceRoutesRequest", - "code": "message FindAllDefaultChinaProvinceRoutesRequest {\n\n}", - "doc": "查找默认的中国省份线路" + "name": "CountNSUserPlansRequest", + "code": "message CountNSUserPlansRequest{\n\tint64 userId = 1;\n\tint64 nsPlanId = 2;\n\tstring periodUnit = 3;\n\tbool isExpired = 4;\n\tint32 expireDays = 5;\n}", + "doc": "计算用户套餐数量" }, { - "name": "FindAllDefaultWorldRegionRoutesRequest", - "code": "message FindAllDefaultWorldRegionRoutesRequest {\n\n}", - "doc": "查找默认的世界区域线路" - }, - { - "name": "FindAllDefaultWorldRegionRoutesResponse", - "code": "message FindAllDefaultWorldRegionRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "name": "FindEnabledOrderMethodResponse", + "code": "message FindEnabledOrderMethodResponse {\n\tOrderMethod orderMethod = 1;\n}", "doc": "" }, { - "name": "UpdateNSRouteRequest", - "code": "message UpdateNSRouteRequest {\n\tint64 nsRouteId = 1;\n\tstring name = 2;\n\tbytes rangesJSON = 3;\n}", - "doc": "修改自定义线路" + "name": "FindEnabledOrderMethodWithCodeRequest", + "code": "message FindEnabledOrderMethodWithCodeRequest {\n\tstring code = 1;\n}", + "doc": "根据代号查找支付方式" }, { - "name": "FindNSRouteRequest", - "code": "message FindNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", - "doc": "获取单个自定义路线信息" + "name": "FindAllEnabledOrderMethodsRequest", + "code": "message FindAllEnabledOrderMethodsRequest {\n\n}", + "doc": "查找所有支付方式" }, { - "name": "FindNSRouteResponse", - "code": "message FindNSRouteResponse {\n\tNSRoute nsRoute = 1;\n}", + "name": "FindAllEnabledOrderMethodsResponse", + "code": "message FindAllEnabledOrderMethodsResponse {\n\trepeated OrderMethod orderMethods = 1;\n}", "doc": "" }, - { - "name": "CreateNSRouteRequest", - "code": "message CreateNSRouteRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n\tstring name = 4;\n\tbytes rangesJSON = 5;\n}", - "doc": "创建自定义线路" - }, - { - "name": "CreateNSRouteResponse", - "code": "message CreateNSRouteResponse {\n\tint64 nsRouteId = 1;\n}", - "doc": "" - }, - { - "name": "FindAllNSRoutesRequest", - "code": "message FindAllNSRoutesRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n}", - "doc": "读取所有自定义线路" - }, - { - "name": "CreateOrderMethodRequest", - "code": "message CreateOrderMethodRequest {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n\tstring url = 4;\n}", - "doc": "创建支付方式" - }, { "name": "CreateOrderMethodResponse", "code": "message CreateOrderMethodResponse {\n\tint64 orderMethodId = 1;\n}", @@ -16038,54 +16351,24 @@ "code": "message FindAllAvailableOrderMethodsRequest {\n\n}", "doc": "查找所有已启用的支付方式" }, - { - "name": "DeleteOrderMethodRequest", - "code": "message DeleteOrderMethodRequest {\n\tint64 orderMethodId = 1;\n}", - "doc": "删除支付方式" - }, - { - "name": "FindEnabledOrderMethodResponse", - "code": "message FindEnabledOrderMethodResponse {\n\tOrderMethod orderMethod = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledOrderMethodWithCodeRequest", - "code": "message FindEnabledOrderMethodWithCodeRequest {\n\tstring code = 1;\n}", - "doc": "根据代号查找支付方式" - }, - { - "name": "FindEnabledOrderMethodWithCodeResponse", - "code": "message FindEnabledOrderMethodWithCodeResponse {\n\tOrderMethod orderMethod = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledOrderMethodsRequest", - "code": "message FindAllEnabledOrderMethodsRequest {\n\n}", - "doc": "查找所有支付方式" - }, - { - "name": "FindAllEnabledOrderMethodsResponse", - "code": "message FindAllEnabledOrderMethodsResponse {\n\trepeated OrderMethod orderMethods = 1;\n}", - "doc": "" - }, { "name": "FindAllAvailableOrderMethodsResponse", "code": "message FindAllAvailableOrderMethodsResponse {\n\trepeated OrderMethod orderMethods = 1;\n}", "doc": "" }, { - "name": "FindEnabledOriginConfigResponse", - "code": "message FindEnabledOriginConfigResponse {\n\tbytes originJSON = 1;\n}", - "doc": "" + "name": "CreateOrderMethodRequest", + "code": "message CreateOrderMethodRequest {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n\tstring url = 4;\n}", + "doc": "创建支付方式" }, { - "name": "CreateOriginRequest", - "code": "message CreateOriginRequest {\n\tstring name = 1;\n\tNetworkAddress addr = 2;\n\tstring description = 3;\n\tint32 weight = 4;\n\tbool isOn = 5;\n\tbytes connTimeoutJSON = 6;\n\tbytes readTimeoutJSON = 7;\n\tbytes idleTimeoutJSON = 8;\n\tint32 maxConns = 9;\n\tint32 maxIdleConns = 10;\n\trepeated string domains = 11;\n\tbytes certRefJSON = 12;\n\tstring host = 13;\n\tbool followPort = 14;\n}", - "doc": "创建源站" + "name": "DeleteOrderMethodRequest", + "code": "message DeleteOrderMethodRequest {\n\tint64 orderMethodId = 1;\n}", + "doc": "删除支付方式" }, { - "name": "CreateOriginResponse", - "code": "message CreateOriginResponse {\n\tint64 originId = 1;\n}", + "name": "FindEnabledOrderMethodWithCodeResponse", + "code": "message FindEnabledOrderMethodWithCodeResponse {\n\tOrderMethod orderMethod = 1;\n}", "doc": "" }, { @@ -16109,24 +16392,19 @@ "doc": "查找源站配置" }, { - "name": "DeletePlanRequest", - "code": "message DeletePlanRequest {\n\tint64 planId = 1;\n}", - "doc": "删除套餐" + "name": "FindEnabledOriginConfigResponse", + "code": "message FindEnabledOriginConfigResponse {\n\tbytes originJSON = 1;\n}", + "doc": "" }, { - "name": "FindEnabledPlanRequest", - "code": "message FindEnabledPlanRequest {\n\tint64 planId = 1;\n}", - "doc": "查找单个套餐" + "name": "CreateOriginRequest", + "code": "message CreateOriginRequest {\n\tstring name = 1;\n\tNetworkAddress addr = 2;\n\tstring description = 3;\n\tint32 weight = 4;\n\tbool isOn = 5;\n\tbytes connTimeoutJSON = 6;\n\tbytes readTimeoutJSON = 7;\n\tbytes idleTimeoutJSON = 8;\n\tint32 maxConns = 9;\n\tint32 maxIdleConns = 10;\n\trepeated string domains = 11;\n\tbytes certRefJSON = 12;\n\tstring host = 13;\n\tbool followPort = 14;\n}", + "doc": "创建源站" }, { - "name": "SortPlansRequest", - "code": "message SortPlansRequest {\n\trepeated int64 planIds = 1;\n}", - "doc": "对套餐进行排序" - }, - { - "name": "CreatePlanRequest", - "code": "message CreatePlanRequest {\n\tstring name = 1;\n\tint64 clusterId = 2;\n\tbytes trafficLimitJSON = 3;\n\tbytes featuresJSON = 4;\n\tstring priceType = 5;\n\tbytes trafficPriceJSON = 6;\n\tbytes bandwidthPriceJSON = 10;\n\tfloat monthlyPrice = 7;\n\tfloat seasonallyPrice = 8;\n\tfloat yearlyPrice = 9;\n}", - "doc": "创建套餐" + "name": "CreateOriginResponse", + "code": "message CreateOriginResponse {\n\tint64 originId = 1;\n}", + "doc": "" }, { "name": "CreatePlanResponse", @@ -16138,16 +16416,26 @@ "code": "message UpdatePlanRequest {\n\tint64 planId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 clusterId = 4;\n\tbytes trafficLimitJSON = 5;\n\tbytes featuresJSON = 6;\n\tstring priceType = 7;\n\tbytes trafficPriceJSON = 8;\n\tbytes bandwidthPriceJSON = 12;\n\tfloat monthlyPrice = 9;\n\tfloat seasonallyPrice = 10;\n\tfloat yearlyPrice = 11;\n}", "doc": "修改套餐" }, - { - "name": "FindEnabledPlanResponse", - "code": "message FindEnabledPlanResponse {\n\tPlan plan = 1;\n}", - "doc": "" - }, { "name": "CountAllEnabledPlansRequest", "code": "message CountAllEnabledPlansRequest {\n\n}", "doc": "计算套餐数量" }, + { + "name": "CreatePlanRequest", + "code": "message CreatePlanRequest {\n\tstring name = 1;\n\tint64 clusterId = 2;\n\tbytes trafficLimitJSON = 3;\n\tbytes featuresJSON = 4;\n\tstring priceType = 5;\n\tbytes trafficPriceJSON = 6;\n\tbytes bandwidthPriceJSON = 10;\n\tfloat monthlyPrice = 7;\n\tfloat seasonallyPrice = 8;\n\tfloat yearlyPrice = 9;\n}", + "doc": "创建套餐" + }, + { + "name": "FindEnabledPlanRequest", + "code": "message FindEnabledPlanRequest {\n\tint64 planId = 1;\n}", + "doc": "查找单个套餐" + }, + { + "name": "FindEnabledPlanResponse", + "code": "message FindEnabledPlanResponse {\n\tPlan plan = 1;\n}", + "doc": "" + }, { "name": "ListEnabledPlansRequest", "code": "message ListEnabledPlansRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", @@ -16159,14 +16447,14 @@ "doc": "" }, { - "name": "FindAllEnabledRegionCitiesResponse", - "code": "message FindAllEnabledRegionCitiesResponse {\n\trepeated RegionCity regionCities = 1;\n}", - "doc": "" + "name": "SortPlansRequest", + "code": "message SortPlansRequest {\n\trepeated int64 planIds = 1;\n}", + "doc": "对套餐进行排序" }, { - "name": "FindEnabledRegionCityRequest", - "code": "message FindEnabledRegionCityRequest {\n\tint64 regionCityId = 1;\n}", - "doc": "查找单个城市信息" + "name": "DeletePlanRequest", + "code": "message DeletePlanRequest {\n\tint64 planId = 1;\n}", + "doc": "删除套餐" }, { "name": "FindAllRegionCitiesRequest", @@ -16179,14 +16467,9 @@ "doc": "" }, { - "name": "FindAllRegionCitiesWithRegionProvinceIdRequest", - "code": "message FindAllRegionCitiesWithRegionProvinceIdRequest {\n\tint64 regionProvinceId = 1;\n}", - "doc": "查找某个省份的所有城市" - }, - { - "name": "FindAllEnabledRegionCitiesRequest", - "code": "message FindAllEnabledRegionCitiesRequest {\n\tbool includeRegionProvince = 1;\n}", - "doc": "查找所有城市" + "name": "FindRegionCityResponse", + "code": "message FindRegionCityResponse {\n\tRegionCity regionCity = 1;\n}", + "doc": "" }, { "name": "FindAllRegionCitiesWithRegionProvinceIdResponse", @@ -16198,21 +16481,61 @@ "code": "message FindRegionCityRequest {\n\tint64 regionCityId = 1;\n}", "doc": "查找单个城市信息" }, - { - "name": "FindRegionCityResponse", - "code": "message FindRegionCityResponse {\n\tRegionCity regionCity = 1;\n}", - "doc": "" - }, { "name": "UpdateRegionCityCustomRequest", "code": "message UpdateRegionCityCustomRequest {\n\tint64 regionCityId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", "doc": "修改城市定制信息" }, + { + "name": "FindAllEnabledRegionCitiesRequest", + "code": "message FindAllEnabledRegionCitiesRequest {\n\tbool includeRegionProvince = 1;\n}", + "doc": "查找所有城市" + }, + { + "name": "FindAllEnabledRegionCitiesResponse", + "code": "message FindAllEnabledRegionCitiesResponse {\n\trepeated RegionCity regionCities = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledRegionCityRequest", + "code": "message FindEnabledRegionCityRequest {\n\tint64 regionCityId = 1;\n}", + "doc": "查找单个城市信息" + }, { "name": "FindEnabledRegionCityResponse", "code": "message FindEnabledRegionCityResponse {\n\tRegionCity regionCity = 1;\n}", "doc": "" }, + { + "name": "FindAllRegionCitiesWithRegionProvinceIdRequest", + "code": "message FindAllRegionCitiesWithRegionProvinceIdRequest {\n\tint64 regionProvinceId = 1;\n}", + "doc": "查找某个省份的所有城市" + }, + { + "name": "FindAllEnabledRegionCountriesRequest", + "code": "message FindAllEnabledRegionCountriesRequest {\n\n}", + "doc": "查找所有的国家/地区列表" + }, + { + "name": "FindAllRegionCountriesRequest", + "code": "message FindAllRegionCountriesRequest {\n\n}", + "doc": "查找所有的国家/地区列表" + }, + { + "name": "FindAllRegionCountriesResponse", + "code": "message FindAllRegionCountriesResponse {\n\trepeated RegionCountry regionCountries = 1;\n}", + "doc": "" + }, + { + "name": "UpdateRegionCountryCustomRequest", + "code": "message UpdateRegionCountryCustomRequest {\n\tint64 regionCountryId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", + "doc": "修改国家/地区定制信息" + }, + { + "name": "FindAllEnabledRegionCountriesResponse", + "code": "message FindAllEnabledRegionCountriesResponse {\n\trepeated RegionCountry regionCountries = 1;\n}", + "doc": "" + }, { "name": "FindEnabledRegionCountryRequest", "code": "message FindEnabledRegionCountryRequest {\n\tint64 regionCountryId = 1;\n}", @@ -16223,31 +16546,6 @@ "code": "message FindEnabledRegionCountryResponse {\n\tRegionCountry regionCountry = 1;\n}", "doc": "" }, - { - "name": "UpdateRegionCountryCustomRequest", - "code": "message UpdateRegionCountryCustomRequest {\n\tint64 regionCountryId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", - "doc": "修改国家/地区定制信息" - }, - { - "name": "FindAllEnabledRegionCountriesRequest", - "code": "message FindAllEnabledRegionCountriesRequest {\n\n}", - "doc": "查找所有的国家/地区列表" - }, - { - "name": "FindAllEnabledRegionCountriesResponse", - "code": "message FindAllEnabledRegionCountriesResponse {\n\trepeated RegionCountry regionCountries = 1;\n}", - "doc": "" - }, - { - "name": "FindAllRegionCountriesRequest", - "code": "message FindAllRegionCountriesRequest {\n\n}", - "doc": "查找所有的国家/地区列表" - }, - { - "name": "FindAllRegionCountriesResponse", - "code": "message FindAllRegionCountriesResponse {\n\trepeated RegionCountry regionCountries = 1;\n}", - "doc": "" - }, { "name": "FindRegionCountryRequest", "code": "message FindRegionCountryRequest {\n\tint64 regionCountryId = 1;\n}", @@ -16258,6 +16556,31 @@ "code": "message FindRegionCountryResponse {\n\tRegionCountry regionCountry = 1;\n}", "doc": "" }, + { + "name": "FindAllEnabledRegionProvidersRequest", + "code": "message FindAllEnabledRegionProvidersRequest {\n\n}", + "doc": "查找所有ISP" + }, + { + "name": "FindAllRegionProvidersRequest", + "code": "message FindAllRegionProvidersRequest {\n\n}", + "doc": "查找所有ISP" + }, + { + "name": "FindAllRegionProvidersResponse", + "code": "message FindAllRegionProvidersResponse {\n\trepeated RegionProvider regionProviders = 1;\n}", + "doc": "" + }, + { + "name": "FindRegionProviderRequest", + "code": "message FindRegionProviderRequest {\n\tint64 regionProviderId = 1;\n}", + "doc": "查找单个ISP信息" + }, + { + "name": "FindRegionProviderResponse", + "code": "message FindRegionProviderResponse {\n\tRegionProvider regionProvider = 1;\n}", + "doc": "" + }, { "name": "FindAllEnabledRegionProvidersResponse", "code": "message FindAllEnabledRegionProvidersResponse {\n\trepeated RegionProvider regionProviders = 1;\n}", @@ -16269,13 +16592,8 @@ "doc": "查找单个ISP信息" }, { - "name": "FindAllRegionProvidersRequest", - "code": "message FindAllRegionProvidersRequest {\n\n}", - "doc": "查找所有ISP" - }, - { - "name": "FindRegionProviderResponse", - "code": "message FindRegionProviderResponse {\n\tRegionProvider regionProvider = 1;\n}", + "name": "FindEnabledRegionProviderResponse", + "code": "message FindEnabledRegionProviderResponse {\n\tRegionProvider regionProvider = 1;\n}", "doc": "" }, { @@ -16283,56 +16601,11 @@ "code": "message UpdateRegionProviderCustomRequest {\n\tint64 regionProviderId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", "doc": "修改ISP定制信息" }, - { - "name": "FindAllEnabledRegionProvidersRequest", - "code": "message FindAllEnabledRegionProvidersRequest {\n\n}", - "doc": "查找所有ISP" - }, - { - "name": "FindEnabledRegionProviderResponse", - "code": "message FindEnabledRegionProviderResponse {\n\tRegionProvider regionProvider = 1;\n}", - "doc": "" - }, - { - "name": "FindAllRegionProvidersResponse", - "code": "message FindAllRegionProvidersResponse {\n\trepeated RegionProvider regionProviders = 1;\n}", - "doc": "" - }, - { - "name": "FindRegionProviderRequest", - "code": "message FindRegionProviderRequest {\n\tint64 regionProviderId = 1;\n}", - "doc": "查找单个ISP信息" - }, { "name": "FindAllEnabledRegionProvincesWithCountryIdRequest", "code": "message FindAllEnabledRegionProvincesWithCountryIdRequest {\n\tint64 regionCountryId = 1;\n}", "doc": "查找所有省份" }, - { - "name": "FindEnabledRegionProvinceRequest", - "code": "message FindEnabledRegionProvinceRequest {\n\tint64 regionProvinceId = 1;\n}", - "doc": "查找单个省份信息" - }, - { - "name": "FindRegionProvinceResponse", - "code": "message FindRegionProvinceResponse {\n\tRegionProvince regionProvince = 1;\n}", - "doc": "" - }, - { - "name": "UpdateRegionProvinceCustomRequest", - "code": "message UpdateRegionProvinceCustomRequest {\n\tint64 regionProvinceId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", - "doc": "修改省份定制信息" - }, - { - "name": "FindAllEnabledRegionProvincesWithCountryIdResponse", - "code": "message FindAllEnabledRegionProvincesWithCountryIdResponse {\n\trepeated RegionProvince regionProvinces = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledRegionProvinceResponse", - "code": "message FindEnabledRegionProvinceResponse {\n\tRegionProvince regionProvince = 1;\n}", - "doc": "" - }, { "name": "FindAllRegionProvincesWithRegionCountryIdRequest", "code": "message FindAllRegionProvincesWithRegionCountryIdRequest {\n\tint64 regionCountryId = 1;\n}", @@ -16349,14 +16622,29 @@ "doc": "查找单个省份信息" }, { - "name": "FindAllRegionTownsResponse", - "code": "message FindAllRegionTownsResponse {\n\trepeated RegionTown regionTowns = 1;\n}", + "name": "FindRegionProvinceResponse", + "code": "message FindRegionProvinceResponse {\n\tRegionProvince regionProvince = 1;\n}", "doc": "" }, { - "name": "FindAllRegionTownsWithRegionCityIdRequest", - "code": "message FindAllRegionTownsWithRegionCityIdRequest {\n\tint64 regionCityId = 1;\n}", - "doc": "查找某个城市的所有区县" + "name": "FindAllEnabledRegionProvincesWithCountryIdResponse", + "code": "message FindAllEnabledRegionProvincesWithCountryIdResponse {\n\trepeated RegionProvince regionProvinces = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledRegionProvinceRequest", + "code": "message FindEnabledRegionProvinceRequest {\n\tint64 regionProvinceId = 1;\n}", + "doc": "查找单个省份信息" + }, + { + "name": "FindEnabledRegionProvinceResponse", + "code": "message FindEnabledRegionProvinceResponse {\n\tRegionProvince regionProvince = 1;\n}", + "doc": "" + }, + { + "name": "UpdateRegionProvinceCustomRequest", + "code": "message UpdateRegionProvinceCustomRequest {\n\tint64 regionProvinceId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", + "doc": "修改省份定制信息" }, { "name": "FindAllRegionTownsWithRegionCityIdResponse", @@ -16384,69 +16672,19 @@ "doc": "查找所有区县" }, { - "name": "ListReportNodeTasksRequest", - "code": "message ListReportNodeTasksRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页任务" - }, - { - "name": "UpdateReportNodeRequest", - "code": "message UpdateReportNodeRequest{\n\tint64 reportNodeId = 1;\n\tstring name = 2;\n\tstring location = 3;\n\tstring isp = 4;\n\trepeated string allowIPs = 5;\n\tbool isOn = 6;\n\trepeated int64 reportNodeGroupIds = 7;\n}", - "doc": "修改终端" - }, - { - "name": "CountAllEnabledReportNodesRequest", - "code": "message CountAllEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 2;\n}", - "doc": "计算终端数量" - }, - { - "name": "FindReportNodeTasksResponse", - "code": "message FindReportNodeTasksResponse {\n\tbytes ipAddrTasksJSON = 1;\n}", + "name": "FindAllRegionTownsResponse", + "code": "message FindAllRegionTownsResponse {\n\trepeated RegionTown regionTowns = 1;\n}", "doc": "" }, { - "name": "ListReportNodeTasksResponse", - "code": "message ListReportNodeTasksResponse {\n\trepeated IPAddrReportTask ipAddrReportTasks = 1;\n}", - "doc": "" + "name": "FindAllRegionTownsWithRegionCityIdRequest", + "code": "message FindAllRegionTownsWithRegionCityIdRequest {\n\tint64 regionCityId = 1;\n}", + "doc": "查找某个城市的所有区县" }, { - "name": "ListEnabledReportNodesResponse", - "code": "message ListEnabledReportNodesResponse {\n\trepeated ReportNode reportNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentReportNodeConfigResponse", - "code": "message FindCurrentReportNodeConfigResponse {\n\tbytes reportNodeJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountAllReportNodeTasksRequest", - "code": "message CountAllReportNodeTasksRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n}", - "doc": "计算任务数量" - }, - { - "name": "ReportNodeStreamMessage", - "code": "message ReportNodeStreamMessage {\n\tint64 reportNodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", - "doc": "终端stream" - }, - { - "name": "FindReportNodeTasksRequest", - "code": "message FindReportNodeTasksRequest {\n\n}", - "doc": "读取任务" - }, - { - "name": "FindLatestReportNodeVersionResponse", - "code": "message FindLatestReportNodeVersionResponse {\n\tstring version = 1;\n}", - "doc": "" - }, - { - "name": "CreateReportNodeRequest", - "code": "message CreateReportNodeRequest {\n\tstring name = 1;\n\tstring location = 2;\n\tstring isp = 3;\n\trepeated string allowIPs = 4;\n\trepeated int64 reportNodeGroupIds = 5;\n}", - "doc": "添加终端" - }, - { - "name": "FindEnabledReportNodeRequest", - "code": "message FindEnabledReportNodeRequest{\n\tint64 reportNodeId = 1;\n}", - "doc": "查找单个终端" + "name": "ListEnabledReportNodesRequest", + "code": "message ListEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 4;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页终端" }, { "name": "FindEnabledReportNodeResponse", @@ -16463,11 +16701,76 @@ "code": "message FindCurrentReportNodeConfigRequest {\n\n}", "doc": "获取当前节点信息" }, + { + "name": "FindReportNodeTasksRequest", + "code": "message FindReportNodeTasksRequest {\n\n}", + "doc": "读取任务" + }, + { + "name": "CountAllEnabledReportNodesRequest", + "code": "message CountAllEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 2;\n}", + "doc": "计算终端数量" + }, + { + "name": "DeleteReportNodeRequest", + "code": "message DeleteReportNodeRequest {\n\tint64 reportNodeId = 1;\n}", + "doc": "删除终端" + }, + { + "name": "ListEnabledReportNodesResponse", + "code": "message ListEnabledReportNodesResponse {\n\trepeated ReportNode reportNodes = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledReportNodeRequest", + "code": "message FindEnabledReportNodeRequest{\n\tint64 reportNodeId = 1;\n}", + "doc": "查找单个终端" + }, + { + "name": "FindLatestReportNodeVersionResponse", + "code": "message FindLatestReportNodeVersionResponse {\n\tstring version = 1;\n}", + "doc": "" + }, + { + "name": "CountAllReportNodeTasksRequest", + "code": "message CountAllReportNodeTasksRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n}", + "doc": "计算任务数量" + }, + { + "name": "ListReportNodeTasksRequest", + "code": "message ListReportNodeTasksRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页任务" + }, + { + "name": "CreateReportNodeResponse", + "code": "message CreateReportNodeResponse {\n\tint64 reportNodeId = 1;\n}", + "doc": "" + }, + { + "name": "ReportNodeStreamMessage", + "code": "message ReportNodeStreamMessage {\n\tint64 reportNodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", + "doc": "终端stream" + }, + { + "name": "FindCurrentReportNodeConfigResponse", + "code": "message FindCurrentReportNodeConfigResponse {\n\tbytes reportNodeJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindReportNodeTasksResponse", + "code": "message FindReportNodeTasksResponse {\n\tbytes ipAddrTasksJSON = 1;\n}", + "doc": "" + }, { "name": "FindLatestReportNodeVersionRequest", "code": "message FindLatestReportNodeVersionRequest {\n\n}", "doc": "取得最新的版本号" }, + { + "name": "ListReportNodeTasksResponse", + "code": "message ListReportNodeTasksResponse {\n\trepeated IPAddrReportTask ipAddrReportTasks = 1;\n}", + "doc": "" + }, { "name": "UpdateReportNodeGlobalSetting", "code": "message UpdateReportNodeGlobalSetting {\n\tbytes settingJSON = 1;\n}", @@ -16479,44 +16782,14 @@ "doc": "" }, { - "name": "CreateReportNodeResponse", - "code": "message CreateReportNodeResponse {\n\tint64 reportNodeId = 1;\n}", - "doc": "" + "name": "UpdateReportNodeRequest", + "code": "message UpdateReportNodeRequest{\n\tint64 reportNodeId = 1;\n\tstring name = 2;\n\tstring location = 3;\n\tstring isp = 4;\n\trepeated string allowIPs = 5;\n\tbool isOn = 6;\n\trepeated int64 reportNodeGroupIds = 7;\n}", + "doc": "修改终端" }, { - "name": "DeleteReportNodeRequest", - "code": "message DeleteReportNodeRequest {\n\tint64 reportNodeId = 1;\n}", - "doc": "删除终端" - }, - { - "name": "ListEnabledReportNodesRequest", - "code": "message ListEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 4;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页终端" - }, - { - "name": "CreateReportNodeGroupRequest", - "code": "message CreateReportNodeGroupRequest {\n\tstring name = 1;\n}", - "doc": "创建分组" - }, - { - "name": "DeleteReportNodeGroupRequest", - "code": "message DeleteReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", - "doc": "删除分组" - }, - { - "name": "FindAllEnabledReportNodeGroupsResponse", - "code": "message FindAllEnabledReportNodeGroupsResponse {\n\trepeated ReportNodeGroup reportNodeGroups = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledReportNodeGroupRequest", - "code": "message FindEnabledReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", - "doc": "查找单个分组" - }, - { - "name": "CountAllEnabledReportNodeGroupsRequest", - "code": "message CountAllEnabledReportNodeGroupsRequest {\n\n}", - "doc": "计算所有分组数量" + "name": "CreateReportNodeRequest", + "code": "message CreateReportNodeRequest {\n\tstring name = 1;\n\tstring location = 2;\n\tstring isp = 3;\n\trepeated string allowIPs = 4;\n\trepeated int64 reportNodeGroupIds = 5;\n}", + "doc": "添加终端" }, { "name": "CreateReportNodeGroupResponse", @@ -16528,31 +16801,41 @@ "code": "message UpdateReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n\tstring name = 2;\n}", "doc": "修改分组" }, + { + "name": "FindAllEnabledReportNodeGroupsResponse", + "code": "message FindAllEnabledReportNodeGroupsResponse {\n\trepeated ReportNodeGroup reportNodeGroups = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledReportNodeGroupsRequest", + "code": "message CountAllEnabledReportNodeGroupsRequest {\n\n}", + "doc": "计算所有分组数量" + }, + { + "name": "CreateReportNodeGroupRequest", + "code": "message CreateReportNodeGroupRequest {\n\tstring name = 1;\n}", + "doc": "创建分组" + }, + { + "name": "DeleteReportNodeGroupRequest", + "code": "message DeleteReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", + "doc": "删除分组" + }, { "name": "FindAllEnabledReportNodeGroupsRequest", "code": "message FindAllEnabledReportNodeGroupsRequest {\n\n}", "doc": "查找所有分组" }, + { + "name": "FindEnabledReportNodeGroupRequest", + "code": "message FindEnabledReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", + "doc": "查找单个分组" + }, { "name": "FindEnabledReportNodeGroupResponse", "code": "message FindEnabledReportNodeGroupResponse {\n\tReportNodeGroup reportNodeGroup = 1;\n}", "doc": "" }, - { - "name": "CountAllReportResultsRequest", - "code": "message CountAllReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n}", - "doc": "计算监控结果数量" - }, - { - "name": "ListReportResultsRequest", - "code": "message ListReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页监控结果" - }, - { - "name": "ListReportResultsResponse", - "code": "message ListReportResultsResponse {\n\trepeated ReportResult reportResults = 1;\n}", - "doc": "" - }, { "name": "UpdateReportResultsRequest", "code": "message UpdateReportResultsRequest {\n\trepeated ReportResult reportResults = 1;\n}", @@ -16569,35 +16852,20 @@ "doc": "" }, { - "name": "FindEnabledReverseProxyResponse", - "code": "message FindEnabledReverseProxyResponse {\n\tReverseProxy reverseProxy = 1;\n}", + "name": "CountAllReportResultsRequest", + "code": "message CountAllReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n}", + "doc": "计算监控结果数量" + }, + { + "name": "ListReportResultsRequest", + "code": "message ListReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页监控结果" + }, + { + "name": "ListReportResultsResponse", + "code": "message ListReportResultsResponse {\n\trepeated ReportResult reportResults = 1;\n}", "doc": "" }, - { - "name": "FindEnabledReverseProxyConfigRequest", - "code": "message FindEnabledReverseProxyConfigRequest {\n\tint64 reverseProxyId = 1;\n}", - "doc": "查找反向代理配置" - }, - { - "name": "FindEnabledReverseProxyConfigResponse", - "code": "message FindEnabledReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateReverseProxySchedulingRequest", - "code": "message UpdateReverseProxySchedulingRequest {\n\tint64 reverseProxyId = 1;\n\tbytes schedulingJSON = 2;\n}", - "doc": "修改反向代理调度算法" - }, - { - "name": "UpdateReverseProxyPrimaryOriginsRequest", - "code": "message UpdateReverseProxyPrimaryOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\n}", - "doc": "修改主要源站信息" - }, - { - "name": "UpdateReverseProxyRequest", - "code": "message UpdateReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n\tint32 requestHostType = 6;\n\tstring requestHost = 2;\n\tbool requestHostExcludingPort = 15;\n\tstring requestURI = 3;\n\tstring stripPrefix = 4;\n\tbool autoFlush = 5;\n\trepeated string addHeaders = 7;\n\tbytes connTimeoutJSON = 8;\n\tbytes readTimeoutJSON = 9;\n\tbytes idleTimeoutJSON = 10;\n\tint32 maxConns = 11;\n\tint32 maxIdleConns = 12;\n\tbytes proxyProtocolJSON = 13;\n\tbool followRedirects = 14;\n}", - "doc": "修改反向代理设置" - }, { "name": "CreateReverseProxyRequest", "code": "message CreateReverseProxyRequest {\n\tbytes schedulingJSON = 1;\n\tbytes primaryOriginsJSON = 2;\n\tbytes backupOriginsJSON = 3;\n}", @@ -16608,6 +16876,16 @@ "code": "message FindEnabledReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n}", "doc": "查找反向代理" }, + { + "name": "FindEnabledReverseProxyConfigRequest", + "code": "message FindEnabledReverseProxyConfigRequest {\n\tint64 reverseProxyId = 1;\n}", + "doc": "查找反向代理配置" + }, + { + "name": "UpdateReverseProxySchedulingRequest", + "code": "message UpdateReverseProxySchedulingRequest {\n\tint64 reverseProxyId = 1;\n\tbytes schedulingJSON = 2;\n}", + "doc": "修改反向代理调度算法" + }, { "name": "UpdateReverseProxyBackupOriginsRequest", "code": "message UpdateReverseProxyBackupOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\n}", @@ -16619,18 +16897,38 @@ "doc": "" }, { - "name": "CheckScriptUpdatesRequest", - "code": "message CheckScriptUpdatesRequest {\n\tint64 userId = 1;\n}", - "doc": "检查脚本是否需要有更新" + "name": "FindEnabledReverseProxyResponse", + "code": "message FindEnabledReverseProxyResponse {\n\tReverseProxy reverseProxy = 1;\n}", + "doc": "" }, { - "name": "UpdateScriptRequest", - "code": "message UpdateScriptRequest {\n\tint64 scriptId = 1;\n\tstring name = 2;\n\tstring filename = 3;\n\tstring code = 4;\n\tbool isOn = 5;\n}", - "doc": "修改脚本" + "name": "FindEnabledReverseProxyConfigResponse", + "code": "message FindEnabledReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n}", + "doc": "" }, { - "name": "ComposeScriptConfigsResponse", - "code": "message ComposeScriptConfigsResponse {\n\tbytes scriptConfigsJSON = 1;\n}", + "name": "UpdateReverseProxyPrimaryOriginsRequest", + "code": "message UpdateReverseProxyPrimaryOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\n}", + "doc": "修改主要源站信息" + }, + { + "name": "UpdateReverseProxyRequest", + "code": "message UpdateReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n\tint32 requestHostType = 6;\n\tstring requestHost = 2;\n\tbool requestHostExcludingPort = 15;\n\tstring requestURI = 3;\n\tstring stripPrefix = 4;\n\tbool autoFlush = 5;\n\trepeated string addHeaders = 7;\n\tbytes connTimeoutJSON = 8;\n\tbytes readTimeoutJSON = 9;\n\tbytes idleTimeoutJSON = 10;\n\tint32 maxConns = 11;\n\tint32 maxIdleConns = 12;\n\tbytes proxyProtocolJSON = 13;\n\tbool followRedirects = 14;\n}", + "doc": "修改反向代理设置" + }, + { + "name": "CreateScriptRequest", + "code": "message CreateScriptRequest {\n\tstring name = 1;\n\tstring filename = 2;\n\tstring code = 3;\n}", + "doc": "添加脚本" + }, + { + "name": "ListEnabledScriptsResponse", + "code": "message ListEnabledScriptsResponse {\n\trepeated Script scripts = 1;\n}", + "doc": "" + }, + { + "name": "CreateScriptResponse", + "code": "message CreateScriptResponse {\n\tint64 scriptId = 1;\n}", "doc": "" }, { @@ -16638,25 +16936,15 @@ "code": "message DeleteScriptRequest {\n\tint64 scriptId = 1;\n}", "doc": "删除脚本" }, - { - "name": "CountAllEnabledScriptsRequest", - "code": "message CountAllEnabledScriptsRequest {\n\tint64 userId = 1;\n}", - "doc": "计算脚本数量" - }, { "name": "ListEnabledScriptsRequest", "code": "message ListEnabledScriptsRequest {\n\tint64 userId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", "doc": "列出单页脚本" }, { - "name": "FindEnabledScriptRequest", - "code": "message FindEnabledScriptRequest {\n\tint64 scriptId = 1;\n}", - "doc": "查找单个脚本" - }, - { - "name": "CheckScriptUpdatesResponse", - "code": "message CheckScriptUpdatesResponse {\n\tbool hasUpdates = 1;\n\tint64 version = 2;\n}", - "doc": "" + "name": "UpdateScriptRequest", + "code": "message UpdateScriptRequest {\n\tint64 scriptId = 1;\n\tstring name = 2;\n\tstring filename = 3;\n\tstring code = 4;\n\tbool isOn = 5;\n}", + "doc": "修改脚本" }, { "name": "ComposeScriptConfigsRequest", @@ -16664,19 +16952,9 @@ "doc": "组合脚本配置" }, { - "name": "CreateScriptRequest", - "code": "message CreateScriptRequest {\n\tstring name = 1;\n\tstring filename = 2;\n\tstring code = 3;\n}", - "doc": "添加脚本" - }, - { - "name": "CreateScriptResponse", - "code": "message CreateScriptResponse {\n\tint64 scriptId = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledScriptsResponse", - "code": "message ListEnabledScriptsResponse {\n\trepeated Script scripts = 1;\n}", - "doc": "" + "name": "CountAllEnabledScriptsRequest", + "code": "message CountAllEnabledScriptsRequest {\n\tint64 userId = 1;\n}", + "doc": "计算脚本数量" }, { "name": "PublishScriptsRequest", @@ -16689,144 +16967,44 @@ "doc": "" }, { - "name": "FindEnabledServerDNSRequest", - "code": "message FindEnabledServerDNSRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找单个服务的DNS信息" + "name": "CheckScriptUpdatesRequest", + "code": "message CheckScriptUpdatesRequest {\n\tint64 userId = 1;\n}", + "doc": "检查脚本是否需要有更新" }, { - "name": "UploadServerHTTPRequestStatRequest", - "code": "message UploadServerHTTPRequestStatRequest {\n\tstring month = 1;\n\tstring day = 2;\n\trepeated RegionCity regionCities = 3;\n\trepeated RegionProvider regionProviders = 4;\n\trepeated System systems = 5;\n\trepeated Browser browsers = 6;\n\trepeated HTTPFirewallRuleGroup httpFirewallRuleGroups = 7;\n\n\n\tmessage RegionCity {\n\t\tint64 serverId = 1;\n\t\tstring countryName = 2;\n\t\tstring provinceName = 3;\n\t\tstring cityName = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 bytes = 6;\n\t\tint64 countAttackRequests = 7;\n\t\tint64 attackBytes = 8;\n\t}\n\n\n\tmessage RegionProvider {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tint64 count = 3;\n\t}\n\n\n\tmessage System {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage Browser {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage HTTPFirewallRuleGroup {\n\t\tint64 serverId = 1;\n\t\tint64 httpFirewallRuleGroupId = 2;\n\t\tstring action = 3;\n\t\tint64 count = 4;\n\t}\n}", - "doc": "上传HTTP请求待统计数据" - }, - { - "name": "FindNearbyServersResponse", - "code": "message FindNearbyServersResponse {\n\tstring scope = 1; // 范围 cluster|group\n\trepeated GroupInfo groups = 2;\n\n\n\tmessage GroupInfo {\n\t\tstring name = 1;\n\t\trepeated Server servers = 2;\n\t}\n}", + "name": "CheckScriptUpdatesResponse", + "code": "message CheckScriptUpdatesResponse {\n\tbool hasUpdates = 1;\n\tint64 version = 2;\n}", "doc": "" }, { - "name": "UpdateServerHTTPRequest", - "code": "message UpdateServerHTTPRequest {\n\tint64 serverId = 1;\n\tbytes httpJSON = 2;\n}", - "doc": "修改服务的HTTP等设置" + "name": "FindEnabledScriptRequest", + "code": "message FindEnabledScriptRequest {\n\tint64 scriptId = 1;\n}", + "doc": "查找单个脚本" }, { - "name": "FindServerNamesRequest", - "code": "message FindServerNamesRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务的域名设置" - }, - { - "name": "DeleteServerRequest", - "code": "message DeleteServerRequest {\n\tint64 serverId = 1;\n}", - "doc": "禁用服务" - }, - { - "name": "FindAllEnabledServerNamesWithUserIdResponse", - "code": "message FindAllEnabledServerNamesWithUserIdResponse {\n\trepeated string serverNames = 1;\n}", + "name": "ComposeScriptConfigsResponse", + "code": "message ComposeScriptConfigsResponse {\n\tbytes scriptConfigsJSON = 1;\n}", "doc": "" }, { - "name": "FindEnabledUserServerBasicRequest", - "code": "message FindEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找用户服务基本信息" - }, - { - "name": "UpdateEnabledUserServerBasicRequest", - "code": "message UpdateEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n}", - "doc": "修改用户服务基本信息" - }, - { - "name": "FindEnabledServerTrafficLimitRequest", - "code": "message FindEnabledServerTrafficLimitRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找流量限制" - }, - { - "name": "FindServerIdWithDNSNameRequest", - "code": "message FindServerIdWithDNSNameRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n}", - "doc": "使用CNAME查找服务" - }, - { - "name": "ListEnabledServersMatchRequest", - "code": "message ListEnabledServersMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 serverGroupId = 3; // 服务分组ID,如果为-1表示查找未分组\n\tstring keyword = 4;\n\tint64 userId = 5;\n\tint64 nodeClusterId = 6;\n\tint32 auditingFlag = 7;\n\tstring protocolFamily = 8;\n\tbool trafficOutAsc = 9;\n\tbool trafficOutDesc = 10;\n}", - "doc": "列出单页服务" - }, - { - "name": "NotifyServersChangeRequest", - "code": "message NotifyServersChangeRequest {\n\n}", - "doc": "通知更新" - }, - { - "name": "CheckServerNameDuplicationInNodeClusterResponse", - "code": "message CheckServerNameDuplicationInNodeClusterResponse {\n\trepeated string duplicatedServerNames = 1;\n}", + "name": "FindEnabledServerTrafficLimitResponse", + "code": "message FindEnabledServerTrafficLimitResponse {\n\tbytes trafficLimitJSON = 1;\n}", "doc": "" }, { - "name": "FindEnabledServerUAMResponse", - "code": "message FindEnabledServerUAMResponse {\n\tbytes uamJSON = 1;\n}", - "doc": "" + "name": "FindEnabledServerUAMRequest", + "code": "message FindEnabledServerUAMRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务UAM设置" }, { - "name": "UpdateServerBasicRequest", - "code": "message UpdateServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tint64 nodeClusterId = 4;\n\tbool keepOldConfigs = 7; // 是否在老节点上保留一段时间配置\n\tbool isOn = 5;\n\trepeated int64 serverGroupIds = 6;\n}", - "doc": "修改服务基本信息" + "name": "FindAndInitServerWebConfigRequest", + "code": "message FindAndInitServerWebConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "初始化Web设置" }, { - "name": "FindEnabledServerConfigResponse", - "code": "message FindEnabledServerConfigResponse {\n\tbytes serverJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindLatestServersRequest", - "code": "message FindLatestServersRequest {\n\tint64 size = 1;\n}", - "doc": "查找最近访问的服务" - }, - { - "name": "ComposeServerConfigResponse", - "code": "message ComposeServerConfigResponse {\n\tbytes serverConfigJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledServersWithNodeClusterIdRequest", - "code": "message CountAllEnabledServersWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算运行在某个集群上的所有服务数量" - }, - { - "name": "ServerDNSInfo", - "code": "message ServerDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring dnsName = 3;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledServerNamesWithUserIdRequest", - "code": "message FindAllEnabledServerNamesWithUserIdRequest {\n\tint64 userId = 1;\n}", - "doc": "查找一个用户下的所有域名列表" - }, - { - "name": "FindAllEnabledServersWithSSLCertIdResponse", - "code": "message FindAllEnabledServersWithSSLCertIdResponse {\n\trepeated Server servers = 1;\n}", - "doc": "" - }, - { - "name": "PurgeServerCacheRequest", - "code": "message PurgeServerCacheRequest {\n\trepeated string keys = 2;\n\trepeated string prefixes = 3;\n\tstring description = 4; // 任务描述\n}", - "doc": "清除缓存" - }, - { - "name": "FindServerNamesResponse", - "code": "message FindServerNamesResponse {\n\tbytes serverNamesJSON = 1;\n\tbool isAuditing = 2;\n\tint64 auditingAt = 5;\n\tbytes auditingServerNamesJSON = 3;\n\tServerNameAuditingResult auditingResult = 4;\n}", - "doc": "" - }, - { - "name": "FindServerIdWithDNSNameResponse", - "code": "message FindServerIdWithDNSNameResponse {\n\tint64 serverId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledServerConfigRequest", - "code": "message FindEnabledServerConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务配置" - }, - { - "name": "FindEnabledServerTypeRequest", - "code": "message FindEnabledServerTypeRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务的服务类型" + "name": "CountAllEnabledServersWithSSLCertIdRequest", + "code": "message CountAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的服务数量" }, { "name": "FindAllEnabledServersWithSSLCertIdRequest", @@ -16834,25 +17012,20 @@ "doc": "查找使用某个SSL证书的所有服务" }, { - "name": "UpdateServerUAMRequest", - "code": "message UpdateServerUAMRequest {\n\tint64 serverId = 1;\n\tbytes uamJSON = 2;\n}", - "doc": "修改服务UAM设置" + "name": "UpdateServerNamesRequest", + "code": "message UpdateServerNamesRequest {\n\tint64 serverId = 1;\n\tbytes serverNamesJSON = 2;\n}", + "doc": "修改服务的域名设置" + }, + { + "name": "PurgeServerCacheResponse", + "code": "message PurgeServerCacheResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", + "doc": "" }, { "name": "CreateServerResponse", "code": "message CreateServerResponse {\n\tint64 serverId = 1;\n}", "doc": "" }, - { - "name": "UpdateServerUDPRequest", - "code": "message UpdateServerUDPRequest {\n\tint64 serverId = 1;\n\tbytes udpJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindEnabledServerResponse", - "code": "message FindEnabledServerResponse {\n\tServer server = 1;\n}", - "doc": "" - }, { "name": "UpdateServerGroupIdsRequest", "code": "message UpdateServerGroupIdsRequest {\n\tint64 serverId = 1;\n\trepeated int64 serverGroupIds = 2;\n}", @@ -16864,50 +17037,15 @@ "doc": "" }, { - "name": "FindEnabledServerDNSResponse", - "code": "message FindEnabledServerDNSResponse {\n\tstring dnsName = 1;\n\tDNSDomain domain = 2;\n\tbool supportCNAME = 3;\n}", + "name": "FindEnabledServerDNSRequest", + "code": "message FindEnabledServerDNSRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找单个服务的DNS信息" + }, + { + "name": "FindEnabledUserServerBasicResponse", + "code": "message FindEnabledUserServerBasicResponse {\n\tServer server = 1;\n}", "doc": "" }, - { - "name": "UpdateServerReverseProxyRequest", - "code": "message UpdateServerReverseProxyRequest {\n\tint64 serverId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改服务的反向代理设置" - }, - { - "name": "FindAllEnabledServersDNSWithNodeClusterIdRequest", - "code": "message FindAllEnabledServersDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "取得某个集群下的所有服务相关的DNS" - }, - { - "name": "FindNearbyServersRequest", - "code": "message FindNearbyServersRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找某个服务附近的服务" - }, - { - "name": "CheckUserServerRequest", - "code": "message CheckUserServerRequest {\n\tint64 serverId = 1;\n}", - "doc": "检查服务是否属于某个用户" - }, - { - "name": "UpdateServerTrafficLimitRequest", - "code": "message UpdateServerTrafficLimitRequest {\n\tint64 serverId = 1;\n\tbytes trafficLimitJSON = 2;\n}", - "doc": "设置流量限制" - }, - { - "name": "UpdateServerHTTPSRequest", - "code": "message UpdateServerHTTPSRequest {\n\tint64 serverId = 1;\n\tbytes httpsJSON = 2;\n}", - "doc": "" - }, - { - "name": "UpdateServerNamesRequest", - "code": "message UpdateServerNamesRequest {\n\tint64 serverId = 1;\n\tbytes serverNamesJSON = 2;\n}", - "doc": "修改服务的域名设置" - }, - { - "name": "UpdateServerDNSRequest", - "code": "message UpdateServerDNSRequest {\n\tint64 serverId = 1;\n\tbool supportCNAME = 2;\n}", - "doc": "修改服务的DNS相关设置" - }, { "name": "FindLatestServersResponse", "code": "message FindLatestServersResponse {\n\trepeated Server servers = 1;\n}", @@ -16924,113 +17062,43 @@ "doc": "" }, { - "name": "FindAndInitServerWebConfigResponse", - "code": "message FindAndInitServerWebConfigResponse {\n\tbytes webJSON = 1;\n}", + "name": "FindEnabledServerConfigResponse", + "code": "message FindEnabledServerConfigResponse {\n\tbytes serverJSON = 1;\n}", "doc": "" }, { - "name": "UpdateServerUserPlanRequest", - "code": "message UpdateServerUserPlanRequest {\n\tint64 serverId = 1;\n\tint64 userPlanId = 2;\n}", - "doc": "修改服务套餐" - }, - { - "name": "UpdateServerNamesAuditingRequest", - "code": "message UpdateServerNamesAuditingRequest {\n\tint64 serverId = 1;\n\tServerNameAuditingResult auditingResult = 2;\n}", - "doc": "审核服务的域名设置" - }, - { - "name": "CountAllEnabledServersWithServerGroupIdRequest", - "code": "message CountAllEnabledServersWithServerGroupIdRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "计算使用某个分组的服务数量" + "name": "FindEnabledServerTypeRequest", + "code": "message FindEnabledServerTypeRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务的服务类型" }, { "name": "FindAllEnabledServersDNSWithNodeClusterIdResponse", "code": "message FindAllEnabledServersDNSWithNodeClusterIdResponse {\n\trepeated ServerDNSInfo servers = 1;\n}", "doc": "" }, - { - "name": "FindEnabledServerUAMRequest", - "code": "message FindEnabledServerUAMRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务UAM设置" - }, { "name": "UpdateServerWebRequest", "code": "message UpdateServerWebRequest {\n\tint64 serverId = 1;\n\tint64 webId = 2;\n}", "doc": "" }, { - "name": "RegenerateServerDNSNameRequest", - "code": "message RegenerateServerDNSNameRequest {\n\tint64 serverId = 1;\n}", - "doc": "重新生成CNAME" + "name": "FindServerNamesRequest", + "code": "message FindServerNamesRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务的域名设置" }, { - "name": "FindEnabledUserServerBasicResponse", - "code": "message FindEnabledUserServerBasicResponse {\n\tServer server = 1;\n}", - "doc": "" + "name": "UpdateServerDNSRequest", + "code": "message UpdateServerDNSRequest {\n\tint64 serverId = 1;\n\tbool supportCNAME = 2;\n}", + "doc": "修改服务的DNS相关设置" }, { - "name": "FindAndInitServerReverseProxyConfigRequest", - "code": "message FindAndInitServerReverseProxyConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找反向代理设置" + "name": "CountAllEnabledServersMatchRequest", + "code": "message CountAllEnabledServersMatchRequest {\n\tint64 serverGroupId = 1; // 服务分组ID,如果为-1表示查找未分组\n\tstring keyword = 2;\n\tint64 userId = 3;\n\tint64 nodeClusterId = 4;\n\tint32 auditingFlag = 5;\n\tstring protocolFamily = 6;\n}", + "doc": "计算服务数量" }, { - "name": "FindAndInitServerReverseProxyConfigResponse", - "code": "message FindAndInitServerReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindServerUserPlanResponse", - "code": "message FindServerUserPlanResponse {\n\tUserPlan userPlan = 1;\n}", - "doc": "" - }, - { - "name": "CreateServerRequest", - "code": "message CreateServerRequest {\n\tint64 userId = 1;\n\tint64 adminId = 2;\n\tstring type = 3;\n\tstring name = 4;\n\tstring description = 5;\n\n\t// 配置相关\n\tbytes serverNamesJON = 8; // @link json:server_names\n\tbytes httpJSON = 9;\n\tbytes httpsJSON = 10;\n\tbytes tcpJSON = 11;\n\tbytes tlsJSON = 12;\n\tbytes unixJSON = 13;\n\tbytes udpJSON = 14;\n\tint64 webId = 15;\n\tbytes reverseProxyJSON = 16;\n\trepeated int64 serverGroupIds = 17;\n\tint64 userPlanId = 18;\n\n\tint64 nodeClusterId = 30;\n\tbytes includeNodesJSON = 31;\n\tbytes excludeNodesJSON = 32;\n}", - "doc": "创建服务" - }, - { - "name": "UpdateServerTCPRequest", - "code": "message UpdateServerTCPRequest {\n\tint64 serverId = 1;\n\tbytes tcpJSON = 2;\n}", - "doc": "" - }, - { - "name": "UpdateServerDNSNameRequest", - "code": "message UpdateServerDNSNameRequest {\n\tint64 serverId = 1;\n\tstring dnsName = 2;\n}", - "doc": "修改服务的CNAME" - }, - { - "name": "ComposeServerConfigRequest", - "code": "message ComposeServerConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "获取服务配置" - }, - { - "name": "FindAndInitServerWebConfigRequest", - "code": "message FindAndInitServerWebConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "初始化Web设置" - }, - { - "name": "PurgeServerCacheResponse", - "code": "message PurgeServerCacheResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", - "doc": "" - }, - { - "name": "FindEnabledServerTrafficLimitResponse", - "code": "message FindEnabledServerTrafficLimitResponse {\n\tbytes trafficLimitJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledServersWithSSLCertIdRequest", - "code": "message CountAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的服务数量" - }, - { - "name": "CheckServerNameDuplicationInNodeClusterRequest", - "code": "message CheckServerNameDuplicationInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\trepeated string serverNames = 2; // 可以同时检查一批域名\n\tint64 excludeServerId = 3; // 要排除的服务ID\n}", - "doc": "检查域名是否已经存在" - }, - { - "name": "FindEnabledServerTypeResponse", - "code": "message FindEnabledServerTypeResponse {\n\tstring type = 1;\n}", + "name": "FindAndInitServerWebConfigResponse", + "code": "message FindAndInitServerWebConfigResponse {\n\tbytes webJSON = 1;\n}", "doc": "" }, { @@ -17039,14 +17107,149 @@ "doc": "" }, { - "name": "FindServerUserPlanRequest", - "code": "message FindServerUserPlanRequest {\n\tint64 serverId = 1;\n}", - "doc": "获取服务套餐信息" + "name": "ComposeServerConfigResponse", + "code": "message ComposeServerConfigResponse {\n\tbytes serverConfigJSON = 1;\n}", + "doc": "" }, { - "name": "CountAllEnabledServersMatchRequest", - "code": "message CountAllEnabledServersMatchRequest {\n\tint64 serverGroupId = 1; // 服务分组ID,如果为-1表示查找未分组\n\tstring keyword = 2;\n\tint64 userId = 3;\n\tint64 nodeClusterId = 4;\n\tint32 auditingFlag = 5;\n\tstring protocolFamily = 6;\n}", - "doc": "计算服务数量" + "name": "UpdateServerUDPRequest", + "code": "message UpdateServerUDPRequest {\n\tint64 serverId = 1;\n\tbytes udpJSON = 2;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerTypeResponse", + "code": "message FindEnabledServerTypeResponse {\n\tstring type = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledServersWithNodeClusterIdRequest", + "code": "message CountAllEnabledServersWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "计算运行在某个集群上的所有服务数量" + }, + { + "name": "FindEnabledServerUAMResponse", + "code": "message FindEnabledServerUAMResponse {\n\tbytes uamJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindServerIdWithDNSNameRequest", + "code": "message FindServerIdWithDNSNameRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n}", + "doc": "使用CNAME查找服务" + }, + { + "name": "FindLatestServersRequest", + "code": "message FindLatestServersRequest {\n\tint64 size = 1;\n}", + "doc": "查找最近访问的服务" + }, + { + "name": "UpdateServerTrafficLimitRequest", + "code": "message UpdateServerTrafficLimitRequest {\n\tint64 serverId = 1;\n\tbytes trafficLimitJSON = 2;\n}", + "doc": "设置流量限制" + }, + { + "name": "CountAllEnabledServersWithServerGroupIdRequest", + "code": "message CountAllEnabledServersWithServerGroupIdRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "计算使用某个分组的服务数量" + }, + { + "name": "FindEnabledServerDNSResponse", + "code": "message FindEnabledServerDNSResponse {\n\tstring dnsName = 1;\n\tDNSDomain domain = 2;\n\tbool supportCNAME = 3;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserServerBasicRequest", + "code": "message FindEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找用户服务基本信息" + }, + { + "name": "UpdateServerHTTPRequest", + "code": "message UpdateServerHTTPRequest {\n\tint64 serverId = 1;\n\tbytes httpJSON = 2;\n}", + "doc": "修改服务的HTTP等设置" + }, + { + "name": "FindEnabledServerResponse", + "code": "message FindEnabledServerResponse {\n\tServer server = 1;\n}", + "doc": "" + }, + { + "name": "FindAndInitServerReverseProxyConfigResponse", + "code": "message FindAndInitServerReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerTrafficLimitRequest", + "code": "message FindEnabledServerTrafficLimitRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找流量限制" + }, + { + "name": "UpdateServerDNSNameRequest", + "code": "message UpdateServerDNSNameRequest {\n\tint64 serverId = 1;\n\tstring dnsName = 2;\n}", + "doc": "修改服务的CNAME" + }, + { + "name": "ServerDNSInfo", + "code": "message ServerDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring dnsName = 3;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledServerNamesWithUserIdResponse", + "code": "message FindAllEnabledServerNamesWithUserIdResponse {\n\trepeated string serverNames = 1;\n}", + "doc": "" + }, + { + "name": "ComposeServerConfigRequest", + "code": "message ComposeServerConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "获取服务配置" + }, + { + "name": "FindNearbyServersResponse", + "code": "message FindNearbyServersResponse {\n\tstring scope = 1; // 范围 cluster|group\n\trepeated GroupInfo groups = 2;\n\n\n\tmessage GroupInfo {\n\t\tstring name = 1;\n\t\trepeated Server servers = 2;\n\t}\n}", + "doc": "" + }, + { + "name": "FindServerNamesResponse", + "code": "message FindServerNamesResponse {\n\tbytes serverNamesJSON = 1;\n\tbool isAuditing = 2;\n\tint64 auditingAt = 5;\n\tbytes auditingServerNamesJSON = 3;\n\tServerNameAuditingResult auditingResult = 4;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerRequest", + "code": "message FindEnabledServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找单个服务" + }, + { + "name": "PurgeServerCacheRequest", + "code": "message PurgeServerCacheRequest {\n\trepeated string keys = 2;\n\trepeated string prefixes = 3;\n\tstring description = 4; // 任务描述\n}", + "doc": "清除缓存" + }, + { + "name": "FindAllEnabledServersWithSSLCertIdResponse", + "code": "message FindAllEnabledServersWithSSLCertIdResponse {\n\trepeated Server servers = 1;\n}", + "doc": "" + }, + { + "name": "UpdateEnabledUserServerBasicRequest", + "code": "message UpdateEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n}", + "doc": "修改用户服务基本信息" + }, + { + "name": "UploadServerHTTPRequestStatRequest", + "code": "message UploadServerHTTPRequestStatRequest {\n\tstring month = 1;\n\tstring day = 2;\n\trepeated RegionCity regionCities = 3;\n\trepeated RegionProvider regionProviders = 4;\n\trepeated System systems = 5;\n\trepeated Browser browsers = 6;\n\trepeated HTTPFirewallRuleGroup httpFirewallRuleGroups = 7;\n\n\n\tmessage RegionCity {\n\t\tint64 serverId = 1;\n\t\tstring countryName = 2;\n\t\tstring provinceName = 3;\n\t\tstring cityName = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 bytes = 6;\n\t\tint64 countAttackRequests = 7;\n\t\tint64 attackBytes = 8;\n\t}\n\n\n\tmessage RegionProvider {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tint64 count = 3;\n\t}\n\n\n\tmessage System {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage Browser {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage HTTPFirewallRuleGroup {\n\t\tint64 serverId = 1;\n\t\tint64 httpFirewallRuleGroupId = 2;\n\t\tstring action = 3;\n\t\tint64 count = 4;\n\t}\n}", + "doc": "上传HTTP请求待统计数据" + }, + { + "name": "UpdateServerUserPlanRequest", + "code": "message UpdateServerUserPlanRequest {\n\tint64 serverId = 1;\n\tint64 userPlanId = 2;\n}", + "doc": "修改服务套餐" + }, + { + "name": "RegenerateServerDNSNameRequest", + "code": "message RegenerateServerDNSNameRequest {\n\tint64 serverId = 1;\n}", + "doc": "重新生成CNAME" + }, + { + "name": "ListEnabledServersMatchRequest", + "code": "message ListEnabledServersMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 serverGroupId = 3; // 服务分组ID,如果为-1表示查找未分组\n\tstring keyword = 4;\n\tint64 userId = 5;\n\tint64 nodeClusterId = 6;\n\tint32 auditingFlag = 7;\n\tstring protocolFamily = 8;\n\tbool trafficOutAsc = 9;\n\tbool trafficOutDesc = 10;\n}", + "doc": "列出单页服务" }, { "name": "ListEnabledServersMatchResponse", @@ -17054,9 +17257,104 @@ "doc": "" }, { - "name": "FindEnabledServerRequest", - "code": "message FindEnabledServerRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找单个服务" + "name": "FindAndInitServerReverseProxyConfigRequest", + "code": "message FindAndInitServerReverseProxyConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找反向代理设置" + }, + { + "name": "NotifyServersChangeRequest", + "code": "message NotifyServersChangeRequest {\n\n}", + "doc": "通知更新" + }, + { + "name": "CheckUserServerRequest", + "code": "message CheckUserServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "检查服务是否属于某个用户" + }, + { + "name": "UpdateServerReverseProxyRequest", + "code": "message UpdateServerReverseProxyRequest {\n\tint64 serverId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改服务的反向代理设置" + }, + { + "name": "DeleteServerRequest", + "code": "message DeleteServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "禁用服务" + }, + { + "name": "CheckServerNameDuplicationInNodeClusterRequest", + "code": "message CheckServerNameDuplicationInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\trepeated string serverNames = 2; // 可以同时检查一批域名\n\tint64 excludeServerId = 3; // 要排除的服务ID\n}", + "doc": "检查域名是否已经存在" + }, + { + "name": "UpdateServerHTTPSRequest", + "code": "message UpdateServerHTTPSRequest {\n\tint64 serverId = 1;\n\tbytes httpsJSON = 2;\n}", + "doc": "" + }, + { + "name": "UpdateServerTCPRequest", + "code": "message UpdateServerTCPRequest {\n\tint64 serverId = 1;\n\tbytes tcpJSON = 2;\n}", + "doc": "" + }, + { + "name": "CheckServerNameDuplicationInNodeClusterResponse", + "code": "message CheckServerNameDuplicationInNodeClusterResponse {\n\trepeated string duplicatedServerNames = 1;\n}", + "doc": "" + }, + { + "name": "FindNearbyServersRequest", + "code": "message FindNearbyServersRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找某个服务附近的服务" + }, + { + "name": "FindServerUserPlanRequest", + "code": "message FindServerUserPlanRequest {\n\tint64 serverId = 1;\n}", + "doc": "获取服务套餐信息" + }, + { + "name": "FindServerUserPlanResponse", + "code": "message FindServerUserPlanResponse {\n\tUserPlan userPlan = 1;\n}", + "doc": "" + }, + { + "name": "UpdateServerUAMRequest", + "code": "message UpdateServerUAMRequest {\n\tint64 serverId = 1;\n\tbytes uamJSON = 2;\n}", + "doc": "修改服务UAM设置" + }, + { + "name": "UpdateServerBasicRequest", + "code": "message UpdateServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tint64 nodeClusterId = 4;\n\tbool keepOldConfigs = 7; // 是否在老节点上保留一段时间配置\n\tbool isOn = 5;\n\trepeated int64 serverGroupIds = 6;\n}", + "doc": "修改服务基本信息" + }, + { + "name": "FindServerIdWithDNSNameResponse", + "code": "message FindServerIdWithDNSNameResponse {\n\tint64 serverId = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledServerNamesWithUserIdRequest", + "code": "message FindAllEnabledServerNamesWithUserIdRequest {\n\tint64 userId = 1;\n}", + "doc": "查找一个用户下的所有域名列表" + }, + { + "name": "FindAllEnabledServersDNSWithNodeClusterIdRequest", + "code": "message FindAllEnabledServersDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "取得某个集群下的所有服务相关的DNS" + }, + { + "name": "CreateServerRequest", + "code": "message CreateServerRequest {\n\tint64 userId = 1;\n\tint64 adminId = 2;\n\tstring type = 3;\n\tstring name = 4;\n\tstring description = 5;\n\n\t// 配置相关\n\tbytes serverNamesJON = 8; // @link json:server_names\n\tbytes httpJSON = 9;\n\tbytes httpsJSON = 10;\n\tbytes tcpJSON = 11;\n\tbytes tlsJSON = 12;\n\tbytes unixJSON = 13;\n\tbytes udpJSON = 14;\n\tint64 webId = 15;\n\tbytes reverseProxyJSON = 16;\n\trepeated int64 serverGroupIds = 17;\n\tint64 userPlanId = 18;\n\n\tint64 nodeClusterId = 30;\n\tbytes includeNodesJSON = 31;\n\tbytes excludeNodesJSON = 32;\n}", + "doc": "创建服务" + }, + { + "name": "UpdateServerNamesAuditingRequest", + "code": "message UpdateServerNamesAuditingRequest {\n\tint64 serverId = 1;\n\tServerNameAuditingResult auditingResult = 2;\n}", + "doc": "审核服务的域名设置" + }, + { + "name": "FindEnabledServerConfigRequest", + "code": "message FindEnabledServerConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务配置" }, { "name": "UploadServerBandwidthStatsRequest", @@ -17129,50 +17427,50 @@ "doc": "" }, { - "name": "SumServerDailyStatsResponse", - "code": "message SumServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", + "name": "FindLatestServerMinutelyStatsRequest", + "code": "message FindLatestServerMinutelyStatsRequest {\n\tint64 serverId = 1;\n\tint32 minutes = 2;\n}", + "doc": "按分钟读取统计数据" + }, + { + "name": "FindLatestServerDailyStatsRequest", + "code": "message FindLatestServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tint32 days = 2;\n}", + "doc": "按日读取统计数据" + }, + { + "name": "SumCurrentServerDailyStatsRequest", + "code": "message SumCurrentServerDailyStatsRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找单个服务当前时刻(N分钟内)统计数据" + }, + { + "name": "SumCurrentServerDailyStatsResponse", + "code": "message SumCurrentServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", "doc": "" }, + { + "name": "SumServerDailyStatsRequest", + "code": "message SumServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tstring day = 2; // YYYYMMDD\n}", + "doc": "计算单个服务的日统计" + }, { "name": "FindLatestServerHourlyStatsResponse", "code": "message FindLatestServerHourlyStatsResponse {\n\trepeated HourlyStat stats = 1;\n\n\n\tmessage HourlyStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", "doc": "" }, + { + "name": "FindLatestServerMinutelyStatsResponse", + "code": "message FindLatestServerMinutelyStatsResponse {\n\trepeated MinutelyStat stats = 1;\n\n\n\tmessage MinutelyStat {\n\t\tstring minute = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", + "doc": "" + }, { "name": "FindLatestServerDailyStatsResponse", "code": "message FindLatestServerDailyStatsResponse {\n\trepeated DailyStat stats = 1;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", "doc": "" }, { - "name": "UploadServerDailyStatsRequest", - "code": "message UploadServerDailyStatsRequest {\n\trepeated ServerDailyStat stats = 1;\n\trepeated DomainStat domainStats = 2;\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 bytes = 3;\n\t\tint64 cachedBytes = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 countCachedRequests = 6;\n\t\tint64 countAttackRequests = 8;\n\t\tint64 attackBytes = 9;\n\t\tint64 createdAt = 7;\n\t}\n}", - "doc": "上传统计" - }, - { - "name": "FindLatestServerMinutelyStatsResponse", - "code": "message FindLatestServerMinutelyStatsResponse {\n\trepeated MinutelyStat stats = 1;\n\n\n\tmessage MinutelyStat {\n\t\tstring minute = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", + "name": "SumServerDailyStatsResponse", + "code": "message SumServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", "doc": "" }, - { - "name": "FindLatestServerDailyStatsRequest", - "code": "message FindLatestServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tint32 days = 2;\n}", - "doc": "按日读取统计数据" - }, - { - "name": "SumCurrentServerDailyStatsResponse", - "code": "message SumCurrentServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", - "doc": "" - }, - { - "name": "SumCurrentServerDailyStatsRequest", - "code": "message SumCurrentServerDailyStatsRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找单个服务当前时刻(N分钟内)统计数据" - }, - { - "name": "SumServerDailyStatsRequest", - "code": "message SumServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tstring day = 2; // YYYYMMDD\n}", - "doc": "计算单个服务的日统计" - }, { "name": "SumServerMonthlyStatsRequest", "code": "message SumServerMonthlyStatsRequest {\n\tint64 serverId = 1;\n\tstring month = 2; // YYYYMM\n}", @@ -17183,16 +17481,16 @@ "code": "message SumServerMonthlyStatsResponse {\n\tServerDailyStat serverMonthlyStat = 1;\n}", "doc": "" }, + { + "name": "UploadServerDailyStatsRequest", + "code": "message UploadServerDailyStatsRequest {\n\trepeated ServerDailyStat stats = 1;\n\trepeated DomainStat domainStats = 2;\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 bytes = 3;\n\t\tint64 cachedBytes = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 countCachedRequests = 6;\n\t\tint64 countAttackRequests = 8;\n\t\tint64 attackBytes = 9;\n\t\tint64 createdAt = 7;\n\t}\n}", + "doc": "上传统计" + }, { "name": "FindLatestServerHourlyStatsRequest", "code": "message FindLatestServerHourlyStatsRequest {\n\tint64 serverId = 1;\n\tint32 hours = 2;\n}", "doc": "按小时读取统计数据" }, - { - "name": "FindLatestServerMinutelyStatsRequest", - "code": "message FindLatestServerMinutelyStatsRequest {\n\tint64 serverId = 1;\n\tint32 minutes = 2;\n}", - "doc": "按分钟读取统计数据" - }, { "name": "ListTopServerDomainStatsWithServerIdRequest", "code": "message ListTopServerDomainStatsWithServerIdRequest{\n\tint64 nodeClusterId = 1;\n\tint64 nodeId = 2;\n\tint64 serverId = 3;\n\tstring hourFrom = 4;\n\tstring hourTo = 5;\n\tint64 size = 6;\n}", @@ -17209,19 +17507,24 @@ "doc": "创建分组" }, { - "name": "FindAndInitServerGroupHTTPReverseProxyConfigResponse", - "code": "message FindAndInitServerGroupHTTPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "name": "FindAndInitServerGroupUDPReverseProxyConfigResponse", + "code": "message FindAndInitServerGroupUDPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", "doc": "" }, { - "name": "UpdateServerGroupUDPReverseProxyRequest", - "code": "message UpdateServerGroupUDPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改分组的UDP反向代理设置" + "name": "UpdateServerGroupHTTPReverseProxyRequest", + "code": "message UpdateServerGroupHTTPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改分组的HTTP反向代理设置" }, { - "name": "UpdateServerGroupOrdersRequest", - "code": "message UpdateServerGroupOrdersRequest {\n\trepeated int64 serverGroupIds = 1;\n}", - "doc": "修改分组排序" + "name": "FindAndInitServerGroupWebConfigResponse", + "code": "message FindAndInitServerGroupWebConfigResponse {\n\tbytes webJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAndInitServerGroupHTTPReverseProxyConfigRequest", + "code": "message FindAndInitServerGroupHTTPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找HTTP反向代理设置" }, { "name": "FindAndInitServerGroupTCPReverseProxyConfigResponse", @@ -17229,15 +17532,50 @@ "doc": "" }, { - "name": "FindAndInitServerGroupUDPReverseProxyConfigResponse", - "code": "message FindAndInitServerGroupUDPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" + "name": "FindAndInitServerGroupUDPReverseProxyConfigRequest", + "code": "message FindAndInitServerGroupUDPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找UDP反向代理设置" + }, + { + "name": "UpdateServerGroupUDPReverseProxyRequest", + "code": "message UpdateServerGroupUDPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改分组的UDP反向代理设置" + }, + { + "name": "FindAndInitServerGroupTCPReverseProxyConfigRequest", + "code": "message FindAndInitServerGroupTCPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找TCP反向代理设置" }, { "name": "FindEnabledServerGroupConfigInfoRequest", "code": "message FindEnabledServerGroupConfigInfoRequest {\n\tint64 serverGroupId = 1;\n\tint64 serverId = 2;\n}", "doc": "取得分组的配置概要信息" }, + { + "name": "FindAndInitServerGroupWebConfigRequest", + "code": "message FindAndInitServerGroupWebConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "初始化Web设置" + }, + { + "name": "UpdateServerGroupRequest", + "code": "message UpdateServerGroupRequest {\n\tint64 serverGroupId = 1;\n\tstring name = 2;\n}", + "doc": "修改分组" + }, + { + "name": "DeleteServerGroupRequest", + "code": "message DeleteServerGroupRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "删除分组" + }, + { + "name": "UpdateServerGroupOrdersRequest", + "code": "message UpdateServerGroupOrdersRequest {\n\trepeated int64 serverGroupIds = 1;\n}", + "doc": "修改分组排序" + }, + { + "name": "FindEnabledServerGroupRequest", + "code": "message FindEnabledServerGroupRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找单个分组信息" + }, { "name": "UpdateServerGroupTCPReverseProxyRequest", "code": "message UpdateServerGroupTCPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", @@ -17254,9 +17592,9 @@ "doc": "" }, { - "name": "FindEnabledServerGroupRequest", - "code": "message FindEnabledServerGroupRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找单个分组信息" + "name": "FindAllEnabledServerGroupsResponse", + "code": "message FindAllEnabledServerGroupsResponse {\n\trepeated ServerGroup serverGroups = 1;\n}", + "doc": "" }, { "name": "FindEnabledServerGroupResponse", @@ -17264,53 +17602,8 @@ "doc": "" }, { - "name": "FindAndInitServerGroupHTTPReverseProxyConfigRequest", - "code": "message FindAndInitServerGroupHTTPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找HTTP反向代理设置" - }, - { - "name": "FindAndInitServerGroupUDPReverseProxyConfigRequest", - "code": "message FindAndInitServerGroupUDPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找UDP反向代理设置" - }, - { - "name": "FindAndInitServerGroupWebConfigRequest", - "code": "message FindAndInitServerGroupWebConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "初始化Web设置" - }, - { - "name": "FindAndInitServerGroupWebConfigResponse", - "code": "message FindAndInitServerGroupWebConfigResponse {\n\tbytes webJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateServerGroupRequest", - "code": "message UpdateServerGroupRequest {\n\tint64 serverGroupId = 1;\n\tstring name = 2;\n}", - "doc": "修改分组" - }, - { - "name": "DeleteServerGroupRequest", - "code": "message DeleteServerGroupRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "删除分组" - }, - { - "name": "FindAllEnabledServerGroupsResponse", - "code": "message FindAllEnabledServerGroupsResponse {\n\trepeated ServerGroup serverGroups = 1;\n}", - "doc": "" - }, - { - "name": "FindAndInitServerGroupTCPReverseProxyConfigRequest", - "code": "message FindAndInitServerGroupTCPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找TCP反向代理设置" - }, - { - "name": "UpdateServerGroupHTTPReverseProxyRequest", - "code": "message UpdateServerGroupHTTPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改分组的HTTP反向代理设置" - }, - { - "name": "ComposeServerHTTPFirewallDashboardResponse", - "code": "message ComposeServerHTTPFirewallDashboardResponse {\n\tint64 countDailyLog = 1;\n\tint64 countDailyBlock = 2;\n\tint64 countDailyCaptcha = 3;\n\tint64 countWeeklyBlock = 4;\n\tint64 countMonthlyBlock = 5;\n\n\trepeated HTTPFirewallRuleGroupStat httpFirewallRuleGroups = 30;\n\trepeated DailyStat logDailyStats = 31;\n\trepeated DailyStat blockDailyStats = 32;\n\trepeated DailyStat captchaDailyStats = 33;\n\n\n\tmessage HTTPFirewallRuleGroupStat {\n\t\tHTTPFirewallRuleGroup httpFirewallRuleGroup = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n}", + "name": "FindAndInitServerGroupHTTPReverseProxyConfigResponse", + "code": "message FindAndInitServerGroupHTTPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", "doc": "" }, { @@ -17318,6 +17611,11 @@ "code": "message ComposeServerHTTPFirewallDashboardRequest {\n\tstring day = 1;\n\tint64 userId = 2;\n\tint64 serverId = 3;\n}", "doc": "组合服务的Dashboard" }, + { + "name": "ComposeServerHTTPFirewallDashboardResponse", + "code": "message ComposeServerHTTPFirewallDashboardResponse {\n\tint64 countDailyLog = 1;\n\tint64 countDailyBlock = 2;\n\tint64 countDailyCaptcha = 3;\n\tint64 countWeeklyBlock = 4;\n\tint64 countMonthlyBlock = 5;\n\n\trepeated HTTPFirewallRuleGroupStat httpFirewallRuleGroups = 30;\n\trepeated DailyStat logDailyStats = 31;\n\trepeated DailyStat blockDailyStats = 32;\n\trepeated DailyStat captchaDailyStats = 33;\n\n\n\tmessage HTTPFirewallRuleGroupStat {\n\t\tHTTPFirewallRuleGroup httpFirewallRuleGroup = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n}", + "doc": "" + }, { "name": "FindTopServerRegionCityMonthlyStatsRequest", "code": "message FindTopServerRegionCityMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 countryId = 3;\n\tint64 provinceId = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", @@ -17338,16 +17636,16 @@ "code": "message FindTopServerRegionCountryMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionCountry regionCountry = 1;\n\t\tint64 count = 2;\n\t}\n}", "doc": "" }, - { - "name": "FindTopServerRegionProviderMonthlyStatsRequest", - "code": "message FindTopServerRegionProviderMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "查找前N个城市" - }, { "name": "FindTopServerRegionProviderMonthlyStatsResponse", "code": "message FindTopServerRegionProviderMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionProvider regionProvider = 1;\n\t\tint64 count = 2;\n\t}\n}", "doc": "" }, + { + "name": "FindTopServerRegionProviderMonthlyStatsRequest", + "code": "message FindTopServerRegionProviderMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "查找前N个城市" + }, { "name": "FindTopServerRegionProvinceMonthlyStatsRequest", "code": "message FindTopServerRegionProvinceMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 countryId = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", @@ -17358,41 +17656,11 @@ "code": "message FindTopServerRegionProvinceMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionCountry regionCountry = 1;\n\t\tRegionProvince regionProvince = 2;\n\t\tint64 count = 3;\n\t}\n}", "doc": "" }, - { - "name": "FindAllEnabledServerStatBoardsResponse", - "code": "message FindAllEnabledServerStatBoardsResponse {\n\trepeated ServerStatBoard serverStatBoards = 1;\n}", - "doc": "" - }, - { - "name": "ComposeServerStatBoardRequest", - "code": "message ComposeServerStatBoardRequest {\n\tint64 serverId = 1;\n}", - "doc": "组合服务看板数据" - }, { "name": "ComposeServerStatBoardResponse", "code": "message ComposeServerStatBoardResponse {\n\tint64 minutelyPeekBandwidthBytes = 5; // 当前带宽(N分钟峰值)\n\tint64 dailyPeekBandwidthBytes = 2; // 当天带宽峰值\n\tint64 monthlyPeekBandwidthBytes = 3; // 当月带宽峰值\n\tint64 lastMonthlyPeekBandwidthBytes = 4; // 上个月带宽峰值\n\n\trepeated ServerBandwidthStat minutelyBandwidthStats = 1; // 分钟级的带宽统计\n\trepeated ServerBandwidthStat dailyBandwidthStats = 6; // 按天的带宽统计\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNodeStats = 32;\n\trepeated CountryStat topCountryStats = 35;\n\n\trepeated MetricDataChart metricDataCharts = 34;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage CountryStat {\n\t\tstring countryName = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t\tfloat percent = 4; // 流量占比\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", "doc": "" }, - { - "name": "ComposeServerStatNodeBoardRequest", - "code": "message ComposeServerStatNodeBoardRequest {\n\tint64 nodeId = 1;\n}", - "doc": "组合节点看板数据" - }, - { - "name": "FindAllEnabledServerStatBoardsRequest", - "code": "message FindAllEnabledServerStatBoardsRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "读取所有看板" - }, - { - "name": "ComposeServerStatNodeClusterBoardRequest", - "code": "message ComposeServerStatNodeClusterBoardRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "组合集群看板数据" - }, - { - "name": "ComposeServerStatNodeBoardResponse", - "code": "message ComposeServerStatNodeBoardResponse {\n\tbool isActive = 1;\n\tint64 trafficInBytes = 2;\n\tint64 trafficOutBytes = 3;\n\tint64 countRequests = 4;\n\tint64 countAttackRequests = 5;\n\tint64 countConnections = 6;\n\tint64 cacheDiskSize = 7;\n\tint64 cacheMemorySize = 8;\n\tfloat cpuUsage = 9;\n\tfloat memoryUsage = 10;\n\tint64 memoryTotalSize = 11;\n\tfloat load = 12;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 31;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 32;\n\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\trepeated NodeValue cacheDirsValues = 38;\n\n\trepeated MetricDataChart metricDataCharts = 37;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", - "doc": "" - }, { "name": "MetricDataChart", "code": "message MetricDataChart {\n\tMetricChart metricChart = 1;\n\trepeated MetricStat metricStats = 2;\n}", @@ -17404,13 +17672,33 @@ "doc": "" }, { - "name": "FindAllEnabledServerStatBoardChartsRequest", - "code": "message FindAllEnabledServerStatBoardChartsRequest {\n\tint64 serverStatBoardId = 1;\n}", - "doc": "读取看板中的图表" + "name": "ComposeServerStatBoardRequest", + "code": "message ComposeServerStatBoardRequest {\n\tint64 serverId = 1;\n}", + "doc": "组合服务看板数据" }, { - "name": "FindAllEnabledServerStatBoardChartsResponse", - "code": "message FindAllEnabledServerStatBoardChartsResponse {\n\trepeated ServerStatBoardChart serverStatBoardCharts = 1;\n}", + "name": "FindAllEnabledServerStatBoardsResponse", + "code": "message FindAllEnabledServerStatBoardsResponse {\n\trepeated ServerStatBoard serverStatBoards = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledServerStatBoardsRequest", + "code": "message FindAllEnabledServerStatBoardsRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "读取所有看板" + }, + { + "name": "ComposeServerStatNodeBoardRequest", + "code": "message ComposeServerStatNodeBoardRequest {\n\tint64 nodeId = 1;\n}", + "doc": "组合节点看板数据" + }, + { + "name": "ComposeServerStatNodeClusterBoardRequest", + "code": "message ComposeServerStatNodeClusterBoardRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "组合集群看板数据" + }, + { + "name": "ComposeServerStatNodeBoardResponse", + "code": "message ComposeServerStatNodeBoardResponse {\n\tbool isActive = 1;\n\tint64 trafficInBytes = 2;\n\tint64 trafficOutBytes = 3;\n\tint64 countRequests = 4;\n\tint64 countAttackRequests = 5;\n\tint64 countConnections = 6;\n\tint64 cacheDiskSize = 7;\n\tint64 cacheMemorySize = 8;\n\tfloat cpuUsage = 9;\n\tfloat memoryUsage = 10;\n\tint64 memoryTotalSize = 11;\n\tfloat load = 12;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 31;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 32;\n\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\trepeated NodeValue cacheDirsValues = 38;\n\n\trepeated MetricDataChart metricDataCharts = 37;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", "doc": "" }, { @@ -17424,19 +17712,19 @@ "doc": "取消图表" }, { - "name": "IgnoreSSLCertsWithOCSPErrorRequest", - "code": "message IgnoreSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", - "doc": "忽略一组OCSP证书错误" + "name": "FindAllEnabledServerStatBoardChartsRequest", + "code": "message FindAllEnabledServerStatBoardChartsRequest {\n\tint64 serverStatBoardId = 1;\n}", + "doc": "读取看板中的图表" }, { - "name": "ListUpdatedSSLCertOCSPResponse", - "code": "message ListUpdatedSSLCertOCSPResponse {\n\trepeated SSLCertOCSP sslCertOCSP = 1;\n\n\n\tmessage SSLCertOCSP {\n\t\tint64 sslCertId = 1;\n\t\tbytes data = 2;\n\t\tint64 version = 3;\n\t\tint64 expiresAt = 4;\n\t}\n}", + "name": "FindAllEnabledServerStatBoardChartsResponse", + "code": "message FindAllEnabledServerStatBoardChartsResponse {\n\trepeated ServerStatBoardChart serverStatBoardCharts = 1;\n}", "doc": "" }, { - "name": "CreateSSLCertRequest", - "code": "message CreateSSLCertRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring serverName = 4;\n\tbool isCA = 5;\n\tbytes certData = 6;\n\tbytes keyData = 7;\n\tint64 timeBeginAt = 8;\n\tint64 timeEndAt = 9;\n\trepeated string dnsNames = 10;\n\trepeated string commonNames = 11;\n}", - "doc": "创建Cert" + "name": "FindEnabledSSLCertConfigRequest", + "code": "message FindEnabledSSLCertConfigRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "查找证书配置" }, { "name": "FindEnabledSSLCertConfigResponse", @@ -17444,9 +17732,34 @@ "doc": "" }, { - "name": "CountAllSSLCertsWithOCSPErrorRequest", - "code": "message CountAllSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n}", - "doc": "计算有OCSP错误的证书数量" + "name": "ResetAllSSLCertsWithOCSPErrorRequest", + "code": "message ResetAllSSLCertsWithOCSPErrorRequest {\n\n}", + "doc": "重置所有证书OCSP错误状态" + }, + { + "name": "CreateSSLCertRequest", + "code": "message CreateSSLCertRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring serverName = 4;\n\tbool isCA = 5;\n\tbytes certData = 6;\n\tbytes keyData = 7;\n\tint64 timeBeginAt = 8;\n\tint64 timeEndAt = 9;\n\trepeated string dnsNames = 10;\n\trepeated string commonNames = 11;\n}", + "doc": "创建Cert" + }, + { + "name": "DeleteSSLCertRequest", + "code": "message DeleteSSLCertRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "删除证书" + }, + { + "name": "ListSSLCertsRequest", + "code": "message ListSSLCertsRequest {\n\tbool isCA = 1;\n\tbool isAvailable = 2;\n\tbool isExpired = 3;\n\tint32 expiringDays = 4;\n\tstring keyword = 5;\n\tint64 offset = 6;\n\tint64 size = 7;\n\tint64 userId = 8;\n}", + "doc": "列出单页匹配的Cert" + }, + { + "name": "ListSSLCertsResponse", + "code": "message ListSSLCertsResponse {\n\tbytes sslCertsJSON = 1;\n}", + "doc": "" + }, + { + "name": "ListSSLCertsWithOCSPErrorRequest", + "code": "message ListSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出有OCSP错误的证书" }, { "name": "ListSSLCertsWithOCSPErrorResponse", @@ -17464,14 +17777,9 @@ "doc": "计算匹配的Cert数量" }, { - "name": "ListSSLCertsWithOCSPErrorRequest", - "code": "message ListSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出有OCSP错误的证书" - }, - { - "name": "ResetAllSSLCertsWithOCSPErrorRequest", - "code": "message ResetAllSSLCertsWithOCSPErrorRequest {\n\n}", - "doc": "重置所有证书OCSP错误状态" + "name": "ListUpdatedSSLCertOCSPRequest", + "code": "message ListUpdatedSSLCertOCSPRequest {\n\tint64 version = 1;\n\tint32 size = 2;\n}", + "doc": "读取证书的OCSP" }, { "name": "CreateSSLCertResponse", @@ -17479,35 +17787,25 @@ "doc": "" }, { - "name": "ListSSLCertsResponse", - "code": "message ListSSLCertsResponse {\n\tbytes sslCertsJSON = 1;\n}", - "doc": "" + "name": "CountAllSSLCertsWithOCSPErrorRequest", + "code": "message CountAllSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n}", + "doc": "计算有OCSP错误的证书数量" }, { - "name": "ListUpdatedSSLCertOCSPRequest", - "code": "message ListUpdatedSSLCertOCSPRequest {\n\tint64 version = 1;\n\tint32 size = 2;\n}", - "doc": "读取证书的OCSP" - }, - { - "name": "FindEnabledSSLCertConfigRequest", - "code": "message FindEnabledSSLCertConfigRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "查找证书配置" - }, - { - "name": "DeleteSSLCertRequest", - "code": "message DeleteSSLCertRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "删除证书" - }, - { - "name": "ListSSLCertsRequest", - "code": "message ListSSLCertsRequest {\n\tbool isCA = 1;\n\tbool isAvailable = 2;\n\tbool isExpired = 3;\n\tint32 expiringDays = 4;\n\tstring keyword = 5;\n\tint64 offset = 6;\n\tint64 size = 7;\n\tint64 userId = 8;\n}", - "doc": "列出单页匹配的Cert" + "name": "IgnoreSSLCertsWithOCSPErrorRequest", + "code": "message IgnoreSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", + "doc": "忽略一组OCSP证书错误" }, { "name": "ResetSSLCertsWithOCSPErrorRequest", "code": "message ResetSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", "doc": "重置一组证书OCSP错误状态" }, + { + "name": "ListUpdatedSSLCertOCSPResponse", + "code": "message ListUpdatedSSLCertOCSPResponse {\n\trepeated SSLCertOCSP sslCertOCSP = 1;\n\n\n\tmessage SSLCertOCSP {\n\t\tint64 sslCertId = 1;\n\t\tbytes data = 2;\n\t\tint64 version = 3;\n\t\tint64 expiresAt = 4;\n\t}\n}", + "doc": "" + }, { "name": "CreateSSLPolicyRequest", "code": "message CreateSSLPolicyRequest {\n\tbool http2Enabled = 1;\n\tstring minVersion = 2;\n\tbytes sslCertsJSON = 3;\n\tbytes hstsJSON = 4;\n\tint32 clientAuthType = 5;\n\tbytes clientCACertsJSON = 6;\n\trepeated string cipherSuites = 7;\n\tbool cipherSuitesIsOn = 8;\n\tbool ocspIsOn = 9;\n}", @@ -17563,85 +17861,20 @@ "code": "message ReadSysSettingResponse {\n\tbytes valueJSON = 1;\n}", "doc": "" }, - { - "name": "FindTrafficDailyStatWithDayResponse", - "code": "message FindTrafficDailyStatWithDayResponse {\n\tTrafficDailyStat trafficDailyStat = 1;\n}", - "doc": "" - }, { "name": "FindTrafficDailyStatWithDayRequest", "code": "message FindTrafficDailyStatWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n\tstring minute = 2; // HHIISS,可选项\n}", "doc": "查找某日统计" }, { - "name": "LoginUserResponse", - "code": "message LoginUserResponse {\n\tint64 userId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", + "name": "FindTrafficDailyStatWithDayResponse", + "code": "message FindTrafficDailyStatWithDayResponse {\n\tTrafficDailyStat trafficDailyStat = 1;\n}", "doc": "" }, { - "name": "UpdateUserInfoRequest", - "code": "message UpdateUserInfoRequest {\n\tint64 userId = 1;\n\tstring fullname = 2;\n\tstring mobile = 3;\n\tstring email = 4;\n}", - "doc": "修改用户基本信息" - }, - { - "name": "ComposeUserDashboardResponse", - "code": "message ComposeUserDashboardResponse {\n\tint64 countServers = 1;\n\tint64 monthlyTrafficBytes = 2;\n\tint64 monthlyPeekBandwidthBytes = 3;\n\tint64 dailyTrafficBytes = 4;\n\tint64 dailyPeekBandwidthBytes = 5;\n\trepeated DailyTrafficStat dailyTrafficStats = 6;\n\trepeated DailyPeekBandwidthStat dailyPeekBandwidthStats = 7;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n\n\n\tmessage DailyPeekBandwidthStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n}", - "doc": "" - }, - { - "name": "RegisterUserRequest", - "code": "message RegisterUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring mobile = 3;\n\tstring email = 4;\n\tstring fullname = 5;\n\tstring ip = 6;\n\tstring source = 7;\n}", - "doc": "注册用户" - }, - { - "name": "UpdateUserRequest", - "code": "message UpdateUserRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tstring mobile = 5;\n\tstring tel = 6;\n\tstring email = 7;\n\tstring remark = 8;\n\tbool isOn = 9;\n\tint64 nodeClusterId = 10;\n}", - "doc": "修改用户" - }, - { - "name": "DeleteUserRequest", - "code": "message DeleteUserRequest {\n\tint64 userId = 1;\n}", - "doc": "删除用户" - }, - { - "name": "ListEnabledUsersResponse", - "code": "message ListEnabledUsersResponse {\n\trepeated User users = 1;\n}", - "doc": "" - }, - { - "name": "LoginUserRequest", - "code": "message LoginUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", - "doc": "登录" - }, - { - "name": "ListEnabledUsersRequest", - "code": "message ListEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 4;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页用户" - }, - { - "name": "UpdateUserFeaturesRequest", - "code": "message UpdateUserFeaturesRequest {\n\tint64 userId = 1;\n\trepeated string featureCodes = 2;\n}", - "doc": "设置单个用户能使用的功能" - }, - { - "name": "ComposeUserDashboardRequest", - "code": "message ComposeUserDashboardRequest {\n\tint64 userId = 1;\n}", - "doc": "取得用户Dashboard数据" - }, - { - "name": "ComposeUserGlobalBoardResponse", - "code": "message ComposeUserGlobalBoardResponse {\n\tint64 totalUsers = 1;\n\tint64 countTodayUsers = 2;\n\tint64 countWeeklyUsers = 3;\n\tint64 countUserNodes = 4;\n\tint64 countOfflineUserNodes = 5;\n\tint64 countVerifyingUsers = 6;\n\n\trepeated DailyStat dailyStats = 30;\n\trepeated NodeValue cpuNodeValues = 31;\n\trepeated NodeValue memoryNodeValues = 32;\n\trepeated NodeValue loadNodeValues = 33;\n\trepeated TrafficStat topTrafficStats = 34;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage TrafficStat {\n\t\tint64 userId = 1;\n\t\tstring userName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", - "doc": "" - }, - { - "name": "FindUserNodeClusterIdRequest", - "code": "message FindUserNodeClusterIdRequest {\n\tint64 userId = 1;\n}", - "doc": "获取用户所在的集群ID" - }, - { - "name": "FindUserNodeClusterIdResponse", - "code": "message FindUserNodeClusterIdResponse {\n\tint64 nodeClusterId = 1;\n}", - "doc": "" + "name": "FindUserFeaturesRequest", + "code": "message FindUserFeaturesRequest {\n\tint64 userId = 1;\n}", + "doc": "获取用户所有的功能列表" }, { "name": "CreateUserRequest", @@ -17649,55 +17882,15 @@ "doc": "创建用户" }, { - "name": "VerifyUserRequest", - "code": "message VerifyUserRequest {\n\tint64 userId = 1;\n\tbool isRejected = 2;\n\tstring rejectReason = 3;\n}", - "doc": "审核用户" - }, - { - "name": "CheckUserUsernameRequest", - "code": "message CheckUserUsernameRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n}", - "doc": "检查用户名是否存在" - }, - { - "name": "FindAllUserFeatureDefinitionsRequest", - "code": "message FindAllUserFeatureDefinitionsRequest {\n\n}", - "doc": "获取所有的功能定义" - }, - { - "name": "FindEnabledUserResponse", - "code": "message FindEnabledUserResponse {\n\tUser user = 1;\n}", + "name": "FindUserNodeClusterIdResponse", + "code": "message FindUserNodeClusterIdResponse {\n\tint64 nodeClusterId = 1;\n}", "doc": "" }, { - "name": "FindUserFeaturesResponse", - "code": "message FindUserFeaturesResponse {\n\trepeated UserFeature features = 1;\n}", + "name": "FindAllUserFeatureDefinitionsResponse", + "code": "message FindAllUserFeatureDefinitionsResponse {\n\trepeated UserFeature features = 1;\n}", "doc": "" }, - { - "name": "CheckUserOTPWithUsernameResponse", - "code": "message CheckUserOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", - "doc": "" - }, - { - "name": "CreateUserResponse", - "code": "message CreateUserResponse {\n\tint64 userId = 1;\n}", - "doc": "" - }, - { - "name": "CheckUserUsernameResponse", - "code": "message CheckUserUsernameResponse {\n\tbool exists = 1;\n}", - "doc": "" - }, - { - "name": "UpdateUserLoginRequest", - "code": "message UpdateUserLoginRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", - "doc": "修改用户登录信息" - }, - { - "name": "CheckUserOTPWithUsernameRequest", - "code": "message CheckUserOTPWithUsernameRequest {\n\tstring username = 1;\n}", - "doc": "根据用户名检查是否需要输入OTP" - }, { "name": "CountAllEnabledUsersRequest", "code": "message CountAllEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 2;\n}", @@ -17709,9 +17902,24 @@ "doc": "设置所有用户能使用的功能" }, { - "name": "FindAllUserFeatureDefinitionsResponse", - "code": "message FindAllUserFeatureDefinitionsResponse {\n\trepeated UserFeature features = 1;\n}", - "doc": "" + "name": "VerifyUserRequest", + "code": "message VerifyUserRequest {\n\tint64 userId = 1;\n\tbool isRejected = 2;\n\tstring rejectReason = 3;\n}", + "doc": "审核用户" + }, + { + "name": "DeleteUserRequest", + "code": "message DeleteUserRequest {\n\tint64 userId = 1;\n}", + "doc": "删除用户" + }, + { + "name": "CheckUserUsernameRequest", + "code": "message CheckUserUsernameRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n}", + "doc": "检查用户名是否存在" + }, + { + "name": "ComposeUserDashboardRequest", + "code": "message ComposeUserDashboardRequest {\n\tint64 userId = 1;\n}", + "doc": "取得用户Dashboard数据" }, { "name": "FindEnabledUserRequest", @@ -17719,15 +17927,120 @@ "doc": "查询单个用户信息" }, { - "name": "FindUserFeaturesRequest", - "code": "message FindUserFeaturesRequest {\n\tint64 userId = 1;\n}", - "doc": "获取用户所有的功能列表" + "name": "UpdateUserInfoRequest", + "code": "message UpdateUserInfoRequest {\n\tint64 userId = 1;\n\tstring fullname = 2;\n\tstring mobile = 3;\n\tstring email = 4;\n}", + "doc": "修改用户基本信息" + }, + { + "name": "UpdateUserFeaturesRequest", + "code": "message UpdateUserFeaturesRequest {\n\tint64 userId = 1;\n\trepeated string featureCodes = 2;\n}", + "doc": "设置单个用户能使用的功能" + }, + { + "name": "ComposeUserDashboardResponse", + "code": "message ComposeUserDashboardResponse {\n\tint64 countServers = 1;\n\tint64 monthlyTrafficBytes = 2;\n\tint64 monthlyPeekBandwidthBytes = 3;\n\tint64 dailyTrafficBytes = 4;\n\tint64 dailyPeekBandwidthBytes = 5;\n\trepeated DailyTrafficStat dailyTrafficStats = 6;\n\trepeated DailyPeekBandwidthStat dailyPeekBandwidthStats = 7;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n\n\n\tmessage DailyPeekBandwidthStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n}", + "doc": "" + }, + { + "name": "UpdateUserRequest", + "code": "message UpdateUserRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tstring mobile = 5;\n\tstring tel = 6;\n\tstring email = 7;\n\tstring remark = 8;\n\tbool isOn = 9;\n\tint64 nodeClusterId = 10;\n}", + "doc": "修改用户" + }, + { + "name": "FindEnabledUserResponse", + "code": "message FindEnabledUserResponse {\n\tUser user = 1;\n}", + "doc": "" + }, + { + "name": "LoginUserResponse", + "code": "message LoginUserResponse {\n\tint64 userId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", + "doc": "" + }, + { + "name": "CheckUserOTPWithUsernameRequest", + "code": "message CheckUserOTPWithUsernameRequest {\n\tstring username = 1;\n}", + "doc": "根据用户名检查是否需要输入OTP" + }, + { + "name": "ComposeUserGlobalBoardResponse", + "code": "message ComposeUserGlobalBoardResponse {\n\tint64 totalUsers = 1;\n\tint64 countTodayUsers = 2;\n\tint64 countWeeklyUsers = 3;\n\tint64 countUserNodes = 4;\n\tint64 countOfflineUserNodes = 5;\n\tint64 countVerifyingUsers = 6;\n\n\trepeated DailyStat dailyStats = 30;\n\trepeated NodeValue cpuNodeValues = 31;\n\trepeated NodeValue memoryNodeValues = 32;\n\trepeated NodeValue loadNodeValues = 33;\n\trepeated TrafficStat topTrafficStats = 34;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage TrafficStat {\n\t\tint64 userId = 1;\n\t\tstring userName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", + "doc": "" + }, + { + "name": "CreateUserResponse", + "code": "message CreateUserResponse {\n\tint64 userId = 1;\n}", + "doc": "" + }, + { + "name": "ListEnabledUsersRequest", + "code": "message ListEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 4;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页用户" + }, + { + "name": "ListEnabledUsersResponse", + "code": "message ListEnabledUsersResponse {\n\trepeated User users = 1;\n}", + "doc": "" + }, + { + "name": "UpdateUserLoginRequest", + "code": "message UpdateUserLoginRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", + "doc": "修改用户登录信息" + }, + { + "name": "FindUserFeaturesResponse", + "code": "message FindUserFeaturesResponse {\n\trepeated UserFeature features = 1;\n}", + "doc": "" + }, + { + "name": "FindAllUserFeatureDefinitionsRequest", + "code": "message FindAllUserFeatureDefinitionsRequest {\n\n}", + "doc": "获取所有的功能定义" + }, + { + "name": "CheckUserOTPWithUsernameResponse", + "code": "message CheckUserOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", + "doc": "" + }, + { + "name": "RegisterUserRequest", + "code": "message RegisterUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring mobile = 3;\n\tstring email = 4;\n\tstring fullname = 5;\n\tstring ip = 6;\n\tstring source = 7;\n}", + "doc": "注册用户" + }, + { + "name": "CheckUserUsernameResponse", + "code": "message CheckUserUsernameResponse {\n\tbool exists = 1;\n}", + "doc": "" + }, + { + "name": "LoginUserRequest", + "code": "message LoginUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", + "doc": "登录" + }, + { + "name": "FindUserNodeClusterIdRequest", + "code": "message FindUserNodeClusterIdRequest {\n\tint64 userId = 1;\n}", + "doc": "获取用户所在的集群ID" }, { "name": "ComposeUserGlobalBoardRequest", "code": "message ComposeUserGlobalBoardRequest {\n\n}", "doc": "组合看板数据" }, + { + "name": "FindAllEnabledUserAccessKeysResponse", + "code": "message FindAllEnabledUserAccessKeysResponse {\n\trepeated UserAccessKey userAccessKeys = 1;\n}", + "doc": "" + }, + { + "name": "DeleteUserAccessKeyRequest", + "code": "message DeleteUserAccessKeyRequest {\n\tint64 userAccessKeyId = 1;\n}", + "doc": "删除AccessKey" + }, + { + "name": "UpdateUserAccessKeyIsOnRequest", + "code": "message UpdateUserAccessKeyIsOnRequest {\n\tint64 userAccessKeyId = 1;\n\tbool isOn = 2;\n}", + "doc": "设置是否启用AccessKey" + }, { "name": "CountAllEnabledUserAccessKeysRequest", "code": "message CountAllEnabledUserAccessKeysRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n}", @@ -17749,19 +18062,24 @@ "doc": "查找所有的AccessKey" }, { - "name": "FindAllEnabledUserAccessKeysResponse", - "code": "message FindAllEnabledUserAccessKeysResponse {\n\trepeated UserAccessKey userAccessKeys = 1;\n}", + "name": "FindEnabledUserAccountWithUserIdResponse", + "code": "message FindEnabledUserAccountWithUserIdResponse {\n\tUserAccount userAccount = 1;\n}", "doc": "" }, { - "name": "DeleteUserAccessKeyRequest", - "code": "message DeleteUserAccessKeyRequest {\n\tint64 userAccessKeyId = 1;\n}", - "doc": "删除AccessKey" + "name": "FindEnabledUserAccountRequest", + "code": "message FindEnabledUserAccountRequest {\n\tint64 userAccountId = 1;\n}", + "doc": "查找单个账户" }, { - "name": "UpdateUserAccessKeyIsOnRequest", - "code": "message UpdateUserAccessKeyIsOnRequest {\n\tint64 userAccessKeyId = 1;\n\tbool isOn = 2;\n}", - "doc": "设置是否启用AccessKey" + "name": "FindEnabledUserAccountResponse", + "code": "message FindEnabledUserAccountResponse {\n\tUserAccount userAccount = 1;\n}", + "doc": "" + }, + { + "name": "UpdateUserAccountRequest", + "code": "message UpdateUserAccountRequest {\n\tint64 userAccountId = 1;\n\tfloat delta = 2;\n\tstring eventType = 3;\n\tstring description = 4;\n\tbytes paramsJSON = 5;\n}", + "doc": "修改用户账户" }, { "name": "CountUserAccountsRequest", @@ -17784,25 +18102,10 @@ "doc": "根据用户ID查找单个账户" }, { - "name": "FindEnabledUserAccountWithUserIdResponse", - "code": "message FindEnabledUserAccountWithUserIdResponse {\n\tUserAccount userAccount = 1;\n}", + "name": "ListUserAccountDailyStatsResponse", + "code": "message ListUserAccountDailyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tstring day = 1; // YYYYMMDD\n\t\tfloat income = 2;\n\t\tfloat expense = 3;\n\t}\n}", "doc": "" }, - { - "name": "FindEnabledUserAccountRequest", - "code": "message FindEnabledUserAccountRequest {\n\tint64 userAccountId = 1;\n}", - "doc": "查找单个账户" - }, - { - "name": "FindEnabledUserAccountResponse", - "code": "message FindEnabledUserAccountResponse {\n\tUserAccount userAccount = 1;\n}", - "doc": "" - }, - { - "name": "UpdateUserAccountRequest", - "code": "message UpdateUserAccountRequest {\n\tint64 userAccountId = 1;\n\tfloat delta = 2;\n\tstring eventType = 3;\n\tstring description = 4;\n\tbytes paramsJSON = 5;\n}", - "doc": "修改用户账户" - }, { "name": "ListUserAccountMonthlyStatsRequest", "code": "message ListUserAccountMonthlyStatsRequest {\n\tstring dayFrom = 1;\n\tstring dayTo = 2;\n}", @@ -17819,9 +18122,9 @@ "doc": "列出按天统计" }, { - "name": "ListUserAccountDailyStatsResponse", - "code": "message ListUserAccountDailyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tstring day = 1; // YYYYMMDD\n\t\tfloat income = 2;\n\t\tfloat expense = 3;\n\t}\n}", - "doc": "" + "name": "CountUserAccountLogsRequest", + "code": "message CountUserAccountLogsRequest {\n\tint64 userAccountId = 1;\n\tstring keyword = 2;\n\tstring eventType = 3;\n}", + "doc": "计算日志数量" }, { "name": "ListUserAccountLogsRequest", @@ -17834,40 +18137,15 @@ "doc": "" }, { - "name": "CountUserAccountLogsRequest", - "code": "message CountUserAccountLogsRequest {\n\tint64 userAccountId = 1;\n\tstring keyword = 2;\n\tstring eventType = 3;\n}", - "doc": "计算日志数量" - }, - { - "name": "ListUserBillsRequest", - "code": "message ListUserBillsRequest {\n\tint32 paidFlag = 1;\n\tint64 userId = 2;\n\tstring month = 5;\n\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出单页账单" + "name": "CountAllUserBillsRequest", + "code": "message CountAllUserBillsRequest {\n\tint32 paidFlag = 1; // 0|1|-1\n\tint64 userId = 2;\n\tstring month = 3;\n}", + "doc": "计算所有账单数量" }, { "name": "ListUserBillsResponse", "code": "message ListUserBillsResponse {\n\trepeated UserBill userBills = 1;\n}", "doc": "" }, - { - "name": "PayUserBillRequest", - "code": "message PayUserBillRequest {\n\tint64 userBillId = 1;\n}", - "doc": "支付账单" - }, - { - "name": "SumUserUnpaidBillsResponse", - "code": "message SumUserUnpaidBillsResponse {\n\tfloat amount = 1;\n}", - "doc": "" - }, - { - "name": "GenerateAllUserBillsRequest", - "code": "message GenerateAllUserBillsRequest {\n\tstring month = 1;\n}", - "doc": "手工生成账单" - }, - { - "name": "CountAllUserBillsRequest", - "code": "message CountAllUserBillsRequest {\n\tint32 paidFlag = 1; // 0|1|-1\n\tint64 userId = 2;\n\tstring month = 3;\n}", - "doc": "计算所有账单数量" - }, { "name": "FindUserBillRequest", "code": "message FindUserBillRequest {\n\tint64 userBillId = 1;\n}", @@ -17878,55 +18156,55 @@ "code": "message FindUserBillResponse {\n\tUserBill userBill = 1;\n}", "doc": "" }, + { + "name": "PayUserBillRequest", + "code": "message PayUserBillRequest {\n\tint64 userBillId = 1;\n}", + "doc": "支付账单" + }, { "name": "SumUserUnpaidBillsRequest", "code": "message SumUserUnpaidBillsRequest {\n\tint64 userId = 1;\n}", "doc": "计算用户所有未支付账单总额" }, { - "name": "CreateUserIdentityRequest", - "code": "message CreateUserIdentityRequest {\n\tstring orgType = 1;\n\tstring type = 2;\n\tstring realName = 3;\n\tstring number = 4;\n\trepeated int64 fileIds = 5;\n}", - "doc": "创建实名认证信息" + "name": "SumUserUnpaidBillsResponse", + "code": "message SumUserUnpaidBillsResponse {\n\tfloat amount = 1;\n}", + "doc": "" }, { - "name": "UpdateUserIdentityRequest", - "code": "message UpdateUserIdentityRequest {\n\tint64 userIdentityId = 1;\n\tstring type = 2;\n\tstring realName = 3;\n\tstring number = 4;\n\trepeated int64 fileIds = 5;\n}", - "doc": "修改实名认证信息" + "name": "GenerateAllUserBillsRequest", + "code": "message GenerateAllUserBillsRequest {\n\tstring month = 1;\n}", + "doc": "手工生成账单" + }, + { + "name": "ListUserBillsRequest", + "code": "message ListUserBillsRequest {\n\tint32 paidFlag = 1;\n\tint64 userId = 2;\n\tstring month = 5;\n\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页账单" }, { "name": "FindEnabledUserIdentityResponse", "code": "message FindEnabledUserIdentityResponse {\n\tUserIdentity userIdentity = 1;\n}", "doc": "" }, + { + "name": "FindEnabledUserIdentityWithOrgTypeResponse", + "code": "message FindEnabledUserIdentityWithOrgTypeResponse {\n\tUserIdentity userIdentity = 1;\n}", + "doc": "" + }, { "name": "CheckUserIdentityIsSubmittedRequest", "code": "message CheckUserIdentityIsSubmittedRequest {\n\tint64 userId = 1;\n}", "doc": "检查是否正在审核中" }, - { - "name": "CheckUserIdentityIsSubmittedResponse", - "code": "message CheckUserIdentityIsSubmittedResponse {\n\tbool isSubmitted = 1;\n}", - "doc": "" - }, { "name": "CancelUserIdentityRequest", "code": "message CancelUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", "doc": "取消提交身份审核认证信息" }, { - "name": "VerifyUserIdentityRequest", - "code": "message VerifyUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", - "doc": "通过用户实名认证信息" - }, - { - "name": "SubmitUserIdentityRequest", - "code": "message SubmitUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", - "doc": "提交审核实名认证信息" - }, - { - "name": "ResetUserIdentityRequest", - "code": "message ResetUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", - "doc": "重置用户实名认证信息" + "name": "CheckUserIdentityIsSubmittedResponse", + "code": "message CheckUserIdentityIsSubmittedResponse {\n\tbool isSubmitted = 1;\n}", + "doc": "" }, { "name": "RejectUserIdentityRequest", @@ -17943,14 +18221,49 @@ "code": "message FindEnabledUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", "doc": "查找单个实名认证信息" }, + { + "name": "SubmitUserIdentityRequest", + "code": "message SubmitUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "提交审核实名认证信息" + }, + { + "name": "ResetUserIdentityRequest", + "code": "message ResetUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "重置用户实名认证信息" + }, + { + "name": "VerifyUserIdentityRequest", + "code": "message VerifyUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "通过用户实名认证信息" + }, + { + "name": "CreateUserIdentityRequest", + "code": "message CreateUserIdentityRequest {\n\tstring orgType = 1;\n\tstring type = 2;\n\tstring realName = 3;\n\tstring number = 4;\n\trepeated int64 fileIds = 5;\n}", + "doc": "创建实名认证信息" + }, { "name": "FindEnabledUserIdentityWithOrgTypeRequest", "code": "message FindEnabledUserIdentityWithOrgTypeRequest {\n\tint64 userId = 1; // 用户端不需要设置此参数\n\tstring orgType = 2; // 阻止类型\n}", "doc": "查看某个类型的实名认证信息" }, { - "name": "FindEnabledUserIdentityWithOrgTypeResponse", - "code": "message FindEnabledUserIdentityWithOrgTypeResponse {\n\tUserIdentity userIdentity = 1;\n}", + "name": "UpdateUserIdentityRequest", + "code": "message UpdateUserIdentityRequest {\n\tint64 userIdentityId = 1;\n\tstring type = 2;\n\tstring realName = 3;\n\tstring number = 4;\n\trepeated int64 fileIds = 5;\n}", + "doc": "修改实名认证信息" + }, + { + "name": "UpdateUserNodeStatusRequest", + "code": "message UpdateUserNodeStatusRequest {\n\tint64 userNodeId = 1;\n\tbytes statusJSON = 2;\n}", + "doc": "更新节点状态" + }, + { + "name": "CountAllEnabledUserNodesWithSSLCertIdRequest", + "code": "message CountAllEnabledUserNodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的用户节点数量" + }, + { + "name": "CreateUserNodeResponse", + "code": "message CreateUserNodeResponse {\n\tint64 userNodeId = 1;\n}", "doc": "" }, { @@ -17958,55 +18271,20 @@ "code": "message ListEnabledUserNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页的用户节点" }, - { - "name": "UpdateUserNodeRequest", - "code": "message UpdateUserNodeRequest {\n\tint64 userNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbytes httpJSON = 4;\n\tbytes httpsJSON = 5;\n\tbytes accessAddrsJSON = 6;\n\tbool isOn = 7;\n}", - "doc": "修改用户节点" - }, - { - "name": "FindAllEnabledUserNodesResponse", - "code": "message FindAllEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledUserNodeResponse", - "code": "message FindEnabledUserNodeResponse {\n\tUserNode userNode = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledUserNodesWithSSLCertIdRequest", - "code": "message CountAllEnabledUserNodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的用户节点数量" - }, - { - "name": "FindAllEnabledUserNodesRequest", - "code": "message FindAllEnabledUserNodesRequest {\n\n}", - "doc": "列出所有可用用户节点" - }, { "name": "ListEnabledUserNodesResponse", "code": "message ListEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", "doc": "" }, - { - "name": "DeleteUserNodeRequest", - "code": "message DeleteUserNodeRequest {\n\tint64 userNodeId = 1;\n}", - "doc": "删除用户节点" - }, - { - "name": "CountAllEnabledUserNodesRequest", - "code": "message CountAllEnabledUserNodesRequest {\n\n}", - "doc": "计算用户节点数量" - }, { "name": "FindEnabledUserNodeRequest", "code": "message FindEnabledUserNodeRequest {\n\tint64 userNodeId = 1;\n}", "doc": "根据ID查找节点" }, { - "name": "FindCurrentUserNodeRequest", - "code": "message FindCurrentUserNodeRequest {\n\n}", - "doc": "获取当前用户节点" + "name": "FindCurrentUserNodeResponse", + "code": "message FindCurrentUserNodeResponse {\n\tUserNode userNode = 1;\n}", + "doc": "" }, { "name": "CreateUserNodeRequest", @@ -18014,59 +18292,59 @@ "doc": "创建用户节点" }, { - "name": "CreateUserNodeResponse", - "code": "message CreateUserNodeResponse {\n\tint64 userNodeId = 1;\n}", + "name": "UpdateUserNodeRequest", + "code": "message UpdateUserNodeRequest {\n\tint64 userNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbytes httpJSON = 4;\n\tbytes httpsJSON = 5;\n\tbytes accessAddrsJSON = 6;\n\tbool isOn = 7;\n}", + "doc": "修改用户节点" + }, + { + "name": "DeleteUserNodeRequest", + "code": "message DeleteUserNodeRequest {\n\tint64 userNodeId = 1;\n}", + "doc": "删除用户节点" + }, + { + "name": "FindAllEnabledUserNodesRequest", + "code": "message FindAllEnabledUserNodesRequest {\n\n}", + "doc": "列出所有可用用户节点" + }, + { + "name": "FindAllEnabledUserNodesResponse", + "code": "message FindAllEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", "doc": "" }, { - "name": "FindCurrentUserNodeResponse", - "code": "message FindCurrentUserNodeResponse {\n\tUserNode userNode = 1;\n}", + "name": "CountAllEnabledUserNodesRequest", + "code": "message CountAllEnabledUserNodesRequest {\n\n}", + "doc": "计算用户节点数量" + }, + { + "name": "FindEnabledUserNodeResponse", + "code": "message FindEnabledUserNodeResponse {\n\tUserNode userNode = 1;\n}", "doc": "" }, { - "name": "UpdateUserNodeStatusRequest", - "code": "message UpdateUserNodeStatusRequest {\n\tint64 userNodeId = 1;\n\tbytes statusJSON = 2;\n}", - "doc": "更新节点状态" + "name": "FindCurrentUserNodeRequest", + "code": "message FindCurrentUserNodeRequest {\n\n}", + "doc": "获取当前用户节点" }, { "name": "CreateUserOrderRequest", "code": "message CreateUserOrderRequest {\n\tstring type = 1;\n\tstring orderMethodCode = 2;\n\tfloat amount = 3;\n}", "doc": "创建订单" }, - { - "name": "FindEnabledUserOrderRequest", - "code": "message FindEnabledUserOrderRequest {\n\tstring code = 1;\n}", - "doc": "查看订单" - }, { "name": "FindEnabledUserOrderResponse", "code": "message FindEnabledUserOrderResponse {\n\tUserOrder userOrder = 1;\n}", "doc": "" }, - { - "name": "FinishUserOrderRequest", - "code": "message FinishUserOrderRequest {\n\tstring code = 1;\n}", - "doc": "完成订单" - }, - { - "name": "CountEnabledUserOrdersRequest", - "code": "message CountEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n}", - "doc": "计算订单数量" - }, - { - "name": "CreateUserOrderResponse", - "code": "message CreateUserOrderResponse {\n\tstring code = 1;\n\tstring payURL = 2;\n}", - "doc": "" - }, { "name": "CancelUserOrderRequest", "code": "message CancelUserOrderRequest {\n\tstring code = 1;\n}", "doc": "取消订单" }, { - "name": "ListEnabledUserOrdersRequest", - "code": "message ListEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页订单" + "name": "CountEnabledUserOrdersRequest", + "code": "message CountEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n}", + "doc": "计算订单数量" }, { "name": "ListEnabledUserOrdersResponse", @@ -18074,34 +18352,24 @@ "doc": "" }, { - "name": "DeleteUserPlanRequest", - "code": "message DeleteUserPlanRequest {\n\tint64 userPlanId = 1;\n}", - "doc": "删除已购套餐" - }, - { - "name": "ListEnabledUserPlansRequest", - "code": "message ListEnabledUserPlansRequest {\n\tbool isAvailable = 1;\n\tbool isExpired = 2;\n\tint32 expiringDays = 3;\n\tint64 userId = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", - "doc": "列出单页已购套餐" - }, - { - "name": "BuyUserPlanRequest", - "code": "message BuyUserPlanRequest{\n\tint64 userId = 1;\n\tint64 planId = 2;\n\tstring dayTo = 3;\n\tstring period = 4;\n\tint32 countPeriod = 5;\n\tstring name = 6;\n}", - "doc": "添加已购套餐" - }, - { - "name": "FindEnabledUserPlanRequest", - "code": "message FindEnabledUserPlanRequest {\n\tint64 userPlanId = 1;\n}", - "doc": "查找单个已购套餐信息" - }, - { - "name": "FindEnabledUserPlanResponse", - "code": "message FindEnabledUserPlanResponse {\n\tUserPlan userPlan = 1;\n}", + "name": "CreateUserOrderResponse", + "code": "message CreateUserOrderResponse {\n\tstring code = 1;\n\tstring payURL = 2;\n}", "doc": "" }, { - "name": "UpdateUserPlanRequest", - "code": "message UpdateUserPlanRequest {\n\tint64 userPlanId = 1;\n\tint64 planId = 2;\n\tstring dayTo = 3;\n\tbool isOn = 4;\n\tstring name = 5;\n}", - "doc": "修改已购套餐" + "name": "FindEnabledUserOrderRequest", + "code": "message FindEnabledUserOrderRequest {\n\tstring code = 1;\n}", + "doc": "查看订单" + }, + { + "name": "FinishUserOrderRequest", + "code": "message FinishUserOrderRequest {\n\tstring code = 1;\n}", + "doc": "完成订单" + }, + { + "name": "ListEnabledUserOrdersRequest", + "code": "message ListEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页订单" }, { "name": "FindAllEnabledUserPlansForServerRequest", @@ -18114,9 +18382,9 @@ "doc": "" }, { - "name": "BuyUserPlanResponse", - "code": "message BuyUserPlanResponse {\n\tint64 userPlanId = 1;\n}", - "doc": "" + "name": "BuyUserPlanRequest", + "code": "message BuyUserPlanRequest{\n\tint64 userId = 1;\n\tint64 planId = 2;\n\tstring dayTo = 3;\n\tstring period = 4;\n\tint32 countPeriod = 5;\n\tstring name = 6;\n}", + "doc": "添加已购套餐" }, { "name": "RenewUserPlanRequest", @@ -18124,20 +18392,70 @@ "doc": "续费套餐" }, { - "name": "CountAllEnabledUserPlansRequest", - "code": "message CountAllEnabledUserPlansRequest {\n\tbool isAvailable = 1;\n\tbool isExpired = 2;\n\tint32 expiringDays = 3;\n\tint64 userId = 4;\n}", - "doc": "计算已购套餐数" + "name": "FindEnabledUserPlanResponse", + "code": "message FindEnabledUserPlanResponse {\n\tUserPlan userPlan = 1;\n}", + "doc": "" }, { "name": "ListEnabledUserPlansResponse", "code": "message ListEnabledUserPlansResponse {\n\trepeated UserPlan userPlans = 1;\n}", "doc": "" }, + { + "name": "CountAllEnabledUserPlansRequest", + "code": "message CountAllEnabledUserPlansRequest {\n\tbool isAvailable = 1;\n\tbool isExpired = 2;\n\tint32 expiringDays = 3;\n\tint64 userId = 4;\n}", + "doc": "计算已购套餐数" + }, + { + "name": "ListEnabledUserPlansRequest", + "code": "message ListEnabledUserPlansRequest {\n\tbool isAvailable = 1;\n\tbool isExpired = 2;\n\tint32 expiringDays = 3;\n\tint64 userId = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "列出单页已购套餐" + }, + { + "name": "BuyUserPlanResponse", + "code": "message BuyUserPlanResponse {\n\tint64 userPlanId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserPlanRequest", + "code": "message FindEnabledUserPlanRequest {\n\tint64 userPlanId = 1;\n}", + "doc": "查找单个已购套餐信息" + }, + { + "name": "UpdateUserPlanRequest", + "code": "message UpdateUserPlanRequest {\n\tint64 userPlanId = 1;\n\tint64 planId = 2;\n\tstring dayTo = 3;\n\tbool isOn = 4;\n\tstring name = 5;\n}", + "doc": "修改已购套餐" + }, + { + "name": "DeleteUserPlanRequest", + "code": "message DeleteUserPlanRequest {\n\tint64 userPlanId = 1;\n}", + "doc": "删除已购套餐" + }, { "name": "CreateUserTicketRequest", "code": "message CreateUserTicketRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring subject = 2;\n\tstring body = 3;\n}", "doc": "创建工单" }, + { + "name": "CountUserTicketsRequest", + "code": "message CountUserTicketsRequest {\n\tint64 userId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring status = 3;\n}", + "doc": "计算工单数量" + }, + { + "name": "FindUserTicketResponse", + "code": "message FindUserTicketResponse {\n\tUserTicket userTicket = 1;\n}", + "doc": "" + }, + { + "name": "ListUserTicketsResponse", + "code": "message ListUserTicketsResponse {\n\trepeated UserTicket userTickets = 1;\n}", + "doc": "" + }, + { + "name": "FindUserTicketRequest", + "code": "message FindUserTicketRequest {\n\tint64 userTicketId = 1;\n}", + "doc": "查找单个工单" + }, { "name": "CreateUserTicketResponse", "code": "message CreateUserTicketResponse {\n\tint64 userTicketId = 1;\n}", @@ -18148,16 +18466,6 @@ "code": "message UpdateUserTicketRequest {\n\tint64 userTicketId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring subject = 3;\n\tstring body = 4;\n}", "doc": "修改工单" }, - { - "name": "CountUserTicketsRequest", - "code": "message CountUserTicketsRequest {\n\tint64 userId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring status = 3;\n}", - "doc": "计算工单数量" - }, - { - "name": "FindUserTicketRequest", - "code": "message FindUserTicketRequest {\n\tint64 userTicketId = 1;\n}", - "doc": "查找单个工单" - }, { "name": "DeleteUserTicketRequest", "code": "message DeleteUserTicketRequest {\n\tint64 userTicketId = 1;\n}", @@ -18169,40 +18477,10 @@ "doc": "列出单页工单" }, { - "name": "ListUserTicketsResponse", - "code": "message ListUserTicketsResponse {\n\trepeated UserTicket userTickets = 1;\n}", + "name": "FindUserTicketCategoryResponse", + "code": "message FindUserTicketCategoryResponse {\n\tUserTicketCategory userTicketCategory = 1;\n}", "doc": "" }, - { - "name": "FindUserTicketResponse", - "code": "message FindUserTicketResponse {\n\tUserTicket userTicket = 1;\n}", - "doc": "" - }, - { - "name": "UpdateUserTicketCategoryRequest", - "code": "message UpdateUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", - "doc": "修改分类" - }, - { - "name": "DeleteUserTicketCategoryRequest", - "code": "message DeleteUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", - "doc": "删除分类" - }, - { - "name": "FindAllUserTicketCategoriesRequest", - "code": "message FindAllUserTicketCategoriesRequest {\n\n}", - "doc": "查找所有分类" - }, - { - "name": "FindAllAvailableUserTicketCategoriesResponse", - "code": "message FindAllAvailableUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", - "doc": "" - }, - { - "name": "CreateUserTicketCategoryRequest", - "code": "message CreateUserTicketCategoryRequest {\n\tstring name = 1;\n}", - "doc": "创建分类" - }, { "name": "CreateUserTicketCategoryResponse", "code": "message CreateUserTicketCategoryResponse {\n\tint64 userTicketCategoryId = 1;\n}", @@ -18218,25 +18496,35 @@ "code": "message FindAllAvailableUserTicketCategoriesRequest {\n\n}", "doc": "查找所有启用中的分类" }, + { + "name": "FindAllAvailableUserTicketCategoriesResponse", + "code": "message FindAllAvailableUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", + "doc": "" + }, { "name": "FindUserTicketCategoryRequest", "code": "message FindUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", "doc": "查询单个分类" }, { - "name": "FindUserTicketCategoryResponse", - "code": "message FindUserTicketCategoryResponse {\n\tUserTicketCategory userTicketCategory = 1;\n}", - "doc": "" + "name": "CreateUserTicketCategoryRequest", + "code": "message CreateUserTicketCategoryRequest {\n\tstring name = 1;\n}", + "doc": "创建分类" }, { - "name": "DeleteUserTicketLogRequest", - "code": "message DeleteUserTicketLogRequest {\n\tint64 userTicketLogId = 1;\n}", - "doc": "删除日志" + "name": "UpdateUserTicketCategoryRequest", + "code": "message UpdateUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", + "doc": "修改分类" }, { - "name": "CountUserTicketLogsRequest", - "code": "message CountUserTicketLogsRequest {\n\tint64 userTicketId = 1;\n}", - "doc": "查询日志数量" + "name": "DeleteUserTicketCategoryRequest", + "code": "message DeleteUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", + "doc": "删除分类" + }, + { + "name": "FindAllUserTicketCategoriesRequest", + "code": "message FindAllUserTicketCategoriesRequest {\n\n}", + "doc": "查找所有分类" }, { "name": "ListUserTicketLogsRequest", @@ -18258,6 +18546,16 @@ "code": "message CreateUserTicketLogResponse {\n\tint64 userTicketLogId = 1;\n}", "doc": "" }, + { + "name": "DeleteUserTicketLogRequest", + "code": "message DeleteUserTicketLogRequest {\n\tint64 userTicketLogId = 1;\n}", + "doc": "删除日志" + }, + { + "name": "CountUserTicketLogsRequest", + "code": "message CountUserTicketLogsRequest {\n\tint64 userTicketId = 1;\n}", + "doc": "查询日志数量" + }, { "name": "ACMEProvider", "code": "message ACMEProvider {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 4;\n\tstring apiURL = 5;\n\tbool requireEAB = 6;\n\tstring eabDescription = 7;\n}", @@ -18519,13 +18817,13 @@ "doc": "" }, { - "name": "MessageTask", - "code": "message MessageTask {\n\tint64 id = 1;\n\tMessageRecipient messageRecipient = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tint64 createdAt = 6;\n\tint32 status = 7;\n\tint64 sentAt = 8;\n\tMessageTaskResult result = 9;\n\tMessageMediaInstance messageMediaInstance = 10;\n}", + "name": "MessageTaskResult", + "code": "message MessageTaskResult {\n\tbool isOk = 1;\n\tstring error = 2;\n\tstring response = 3;\n}", "doc": "" }, { - "name": "MessageTaskResult", - "code": "message MessageTaskResult {\n\tbool isOk = 1;\n\tstring error = 2;\n\tstring response = 3;\n}", + "name": "MessageTask", + "code": "message MessageTask {\n\tint64 id = 1;\n\tMessageRecipient messageRecipient = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tint64 createdAt = 6;\n\tint32 status = 7;\n\tint64 sentAt = 8;\n\tMessageTaskResult result = 9;\n\tMessageMediaInstance messageMediaInstance = 10;\n}", "doc": "" }, { @@ -18543,16 +18841,16 @@ "code": "message MetricItem {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring code = 3;\n\tstring category = 4;\n\tstring name = 5;\n\trepeated string keys = 6;\n\tint32 period = 7;\n\tstring periodUnit = 8;\n\tint32 expiresPeriod = 12;\n\tstring value = 10;\n\tbool isPublic = 11;\n}", "doc": "指标定义" }, - { - "name": "MetricStat", - "code": "message MetricStat {\n\tint64 id = 1;\n\tstring hash = 2;\n\tint64 serverId = 3;\n\tint64 itemId = 4;\n\trepeated string keys = 5;\n\tfloat value = 6;\n\tstring time = 7;\n\tint32 version = 8;\n\n\tNodeCluster nodeCluster = 30;\n\tNode node = 31;\n\tServer server = 32;\n\n\tint64 sumCount = 40;\n\tfloat sumTotal = 41;\n}", - "doc": "统计数据" - }, { "name": "UploadingMetricStat", "code": "message UploadingMetricStat {\n\tint64 id = 1;\n\tstring hash = 2;\n\trepeated string keys = 3;\n\tfloat value = 4;\n}", "doc": "需要上传的统计数据" }, + { + "name": "MetricStat", + "code": "message MetricStat {\n\tint64 id = 1;\n\tstring hash = 2;\n\tint64 serverId = 3;\n\tint64 itemId = 4;\n\trepeated string keys = 5;\n\tfloat value = 6;\n\tstring time = 7;\n\tint32 version = 8;\n\n\tNodeCluster nodeCluster = 30;\n\tNode node = 31;\n\tServer server = 32;\n\n\tint64 sumCount = 40;\n\tfloat sumTotal = 41;\n}", + "doc": "统计数据" + }, { "name": "MonitorNode", "code": "message MonitorNode {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring uniqueId = 3;\n\tstring secret = 4;\n\tstring name = 5;\n\tstring description = 6;\n\tbytes statusJSON = 7;\n}", @@ -18564,13 +18862,13 @@ "doc": "" }, { - "name": "BasicNode", - "code": "message BasicNode {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tbool isUp = 4;\n\tint32 level = 5;\n\n\tNodeCluster nodeCluster = 30; // 主集群\n}", + "name": "Node", + "code": "message Node {\n\tint64 id = 1;\n\tstring name = 2;\n\tbytes statusJSON = 3;\n\tstring installDir = 4;\n\tbool isInstalled = 5;\n\tstring code = 6;\n\tstring uniqueId = 7;\n\tstring secret = 8;\n\tint64 version = 9;\n\tint64 latestVersion = 10;\n\trepeated int64 connectedAPINodeIds = 11;\n\tint32 maxCPU = 12;\n\tbool isOn = 13;\n\tbool isUp = 14;\n\trepeated DNSRoute dnsRoutes = 15;\n\tbool isActive = 16;\n\tSizeCapacity maxCacheDiskCapacity = 17;\n\tSizeCapacity maxCacheMemoryCapacity = 18;\n\tstring cacheDiskDir = 19;\n\tint32 level = 20;\n\trepeated string lnAddrs = 21; // Ln访问地址\n\n\tNodeCluster nodeCluster = 32; // 主集群\n\tNodeLogin nodeLogin = 33;\n\tNodeInstallStatus installStatus = 34;\n\trepeated NodeIPAddress ipAddresses = 35;\n\tNodeGroup nodeGroup = 36;\n\tNodeRegion nodeRegion = 37;\n\trepeated NodeCluster secondaryNodeClusters = 38; // 从集群\n}", "doc": "" }, { - "name": "Node", - "code": "message Node {\n\tint64 id = 1;\n\tstring name = 2;\n\tbytes statusJSON = 3;\n\tstring installDir = 4;\n\tbool isInstalled = 5;\n\tstring code = 6;\n\tstring uniqueId = 7;\n\tstring secret = 8;\n\tint64 version = 9;\n\tint64 latestVersion = 10;\n\trepeated int64 connectedAPINodeIds = 11;\n\tint32 maxCPU = 12;\n\tbool isOn = 13;\n\tbool isUp = 14;\n\trepeated DNSRoute dnsRoutes = 15;\n\tbool isActive = 16;\n\tSizeCapacity maxCacheDiskCapacity = 17;\n\tSizeCapacity maxCacheMemoryCapacity = 18;\n\tstring cacheDiskDir = 19;\n\tint32 level = 20;\n\trepeated string lnAddrs = 21; // Ln访问地址\n\n\tNodeCluster nodeCluster = 32; // 主集群\n\tNodeLogin nodeLogin = 33;\n\tNodeInstallStatus installStatus = 34;\n\trepeated NodeIPAddress ipAddresses = 35;\n\tNodeGroup nodeGroup = 36;\n\tNodeRegion nodeRegion = 37;\n\trepeated NodeCluster secondaryNodeClusters = 38; // 从集群\n}", + "name": "BasicNode", + "code": "message BasicNode {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tbool isUp = 4;\n\tint32 level = 5;\n\n\tNodeCluster nodeCluster = 30; // 主集群\n}", "doc": "" }, { @@ -18678,6 +18976,11 @@ "code": "message NSNode {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tstring uniqueId = 4;\n\tstring secret = 5;\n\tbytes statusJSON = 6;\n\tbool isInstalled = 7;\n\tstring installDir = 9;\n\tbool isUp = 8;\n\tbool isActive = 10;\n\trepeated int64 connectedAPINodeIds = 11;\n\n\tNSCluster nsCluster = 32;\n\tNodeLogin nodeLogin = 33;\n\tNodeInstallStatus installStatus = 34;\n\t//repeated NodeIPAddress ipAddresses = 35;\n\t//NodeGroup nodeGroup = 36;\n\t//NodeRegion region = 37;\n}", "doc": "域名服务节点" }, + { + "name": "NSPlan", + "code": "message NSPlan {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tfloat monthlyPrice = 4;\n\tfloat yearlyPrice = 5;\n\tbytes configJSON = 6;\n}", + "doc": "" + }, { "name": "NSQuestionOption", "code": "message NSQuestionOption {\n\tint64 id = 1;\n\tstring name = 2;\n\tbytes valuesJSON = 3;\n}", @@ -18698,6 +19001,11 @@ "code": "message NSRoute {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tbytes rangesJSON = 4;\n\tbool isDeleted = 5;\n\tint64 order = 6;\n\tint64 version = 7;\n\tstring code = 8;\n\n\tNSCluster nsCluster = 30;\n\tNSDomain nsDomain = 31;\n}", "doc": "线路" }, + { + "name": "NSUserPlan", + "code": "message NSUserPlan {\n\tint64 id = 1;\n\tint64 nsPlanId = 2;\n\tint64 userId = 3;\n\tstring dayFrom = 4;\n\tstring dayTo = 5;\n\tstring periodUnit = 6;\n\n\tNSPlan nsPlan = 30;\n\tUser user = 31;\n}", + "doc": "" + }, { "name": "NSZone", "code": "message NSZone {\n\tint64 id = 1;\n}", @@ -18793,6 +19101,11 @@ "code": "message ServerDailyStat {\n\tint64 serverId = 1;\n\tint64 regionId = 2;\n\tint64 bytes = 3;\n\tint64 cachedBytes = 5;\n\tint64 countRequests = 6;\n\tint64 countCachedRequests = 7;\n\tint64 createdAt = 4;\n\tint64 countAttackRequests = 8;\n\tint64 attackBytes = 9;\n\tbool checkTrafficLimiting = 10;\n\tint64 planId = 11;\n\tstring day = 12;\n\tstring hour = 13;\n\tstring timeFrom = 14;\n\tstring timeTo = 15;\n}", "doc": "服务每日统计" }, + { + "name": "ServerDomainHourlyStat", + "code": "message ServerDomainHourlyStat {\n\tint64 serverId = 1;\n\tstring domain = 2;\n\tint64 countRequests = 3;\n\tint64 bytes = 4;\n\tint64 countAttackRequests = 6;\n\tint64 attackBytes = 7;\n}", + "doc": "单个小时统计" + }, { "name": "ServerGroup", "code": "message ServerGroup {\n\tint64 id = 1;\n\tstring name = 2;\n\tint64 userId = 3;\n}", @@ -18917,11 +19230,6 @@ "name": "RPCExists", "code": "message RPCExists {\n\tbool exists = 1;\n}", "doc": "是否存在" - }, - { - "name": "ServerDomainHourlyStat", - "code": "message ServerDomainHourlyStat {\n\tint64 serverId = 1;\n\tstring domain = 2;\n\tint64 countRequests = 3;\n\tint64 bytes = 4;\n\tint64 countAttackRequests = 6;\n\tint64 attackBytes = 7;\n}", - "doc": "单个小时统计" } ], "links": [ diff --git a/pkg/dnsconfigs/ns_plans.go b/pkg/dnsconfigs/ns_plans.go index 4c01be1..db15c13 100644 --- a/pkg/dnsconfigs/ns_plans.go +++ b/pkg/dnsconfigs/ns_plans.go @@ -3,12 +3,24 @@ package dnsconfigs type NSPlanConfig struct { - SupportCountryRoutes bool `json:"supportCountryRoutes"` // 支持全球国家/地区线路 - SupportChinaProvinceRoutes bool `json:"supportChinaProvinceRoutes"` // 支持国内省份线路 - SupportISPRoutes bool `json:"supportISPRoutes"` // 支持ISP运营商线路 - CountCustomRoutes int `json:"countCustomRoutes"` // 自定义的线路数量 - CountLoadBalanceRecords bool `json:"countLoadBalanceRecords"` // 负载均衡条数 - MinTTL int32 `json:"minTTL"` // 最小TTL + SupportCountryRoutes bool `json:"supportCountryRoutes"` // 支持全球国家/地区线路 + SupportChinaProvinceRoutes bool `json:"supportChinaProvinceRoutes"` // 支持国内省份线路 + SupportISPRoutes bool `json:"supportISPRoutes"` // 支持ISP运营商线路 + MaxCustomRoutes int32 `json:"maxCustomRoutes"` // 自定义的线路数量 + MinTTL int32 `json:"minTTL"` // 最小TTL + MaxDomains int32 `json:"maxDomains"` // 域名数量 + MaxRecordsPerDomain int32 `json:"maxRecordsPerDomain"` // 单域名记录数量 + MaxLoadBalanceRecordsPerRecord int32 `json:"maxLoadBalanceRecordsPerRecord"` // 单记录负载均衡条数 + SupportRecordStats bool `json:"supportRecordStats"` // 支持记录统计 + SupportDomainAlias bool `json:"supportDomainAlias"` // 支持域名别名 TODO - SupportAPI bool `json:"supportAPI"` // 是否支持API操作 + SupportAPI bool `json:"supportAPI"` // 是否支持API操作 TODO +} + +func DefaultNSPlanConfig() *NSPlanConfig { + return &NSPlanConfig{} +} + +func (this *NSPlanConfig) Init() error { + return nil } diff --git a/pkg/dnsconfigs/ns_user_config.go b/pkg/dnsconfigs/ns_user_config.go index dcd066f..b455f50 100644 --- a/pkg/dnsconfigs/ns_user_config.go +++ b/pkg/dnsconfigs/ns_user_config.go @@ -4,10 +4,28 @@ package dnsconfigs func DefaultNSUserConfig() *NSUserConfig { return &NSUserConfig{ - DefaultClusterId: 0, + DefaultClusterId: 0, + DefaultPlanConfig: DefaultNSUserPlanConfig(), + } +} + +func DefaultNSUserPlanConfig() *NSPlanConfig { + return &NSPlanConfig{ + SupportCountryRoutes: true, + SupportChinaProvinceRoutes: true, + SupportISPRoutes: true, + MaxCustomRoutes: 0, + MaxLoadBalanceRecordsPerRecord: 100, + MinTTL: 60, + MaxDomains: 100, + MaxRecordsPerDomain: 1000, + SupportRecordStats: true, + SupportDomainAlias: false, + SupportAPI: false, } } type NSUserConfig struct { - DefaultClusterId int64 `json:"defaultClusterId"` // 默认部署到的集群 + DefaultClusterId int64 `json:"defaultClusterId"` // 默认部署到的集群 + DefaultPlanConfig *NSPlanConfig `json:"defaultPlanConfig"` // 默认套餐设置 } diff --git a/pkg/rpc/pb/model_ns_plan.pb.go b/pkg/rpc/pb/model_ns_plan.pb.go new file mode 100644 index 0000000..8491602 --- /dev/null +++ b/pkg/rpc/pb/model_ns_plan.pb.go @@ -0,0 +1,195 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ns_plan.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type NSPlan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` + MonthlyPrice float32 `protobuf:"fixed32,4,opt,name=monthlyPrice,proto3" json:"monthlyPrice,omitempty"` + YearlyPrice float32 `protobuf:"fixed32,5,opt,name=yearlyPrice,proto3" json:"yearlyPrice,omitempty"` + ConfigJSON []byte `protobuf:"bytes,6,opt,name=configJSON,proto3" json:"configJSON,omitempty"` +} + +func (x *NSPlan) Reset() { + *x = NSPlan{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ns_plan_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NSPlan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NSPlan) ProtoMessage() {} + +func (x *NSPlan) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ns_plan_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NSPlan.ProtoReflect.Descriptor instead. +func (*NSPlan) Descriptor() ([]byte, []int) { + return file_models_model_ns_plan_proto_rawDescGZIP(), []int{0} +} + +func (x *NSPlan) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *NSPlan) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *NSPlan) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *NSPlan) GetMonthlyPrice() float32 { + if x != nil { + return x.MonthlyPrice + } + return 0 +} + +func (x *NSPlan) GetYearlyPrice() float32 { + if x != nil { + return x.YearlyPrice + } + return 0 +} + +func (x *NSPlan) GetConfigJSON() []byte { + if x != nil { + return x.ConfigJSON + } + return nil +} + +var File_models_model_ns_plan_proto protoreflect.FileDescriptor + +var file_models_model_ns_plan_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, + 0x73, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, + 0x22, 0xa6, 0x01, 0x0a, 0x06, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, + 0x73, 0x4f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x50, 0x72, + 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x6d, 0x6f, 0x6e, 0x74, 0x68, + 0x6c, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x79, 0x65, 0x61, 0x72, 0x6c, + 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, 0x79, 0x65, + 0x61, 0x72, 0x6c, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ns_plan_proto_rawDescOnce sync.Once + file_models_model_ns_plan_proto_rawDescData = file_models_model_ns_plan_proto_rawDesc +) + +func file_models_model_ns_plan_proto_rawDescGZIP() []byte { + file_models_model_ns_plan_proto_rawDescOnce.Do(func() { + file_models_model_ns_plan_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ns_plan_proto_rawDescData) + }) + return file_models_model_ns_plan_proto_rawDescData +} + +var file_models_model_ns_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ns_plan_proto_goTypes = []interface{}{ + (*NSPlan)(nil), // 0: pb.NSPlan +} +var file_models_model_ns_plan_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_models_model_ns_plan_proto_init() } +func file_models_model_ns_plan_proto_init() { + if File_models_model_ns_plan_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_ns_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NSPlan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_ns_plan_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ns_plan_proto_goTypes, + DependencyIndexes: file_models_model_ns_plan_proto_depIdxs, + MessageInfos: file_models_model_ns_plan_proto_msgTypes, + }.Build() + File_models_model_ns_plan_proto = out.File + file_models_model_ns_plan_proto_rawDesc = nil + file_models_model_ns_plan_proto_goTypes = nil + file_models_model_ns_plan_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_ns_user_plan.pb.go b/pkg/rpc/pb/model_ns_user_plan.pb.go new file mode 100644 index 0000000..de359b2 --- /dev/null +++ b/pkg/rpc/pb/model_ns_user_plan.pb.go @@ -0,0 +1,224 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ns_user_plan.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type NSUserPlan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + NsPlanId int64 `protobuf:"varint,2,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` + UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` + DayFrom string `protobuf:"bytes,4,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"` + DayTo string `protobuf:"bytes,5,opt,name=dayTo,proto3" json:"dayTo,omitempty"` + PeriodUnit string `protobuf:"bytes,6,opt,name=periodUnit,proto3" json:"periodUnit,omitempty"` + NsPlan *NSPlan `protobuf:"bytes,30,opt,name=nsPlan,proto3" json:"nsPlan,omitempty"` + User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *NSUserPlan) Reset() { + *x = NSUserPlan{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ns_user_plan_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NSUserPlan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NSUserPlan) ProtoMessage() {} + +func (x *NSUserPlan) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ns_user_plan_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NSUserPlan.ProtoReflect.Descriptor instead. +func (*NSUserPlan) Descriptor() ([]byte, []int) { + return file_models_model_ns_user_plan_proto_rawDescGZIP(), []int{0} +} + +func (x *NSUserPlan) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *NSUserPlan) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +func (x *NSUserPlan) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *NSUserPlan) GetDayFrom() string { + if x != nil { + return x.DayFrom + } + return "" +} + +func (x *NSUserPlan) GetDayTo() string { + if x != nil { + return x.DayTo + } + return "" +} + +func (x *NSUserPlan) GetPeriodUnit() string { + if x != nil { + return x.PeriodUnit + } + return "" +} + +func (x *NSUserPlan) GetNsPlan() *NSPlan { + if x != nil { + return x.NsPlan + } + return nil +} + +func (x *NSUserPlan) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +var File_models_model_ns_user_plan_proto protoreflect.FileDescriptor + +var file_models_model_ns_user_plan_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, + 0x73, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1a, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x73, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x01, 0x0a, 0x0a, 0x4e, + 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x50, + 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x50, + 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x64, 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x64, 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x1e, 0x0a, + 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x22, 0x0a, + 0x06, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, + 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x06, 0x6e, 0x73, 0x50, 0x6c, 0x61, + 0x6e, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, + 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ns_user_plan_proto_rawDescOnce sync.Once + file_models_model_ns_user_plan_proto_rawDescData = file_models_model_ns_user_plan_proto_rawDesc +) + +func file_models_model_ns_user_plan_proto_rawDescGZIP() []byte { + file_models_model_ns_user_plan_proto_rawDescOnce.Do(func() { + file_models_model_ns_user_plan_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ns_user_plan_proto_rawDescData) + }) + return file_models_model_ns_user_plan_proto_rawDescData +} + +var file_models_model_ns_user_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ns_user_plan_proto_goTypes = []interface{}{ + (*NSUserPlan)(nil), // 0: pb.NSUserPlan + (*NSPlan)(nil), // 1: pb.NSPlan + (*User)(nil), // 2: pb.User +} +var file_models_model_ns_user_plan_proto_depIdxs = []int32{ + 1, // 0: pb.NSUserPlan.nsPlan:type_name -> pb.NSPlan + 2, // 1: pb.NSUserPlan.user:type_name -> pb.User + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_models_model_ns_user_plan_proto_init() } +func file_models_model_ns_user_plan_proto_init() { + if File_models_model_ns_user_plan_proto != nil { + return + } + file_models_model_ns_plan_proto_init() + file_models_model_user_proto_init() + if !protoimpl.UnsafeEnabled { + file_models_model_ns_user_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NSUserPlan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_ns_user_plan_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ns_user_plan_proto_goTypes, + DependencyIndexes: file_models_model_ns_user_plan_proto_depIdxs, + MessageInfos: file_models_model_ns_user_plan_proto_msgTypes, + }.Build() + File_models_model_ns_user_plan_proto = out.File + file_models_model_ns_user_plan_proto_rawDesc = nil + file_models_model_ns_user_plan_proto_goTypes = nil + file_models_model_ns_user_plan_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_server_domain_hourly_stat.pb.go b/pkg/rpc/pb/model_server_domain_hourly_stat.pb.go new file mode 100644 index 0000000..700ebdd --- /dev/null +++ b/pkg/rpc/pb/model_server_domain_hourly_stat.pb.go @@ -0,0 +1,201 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_server_domain_hourly_stat.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 单个小时统计 +type ServerDomainHourlyStat struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"` + Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"` + CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"` + AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"` +} + +func (x *ServerDomainHourlyStat) Reset() { + *x = ServerDomainHourlyStat{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_server_domain_hourly_stat_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerDomainHourlyStat) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerDomainHourlyStat) ProtoMessage() {} + +func (x *ServerDomainHourlyStat) ProtoReflect() protoreflect.Message { + mi := &file_models_model_server_domain_hourly_stat_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServerDomainHourlyStat.ProtoReflect.Descriptor instead. +func (*ServerDomainHourlyStat) Descriptor() ([]byte, []int) { + return file_models_model_server_domain_hourly_stat_proto_rawDescGZIP(), []int{0} +} + +func (x *ServerDomainHourlyStat) GetServerId() int64 { + if x != nil { + return x.ServerId + } + return 0 +} + +func (x *ServerDomainHourlyStat) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ServerDomainHourlyStat) GetCountRequests() int64 { + if x != nil { + return x.CountRequests + } + return 0 +} + +func (x *ServerDomainHourlyStat) GetBytes() int64 { + if x != nil { + return x.Bytes + } + return 0 +} + +func (x *ServerDomainHourlyStat) GetCountAttackRequests() int64 { + if x != nil { + return x.CountAttackRequests + } + return 0 +} + +func (x *ServerDomainHourlyStat) GetAttackBytes() int64 { + if x != nil { + return x.AttackBytes + } + return 0 +} + +var File_models_model_server_domain_hourly_stat_proto protoreflect.FileDescriptor + +var file_models_model_server_domain_hourly_stat_proto_rawDesc = []byte{ + 0x0a, 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x6f, 0x75, + 0x72, 0x6c, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, + 0x70, 0x62, 0x22, 0xdc, 0x01, 0x0a, 0x16, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x30, 0x0a, + 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_models_model_server_domain_hourly_stat_proto_rawDescOnce sync.Once + file_models_model_server_domain_hourly_stat_proto_rawDescData = file_models_model_server_domain_hourly_stat_proto_rawDesc +) + +func file_models_model_server_domain_hourly_stat_proto_rawDescGZIP() []byte { + file_models_model_server_domain_hourly_stat_proto_rawDescOnce.Do(func() { + file_models_model_server_domain_hourly_stat_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_server_domain_hourly_stat_proto_rawDescData) + }) + return file_models_model_server_domain_hourly_stat_proto_rawDescData +} + +var file_models_model_server_domain_hourly_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_server_domain_hourly_stat_proto_goTypes = []interface{}{ + (*ServerDomainHourlyStat)(nil), // 0: pb.ServerDomainHourlyStat +} +var file_models_model_server_domain_hourly_stat_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_models_model_server_domain_hourly_stat_proto_init() } +func file_models_model_server_domain_hourly_stat_proto_init() { + if File_models_model_server_domain_hourly_stat_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_server_domain_hourly_stat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerDomainHourlyStat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_server_domain_hourly_stat_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_server_domain_hourly_stat_proto_goTypes, + DependencyIndexes: file_models_model_server_domain_hourly_stat_proto_depIdxs, + MessageInfos: file_models_model_server_domain_hourly_stat_proto_msgTypes, + }.Build() + File_models_model_server_domain_hourly_stat_proto = out.File + file_models_model_server_domain_hourly_stat_proto_rawDesc = nil + file_models_model_server_domain_hourly_stat_proto_goTypes = nil + file_models_model_server_domain_hourly_stat_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/server_domain_hourly_stat.pb.go b/pkg/rpc/pb/server_domain_hourly_stat.pb.go deleted file mode 100644 index 98d7ae6..0000000 --- a/pkg/rpc/pb/server_domain_hourly_stat.pb.go +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.19.4 -// source: models/server_domain_hourly_stat.proto - -package pb - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -// 单个小时统计 -type ServerDomainHourlyStat struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"` - Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"` - CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"` - AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"` -} - -func (x *ServerDomainHourlyStat) Reset() { - *x = ServerDomainHourlyStat{} - if protoimpl.UnsafeEnabled { - mi := &file_models_server_domain_hourly_stat_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerDomainHourlyStat) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerDomainHourlyStat) ProtoMessage() {} - -func (x *ServerDomainHourlyStat) ProtoReflect() protoreflect.Message { - mi := &file_models_server_domain_hourly_stat_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerDomainHourlyStat.ProtoReflect.Descriptor instead. -func (*ServerDomainHourlyStat) Descriptor() ([]byte, []int) { - return file_models_server_domain_hourly_stat_proto_rawDescGZIP(), []int{0} -} - -func (x *ServerDomainHourlyStat) GetServerId() int64 { - if x != nil { - return x.ServerId - } - return 0 -} - -func (x *ServerDomainHourlyStat) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ServerDomainHourlyStat) GetCountRequests() int64 { - if x != nil { - return x.CountRequests - } - return 0 -} - -func (x *ServerDomainHourlyStat) GetBytes() int64 { - if x != nil { - return x.Bytes - } - return 0 -} - -func (x *ServerDomainHourlyStat) GetCountAttackRequests() int64 { - if x != nil { - return x.CountAttackRequests - } - return 0 -} - -func (x *ServerDomainHourlyStat) GetAttackBytes() int64 { - if x != nil { - return x.AttackBytes - } - return 0 -} - -var File_models_server_domain_hourly_stat_proto protoreflect.FileDescriptor - -var file_models_server_domain_hourly_stat_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xdc, 0x01, 0x0a, - 0x16, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x6f, 0x75, - 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x41, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x61, 0x63, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x74, 0x74, - 0x61, 0x63, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, - 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x74, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, - 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_models_server_domain_hourly_stat_proto_rawDescOnce sync.Once - file_models_server_domain_hourly_stat_proto_rawDescData = file_models_server_domain_hourly_stat_proto_rawDesc -) - -func file_models_server_domain_hourly_stat_proto_rawDescGZIP() []byte { - file_models_server_domain_hourly_stat_proto_rawDescOnce.Do(func() { - file_models_server_domain_hourly_stat_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_server_domain_hourly_stat_proto_rawDescData) - }) - return file_models_server_domain_hourly_stat_proto_rawDescData -} - -var file_models_server_domain_hourly_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_models_server_domain_hourly_stat_proto_goTypes = []interface{}{ - (*ServerDomainHourlyStat)(nil), // 0: pb.ServerDomainHourlyStat -} -var file_models_server_domain_hourly_stat_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_models_server_domain_hourly_stat_proto_init() } -func file_models_server_domain_hourly_stat_proto_init() { - if File_models_server_domain_hourly_stat_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_models_server_domain_hourly_stat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerDomainHourlyStat); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_models_server_domain_hourly_stat_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_models_server_domain_hourly_stat_proto_goTypes, - DependencyIndexes: file_models_server_domain_hourly_stat_proto_depIdxs, - MessageInfos: file_models_server_domain_hourly_stat_proto_msgTypes, - }.Build() - File_models_server_domain_hourly_stat_proto = out.File - file_models_server_domain_hourly_stat_proto_rawDesc = nil - file_models_server_domain_hourly_stat_proto_goTypes = nil - file_models_server_domain_hourly_stat_proto_depIdxs = nil -} diff --git a/pkg/rpc/pb/service_ns_plan.pb.go b/pkg/rpc/pb/service_ns_plan.pb.go new file mode 100644 index 0000000..2170af5 --- /dev/null +++ b/pkg/rpc/pb/service_ns_plan.pb.go @@ -0,0 +1,1216 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ns_plan.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建DNS套餐 +type CreateNSPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + MonthlyPrice float32 `protobuf:"fixed32,2,opt,name=monthlyPrice,proto3" json:"monthlyPrice,omitempty"` + YearlyPrice float32 `protobuf:"fixed32,3,opt,name=yearlyPrice,proto3" json:"yearlyPrice,omitempty"` + ConfigJSON []byte `protobuf:"bytes,4,opt,name=configJSON,proto3" json:"configJSON,omitempty"` +} + +func (x *CreateNSPlanRequest) Reset() { + *x = CreateNSPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSPlanRequest) ProtoMessage() {} + +func (x *CreateNSPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateNSPlanRequest.ProtoReflect.Descriptor instead. +func (*CreateNSPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateNSPlanRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateNSPlanRequest) GetMonthlyPrice() float32 { + if x != nil { + return x.MonthlyPrice + } + return 0 +} + +func (x *CreateNSPlanRequest) GetYearlyPrice() float32 { + if x != nil { + return x.YearlyPrice + } + return 0 +} + +func (x *CreateNSPlanRequest) GetConfigJSON() []byte { + if x != nil { + return x.ConfigJSON + } + return nil +} + +type CreateNSPlanResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlanId int64 `protobuf:"varint,1,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` +} + +func (x *CreateNSPlanResponse) Reset() { + *x = CreateNSPlanResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSPlanResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSPlanResponse) ProtoMessage() {} + +func (x *CreateNSPlanResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateNSPlanResponse.ProtoReflect.Descriptor instead. +func (*CreateNSPlanResponse) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateNSPlanResponse) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +// 修改DNS套餐 +type UpdateNSPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlanId int64 `protobuf:"varint,1,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` + MonthlyPrice float32 `protobuf:"fixed32,4,opt,name=monthlyPrice,proto3" json:"monthlyPrice,omitempty"` + YearlyPrice float32 `protobuf:"fixed32,5,opt,name=yearlyPrice,proto3" json:"yearlyPrice,omitempty"` + ConfigJSON []byte `protobuf:"bytes,6,opt,name=configJSON,proto3" json:"configJSON,omitempty"` +} + +func (x *UpdateNSPlanRequest) Reset() { + *x = UpdateNSPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateNSPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNSPlanRequest) ProtoMessage() {} + +func (x *UpdateNSPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateNSPlanRequest.ProtoReflect.Descriptor instead. +func (*UpdateNSPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateNSPlanRequest) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +func (x *UpdateNSPlanRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpdateNSPlanRequest) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *UpdateNSPlanRequest) GetMonthlyPrice() float32 { + if x != nil { + return x.MonthlyPrice + } + return 0 +} + +func (x *UpdateNSPlanRequest) GetYearlyPrice() float32 { + if x != nil { + return x.YearlyPrice + } + return 0 +} + +func (x *UpdateNSPlanRequest) GetConfigJSON() []byte { + if x != nil { + return x.ConfigJSON + } + return nil +} + +// 修改DNS套餐顺序 +type SortNSPlansRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlanIds []int64 `protobuf:"varint,1,rep,packed,name=nsPlanIds,proto3" json:"nsPlanIds,omitempty"` +} + +func (x *SortNSPlansRequest) Reset() { + *x = SortNSPlansRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SortNSPlansRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SortNSPlansRequest) ProtoMessage() {} + +func (x *SortNSPlansRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SortNSPlansRequest.ProtoReflect.Descriptor instead. +func (*SortNSPlansRequest) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{3} +} + +func (x *SortNSPlansRequest) GetNsPlanIds() []int64 { + if x != nil { + return x.NsPlanIds + } + return nil +} + +// 查找所有DNS套餐 +type FindAllNSPlansRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllNSPlansRequest) Reset() { + *x = FindAllNSPlansRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllNSPlansRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllNSPlansRequest) ProtoMessage() {} + +func (x *FindAllNSPlansRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllNSPlansRequest.ProtoReflect.Descriptor instead. +func (*FindAllNSPlansRequest) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{4} +} + +type FindAllNSPlansResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlans []*NSPlan `protobuf:"bytes,1,rep,name=nsPlans,proto3" json:"nsPlans,omitempty"` +} + +func (x *FindAllNSPlansResponse) Reset() { + *x = FindAllNSPlansResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllNSPlansResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllNSPlansResponse) ProtoMessage() {} + +func (x *FindAllNSPlansResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllNSPlansResponse.ProtoReflect.Descriptor instead. +func (*FindAllNSPlansResponse) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{5} +} + +func (x *FindAllNSPlansResponse) GetNsPlans() []*NSPlan { + if x != nil { + return x.NsPlans + } + return nil +} + +// 查找所有可用DNS套餐 +type FindAllEnabledNSPlansRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllEnabledNSPlansRequest) Reset() { + *x = FindAllEnabledNSPlansRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllEnabledNSPlansRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllEnabledNSPlansRequest) ProtoMessage() {} + +func (x *FindAllEnabledNSPlansRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllEnabledNSPlansRequest.ProtoReflect.Descriptor instead. +func (*FindAllEnabledNSPlansRequest) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{6} +} + +type FindAllEnabledNSPlansResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlans []*NSPlan `protobuf:"bytes,1,rep,name=nsPlans,proto3" json:"nsPlans,omitempty"` +} + +func (x *FindAllEnabledNSPlansResponse) Reset() { + *x = FindAllEnabledNSPlansResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllEnabledNSPlansResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllEnabledNSPlansResponse) ProtoMessage() {} + +func (x *FindAllEnabledNSPlansResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllEnabledNSPlansResponse.ProtoReflect.Descriptor instead. +func (*FindAllEnabledNSPlansResponse) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{7} +} + +func (x *FindAllEnabledNSPlansResponse) GetNsPlans() []*NSPlan { + if x != nil { + return x.NsPlans + } + return nil +} + +// 查找DNS套餐 +type FindNSPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlanId int64 `protobuf:"varint,1,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` +} + +func (x *FindNSPlanRequest) Reset() { + *x = FindNSPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSPlanRequest) ProtoMessage() {} + +func (x *FindNSPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindNSPlanRequest.ProtoReflect.Descriptor instead. +func (*FindNSPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{8} +} + +func (x *FindNSPlanRequest) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +type FindNSPlanResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlan *NSPlan `protobuf:"bytes,1,opt,name=nsPlan,proto3" json:"nsPlan,omitempty"` +} + +func (x *FindNSPlanResponse) Reset() { + *x = FindNSPlanResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSPlanResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSPlanResponse) ProtoMessage() {} + +func (x *FindNSPlanResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindNSPlanResponse.ProtoReflect.Descriptor instead. +func (*FindNSPlanResponse) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{9} +} + +func (x *FindNSPlanResponse) GetNsPlan() *NSPlan { + if x != nil { + return x.NsPlan + } + return nil +} + +// 删除DNS套餐 +type DeleteNSPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsPlanId int64 `protobuf:"varint,1,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` +} + +func (x *DeleteNSPlanRequest) Reset() { + *x = DeleteNSPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_plan_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteNSPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteNSPlanRequest) ProtoMessage() {} + +func (x *DeleteNSPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_plan_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteNSPlanRequest.ProtoReflect.Descriptor instead. +func (*DeleteNSPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_plan_proto_rawDescGZIP(), []int{10} +} + +func (x *DeleteNSPlanRequest) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +var File_service_ns_plan_proto protoreflect.FileDescriptor + +var file_service_ns_plan_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x73, 0x5f, 0x70, 0x6c, 0x61, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1a, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x73, 0x5f, 0x70, 0x6c, 0x61, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, + 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x50, + 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, + 0x0a, 0x0c, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x79, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, 0x79, 0x65, 0x61, 0x72, 0x6c, 0x79, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, + 0x4f, 0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x32, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0xbf, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, + 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x6d, 0x6f, 0x6e, 0x74, + 0x68, 0x6c, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x79, 0x65, 0x61, 0x72, + 0x6c, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, 0x79, + 0x65, 0x61, 0x72, 0x6c, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x32, 0x0a, 0x12, 0x53, 0x6f, + 0x72, 0x74, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x17, + 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3e, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x24, 0x0a, 0x07, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x07, + 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x07, 0x6e, 0x73, 0x50, 0x6c, + 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4e, + 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x07, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x22, 0x2f, + 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, + 0x38, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x50, 0x6c, 0x61, + 0x6e, 0x52, 0x06, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x31, 0x0a, 0x13, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x32, 0xe4, 0x03, 0x0a, + 0x0d, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, + 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x17, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, + 0x6e, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x50, + 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x10, 0x73, 0x6f, + 0x72, 0x74, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x16, + 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 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, 0x47, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x50, 0x6c, + 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, + 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, + 0x0a, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x15, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x50, 0x6c, + 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_service_ns_plan_proto_rawDescOnce sync.Once + file_service_ns_plan_proto_rawDescData = file_service_ns_plan_proto_rawDesc +) + +func file_service_ns_plan_proto_rawDescGZIP() []byte { + file_service_ns_plan_proto_rawDescOnce.Do(func() { + file_service_ns_plan_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ns_plan_proto_rawDescData) + }) + return file_service_ns_plan_proto_rawDescData +} + +var file_service_ns_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_service_ns_plan_proto_goTypes = []interface{}{ + (*CreateNSPlanRequest)(nil), // 0: pb.CreateNSPlanRequest + (*CreateNSPlanResponse)(nil), // 1: pb.CreateNSPlanResponse + (*UpdateNSPlanRequest)(nil), // 2: pb.UpdateNSPlanRequest + (*SortNSPlansRequest)(nil), // 3: pb.SortNSPlansRequest + (*FindAllNSPlansRequest)(nil), // 4: pb.FindAllNSPlansRequest + (*FindAllNSPlansResponse)(nil), // 5: pb.FindAllNSPlansResponse + (*FindAllEnabledNSPlansRequest)(nil), // 6: pb.FindAllEnabledNSPlansRequest + (*FindAllEnabledNSPlansResponse)(nil), // 7: pb.FindAllEnabledNSPlansResponse + (*FindNSPlanRequest)(nil), // 8: pb.FindNSPlanRequest + (*FindNSPlanResponse)(nil), // 9: pb.FindNSPlanResponse + (*DeleteNSPlanRequest)(nil), // 10: pb.DeleteNSPlanRequest + (*NSPlan)(nil), // 11: pb.NSPlan + (*RPCSuccess)(nil), // 12: pb.RPCSuccess +} +var file_service_ns_plan_proto_depIdxs = []int32{ + 11, // 0: pb.FindAllNSPlansResponse.nsPlans:type_name -> pb.NSPlan + 11, // 1: pb.FindAllEnabledNSPlansResponse.nsPlans:type_name -> pb.NSPlan + 11, // 2: pb.FindNSPlanResponse.nsPlan:type_name -> pb.NSPlan + 0, // 3: pb.NSPlanService.createNSPlan:input_type -> pb.CreateNSPlanRequest + 2, // 4: pb.NSPlanService.updateNSPlan:input_type -> pb.UpdateNSPlanRequest + 3, // 5: pb.NSPlanService.sortNSPlanOrders:input_type -> pb.SortNSPlansRequest + 4, // 6: pb.NSPlanService.findAllNSPlans:input_type -> pb.FindAllNSPlansRequest + 6, // 7: pb.NSPlanService.findAllEnabledNSPlans:input_type -> pb.FindAllEnabledNSPlansRequest + 8, // 8: pb.NSPlanService.findNSPlan:input_type -> pb.FindNSPlanRequest + 10, // 9: pb.NSPlanService.deleteNSPlan:input_type -> pb.DeleteNSPlanRequest + 1, // 10: pb.NSPlanService.createNSPlan:output_type -> pb.CreateNSPlanResponse + 12, // 11: pb.NSPlanService.updateNSPlan:output_type -> pb.RPCSuccess + 12, // 12: pb.NSPlanService.sortNSPlanOrders:output_type -> pb.RPCSuccess + 5, // 13: pb.NSPlanService.findAllNSPlans:output_type -> pb.FindAllNSPlansResponse + 7, // 14: pb.NSPlanService.findAllEnabledNSPlans:output_type -> pb.FindAllEnabledNSPlansResponse + 9, // 15: pb.NSPlanService.findNSPlan:output_type -> pb.FindNSPlanResponse + 12, // 16: pb.NSPlanService.deleteNSPlan:output_type -> pb.RPCSuccess + 10, // [10:17] is the sub-list for method output_type + 3, // [3:10] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_service_ns_plan_proto_init() } +func file_service_ns_plan_proto_init() { + if File_service_ns_plan_proto != nil { + return + } + file_models_model_ns_plan_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ns_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNSPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNSPlanResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateNSPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SortNSPlansRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllNSPlansRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllNSPlansResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllEnabledNSPlansRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllEnabledNSPlansResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSPlanResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_plan_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteNSPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_ns_plan_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ns_plan_proto_goTypes, + DependencyIndexes: file_service_ns_plan_proto_depIdxs, + MessageInfos: file_service_ns_plan_proto_msgTypes, + }.Build() + File_service_ns_plan_proto = out.File + file_service_ns_plan_proto_rawDesc = nil + file_service_ns_plan_proto_goTypes = nil + file_service_ns_plan_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// NSPlanServiceClient is the client API for NSPlanService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type NSPlanServiceClient interface { + // 创建DNS套餐 + CreateNSPlan(ctx context.Context, in *CreateNSPlanRequest, opts ...grpc.CallOption) (*CreateNSPlanResponse, error) + // 修改DNS套餐 + UpdateNSPlan(ctx context.Context, in *UpdateNSPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 修改DNS套餐顺序 + SortNSPlanOrders(ctx context.Context, in *SortNSPlansRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 查找所有DNS套餐 + FindAllNSPlans(ctx context.Context, in *FindAllNSPlansRequest, opts ...grpc.CallOption) (*FindAllNSPlansResponse, error) + // 查找所有可用DNS套餐 + FindAllEnabledNSPlans(ctx context.Context, in *FindAllEnabledNSPlansRequest, opts ...grpc.CallOption) (*FindAllEnabledNSPlansResponse, error) + // 查找DNS套餐 + FindNSPlan(ctx context.Context, in *FindNSPlanRequest, opts ...grpc.CallOption) (*FindNSPlanResponse, error) + // 删除DNS套餐 + DeleteNSPlan(ctx context.Context, in *DeleteNSPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) +} + +type nSPlanServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNSPlanServiceClient(cc grpc.ClientConnInterface) NSPlanServiceClient { + return &nSPlanServiceClient{cc} +} + +func (c *nSPlanServiceClient) CreateNSPlan(ctx context.Context, in *CreateNSPlanRequest, opts ...grpc.CallOption) (*CreateNSPlanResponse, error) { + out := new(CreateNSPlanResponse) + err := c.cc.Invoke(ctx, "/pb.NSPlanService/createNSPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSPlanServiceClient) UpdateNSPlan(ctx context.Context, in *UpdateNSPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NSPlanService/updateNSPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSPlanServiceClient) SortNSPlanOrders(ctx context.Context, in *SortNSPlansRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NSPlanService/sortNSPlanOrders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSPlanServiceClient) FindAllNSPlans(ctx context.Context, in *FindAllNSPlansRequest, opts ...grpc.CallOption) (*FindAllNSPlansResponse, error) { + out := new(FindAllNSPlansResponse) + err := c.cc.Invoke(ctx, "/pb.NSPlanService/findAllNSPlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSPlanServiceClient) FindAllEnabledNSPlans(ctx context.Context, in *FindAllEnabledNSPlansRequest, opts ...grpc.CallOption) (*FindAllEnabledNSPlansResponse, error) { + out := new(FindAllEnabledNSPlansResponse) + err := c.cc.Invoke(ctx, "/pb.NSPlanService/findAllEnabledNSPlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSPlanServiceClient) FindNSPlan(ctx context.Context, in *FindNSPlanRequest, opts ...grpc.CallOption) (*FindNSPlanResponse, error) { + out := new(FindNSPlanResponse) + err := c.cc.Invoke(ctx, "/pb.NSPlanService/findNSPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSPlanServiceClient) DeleteNSPlan(ctx context.Context, in *DeleteNSPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NSPlanService/deleteNSPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NSPlanServiceServer is the server API for NSPlanService service. +type NSPlanServiceServer interface { + // 创建DNS套餐 + CreateNSPlan(context.Context, *CreateNSPlanRequest) (*CreateNSPlanResponse, error) + // 修改DNS套餐 + UpdateNSPlan(context.Context, *UpdateNSPlanRequest) (*RPCSuccess, error) + // 修改DNS套餐顺序 + SortNSPlanOrders(context.Context, *SortNSPlansRequest) (*RPCSuccess, error) + // 查找所有DNS套餐 + FindAllNSPlans(context.Context, *FindAllNSPlansRequest) (*FindAllNSPlansResponse, error) + // 查找所有可用DNS套餐 + FindAllEnabledNSPlans(context.Context, *FindAllEnabledNSPlansRequest) (*FindAllEnabledNSPlansResponse, error) + // 查找DNS套餐 + FindNSPlan(context.Context, *FindNSPlanRequest) (*FindNSPlanResponse, error) + // 删除DNS套餐 + DeleteNSPlan(context.Context, *DeleteNSPlanRequest) (*RPCSuccess, error) +} + +// UnimplementedNSPlanServiceServer can be embedded to have forward compatible implementations. +type UnimplementedNSPlanServiceServer struct { +} + +func (*UnimplementedNSPlanServiceServer) CreateNSPlan(context.Context, *CreateNSPlanRequest) (*CreateNSPlanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNSPlan not implemented") +} +func (*UnimplementedNSPlanServiceServer) UpdateNSPlan(context.Context, *UpdateNSPlanRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNSPlan not implemented") +} +func (*UnimplementedNSPlanServiceServer) SortNSPlanOrders(context.Context, *SortNSPlansRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method SortNSPlanOrders not implemented") +} +func (*UnimplementedNSPlanServiceServer) FindAllNSPlans(context.Context, *FindAllNSPlansRequest) (*FindAllNSPlansResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllNSPlans not implemented") +} +func (*UnimplementedNSPlanServiceServer) FindAllEnabledNSPlans(context.Context, *FindAllEnabledNSPlansRequest) (*FindAllEnabledNSPlansResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNSPlans not implemented") +} +func (*UnimplementedNSPlanServiceServer) FindNSPlan(context.Context, *FindNSPlanRequest) (*FindNSPlanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSPlan not implemented") +} +func (*UnimplementedNSPlanServiceServer) DeleteNSPlan(context.Context, *DeleteNSPlanRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNSPlan not implemented") +} + +func RegisterNSPlanServiceServer(s *grpc.Server, srv NSPlanServiceServer) { + s.RegisterService(&_NSPlanService_serviceDesc, srv) +} + +func _NSPlanService_CreateNSPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNSPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSPlanServiceServer).CreateNSPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSPlanService/CreateNSPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSPlanServiceServer).CreateNSPlan(ctx, req.(*CreateNSPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSPlanService_UpdateNSPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateNSPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSPlanServiceServer).UpdateNSPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSPlanService/UpdateNSPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSPlanServiceServer).UpdateNSPlan(ctx, req.(*UpdateNSPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSPlanService_SortNSPlanOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SortNSPlansRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSPlanServiceServer).SortNSPlanOrders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSPlanService/SortNSPlanOrders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSPlanServiceServer).SortNSPlanOrders(ctx, req.(*SortNSPlansRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSPlanService_FindAllNSPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllNSPlansRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSPlanServiceServer).FindAllNSPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSPlanService/FindAllNSPlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSPlanServiceServer).FindAllNSPlans(ctx, req.(*FindAllNSPlansRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSPlanService_FindAllEnabledNSPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllEnabledNSPlansRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSPlanServiceServer).FindAllEnabledNSPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSPlanService/FindAllEnabledNSPlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSPlanServiceServer).FindAllEnabledNSPlans(ctx, req.(*FindAllEnabledNSPlansRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSPlanService_FindNSPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSPlanServiceServer).FindNSPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSPlanService/FindNSPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSPlanServiceServer).FindNSPlan(ctx, req.(*FindNSPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSPlanService_DeleteNSPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNSPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSPlanServiceServer).DeleteNSPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSPlanService/DeleteNSPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSPlanServiceServer).DeleteNSPlan(ctx, req.(*DeleteNSPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NSPlanService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.NSPlanService", + HandlerType: (*NSPlanServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createNSPlan", + Handler: _NSPlanService_CreateNSPlan_Handler, + }, + { + MethodName: "updateNSPlan", + Handler: _NSPlanService_UpdateNSPlan_Handler, + }, + { + MethodName: "sortNSPlanOrders", + Handler: _NSPlanService_SortNSPlanOrders_Handler, + }, + { + MethodName: "findAllNSPlans", + Handler: _NSPlanService_FindAllNSPlans_Handler, + }, + { + MethodName: "findAllEnabledNSPlans", + Handler: _NSPlanService_FindAllEnabledNSPlans_Handler, + }, + { + MethodName: "findNSPlan", + Handler: _NSPlanService_FindNSPlan_Handler, + }, + { + MethodName: "deleteNSPlan", + Handler: _NSPlanService_DeleteNSPlan_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ns_plan.proto", +} diff --git a/pkg/rpc/pb/service_ns_record.pb.go b/pkg/rpc/pb/service_ns_record.pb.go index 12a7691..7565be4 100644 --- a/pkg/rpc/pb/service_ns_record.pb.go +++ b/pkg/rpc/pb/service_ns_record.pb.go @@ -1009,6 +1009,70 @@ func (x *CountAllNSRecordsRequest) GetKeyword() string { return "" } +// 查询相同记录名的记录数 +type CountAllNSRecordsWithNameRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *CountAllNSRecordsWithNameRequest) Reset() { + *x = CountAllNSRecordsWithNameRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_record_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountAllNSRecordsWithNameRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountAllNSRecordsWithNameRequest) ProtoMessage() {} + +func (x *CountAllNSRecordsWithNameRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_record_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountAllNSRecordsWithNameRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSRecordsWithNameRequest) Descriptor() ([]byte, []int) { + return file_service_ns_record_proto_rawDescGZIP(), []int{12} +} + +func (x *CountAllNSRecordsWithNameRequest) GetNsDomainId() int64 { + if x != nil { + return x.NsDomainId + } + return 0 +} + +func (x *CountAllNSRecordsWithNameRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CountAllNSRecordsWithNameRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + // 读取单页记录 type ListNSRecordsRequest struct { state protoimpl.MessageState @@ -1034,7 +1098,7 @@ type ListNSRecordsRequest struct { func (x *ListNSRecordsRequest) Reset() { *x = ListNSRecordsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[12] + mi := &file_service_ns_record_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1047,7 +1111,7 @@ func (x *ListNSRecordsRequest) String() string { func (*ListNSRecordsRequest) ProtoMessage() {} func (x *ListNSRecordsRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[12] + mi := &file_service_ns_record_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1060,7 +1124,7 @@ func (x *ListNSRecordsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNSRecordsRequest.ProtoReflect.Descriptor instead. func (*ListNSRecordsRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{12} + return file_service_ns_record_proto_rawDescGZIP(), []int{13} } func (x *ListNSRecordsRequest) GetNsDomainId() int64 { @@ -1166,7 +1230,7 @@ type ListNSRecordsResponse struct { func (x *ListNSRecordsResponse) Reset() { *x = ListNSRecordsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[13] + mi := &file_service_ns_record_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1179,7 +1243,7 @@ func (x *ListNSRecordsResponse) String() string { func (*ListNSRecordsResponse) ProtoMessage() {} func (x *ListNSRecordsResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[13] + mi := &file_service_ns_record_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1192,7 +1256,7 @@ func (x *ListNSRecordsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNSRecordsResponse.ProtoReflect.Descriptor instead. func (*ListNSRecordsResponse) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{13} + return file_service_ns_record_proto_rawDescGZIP(), []int{14} } func (x *ListNSRecordsResponse) GetNsRecords() []*NSRecord { @@ -1214,7 +1278,7 @@ type FindNSRecordRequest struct { func (x *FindNSRecordRequest) Reset() { *x = FindNSRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[14] + mi := &file_service_ns_record_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1227,7 +1291,7 @@ func (x *FindNSRecordRequest) String() string { func (*FindNSRecordRequest) ProtoMessage() {} func (x *FindNSRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[14] + mi := &file_service_ns_record_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1240,7 +1304,7 @@ func (x *FindNSRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FindNSRecordRequest.ProtoReflect.Descriptor instead. func (*FindNSRecordRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{14} + return file_service_ns_record_proto_rawDescGZIP(), []int{15} } func (x *FindNSRecordRequest) GetNsRecordId() int64 { @@ -1261,7 +1325,7 @@ type FindNSRecordResponse struct { func (x *FindNSRecordResponse) Reset() { *x = FindNSRecordResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[15] + mi := &file_service_ns_record_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1274,7 +1338,7 @@ func (x *FindNSRecordResponse) String() string { func (*FindNSRecordResponse) ProtoMessage() {} func (x *FindNSRecordResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[15] + mi := &file_service_ns_record_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1287,7 +1351,7 @@ func (x *FindNSRecordResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FindNSRecordResponse.ProtoReflect.Descriptor instead. func (*FindNSRecordResponse) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{15} + return file_service_ns_record_proto_rawDescGZIP(), []int{16} } func (x *FindNSRecordResponse) GetNsRecord() *NSRecord { @@ -1311,7 +1375,7 @@ type FindNSRecordWithNameAndTypeRequest struct { func (x *FindNSRecordWithNameAndTypeRequest) Reset() { *x = FindNSRecordWithNameAndTypeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[16] + mi := &file_service_ns_record_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1324,7 +1388,7 @@ func (x *FindNSRecordWithNameAndTypeRequest) String() string { func (*FindNSRecordWithNameAndTypeRequest) ProtoMessage() {} func (x *FindNSRecordWithNameAndTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[16] + mi := &file_service_ns_record_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1337,7 +1401,7 @@ func (x *FindNSRecordWithNameAndTypeRequest) ProtoReflect() protoreflect.Message // Deprecated: Use FindNSRecordWithNameAndTypeRequest.ProtoReflect.Descriptor instead. func (*FindNSRecordWithNameAndTypeRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{16} + return file_service_ns_record_proto_rawDescGZIP(), []int{17} } func (x *FindNSRecordWithNameAndTypeRequest) GetNsDomainId() int64 { @@ -1372,7 +1436,7 @@ type FindNSRecordWithNameAndTypeResponse struct { func (x *FindNSRecordWithNameAndTypeResponse) Reset() { *x = FindNSRecordWithNameAndTypeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[17] + mi := &file_service_ns_record_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1385,7 +1449,7 @@ func (x *FindNSRecordWithNameAndTypeResponse) String() string { func (*FindNSRecordWithNameAndTypeResponse) ProtoMessage() {} func (x *FindNSRecordWithNameAndTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[17] + mi := &file_service_ns_record_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1398,7 +1462,7 @@ func (x *FindNSRecordWithNameAndTypeResponse) ProtoReflect() protoreflect.Messag // Deprecated: Use FindNSRecordWithNameAndTypeResponse.ProtoReflect.Descriptor instead. func (*FindNSRecordWithNameAndTypeResponse) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{17} + return file_service_ns_record_proto_rawDescGZIP(), []int{18} } func (x *FindNSRecordWithNameAndTypeResponse) GetNsRecord() *NSRecord { @@ -1421,7 +1485,7 @@ type ListNSRecordsAfterVersionRequest struct { func (x *ListNSRecordsAfterVersionRequest) Reset() { *x = ListNSRecordsAfterVersionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[18] + mi := &file_service_ns_record_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1434,7 +1498,7 @@ func (x *ListNSRecordsAfterVersionRequest) String() string { func (*ListNSRecordsAfterVersionRequest) ProtoMessage() {} func (x *ListNSRecordsAfterVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[18] + mi := &file_service_ns_record_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1447,7 +1511,7 @@ func (x *ListNSRecordsAfterVersionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNSRecordsAfterVersionRequest.ProtoReflect.Descriptor instead. func (*ListNSRecordsAfterVersionRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{18} + return file_service_ns_record_proto_rawDescGZIP(), []int{19} } func (x *ListNSRecordsAfterVersionRequest) GetVersion() int64 { @@ -1475,7 +1539,7 @@ type ListNSRecordsAfterVersionResponse struct { func (x *ListNSRecordsAfterVersionResponse) Reset() { *x = ListNSRecordsAfterVersionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[19] + mi := &file_service_ns_record_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1488,7 +1552,7 @@ func (x *ListNSRecordsAfterVersionResponse) String() string { func (*ListNSRecordsAfterVersionResponse) ProtoMessage() {} func (x *ListNSRecordsAfterVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[19] + mi := &file_service_ns_record_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1501,7 +1565,7 @@ func (x *ListNSRecordsAfterVersionResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListNSRecordsAfterVersionResponse.ProtoReflect.Descriptor instead. func (*ListNSRecordsAfterVersionResponse) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{19} + return file_service_ns_record_proto_rawDescGZIP(), []int{20} } func (x *ListNSRecordsAfterVersionResponse) GetNsRecords() []*NSRecord { @@ -1526,7 +1590,7 @@ type ImportNSRecordsRequest_Record struct { func (x *ImportNSRecordsRequest_Record) Reset() { *x = ImportNSRecordsRequest_Record{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[20] + mi := &file_service_ns_record_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1539,7 +1603,7 @@ func (x *ImportNSRecordsRequest_Record) String() string { func (*ImportNSRecordsRequest_Record) ProtoMessage() {} func (x *ImportNSRecordsRequest_Record) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[20] + mi := &file_service_ns_record_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1748,138 +1812,150 @@ var file_service_ns_record_proto_rawDesc = []byte{ 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xf2, 0x02, 0x0a, - 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x73, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, - 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, - 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x61, 0x6d, 0x65, 0x41, - 0x73, 0x63, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x61, 0x6d, 0x65, 0x41, 0x73, - 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x44, 0x65, 0x73, 0x63, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x44, 0x65, 0x73, 0x63, 0x12, 0x18, 0x0a, - 0x07, 0x74, 0x79, 0x70, 0x65, 0x41, 0x73, 0x63, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x74, 0x79, 0x70, 0x65, 0x41, 0x73, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x44, - 0x65, 0x73, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x44, - 0x65, 0x73, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x74, - 0x74, 0x6c, 0x44, 0x65, 0x73, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x74, - 0x6c, 0x44, 0x65, 0x73, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x22, 0x43, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, - 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x35, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, - 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x22, 0x40, 0x0a, - 0x14, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, - 0x6c, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, - 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, - 0x23, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, - 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x50, - 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, - 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x22, 0x4f, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x32, 0x87, 0x09, 0x0a, 0x0f, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, - 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, - 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, - 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x1e, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, - 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, - 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x5b, 0x0a, 0x1e, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, - 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x5b, 0x0a, 0x1e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x63, 0x0a, 0x22, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x49, 0x73, 0x4f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x49, 0x73, 0x4f, 0x6e, - 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x3d, 0x0a, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, - 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x49, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 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, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, - 0x47, 0x0a, 0x11, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, - 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, - 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, - 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x17, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x6a, 0x0a, 0x20, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xf2, 0x02, 0x0a, 0x14, 0x4c, 0x69, 0x73, + 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, + 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x6e, 0x73, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x73, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, + 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x61, 0x6d, 0x65, 0x41, 0x73, 0x63, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x61, 0x6d, 0x65, 0x41, 0x73, 0x63, 0x12, 0x1a, 0x0a, + 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x44, 0x65, 0x73, 0x63, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x44, 0x65, 0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x79, 0x70, + 0x65, 0x41, 0x73, 0x63, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, + 0x41, 0x73, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x44, 0x65, 0x73, 0x63, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x44, 0x65, 0x73, 0x63, 0x12, + 0x16, 0x0a, 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x06, 0x74, 0x74, 0x6c, 0x41, 0x73, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x74, 0x6c, 0x44, 0x65, + 0x73, 0x63, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x74, 0x74, 0x6c, 0x44, 0x65, 0x73, + 0x63, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, + 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x22, 0x35, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, + 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, - 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x68, 0x0a, 0x19, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, + 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x6c, 0x0a, 0x22, 0x46, + 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, + 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4f, 0x0a, 0x23, 0x46, 0x69, 0x6e, + 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, + 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x50, 0x0a, 0x20, 0x4c, 0x69, + 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4f, 0x0a, 0x21, + 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, + 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x32, 0xe0, 0x09, + 0x0a, 0x0f, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x1e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x5b, 0x0a, 0x1e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x5b, 0x0a, 0x1e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x63, 0x0a, + 0x22, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x49, 0x73, 0x4f, 0x6e, 0x57, 0x69, 0x74, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x12, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x49, 0x73, 0x4f, 0x6e, 0x57, 0x69, 0x74, 0x68, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 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, 0x3d, 0x0a, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x53, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, + 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 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, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, + 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, + 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x11, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, + 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x19, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, + 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, + 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, + 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x57, + 0x69, 0x74, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, - 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, + 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 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 ( @@ -1894,7 +1970,7 @@ func file_service_ns_record_proto_rawDescGZIP() []byte { return file_service_ns_record_proto_rawDescData } -var file_service_ns_record_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_service_ns_record_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_service_ns_record_proto_goTypes = []interface{}{ (*CreateNSRecordRequest)(nil), // 0: pb.CreateNSRecordRequest (*CreateNSRecordResponse)(nil), // 1: pb.CreateNSRecordResponse @@ -1908,25 +1984,26 @@ var file_service_ns_record_proto_goTypes = []interface{}{ (*UpdateNSRecordRequest)(nil), // 9: pb.UpdateNSRecordRequest (*DeleteNSRecordRequest)(nil), // 10: pb.DeleteNSRecordRequest (*CountAllNSRecordsRequest)(nil), // 11: pb.CountAllNSRecordsRequest - (*ListNSRecordsRequest)(nil), // 12: pb.ListNSRecordsRequest - (*ListNSRecordsResponse)(nil), // 13: pb.ListNSRecordsResponse - (*FindNSRecordRequest)(nil), // 14: pb.FindNSRecordRequest - (*FindNSRecordResponse)(nil), // 15: pb.FindNSRecordResponse - (*FindNSRecordWithNameAndTypeRequest)(nil), // 16: pb.FindNSRecordWithNameAndTypeRequest - (*FindNSRecordWithNameAndTypeResponse)(nil), // 17: pb.FindNSRecordWithNameAndTypeResponse - (*ListNSRecordsAfterVersionRequest)(nil), // 18: pb.ListNSRecordsAfterVersionRequest - (*ListNSRecordsAfterVersionResponse)(nil), // 19: pb.ListNSRecordsAfterVersionResponse - (*ImportNSRecordsRequest_Record)(nil), // 20: pb.ImportNSRecordsRequest.Record - (*NSRecord)(nil), // 21: pb.NSRecord - (*RPCSuccess)(nil), // 22: pb.RPCSuccess - (*RPCCountResponse)(nil), // 23: pb.RPCCountResponse + (*CountAllNSRecordsWithNameRequest)(nil), // 12: pb.CountAllNSRecordsWithNameRequest + (*ListNSRecordsRequest)(nil), // 13: pb.ListNSRecordsRequest + (*ListNSRecordsResponse)(nil), // 14: pb.ListNSRecordsResponse + (*FindNSRecordRequest)(nil), // 15: pb.FindNSRecordRequest + (*FindNSRecordResponse)(nil), // 16: pb.FindNSRecordResponse + (*FindNSRecordWithNameAndTypeRequest)(nil), // 17: pb.FindNSRecordWithNameAndTypeRequest + (*FindNSRecordWithNameAndTypeResponse)(nil), // 18: pb.FindNSRecordWithNameAndTypeResponse + (*ListNSRecordsAfterVersionRequest)(nil), // 19: pb.ListNSRecordsAfterVersionRequest + (*ListNSRecordsAfterVersionResponse)(nil), // 20: pb.ListNSRecordsAfterVersionResponse + (*ImportNSRecordsRequest_Record)(nil), // 21: pb.ImportNSRecordsRequest.Record + (*NSRecord)(nil), // 22: pb.NSRecord + (*RPCSuccess)(nil), // 23: pb.RPCSuccess + (*RPCCountResponse)(nil), // 24: pb.RPCCountResponse } var file_service_ns_record_proto_depIdxs = []int32{ - 20, // 0: pb.ImportNSRecordsRequest.nsRecords:type_name -> pb.ImportNSRecordsRequest.Record - 21, // 1: pb.ListNSRecordsResponse.nsRecords:type_name -> pb.NSRecord - 21, // 2: pb.FindNSRecordResponse.nsRecord:type_name -> pb.NSRecord - 21, // 3: pb.FindNSRecordWithNameAndTypeResponse.nsRecord:type_name -> pb.NSRecord - 21, // 4: pb.ListNSRecordsAfterVersionResponse.nsRecords:type_name -> pb.NSRecord + 21, // 0: pb.ImportNSRecordsRequest.nsRecords:type_name -> pb.ImportNSRecordsRequest.Record + 22, // 1: pb.ListNSRecordsResponse.nsRecords:type_name -> pb.NSRecord + 22, // 2: pb.FindNSRecordResponse.nsRecord:type_name -> pb.NSRecord + 22, // 3: pb.FindNSRecordWithNameAndTypeResponse.nsRecord:type_name -> pb.NSRecord + 22, // 4: pb.ListNSRecordsAfterVersionResponse.nsRecords:type_name -> pb.NSRecord 0, // 5: pb.NSRecordService.createNSRecord:input_type -> pb.CreateNSRecordRequest 2, // 6: pb.NSRecordService.createNSRecords:input_type -> pb.CreateNSRecordsRequest 4, // 7: pb.NSRecordService.createNSRecordsWithDomainNames:input_type -> pb.CreateNSRecordsWithDomainNamesRequest @@ -1937,26 +2014,28 @@ var file_service_ns_record_proto_depIdxs = []int32{ 9, // 12: pb.NSRecordService.updateNSRecord:input_type -> pb.UpdateNSRecordRequest 10, // 13: pb.NSRecordService.deleteNSRecord:input_type -> pb.DeleteNSRecordRequest 11, // 14: pb.NSRecordService.countAllNSRecords:input_type -> pb.CountAllNSRecordsRequest - 12, // 15: pb.NSRecordService.listNSRecords:input_type -> pb.ListNSRecordsRequest - 14, // 16: pb.NSRecordService.findNSRecord:input_type -> pb.FindNSRecordRequest - 16, // 17: pb.NSRecordService.findNSRecordWithNameAndType:input_type -> pb.FindNSRecordWithNameAndTypeRequest - 18, // 18: pb.NSRecordService.listNSRecordsAfterVersion:input_type -> pb.ListNSRecordsAfterVersionRequest - 1, // 19: pb.NSRecordService.createNSRecord:output_type -> pb.CreateNSRecordResponse - 3, // 20: pb.NSRecordService.createNSRecords:output_type -> pb.CreateNSRecordsResponse - 22, // 21: pb.NSRecordService.createNSRecordsWithDomainNames:output_type -> pb.RPCSuccess - 22, // 22: pb.NSRecordService.updateNSRecordsWithDomainNames:output_type -> pb.RPCSuccess - 22, // 23: pb.NSRecordService.deleteNSRecordsWithDomainNames:output_type -> pb.RPCSuccess - 22, // 24: pb.NSRecordService.updateNSRecordsIsOnWithDomainNames:output_type -> pb.RPCSuccess - 22, // 25: pb.NSRecordService.importNSRecords:output_type -> pb.RPCSuccess - 22, // 26: pb.NSRecordService.updateNSRecord:output_type -> pb.RPCSuccess - 22, // 27: pb.NSRecordService.deleteNSRecord:output_type -> pb.RPCSuccess - 23, // 28: pb.NSRecordService.countAllNSRecords:output_type -> pb.RPCCountResponse - 13, // 29: pb.NSRecordService.listNSRecords:output_type -> pb.ListNSRecordsResponse - 15, // 30: pb.NSRecordService.findNSRecord:output_type -> pb.FindNSRecordResponse - 17, // 31: pb.NSRecordService.findNSRecordWithNameAndType:output_type -> pb.FindNSRecordWithNameAndTypeResponse - 19, // 32: pb.NSRecordService.listNSRecordsAfterVersion:output_type -> pb.ListNSRecordsAfterVersionResponse - 19, // [19:33] is the sub-list for method output_type - 5, // [5:19] is the sub-list for method input_type + 12, // 15: pb.NSRecordService.countAllNSRecordsWithName:input_type -> pb.CountAllNSRecordsWithNameRequest + 13, // 16: pb.NSRecordService.listNSRecords:input_type -> pb.ListNSRecordsRequest + 15, // 17: pb.NSRecordService.findNSRecord:input_type -> pb.FindNSRecordRequest + 17, // 18: pb.NSRecordService.findNSRecordWithNameAndType:input_type -> pb.FindNSRecordWithNameAndTypeRequest + 19, // 19: pb.NSRecordService.listNSRecordsAfterVersion:input_type -> pb.ListNSRecordsAfterVersionRequest + 1, // 20: pb.NSRecordService.createNSRecord:output_type -> pb.CreateNSRecordResponse + 3, // 21: pb.NSRecordService.createNSRecords:output_type -> pb.CreateNSRecordsResponse + 23, // 22: pb.NSRecordService.createNSRecordsWithDomainNames:output_type -> pb.RPCSuccess + 23, // 23: pb.NSRecordService.updateNSRecordsWithDomainNames:output_type -> pb.RPCSuccess + 23, // 24: pb.NSRecordService.deleteNSRecordsWithDomainNames:output_type -> pb.RPCSuccess + 23, // 25: pb.NSRecordService.updateNSRecordsIsOnWithDomainNames:output_type -> pb.RPCSuccess + 23, // 26: pb.NSRecordService.importNSRecords:output_type -> pb.RPCSuccess + 23, // 27: pb.NSRecordService.updateNSRecord:output_type -> pb.RPCSuccess + 23, // 28: pb.NSRecordService.deleteNSRecord:output_type -> pb.RPCSuccess + 24, // 29: pb.NSRecordService.countAllNSRecords:output_type -> pb.RPCCountResponse + 24, // 30: pb.NSRecordService.countAllNSRecordsWithName:output_type -> pb.RPCCountResponse + 14, // 31: pb.NSRecordService.listNSRecords:output_type -> pb.ListNSRecordsResponse + 16, // 32: pb.NSRecordService.findNSRecord:output_type -> pb.FindNSRecordResponse + 18, // 33: pb.NSRecordService.findNSRecordWithNameAndType:output_type -> pb.FindNSRecordWithNameAndTypeResponse + 20, // 34: pb.NSRecordService.listNSRecordsAfterVersion:output_type -> pb.ListNSRecordsAfterVersionResponse + 20, // [20:35] is the sub-list for method output_type + 5, // [5:20] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name @@ -2115,7 +2194,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSRecordsRequest); i { + switch v := v.(*CountAllNSRecordsWithNameRequest); i { case 0: return &v.state case 1: @@ -2127,7 +2206,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSRecordsResponse); i { + switch v := v.(*ListNSRecordsRequest); i { case 0: return &v.state case 1: @@ -2139,7 +2218,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindNSRecordRequest); i { + switch v := v.(*ListNSRecordsResponse); i { case 0: return &v.state case 1: @@ -2151,7 +2230,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindNSRecordResponse); i { + switch v := v.(*FindNSRecordRequest); i { case 0: return &v.state case 1: @@ -2163,7 +2242,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindNSRecordWithNameAndTypeRequest); i { + switch v := v.(*FindNSRecordResponse); i { case 0: return &v.state case 1: @@ -2175,7 +2254,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindNSRecordWithNameAndTypeResponse); i { + switch v := v.(*FindNSRecordWithNameAndTypeRequest); i { case 0: return &v.state case 1: @@ -2187,7 +2266,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSRecordsAfterVersionRequest); i { + switch v := v.(*FindNSRecordWithNameAndTypeResponse); i { case 0: return &v.state case 1: @@ -2199,7 +2278,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSRecordsAfterVersionResponse); i { + switch v := v.(*ListNSRecordsAfterVersionRequest); i { case 0: return &v.state case 1: @@ -2211,6 +2290,18 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNSRecordsAfterVersionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_record_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ImportNSRecordsRequest_Record); i { case 0: return &v.state @@ -2229,7 +2320,7 @@ func file_service_ns_record_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_ns_record_proto_rawDesc, NumEnums: 0, - NumMessages: 21, + NumMessages: 22, NumExtensions: 0, NumServices: 1, }, @@ -2275,6 +2366,8 @@ type NSRecordServiceClient interface { DeleteNSRecord(ctx context.Context, in *DeleteNSRecordRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 计算记录数量 CountAllNSRecords(ctx context.Context, in *CountAllNSRecordsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 查询相同记录名的记录数 + CountAllNSRecordsWithName(ctx context.Context, in *CountAllNSRecordsWithNameRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 读取单页记录 ListNSRecords(ctx context.Context, in *ListNSRecordsRequest, opts ...grpc.CallOption) (*ListNSRecordsResponse, error) // 查询单个记录信息 @@ -2383,6 +2476,15 @@ func (c *nSRecordServiceClient) CountAllNSRecords(ctx context.Context, in *Count return out, nil } +func (c *nSRecordServiceClient) CountAllNSRecordsWithName(ctx context.Context, in *CountAllNSRecordsWithNameRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.NSRecordService/countAllNSRecordsWithName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *nSRecordServiceClient) ListNSRecords(ctx context.Context, in *ListNSRecordsRequest, opts ...grpc.CallOption) (*ListNSRecordsResponse, error) { out := new(ListNSRecordsResponse) err := c.cc.Invoke(ctx, "/pb.NSRecordService/listNSRecords", in, out, opts...) @@ -2441,6 +2543,8 @@ type NSRecordServiceServer interface { DeleteNSRecord(context.Context, *DeleteNSRecordRequest) (*RPCSuccess, error) // 计算记录数量 CountAllNSRecords(context.Context, *CountAllNSRecordsRequest) (*RPCCountResponse, error) + // 查询相同记录名的记录数 + CountAllNSRecordsWithName(context.Context, *CountAllNSRecordsWithNameRequest) (*RPCCountResponse, error) // 读取单页记录 ListNSRecords(context.Context, *ListNSRecordsRequest) (*ListNSRecordsResponse, error) // 查询单个记录信息 @@ -2485,6 +2589,9 @@ func (*UnimplementedNSRecordServiceServer) DeleteNSRecord(context.Context, *Dele func (*UnimplementedNSRecordServiceServer) CountAllNSRecords(context.Context, *CountAllNSRecordsRequest) (*RPCCountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CountAllNSRecords not implemented") } +func (*UnimplementedNSRecordServiceServer) CountAllNSRecordsWithName(context.Context, *CountAllNSRecordsWithNameRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSRecordsWithName not implemented") +} func (*UnimplementedNSRecordServiceServer) ListNSRecords(context.Context, *ListNSRecordsRequest) (*ListNSRecordsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListNSRecords not implemented") } @@ -2682,6 +2789,24 @@ func _NSRecordService_CountAllNSRecords_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } +func _NSRecordService_CountAllNSRecordsWithName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSRecordsWithNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSRecordServiceServer).CountAllNSRecordsWithName(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSRecordService/CountAllNSRecordsWithName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSRecordServiceServer).CountAllNSRecordsWithName(ctx, req.(*CountAllNSRecordsWithNameRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _NSRecordService_ListNSRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListNSRecordsRequest) if err := dec(in); err != nil { @@ -2798,6 +2923,10 @@ var _NSRecordService_serviceDesc = grpc.ServiceDesc{ MethodName: "countAllNSRecords", Handler: _NSRecordService_CountAllNSRecords_Handler, }, + { + MethodName: "countAllNSRecordsWithName", + Handler: _NSRecordService_CountAllNSRecordsWithName_Handler, + }, { MethodName: "listNSRecords", Handler: _NSRecordService_ListNSRecords_Handler, diff --git a/pkg/rpc/pb/service_ns_route.pb.go b/pkg/rpc/pb/service_ns_route.pb.go index 516170d..3c87f5b 100644 --- a/pkg/rpc/pb/service_ns_route.pb.go +++ b/pkg/rpc/pb/service_ns_route.pb.go @@ -363,6 +363,70 @@ func (x *FindNSRouteResponse) GetNsRoute() *NSRoute { return nil } +// 查询自定义线路数量 +type CountAllNSRoutesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsClusterId int64 `protobuf:"varint,1,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` + NsDomainId int64 `protobuf:"varint,2,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` + UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` +} + +func (x *CountAllNSRoutesRequest) Reset() { + *x = CountAllNSRoutesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_route_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountAllNSRoutesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountAllNSRoutesRequest) ProtoMessage() {} + +func (x *CountAllNSRoutesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_route_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountAllNSRoutesRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSRoutesRequest) Descriptor() ([]byte, []int) { + return file_service_ns_route_proto_rawDescGZIP(), []int{6} +} + +func (x *CountAllNSRoutesRequest) GetNsClusterId() int64 { + if x != nil { + return x.NsClusterId + } + return 0 +} + +func (x *CountAllNSRoutesRequest) GetNsDomainId() int64 { + if x != nil { + return x.NsDomainId + } + return 0 +} + +func (x *CountAllNSRoutesRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + // 读取所有自定义线路 type FindAllNSRoutesRequest struct { state protoimpl.MessageState @@ -377,7 +441,7 @@ type FindAllNSRoutesRequest struct { func (x *FindAllNSRoutesRequest) Reset() { *x = FindAllNSRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[6] + mi := &file_service_ns_route_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -390,7 +454,7 @@ func (x *FindAllNSRoutesRequest) String() string { func (*FindAllNSRoutesRequest) ProtoMessage() {} func (x *FindAllNSRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[6] + mi := &file_service_ns_route_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -403,7 +467,7 @@ func (x *FindAllNSRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FindAllNSRoutesRequest.ProtoReflect.Descriptor instead. func (*FindAllNSRoutesRequest) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{6} + return file_service_ns_route_proto_rawDescGZIP(), []int{7} } func (x *FindAllNSRoutesRequest) GetNsClusterId() int64 { @@ -438,7 +502,7 @@ type FindAllNSRoutesResponse struct { func (x *FindAllNSRoutesResponse) Reset() { *x = FindAllNSRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[7] + mi := &file_service_ns_route_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -451,7 +515,7 @@ func (x *FindAllNSRoutesResponse) String() string { func (*FindAllNSRoutesResponse) ProtoMessage() {} func (x *FindAllNSRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[7] + mi := &file_service_ns_route_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -464,7 +528,7 @@ func (x *FindAllNSRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FindAllNSRoutesResponse.ProtoReflect.Descriptor instead. func (*FindAllNSRoutesResponse) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{7} + return file_service_ns_route_proto_rawDescGZIP(), []int{8} } func (x *FindAllNSRoutesResponse) GetNsRoutes() []*NSRoute { @@ -486,7 +550,7 @@ type UpdateNSRouteOrdersRequest struct { func (x *UpdateNSRouteOrdersRequest) Reset() { *x = UpdateNSRouteOrdersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[8] + mi := &file_service_ns_route_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -499,7 +563,7 @@ func (x *UpdateNSRouteOrdersRequest) String() string { func (*UpdateNSRouteOrdersRequest) ProtoMessage() {} func (x *UpdateNSRouteOrdersRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[8] + mi := &file_service_ns_route_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -512,7 +576,7 @@ func (x *UpdateNSRouteOrdersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNSRouteOrdersRequest.ProtoReflect.Descriptor instead. func (*UpdateNSRouteOrdersRequest) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{8} + return file_service_ns_route_proto_rawDescGZIP(), []int{9} } func (x *UpdateNSRouteOrdersRequest) GetNsRouteIds() []int64 { @@ -535,7 +599,7 @@ type ListNSRoutesAfterVersionRequest struct { func (x *ListNSRoutesAfterVersionRequest) Reset() { *x = ListNSRoutesAfterVersionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[9] + mi := &file_service_ns_route_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -548,7 +612,7 @@ func (x *ListNSRoutesAfterVersionRequest) String() string { func (*ListNSRoutesAfterVersionRequest) ProtoMessage() {} func (x *ListNSRoutesAfterVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[9] + mi := &file_service_ns_route_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -561,7 +625,7 @@ func (x *ListNSRoutesAfterVersionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNSRoutesAfterVersionRequest.ProtoReflect.Descriptor instead. func (*ListNSRoutesAfterVersionRequest) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{9} + return file_service_ns_route_proto_rawDescGZIP(), []int{10} } func (x *ListNSRoutesAfterVersionRequest) GetVersion() int64 { @@ -589,7 +653,7 @@ type ListNSRoutesAfterVersionResponse struct { func (x *ListNSRoutesAfterVersionResponse) Reset() { *x = ListNSRoutesAfterVersionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[10] + mi := &file_service_ns_route_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -602,7 +666,7 @@ func (x *ListNSRoutesAfterVersionResponse) String() string { func (*ListNSRoutesAfterVersionResponse) ProtoMessage() {} func (x *ListNSRoutesAfterVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[10] + mi := &file_service_ns_route_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -615,7 +679,7 @@ func (x *ListNSRoutesAfterVersionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNSRoutesAfterVersionResponse.ProtoReflect.Descriptor instead. func (*ListNSRoutesAfterVersionResponse) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{10} + return file_service_ns_route_proto_rawDescGZIP(), []int{11} } func (x *ListNSRoutesAfterVersionResponse) GetNsRoutes() []*NSRoute { @@ -635,7 +699,7 @@ type FindAllDefaultWorldRegionRoutesRequest struct { func (x *FindAllDefaultWorldRegionRoutesRequest) Reset() { *x = FindAllDefaultWorldRegionRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[11] + mi := &file_service_ns_route_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -648,7 +712,7 @@ func (x *FindAllDefaultWorldRegionRoutesRequest) String() string { func (*FindAllDefaultWorldRegionRoutesRequest) ProtoMessage() {} func (x *FindAllDefaultWorldRegionRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[11] + mi := &file_service_ns_route_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -661,7 +725,7 @@ func (x *FindAllDefaultWorldRegionRoutesRequest) ProtoReflect() protoreflect.Mes // Deprecated: Use FindAllDefaultWorldRegionRoutesRequest.ProtoReflect.Descriptor instead. func (*FindAllDefaultWorldRegionRoutesRequest) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{11} + return file_service_ns_route_proto_rawDescGZIP(), []int{12} } type FindAllDefaultWorldRegionRoutesResponse struct { @@ -675,7 +739,7 @@ type FindAllDefaultWorldRegionRoutesResponse struct { func (x *FindAllDefaultWorldRegionRoutesResponse) Reset() { *x = FindAllDefaultWorldRegionRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[12] + mi := &file_service_ns_route_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -688,7 +752,7 @@ func (x *FindAllDefaultWorldRegionRoutesResponse) String() string { func (*FindAllDefaultWorldRegionRoutesResponse) ProtoMessage() {} func (x *FindAllDefaultWorldRegionRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[12] + mi := &file_service_ns_route_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -701,7 +765,7 @@ func (x *FindAllDefaultWorldRegionRoutesResponse) ProtoReflect() protoreflect.Me // Deprecated: Use FindAllDefaultWorldRegionRoutesResponse.ProtoReflect.Descriptor instead. func (*FindAllDefaultWorldRegionRoutesResponse) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{12} + return file_service_ns_route_proto_rawDescGZIP(), []int{13} } func (x *FindAllDefaultWorldRegionRoutesResponse) GetNsRoutes() []*NSRoute { @@ -721,7 +785,7 @@ type FindAllDefaultChinaProvinceRoutesRequest struct { func (x *FindAllDefaultChinaProvinceRoutesRequest) Reset() { *x = FindAllDefaultChinaProvinceRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[13] + mi := &file_service_ns_route_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -734,7 +798,7 @@ func (x *FindAllDefaultChinaProvinceRoutesRequest) String() string { func (*FindAllDefaultChinaProvinceRoutesRequest) ProtoMessage() {} func (x *FindAllDefaultChinaProvinceRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[13] + mi := &file_service_ns_route_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -747,7 +811,7 @@ func (x *FindAllDefaultChinaProvinceRoutesRequest) ProtoReflect() protoreflect.M // Deprecated: Use FindAllDefaultChinaProvinceRoutesRequest.ProtoReflect.Descriptor instead. func (*FindAllDefaultChinaProvinceRoutesRequest) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{13} + return file_service_ns_route_proto_rawDescGZIP(), []int{14} } type FindAllDefaultChinaProvinceRoutesResponse struct { @@ -761,7 +825,7 @@ type FindAllDefaultChinaProvinceRoutesResponse struct { func (x *FindAllDefaultChinaProvinceRoutesResponse) Reset() { *x = FindAllDefaultChinaProvinceRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[14] + mi := &file_service_ns_route_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -774,7 +838,7 @@ func (x *FindAllDefaultChinaProvinceRoutesResponse) String() string { func (*FindAllDefaultChinaProvinceRoutesResponse) ProtoMessage() {} func (x *FindAllDefaultChinaProvinceRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[14] + mi := &file_service_ns_route_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -787,7 +851,7 @@ func (x *FindAllDefaultChinaProvinceRoutesResponse) ProtoReflect() protoreflect. // Deprecated: Use FindAllDefaultChinaProvinceRoutesResponse.ProtoReflect.Descriptor instead. func (*FindAllDefaultChinaProvinceRoutesResponse) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{14} + return file_service_ns_route_proto_rawDescGZIP(), []int{15} } func (x *FindAllDefaultChinaProvinceRoutesResponse) GetNsRoutes() []*NSRoute { @@ -807,7 +871,7 @@ type FindAllDefaultISPRoutesRequest struct { func (x *FindAllDefaultISPRoutesRequest) Reset() { *x = FindAllDefaultISPRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[15] + mi := &file_service_ns_route_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -820,7 +884,7 @@ func (x *FindAllDefaultISPRoutesRequest) String() string { func (*FindAllDefaultISPRoutesRequest) ProtoMessage() {} func (x *FindAllDefaultISPRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[15] + mi := &file_service_ns_route_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -833,7 +897,7 @@ func (x *FindAllDefaultISPRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use FindAllDefaultISPRoutesRequest.ProtoReflect.Descriptor instead. func (*FindAllDefaultISPRoutesRequest) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{15} + return file_service_ns_route_proto_rawDescGZIP(), []int{16} } type FindAllDefaultISPRoutesResponse struct { @@ -847,7 +911,7 @@ type FindAllDefaultISPRoutesResponse struct { func (x *FindAllDefaultISPRoutesResponse) Reset() { *x = FindAllDefaultISPRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_route_proto_msgTypes[16] + mi := &file_service_ns_route_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -860,7 +924,7 @@ func (x *FindAllDefaultISPRoutesResponse) String() string { func (*FindAllDefaultISPRoutesResponse) ProtoMessage() {} func (x *FindAllDefaultISPRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_route_proto_msgTypes[16] + mi := &file_service_ns_route_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -873,7 +937,7 @@ func (x *FindAllDefaultISPRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use FindAllDefaultISPRoutesResponse.ProtoReflect.Descriptor instead. func (*FindAllDefaultISPRoutesResponse) Descriptor() ([]byte, []int) { - return file_service_ns_route_proto_rawDescGZIP(), []int{16} + return file_service_ns_route_proto_rawDescGZIP(), []int{17} } func (x *FindAllDefaultISPRoutesResponse) GetNsRoutes() []*NSRoute { @@ -922,111 +986,122 @@ var file_service_ns_route_proto_rawDesc = []byte{ 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x07, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x22, 0x72, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, - 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, - 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, - 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, - 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x1a, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, - 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, 0x4f, 0x0a, 0x1f, 0x4c, 0x69, - 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x20, 0x4c, - 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, - 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x28, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, - 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x52, 0x0a, 0x27, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, - 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x28, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x68, 0x69, 0x6e, 0x61, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x54, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x43, 0x68, 0x69, 0x6e, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, - 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, - 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x20, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, - 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x53, 0x50, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4a, 0x0a, 0x1f, 0x46, 0x69, - 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x53, 0x50, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, - 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x32, 0xe9, 0x06, 0x0a, 0x0e, 0x4e, 0x53, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x39, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, + 0x6f, 0x75, 0x74, 0x65, 0x22, 0x73, 0x0a, 0x17, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, + 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x72, 0x0a, 0x16, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x42, 0x0a, + 0x17, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, + 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, + 0x73, 0x22, 0x3c, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, + 0x4f, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, + 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x22, 0x4b, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x28, 0x0a, + 0x26, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, + 0x6f, 0x72, 0x6c, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x27, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x28, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x68, 0x69, + 0x6e, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x68, 0x69, 0x6e, 0x61, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x20, 0x0a, + 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, + 0x53, 0x50, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x4a, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x49, 0x53, 0x50, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x32, 0xb0, 0x07, 0x0a, 0x0e, + 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, + 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, + 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, + 0x39, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, + 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, - 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x64, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, - 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, - 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 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, 0x65, 0x0a, 0x18, 0x6c, 0x69, 0x73, 0x74, - 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x7a, 0x0a, 0x1f, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x66, 0x69, + 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1b, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, + 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 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, 0x65, 0x0a, 0x18, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, + 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x1f, 0x66, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, + 0x6c, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, - 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x68, - 0x69, 0x6e, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x73, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x68, 0x69, 0x6e, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, - 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x43, 0x68, 0x69, 0x6e, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, - 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x49, 0x53, 0x50, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, - 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x53, 0x50, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x57, 0x6f, + 0x72, 0x6c, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x68, 0x69, 0x6e, 0x61, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x49, 0x53, 0x50, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 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, 0x43, 0x68, 0x69, 0x6e, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, + 0x68, 0x69, 0x6e, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x66, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x53, 0x50, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x53, 0x50, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x53, 0x50, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 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 ( @@ -1041,7 +1116,7 @@ func file_service_ns_route_proto_rawDescGZIP() []byte { return file_service_ns_route_proto_rawDescData } -var file_service_ns_route_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_service_ns_route_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_service_ns_route_proto_goTypes = []interface{}{ (*CreateNSRouteRequest)(nil), // 0: pb.CreateNSRouteRequest (*CreateNSRouteResponse)(nil), // 1: pb.CreateNSRouteResponse @@ -1049,49 +1124,53 @@ var file_service_ns_route_proto_goTypes = []interface{}{ (*DeleteNSRouteRequest)(nil), // 3: pb.DeleteNSRouteRequest (*FindNSRouteRequest)(nil), // 4: pb.FindNSRouteRequest (*FindNSRouteResponse)(nil), // 5: pb.FindNSRouteResponse - (*FindAllNSRoutesRequest)(nil), // 6: pb.FindAllNSRoutesRequest - (*FindAllNSRoutesResponse)(nil), // 7: pb.FindAllNSRoutesResponse - (*UpdateNSRouteOrdersRequest)(nil), // 8: pb.UpdateNSRouteOrdersRequest - (*ListNSRoutesAfterVersionRequest)(nil), // 9: pb.ListNSRoutesAfterVersionRequest - (*ListNSRoutesAfterVersionResponse)(nil), // 10: pb.ListNSRoutesAfterVersionResponse - (*FindAllDefaultWorldRegionRoutesRequest)(nil), // 11: pb.FindAllDefaultWorldRegionRoutesRequest - (*FindAllDefaultWorldRegionRoutesResponse)(nil), // 12: pb.FindAllDefaultWorldRegionRoutesResponse - (*FindAllDefaultChinaProvinceRoutesRequest)(nil), // 13: pb.FindAllDefaultChinaProvinceRoutesRequest - (*FindAllDefaultChinaProvinceRoutesResponse)(nil), // 14: pb.FindAllDefaultChinaProvinceRoutesResponse - (*FindAllDefaultISPRoutesRequest)(nil), // 15: pb.FindAllDefaultISPRoutesRequest - (*FindAllDefaultISPRoutesResponse)(nil), // 16: pb.FindAllDefaultISPRoutesResponse - (*NSRoute)(nil), // 17: pb.NSRoute - (*RPCSuccess)(nil), // 18: pb.RPCSuccess + (*CountAllNSRoutesRequest)(nil), // 6: pb.CountAllNSRoutesRequest + (*FindAllNSRoutesRequest)(nil), // 7: pb.FindAllNSRoutesRequest + (*FindAllNSRoutesResponse)(nil), // 8: pb.FindAllNSRoutesResponse + (*UpdateNSRouteOrdersRequest)(nil), // 9: pb.UpdateNSRouteOrdersRequest + (*ListNSRoutesAfterVersionRequest)(nil), // 10: pb.ListNSRoutesAfterVersionRequest + (*ListNSRoutesAfterVersionResponse)(nil), // 11: pb.ListNSRoutesAfterVersionResponse + (*FindAllDefaultWorldRegionRoutesRequest)(nil), // 12: pb.FindAllDefaultWorldRegionRoutesRequest + (*FindAllDefaultWorldRegionRoutesResponse)(nil), // 13: pb.FindAllDefaultWorldRegionRoutesResponse + (*FindAllDefaultChinaProvinceRoutesRequest)(nil), // 14: pb.FindAllDefaultChinaProvinceRoutesRequest + (*FindAllDefaultChinaProvinceRoutesResponse)(nil), // 15: pb.FindAllDefaultChinaProvinceRoutesResponse + (*FindAllDefaultISPRoutesRequest)(nil), // 16: pb.FindAllDefaultISPRoutesRequest + (*FindAllDefaultISPRoutesResponse)(nil), // 17: pb.FindAllDefaultISPRoutesResponse + (*NSRoute)(nil), // 18: pb.NSRoute + (*RPCSuccess)(nil), // 19: pb.RPCSuccess + (*RPCCountResponse)(nil), // 20: pb.RPCCountResponse } var file_service_ns_route_proto_depIdxs = []int32{ - 17, // 0: pb.FindNSRouteResponse.nsRoute:type_name -> pb.NSRoute - 17, // 1: pb.FindAllNSRoutesResponse.nsRoutes:type_name -> pb.NSRoute - 17, // 2: pb.ListNSRoutesAfterVersionResponse.nsRoutes:type_name -> pb.NSRoute - 17, // 3: pb.FindAllDefaultWorldRegionRoutesResponse.nsRoutes:type_name -> pb.NSRoute - 17, // 4: pb.FindAllDefaultChinaProvinceRoutesResponse.nsRoutes:type_name -> pb.NSRoute - 17, // 5: pb.FindAllDefaultISPRoutesResponse.nsRoutes:type_name -> pb.NSRoute + 18, // 0: pb.FindNSRouteResponse.nsRoute:type_name -> pb.NSRoute + 18, // 1: pb.FindAllNSRoutesResponse.nsRoutes:type_name -> pb.NSRoute + 18, // 2: pb.ListNSRoutesAfterVersionResponse.nsRoutes:type_name -> pb.NSRoute + 18, // 3: pb.FindAllDefaultWorldRegionRoutesResponse.nsRoutes:type_name -> pb.NSRoute + 18, // 4: pb.FindAllDefaultChinaProvinceRoutesResponse.nsRoutes:type_name -> pb.NSRoute + 18, // 5: pb.FindAllDefaultISPRoutesResponse.nsRoutes:type_name -> pb.NSRoute 0, // 6: pb.NSRouteService.createNSRoute:input_type -> pb.CreateNSRouteRequest 2, // 7: pb.NSRouteService.updateNSRoute:input_type -> pb.UpdateNSRouteRequest 3, // 8: pb.NSRouteService.deleteNSRoute:input_type -> pb.DeleteNSRouteRequest 4, // 9: pb.NSRouteService.findNSRoute:input_type -> pb.FindNSRouteRequest - 6, // 10: pb.NSRouteService.findAllNSRoutes:input_type -> pb.FindAllNSRoutesRequest - 8, // 11: pb.NSRouteService.updateNSRouteOrders:input_type -> pb.UpdateNSRouteOrdersRequest - 9, // 12: pb.NSRouteService.listNSRoutesAfterVersion:input_type -> pb.ListNSRoutesAfterVersionRequest - 11, // 13: pb.NSRouteService.findAllDefaultWorldRegionRoutes:input_type -> pb.FindAllDefaultWorldRegionRoutesRequest - 13, // 14: pb.NSRouteService.findAllDefaultChinaProvinceRoutes:input_type -> pb.FindAllDefaultChinaProvinceRoutesRequest - 15, // 15: pb.NSRouteService.findAllDefaultISPRoutes:input_type -> pb.FindAllDefaultISPRoutesRequest - 1, // 16: pb.NSRouteService.createNSRoute:output_type -> pb.CreateNSRouteResponse - 18, // 17: pb.NSRouteService.updateNSRoute:output_type -> pb.RPCSuccess - 18, // 18: pb.NSRouteService.deleteNSRoute:output_type -> pb.RPCSuccess - 5, // 19: pb.NSRouteService.findNSRoute:output_type -> pb.FindNSRouteResponse - 7, // 20: pb.NSRouteService.findAllNSRoutes:output_type -> pb.FindAllNSRoutesResponse - 18, // 21: pb.NSRouteService.updateNSRouteOrders:output_type -> pb.RPCSuccess - 10, // 22: pb.NSRouteService.listNSRoutesAfterVersion:output_type -> pb.ListNSRoutesAfterVersionResponse - 12, // 23: pb.NSRouteService.findAllDefaultWorldRegionRoutes:output_type -> pb.FindAllDefaultWorldRegionRoutesResponse - 14, // 24: pb.NSRouteService.findAllDefaultChinaProvinceRoutes:output_type -> pb.FindAllDefaultChinaProvinceRoutesResponse - 16, // 25: pb.NSRouteService.findAllDefaultISPRoutes:output_type -> pb.FindAllDefaultISPRoutesResponse - 16, // [16:26] is the sub-list for method output_type - 6, // [6:16] is the sub-list for method input_type + 6, // 10: pb.NSRouteService.countAllNSRoutes:input_type -> pb.CountAllNSRoutesRequest + 7, // 11: pb.NSRouteService.findAllNSRoutes:input_type -> pb.FindAllNSRoutesRequest + 9, // 12: pb.NSRouteService.updateNSRouteOrders:input_type -> pb.UpdateNSRouteOrdersRequest + 10, // 13: pb.NSRouteService.listNSRoutesAfterVersion:input_type -> pb.ListNSRoutesAfterVersionRequest + 12, // 14: pb.NSRouteService.findAllDefaultWorldRegionRoutes:input_type -> pb.FindAllDefaultWorldRegionRoutesRequest + 14, // 15: pb.NSRouteService.findAllDefaultChinaProvinceRoutes:input_type -> pb.FindAllDefaultChinaProvinceRoutesRequest + 16, // 16: pb.NSRouteService.findAllDefaultISPRoutes:input_type -> pb.FindAllDefaultISPRoutesRequest + 1, // 17: pb.NSRouteService.createNSRoute:output_type -> pb.CreateNSRouteResponse + 19, // 18: pb.NSRouteService.updateNSRoute:output_type -> pb.RPCSuccess + 19, // 19: pb.NSRouteService.deleteNSRoute:output_type -> pb.RPCSuccess + 5, // 20: pb.NSRouteService.findNSRoute:output_type -> pb.FindNSRouteResponse + 20, // 21: pb.NSRouteService.countAllNSRoutes:output_type -> pb.RPCCountResponse + 8, // 22: pb.NSRouteService.findAllNSRoutes:output_type -> pb.FindAllNSRoutesResponse + 19, // 23: pb.NSRouteService.updateNSRouteOrders:output_type -> pb.RPCSuccess + 11, // 24: pb.NSRouteService.listNSRoutesAfterVersion:output_type -> pb.ListNSRoutesAfterVersionResponse + 13, // 25: pb.NSRouteService.findAllDefaultWorldRegionRoutes:output_type -> pb.FindAllDefaultWorldRegionRoutesResponse + 15, // 26: pb.NSRouteService.findAllDefaultChinaProvinceRoutes:output_type -> pb.FindAllDefaultChinaProvinceRoutesResponse + 17, // 27: pb.NSRouteService.findAllDefaultISPRoutes:output_type -> pb.FindAllDefaultISPRoutesResponse + 17, // [17:28] is the sub-list for method output_type + 6, // [6:17] is the sub-list for method input_type 6, // [6:6] is the sub-list for extension type_name 6, // [6:6] is the sub-list for extension extendee 0, // [0:6] is the sub-list for field type_name @@ -1178,7 +1257,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllNSRoutesRequest); i { + switch v := v.(*CountAllNSRoutesRequest); i { case 0: return &v.state case 1: @@ -1190,7 +1269,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllNSRoutesResponse); i { + switch v := v.(*FindAllNSRoutesRequest); i { case 0: return &v.state case 1: @@ -1202,7 +1281,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateNSRouteOrdersRequest); i { + switch v := v.(*FindAllNSRoutesResponse); i { case 0: return &v.state case 1: @@ -1214,7 +1293,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSRoutesAfterVersionRequest); i { + switch v := v.(*UpdateNSRouteOrdersRequest); i { case 0: return &v.state case 1: @@ -1226,7 +1305,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSRoutesAfterVersionResponse); i { + switch v := v.(*ListNSRoutesAfterVersionRequest); i { case 0: return &v.state case 1: @@ -1238,7 +1317,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllDefaultWorldRegionRoutesRequest); i { + switch v := v.(*ListNSRoutesAfterVersionResponse); i { case 0: return &v.state case 1: @@ -1250,7 +1329,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllDefaultWorldRegionRoutesResponse); i { + switch v := v.(*FindAllDefaultWorldRegionRoutesRequest); i { case 0: return &v.state case 1: @@ -1262,7 +1341,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllDefaultChinaProvinceRoutesRequest); i { + switch v := v.(*FindAllDefaultWorldRegionRoutesResponse); i { case 0: return &v.state case 1: @@ -1274,7 +1353,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllDefaultChinaProvinceRoutesResponse); i { + switch v := v.(*FindAllDefaultChinaProvinceRoutesRequest); i { case 0: return &v.state case 1: @@ -1286,7 +1365,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllDefaultISPRoutesRequest); i { + switch v := v.(*FindAllDefaultChinaProvinceRoutesResponse); i { case 0: return &v.state case 1: @@ -1298,6 +1377,18 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllDefaultISPRoutesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_route_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindAllDefaultISPRoutesResponse); i { case 0: return &v.state @@ -1316,7 +1407,7 @@ func file_service_ns_route_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_ns_route_proto_rawDesc, NumEnums: 0, - NumMessages: 17, + NumMessages: 18, NumExtensions: 0, NumServices: 1, }, @@ -1350,6 +1441,8 @@ type NSRouteServiceClient interface { DeleteNSRoute(ctx context.Context, in *DeleteNSRouteRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 获取单个自定义路线信息 FindNSRoute(ctx context.Context, in *FindNSRouteRequest, opts ...grpc.CallOption) (*FindNSRouteResponse, error) + // 查询自定义线路数量 + CountAllNSRoutes(ctx context.Context, in *CountAllNSRoutesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 读取所有自定义线路 FindAllNSRoutes(ctx context.Context, in *FindAllNSRoutesRequest, opts ...grpc.CallOption) (*FindAllNSRoutesResponse, error) // 设置自定义线路排序 @@ -1408,6 +1501,15 @@ func (c *nSRouteServiceClient) FindNSRoute(ctx context.Context, in *FindNSRouteR return out, nil } +func (c *nSRouteServiceClient) CountAllNSRoutes(ctx context.Context, in *CountAllNSRoutesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.NSRouteService/countAllNSRoutes", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *nSRouteServiceClient) FindAllNSRoutes(ctx context.Context, in *FindAllNSRoutesRequest, opts ...grpc.CallOption) (*FindAllNSRoutesResponse, error) { out := new(FindAllNSRoutesResponse) err := c.cc.Invoke(ctx, "/pb.NSRouteService/findAllNSRoutes", in, out, opts...) @@ -1472,6 +1574,8 @@ type NSRouteServiceServer interface { DeleteNSRoute(context.Context, *DeleteNSRouteRequest) (*RPCSuccess, error) // 获取单个自定义路线信息 FindNSRoute(context.Context, *FindNSRouteRequest) (*FindNSRouteResponse, error) + // 查询自定义线路数量 + CountAllNSRoutes(context.Context, *CountAllNSRoutesRequest) (*RPCCountResponse, error) // 读取所有自定义线路 FindAllNSRoutes(context.Context, *FindAllNSRoutesRequest) (*FindAllNSRoutesResponse, error) // 设置自定义线路排序 @@ -1502,6 +1606,9 @@ func (*UnimplementedNSRouteServiceServer) DeleteNSRoute(context.Context, *Delete func (*UnimplementedNSRouteServiceServer) FindNSRoute(context.Context, *FindNSRouteRequest) (*FindNSRouteResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindNSRoute not implemented") } +func (*UnimplementedNSRouteServiceServer) CountAllNSRoutes(context.Context, *CountAllNSRoutesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSRoutes not implemented") +} func (*UnimplementedNSRouteServiceServer) FindAllNSRoutes(context.Context, *FindAllNSRoutesRequest) (*FindAllNSRoutesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAllNSRoutes not implemented") } @@ -1597,6 +1704,24 @@ func _NSRouteService_FindNSRoute_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _NSRouteService_CountAllNSRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSRouteServiceServer).CountAllNSRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSRouteService/CountAllNSRoutes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSRouteServiceServer).CountAllNSRoutes(ctx, req.(*CountAllNSRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _NSRouteService_FindAllNSRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindAllNSRoutesRequest) if err := dec(in); err != nil { @@ -1725,6 +1850,10 @@ var _NSRouteService_serviceDesc = grpc.ServiceDesc{ MethodName: "findNSRoute", Handler: _NSRouteService_FindNSRoute_Handler, }, + { + MethodName: "countAllNSRoutes", + Handler: _NSRouteService_CountAllNSRoutes_Handler, + }, { MethodName: "findAllNSRoutes", Handler: _NSRouteService_FindAllNSRoutes_Handler, diff --git a/pkg/rpc/pb/service_ns_user_plan.pb.go b/pkg/rpc/pb/service_ns_user_plan.pb.go new file mode 100644 index 0000000..09bf236 --- /dev/null +++ b/pkg/rpc/pb/service_ns_user_plan.pb.go @@ -0,0 +1,1177 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ns_user_plan.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建用户套餐 +type CreateNSUserPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + NsPlanId int64 `protobuf:"varint,2,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` + DayFrom string `protobuf:"bytes,3,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"` // YYYYMMDD + DayTo string `protobuf:"bytes,4,opt,name=dayTo,proto3" json:"dayTo,omitempty"` // YYYYMMDD + PeriodUnit string `protobuf:"bytes,5,opt,name=periodUnit,proto3" json:"periodUnit,omitempty"` // yearly|monthly +} + +func (x *CreateNSUserPlanRequest) Reset() { + *x = CreateNSUserPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSUserPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSUserPlanRequest) ProtoMessage() {} + +func (x *CreateNSUserPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateNSUserPlanRequest.ProtoReflect.Descriptor instead. +func (*CreateNSUserPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateNSUserPlanRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *CreateNSUserPlanRequest) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +func (x *CreateNSUserPlanRequest) GetDayFrom() string { + if x != nil { + return x.DayFrom + } + return "" +} + +func (x *CreateNSUserPlanRequest) GetDayTo() string { + if x != nil { + return x.DayTo + } + return "" +} + +func (x *CreateNSUserPlanRequest) GetPeriodUnit() string { + if x != nil { + return x.PeriodUnit + } + return "" +} + +type CreateNSUserPlanResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsUserPlanId int64 `protobuf:"varint,1,opt,name=nsUserPlanId,proto3" json:"nsUserPlanId,omitempty"` +} + +func (x *CreateNSUserPlanResponse) Reset() { + *x = CreateNSUserPlanResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSUserPlanResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSUserPlanResponse) ProtoMessage() {} + +func (x *CreateNSUserPlanResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateNSUserPlanResponse.ProtoReflect.Descriptor instead. +func (*CreateNSUserPlanResponse) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateNSUserPlanResponse) GetNsUserPlanId() int64 { + if x != nil { + return x.NsUserPlanId + } + return 0 +} + +// 修改用户套餐 +type UpdateNSUserPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsUserPlanId int64 `protobuf:"varint,1,opt,name=nsUserPlanId,proto3" json:"nsUserPlanId,omitempty"` + NsPlanId int64 `protobuf:"varint,2,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` + DayFrom string `protobuf:"bytes,3,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"` // YYYYMMDD + DayTo string `protobuf:"bytes,4,opt,name=dayTo,proto3" json:"dayTo,omitempty"` // YYYYMMDD + PeriodUnit string `protobuf:"bytes,5,opt,name=periodUnit,proto3" json:"periodUnit,omitempty"` // yearly|monthly +} + +func (x *UpdateNSUserPlanRequest) Reset() { + *x = UpdateNSUserPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateNSUserPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNSUserPlanRequest) ProtoMessage() {} + +func (x *UpdateNSUserPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateNSUserPlanRequest.ProtoReflect.Descriptor instead. +func (*UpdateNSUserPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateNSUserPlanRequest) GetNsUserPlanId() int64 { + if x != nil { + return x.NsUserPlanId + } + return 0 +} + +func (x *UpdateNSUserPlanRequest) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +func (x *UpdateNSUserPlanRequest) GetDayFrom() string { + if x != nil { + return x.DayFrom + } + return "" +} + +func (x *UpdateNSUserPlanRequest) GetDayTo() string { + if x != nil { + return x.DayTo + } + return "" +} + +func (x *UpdateNSUserPlanRequest) GetPeriodUnit() string { + if x != nil { + return x.PeriodUnit + } + return "" +} + +// 删除用户套餐 +type DeleteNSUserPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsUserPlanId int64 `protobuf:"varint,1,opt,name=nsUserPlanId,proto3" json:"nsUserPlanId,omitempty"` +} + +func (x *DeleteNSUserPlanRequest) Reset() { + *x = DeleteNSUserPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteNSUserPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteNSUserPlanRequest) ProtoMessage() {} + +func (x *DeleteNSUserPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteNSUserPlanRequest.ProtoReflect.Descriptor instead. +func (*DeleteNSUserPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{3} +} + +func (x *DeleteNSUserPlanRequest) GetNsUserPlanId() int64 { + if x != nil { + return x.NsUserPlanId + } + return 0 +} + +// 读取用户套餐 +type FindNSUserPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 和 nsUserPlanId 二选一 + NsUserPlanId int64 `protobuf:"varint,2,opt,name=nsUserPlanId,proto3" json:"nsUserPlanId,omitempty"` +} + +func (x *FindNSUserPlanRequest) Reset() { + *x = FindNSUserPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSUserPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSUserPlanRequest) ProtoMessage() {} + +func (x *FindNSUserPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindNSUserPlanRequest.ProtoReflect.Descriptor instead. +func (*FindNSUserPlanRequest) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{4} +} + +func (x *FindNSUserPlanRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *FindNSUserPlanRequest) GetNsUserPlanId() int64 { + if x != nil { + return x.NsUserPlanId + } + return 0 +} + +type FindNSUserPlanResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsUserPlan *NSUserPlan `protobuf:"bytes,1,opt,name=nsUserPlan,proto3" json:"nsUserPlan,omitempty"` +} + +func (x *FindNSUserPlanResponse) Reset() { + *x = FindNSUserPlanResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSUserPlanResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSUserPlanResponse) ProtoMessage() {} + +func (x *FindNSUserPlanResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindNSUserPlanResponse.ProtoReflect.Descriptor instead. +func (*FindNSUserPlanResponse) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{5} +} + +func (x *FindNSUserPlanResponse) GetNsUserPlan() *NSUserPlan { + if x != nil { + return x.NsUserPlan + } + return nil +} + +// 计算用户套餐数量 +type CountNSUserPlansRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + NsPlanId int64 `protobuf:"varint,2,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` + PeriodUnit string `protobuf:"bytes,3,opt,name=periodUnit,proto3" json:"periodUnit,omitempty"` + IsExpired bool `protobuf:"varint,4,opt,name=isExpired,proto3" json:"isExpired,omitempty"` + ExpireDays int32 `protobuf:"varint,5,opt,name=expireDays,proto3" json:"expireDays,omitempty"` +} + +func (x *CountNSUserPlansRequest) Reset() { + *x = CountNSUserPlansRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountNSUserPlansRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountNSUserPlansRequest) ProtoMessage() {} + +func (x *CountNSUserPlansRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountNSUserPlansRequest.ProtoReflect.Descriptor instead. +func (*CountNSUserPlansRequest) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{6} +} + +func (x *CountNSUserPlansRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *CountNSUserPlansRequest) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +func (x *CountNSUserPlansRequest) GetPeriodUnit() string { + if x != nil { + return x.PeriodUnit + } + return "" +} + +func (x *CountNSUserPlansRequest) GetIsExpired() bool { + if x != nil { + return x.IsExpired + } + return false +} + +func (x *CountNSUserPlansRequest) GetExpireDays() int32 { + if x != nil { + return x.ExpireDays + } + return 0 +} + +// 列出单页套餐 +type ListNSUserPlansRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + NsPlanId int64 `protobuf:"varint,2,opt,name=nsPlanId,proto3" json:"nsPlanId,omitempty"` + PeriodUnit string `protobuf:"bytes,3,opt,name=periodUnit,proto3" json:"periodUnit,omitempty"` + IsExpired bool `protobuf:"varint,4,opt,name=isExpired,proto3" json:"isExpired,omitempty"` + ExpireDays int32 `protobuf:"varint,5,opt,name=expireDays,proto3" json:"expireDays,omitempty"` + Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *ListNSUserPlansRequest) Reset() { + *x = ListNSUserPlansRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListNSUserPlansRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNSUserPlansRequest) ProtoMessage() {} + +func (x *ListNSUserPlansRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListNSUserPlansRequest.ProtoReflect.Descriptor instead. +func (*ListNSUserPlansRequest) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{7} +} + +func (x *ListNSUserPlansRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *ListNSUserPlansRequest) GetNsPlanId() int64 { + if x != nil { + return x.NsPlanId + } + return 0 +} + +func (x *ListNSUserPlansRequest) GetPeriodUnit() string { + if x != nil { + return x.PeriodUnit + } + return "" +} + +func (x *ListNSUserPlansRequest) GetIsExpired() bool { + if x != nil { + return x.IsExpired + } + return false +} + +func (x *ListNSUserPlansRequest) GetExpireDays() int32 { + if x != nil { + return x.ExpireDays + } + return 0 +} + +func (x *ListNSUserPlansRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ListNSUserPlansRequest) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ListNSUserPlansResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsUserPlans []*NSUserPlan `protobuf:"bytes,1,rep,name=nsUserPlans,proto3" json:"nsUserPlans,omitempty"` +} + +func (x *ListNSUserPlansResponse) Reset() { + *x = ListNSUserPlansResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_user_plan_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListNSUserPlansResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNSUserPlansResponse) ProtoMessage() {} + +func (x *ListNSUserPlansResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_user_plan_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListNSUserPlansResponse.ProtoReflect.Descriptor instead. +func (*ListNSUserPlansResponse) Descriptor() ([]byte, []int) { + return file_service_ns_user_plan_proto_rawDescGZIP(), []int{8} +} + +func (x *ListNSUserPlansResponse) GetNsUserPlans() []*NSUserPlan { + if x != nil { + return x.NsUserPlans + } + return nil +} + +var File_service_ns_user_plan_proto protoreflect.FileDescriptor + +var file_service_ns_user_plan_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x73, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, + 0x1a, 0x1f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, + 0x73, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, + 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x64, 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, + 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, + 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x22, 0x3e, 0x0a, 0x18, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x73, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, + 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0xa9, 0x01, 0x0a, + 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x73, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, + 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, + 0x6e, 0x73, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x61, 0x79, 0x46, + 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x79, 0x46, 0x72, + 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x69, + 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x22, 0x3d, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, + 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x73, 0x55, 0x73, 0x65, + 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x4e, + 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x73, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, + 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x16, + 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x73, 0x55, 0x73, 0x65, 0x72, + 0x50, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0a, 0x6e, 0x73, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0xab, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, + 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, + 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x55, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x69, + 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x44, 0x61, + 0x79, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x44, 0x61, 0x79, 0x73, 0x22, 0xd6, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x55, + 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, + 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x50, 0x6c, 0x61, + 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, + 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x44, 0x61, 0x79, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x44, 0x61, 0x79, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, + 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x6e, 0x73, 0x55, 0x73, + 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, + 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0b, 0x6e, + 0x73, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x32, 0xc0, 0x03, 0x0a, 0x11, 0x4e, + 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x4d, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, + 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x55, + 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3f, 0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x6c, 0x61, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x3f, 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, + 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x6c, 0x61, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x55, + 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, + 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1b, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, 0x50, + 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, + 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x55, 0x73, 0x65, 0x72, + 0x50, 0x6c, 0x61, 0x6e, 0x73, 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 ( + file_service_ns_user_plan_proto_rawDescOnce sync.Once + file_service_ns_user_plan_proto_rawDescData = file_service_ns_user_plan_proto_rawDesc +) + +func file_service_ns_user_plan_proto_rawDescGZIP() []byte { + file_service_ns_user_plan_proto_rawDescOnce.Do(func() { + file_service_ns_user_plan_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ns_user_plan_proto_rawDescData) + }) + return file_service_ns_user_plan_proto_rawDescData +} + +var file_service_ns_user_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_service_ns_user_plan_proto_goTypes = []interface{}{ + (*CreateNSUserPlanRequest)(nil), // 0: pb.CreateNSUserPlanRequest + (*CreateNSUserPlanResponse)(nil), // 1: pb.CreateNSUserPlanResponse + (*UpdateNSUserPlanRequest)(nil), // 2: pb.UpdateNSUserPlanRequest + (*DeleteNSUserPlanRequest)(nil), // 3: pb.DeleteNSUserPlanRequest + (*FindNSUserPlanRequest)(nil), // 4: pb.FindNSUserPlanRequest + (*FindNSUserPlanResponse)(nil), // 5: pb.FindNSUserPlanResponse + (*CountNSUserPlansRequest)(nil), // 6: pb.CountNSUserPlansRequest + (*ListNSUserPlansRequest)(nil), // 7: pb.ListNSUserPlansRequest + (*ListNSUserPlansResponse)(nil), // 8: pb.ListNSUserPlansResponse + (*NSUserPlan)(nil), // 9: pb.NSUserPlan + (*RPCSuccess)(nil), // 10: pb.RPCSuccess + (*RPCCountResponse)(nil), // 11: pb.RPCCountResponse +} +var file_service_ns_user_plan_proto_depIdxs = []int32{ + 9, // 0: pb.FindNSUserPlanResponse.nsUserPlan:type_name -> pb.NSUserPlan + 9, // 1: pb.ListNSUserPlansResponse.nsUserPlans:type_name -> pb.NSUserPlan + 0, // 2: pb.NSUserPlanService.createNSUserPlan:input_type -> pb.CreateNSUserPlanRequest + 2, // 3: pb.NSUserPlanService.updateNSUserPlan:input_type -> pb.UpdateNSUserPlanRequest + 3, // 4: pb.NSUserPlanService.deleteNSUserPlan:input_type -> pb.DeleteNSUserPlanRequest + 4, // 5: pb.NSUserPlanService.findNSUserPlan:input_type -> pb.FindNSUserPlanRequest + 6, // 6: pb.NSUserPlanService.countNSUserPlans:input_type -> pb.CountNSUserPlansRequest + 7, // 7: pb.NSUserPlanService.listNSUserPlans:input_type -> pb.ListNSUserPlansRequest + 1, // 8: pb.NSUserPlanService.createNSUserPlan:output_type -> pb.CreateNSUserPlanResponse + 10, // 9: pb.NSUserPlanService.updateNSUserPlan:output_type -> pb.RPCSuccess + 10, // 10: pb.NSUserPlanService.deleteNSUserPlan:output_type -> pb.RPCSuccess + 5, // 11: pb.NSUserPlanService.findNSUserPlan:output_type -> pb.FindNSUserPlanResponse + 11, // 12: pb.NSUserPlanService.countNSUserPlans:output_type -> pb.RPCCountResponse + 8, // 13: pb.NSUserPlanService.listNSUserPlans:output_type -> pb.ListNSUserPlansResponse + 8, // [8:14] is the sub-list for method output_type + 2, // [2:8] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_service_ns_user_plan_proto_init() } +func file_service_ns_user_plan_proto_init() { + if File_service_ns_user_plan_proto != nil { + return + } + file_models_model_ns_user_plan_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ns_user_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNSUserPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNSUserPlanResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateNSUserPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteNSUserPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSUserPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSUserPlanResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountNSUserPlansRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNSUserPlansRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_user_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNSUserPlansResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_ns_user_plan_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ns_user_plan_proto_goTypes, + DependencyIndexes: file_service_ns_user_plan_proto_depIdxs, + MessageInfos: file_service_ns_user_plan_proto_msgTypes, + }.Build() + File_service_ns_user_plan_proto = out.File + file_service_ns_user_plan_proto_rawDesc = nil + file_service_ns_user_plan_proto_goTypes = nil + file_service_ns_user_plan_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// NSUserPlanServiceClient is the client API for NSUserPlanService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type NSUserPlanServiceClient interface { + // 创建用户套餐 + CreateNSUserPlan(ctx context.Context, in *CreateNSUserPlanRequest, opts ...grpc.CallOption) (*CreateNSUserPlanResponse, error) + // 修改用户套餐 + UpdateNSUserPlan(ctx context.Context, in *UpdateNSUserPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 删除用户套餐 + DeleteNSUserPlan(ctx context.Context, in *DeleteNSUserPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 读取用户套餐 + FindNSUserPlan(ctx context.Context, in *FindNSUserPlanRequest, opts ...grpc.CallOption) (*FindNSUserPlanResponse, error) + // 计算用户套餐数量 + CountNSUserPlans(ctx context.Context, in *CountNSUserPlansRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 列出单页套餐 + ListNSUserPlans(ctx context.Context, in *ListNSUserPlansRequest, opts ...grpc.CallOption) (*ListNSUserPlansResponse, error) +} + +type nSUserPlanServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNSUserPlanServiceClient(cc grpc.ClientConnInterface) NSUserPlanServiceClient { + return &nSUserPlanServiceClient{cc} +} + +func (c *nSUserPlanServiceClient) CreateNSUserPlan(ctx context.Context, in *CreateNSUserPlanRequest, opts ...grpc.CallOption) (*CreateNSUserPlanResponse, error) { + out := new(CreateNSUserPlanResponse) + err := c.cc.Invoke(ctx, "/pb.NSUserPlanService/createNSUserPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSUserPlanServiceClient) UpdateNSUserPlan(ctx context.Context, in *UpdateNSUserPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NSUserPlanService/updateNSUserPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSUserPlanServiceClient) DeleteNSUserPlan(ctx context.Context, in *DeleteNSUserPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NSUserPlanService/deleteNSUserPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSUserPlanServiceClient) FindNSUserPlan(ctx context.Context, in *FindNSUserPlanRequest, opts ...grpc.CallOption) (*FindNSUserPlanResponse, error) { + out := new(FindNSUserPlanResponse) + err := c.cc.Invoke(ctx, "/pb.NSUserPlanService/findNSUserPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSUserPlanServiceClient) CountNSUserPlans(ctx context.Context, in *CountNSUserPlansRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.NSUserPlanService/countNSUserPlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSUserPlanServiceClient) ListNSUserPlans(ctx context.Context, in *ListNSUserPlansRequest, opts ...grpc.CallOption) (*ListNSUserPlansResponse, error) { + out := new(ListNSUserPlansResponse) + err := c.cc.Invoke(ctx, "/pb.NSUserPlanService/listNSUserPlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NSUserPlanServiceServer is the server API for NSUserPlanService service. +type NSUserPlanServiceServer interface { + // 创建用户套餐 + CreateNSUserPlan(context.Context, *CreateNSUserPlanRequest) (*CreateNSUserPlanResponse, error) + // 修改用户套餐 + UpdateNSUserPlan(context.Context, *UpdateNSUserPlanRequest) (*RPCSuccess, error) + // 删除用户套餐 + DeleteNSUserPlan(context.Context, *DeleteNSUserPlanRequest) (*RPCSuccess, error) + // 读取用户套餐 + FindNSUserPlan(context.Context, *FindNSUserPlanRequest) (*FindNSUserPlanResponse, error) + // 计算用户套餐数量 + CountNSUserPlans(context.Context, *CountNSUserPlansRequest) (*RPCCountResponse, error) + // 列出单页套餐 + ListNSUserPlans(context.Context, *ListNSUserPlansRequest) (*ListNSUserPlansResponse, error) +} + +// UnimplementedNSUserPlanServiceServer can be embedded to have forward compatible implementations. +type UnimplementedNSUserPlanServiceServer struct { +} + +func (*UnimplementedNSUserPlanServiceServer) CreateNSUserPlan(context.Context, *CreateNSUserPlanRequest) (*CreateNSUserPlanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNSUserPlan not implemented") +} +func (*UnimplementedNSUserPlanServiceServer) UpdateNSUserPlan(context.Context, *UpdateNSUserPlanRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNSUserPlan not implemented") +} +func (*UnimplementedNSUserPlanServiceServer) DeleteNSUserPlan(context.Context, *DeleteNSUserPlanRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNSUserPlan not implemented") +} +func (*UnimplementedNSUserPlanServiceServer) FindNSUserPlan(context.Context, *FindNSUserPlanRequest) (*FindNSUserPlanResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSUserPlan not implemented") +} +func (*UnimplementedNSUserPlanServiceServer) CountNSUserPlans(context.Context, *CountNSUserPlansRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountNSUserPlans not implemented") +} +func (*UnimplementedNSUserPlanServiceServer) ListNSUserPlans(context.Context, *ListNSUserPlansRequest) (*ListNSUserPlansResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNSUserPlans not implemented") +} + +func RegisterNSUserPlanServiceServer(s *grpc.Server, srv NSUserPlanServiceServer) { + s.RegisterService(&_NSUserPlanService_serviceDesc, srv) +} + +func _NSUserPlanService_CreateNSUserPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNSUserPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSUserPlanServiceServer).CreateNSUserPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSUserPlanService/CreateNSUserPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSUserPlanServiceServer).CreateNSUserPlan(ctx, req.(*CreateNSUserPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSUserPlanService_UpdateNSUserPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateNSUserPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSUserPlanServiceServer).UpdateNSUserPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSUserPlanService/UpdateNSUserPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSUserPlanServiceServer).UpdateNSUserPlan(ctx, req.(*UpdateNSUserPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSUserPlanService_DeleteNSUserPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNSUserPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSUserPlanServiceServer).DeleteNSUserPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSUserPlanService/DeleteNSUserPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSUserPlanServiceServer).DeleteNSUserPlan(ctx, req.(*DeleteNSUserPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSUserPlanService_FindNSUserPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSUserPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSUserPlanServiceServer).FindNSUserPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSUserPlanService/FindNSUserPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSUserPlanServiceServer).FindNSUserPlan(ctx, req.(*FindNSUserPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSUserPlanService_CountNSUserPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountNSUserPlansRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSUserPlanServiceServer).CountNSUserPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSUserPlanService/CountNSUserPlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSUserPlanServiceServer).CountNSUserPlans(ctx, req.(*CountNSUserPlansRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSUserPlanService_ListNSUserPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNSUserPlansRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSUserPlanServiceServer).ListNSUserPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSUserPlanService/ListNSUserPlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSUserPlanServiceServer).ListNSUserPlans(ctx, req.(*ListNSUserPlansRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NSUserPlanService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.NSUserPlanService", + HandlerType: (*NSUserPlanServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createNSUserPlan", + Handler: _NSUserPlanService_CreateNSUserPlan_Handler, + }, + { + MethodName: "updateNSUserPlan", + Handler: _NSUserPlanService_UpdateNSUserPlan_Handler, + }, + { + MethodName: "deleteNSUserPlan", + Handler: _NSUserPlanService_DeleteNSUserPlan_Handler, + }, + { + MethodName: "findNSUserPlan", + Handler: _NSUserPlanService_FindNSUserPlan_Handler, + }, + { + MethodName: "countNSUserPlans", + Handler: _NSUserPlanService_CountNSUserPlans_Handler, + }, + { + MethodName: "listNSUserPlans", + Handler: _NSUserPlanService_ListNSUserPlans_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ns_user_plan.proto", +} diff --git a/pkg/rpc/pb/service_server_domain_hourly_stat.pb.go b/pkg/rpc/pb/service_server_domain_hourly_stat.pb.go index 0e5e88a..f4954a7 100644 --- a/pkg/rpc/pb/service_server_domain_hourly_stat.pb.go +++ b/pkg/rpc/pb/service_server_domain_hourly_stat.pb.go @@ -169,42 +169,42 @@ var File_service_server_domain_hourly_stat_proto protoreflect.FileDescriptor var file_service_server_domain_hourly_stat_proto_rawDesc = []byte{ 0x0a, 0x27, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x26, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x01, 0x0a, 0x2b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, - 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 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, 0x12, 0x16, 0x0a, 0x06, 0x6e, - 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, - 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x75, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x68, 0x6f, 0x75, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x68, - 0x6f, 0x75, 0x72, 0x54, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x75, - 0x72, 0x54, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x6c, 0x0a, 0x2c, 0x4c, 0x69, 0x73, 0x74, 0x54, - 0x6f, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, - 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x6f, - 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x53, 0x74, 0x61, 0x74, 0x73, 0x32, 0xab, 0x01, 0x0a, 0x1d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x24, 0x6c, 0x69, 0x73, 0x74, + 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x2c, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x6f, 0x75, 0x72, 0x6c, 0x79, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x01, 0x0a, 0x2b, + 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, + 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, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x75, 0x72, 0x46, 0x72, 0x6f, + 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x75, 0x72, 0x46, 0x72, 0x6f, + 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x6f, 0x75, 0x72, 0x54, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x68, 0x6f, 0x75, 0x72, 0x54, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x6c, 0x0a, + 0x2c, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, + 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x52, 0x0b, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x32, 0xab, 0x01, 0x0a, 0x1d, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x48, 0x6f, 0x75, 0x72, + 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, 0x01, + 0x0a, 0x24, 0x6c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, - 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, - 0x69, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x6f, 0x70, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, + 0x64, 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 ( @@ -241,7 +241,7 @@ func file_service_server_domain_hourly_stat_proto_init() { if File_service_server_domain_hourly_stat_proto != nil { return } - file_models_server_domain_hourly_stat_proto_init() + file_models_model_server_domain_hourly_stat_proto_init() if !protoimpl.UnsafeEnabled { file_service_server_domain_hourly_stat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListTopServerDomainStatsWithServerIdRequest); i { diff --git a/pkg/rpc/protos/models/model_ns_plan.proto b/pkg/rpc/protos/models/model_ns_plan.proto new file mode 100644 index 0000000..341f9ad --- /dev/null +++ b/pkg/rpc/protos/models/model_ns_plan.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +message NSPlan { + int64 id = 1; + string name = 2; + bool isOn = 3; + float monthlyPrice = 4; + float yearlyPrice = 5; + bytes configJSON = 6; +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_ns_user_plan.proto b/pkg/rpc/protos/models/model_ns_user_plan.proto new file mode 100644 index 0000000..a53d647 --- /dev/null +++ b/pkg/rpc/protos/models/model_ns_user_plan.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ns_plan.proto"; +import "models/model_user.proto"; + +message NSUserPlan { + int64 id = 1; + int64 nsPlanId = 2; + int64 userId = 3; + string dayFrom = 4; + string dayTo = 5; + string periodUnit = 6; + + NSPlan nsPlan = 30; + User user = 31; +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/server_domain_hourly_stat.proto b/pkg/rpc/protos/models/model_server_domain_hourly_stat.proto similarity index 100% rename from pkg/rpc/protos/models/server_domain_hourly_stat.proto rename to pkg/rpc/protos/models/model_server_domain_hourly_stat.proto diff --git a/pkg/rpc/protos/service_ns_plan.proto b/pkg/rpc/protos/service_ns_plan.proto new file mode 100644 index 0000000..8486911 --- /dev/null +++ b/pkg/rpc/protos/service_ns_plan.proto @@ -0,0 +1,90 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ns_plan.proto"; +import "models/rpc_messages.proto"; + +// DNS套餐服务 +service NSPlanService { + // 创建DNS套餐 + rpc createNSPlan(CreateNSPlanRequest) returns (CreateNSPlanResponse); + + // 修改DNS套餐 + rpc updateNSPlan(UpdateNSPlanRequest) returns (RPCSuccess); + + // 修改DNS套餐顺序 + rpc sortNSPlanOrders(SortNSPlansRequest) returns (RPCSuccess); + + // 查找所有DNS套餐 + rpc findAllNSPlans(FindAllNSPlansRequest) returns (FindAllNSPlansResponse); + + // 查找所有可用DNS套餐 + rpc findAllEnabledNSPlans(FindAllEnabledNSPlansRequest) returns (FindAllEnabledNSPlansResponse); + + // 查找DNS套餐 + rpc findNSPlan(FindNSPlanRequest) returns (FindNSPlanResponse); + + // 删除DNS套餐 + rpc deleteNSPlan(DeleteNSPlanRequest) returns (RPCSuccess); +} + +// 创建DNS套餐 +message CreateNSPlanRequest { + string name = 1; + float monthlyPrice = 2; + float yearlyPrice = 3; + bytes configJSON = 4; +} + +message CreateNSPlanResponse { + int64 nsPlanId = 1; +} + +// 修改DNS套餐 +message UpdateNSPlanRequest { + int64 nsPlanId = 1; + string name = 2; + bool isOn = 3; + float monthlyPrice = 4; + float yearlyPrice = 5; + bytes configJSON = 6; +} + +// 修改DNS套餐顺序 +message SortNSPlansRequest { + repeated int64 nsPlanIds = 1; +} + +// 查找所有DNS套餐 +message FindAllNSPlansRequest { + +} + +message FindAllNSPlansResponse { + repeated NSPlan nsPlans = 1; +} + +// 查找所有可用DNS套餐 +message FindAllEnabledNSPlansRequest { + +} + +message FindAllEnabledNSPlansResponse { + repeated NSPlan nsPlans = 1; +} + +// 查找DNS套餐 +message FindNSPlanRequest { + int64 nsPlanId = 1; +} + +message FindNSPlanResponse { + NSPlan nsPlan = 1; +} + +// 删除DNS套餐 +message DeleteNSPlanRequest { + int64 nsPlanId = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_ns_record.proto b/pkg/rpc/protos/service_ns_record.proto index f9fd2ac..74c6ca2 100644 --- a/pkg/rpc/protos/service_ns_record.proto +++ b/pkg/rpc/protos/service_ns_record.proto @@ -38,6 +38,9 @@ service NSRecordService { // 计算记录数量 rpc countAllNSRecords (CountAllNSRecordsRequest) returns (RPCCountResponse); + // 查询相同记录名的记录数 + rpc countAllNSRecordsWithName (CountAllNSRecordsWithNameRequest) returns (RPCCountResponse); + // 读取单页记录 rpc listNSRecords (ListNSRecordsRequest) returns (ListNSRecordsResponse); @@ -167,6 +170,13 @@ message CountAllNSRecordsRequest { string keyword = 4; } +// 查询相同记录名的记录数 +message CountAllNSRecordsWithNameRequest { + int64 nsDomainId = 1; + string name = 2; + string type = 3; +} + // 读取单页记录 message ListNSRecordsRequest { int64 nsDomainId = 1; diff --git a/pkg/rpc/protos/service_ns_route.proto b/pkg/rpc/protos/service_ns_route.proto index 9da901c..057b7f5 100644 --- a/pkg/rpc/protos/service_ns_route.proto +++ b/pkg/rpc/protos/service_ns_route.proto @@ -20,6 +20,9 @@ service NSRouteService { // 获取单个自定义路线信息 rpc findNSRoute (FindNSRouteRequest) returns (FindNSRouteResponse); + // 查询自定义线路数量 + rpc countAllNSRoutes(CountAllNSRoutesRequest) returns (RPCCountResponse); + // 读取所有自定义线路 rpc findAllNSRoutes (FindAllNSRoutesRequest) returns (FindAllNSRoutesResponse); @@ -73,6 +76,13 @@ message FindNSRouteResponse { NSRoute nsRoute = 1; } +// 查询自定义线路数量 +message CountAllNSRoutesRequest { + int64 nsClusterId = 1; + int64 nsDomainId = 2; + int64 userId = 3; +} + // 读取所有自定义线路 message FindAllNSRoutesRequest { int64 nsClusterId = 1; diff --git a/pkg/rpc/protos/service_ns_user_plan.proto b/pkg/rpc/protos/service_ns_user_plan.proto new file mode 100644 index 0000000..883438d --- /dev/null +++ b/pkg/rpc/protos/service_ns_user_plan.proto @@ -0,0 +1,89 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ns_user_plan.proto"; +import "models/rpc_messages.proto"; + +// 用户DNS套餐服务 +service NSUserPlanService { + // 创建用户套餐 + rpc createNSUserPlan(CreateNSUserPlanRequest) returns (CreateNSUserPlanResponse); + + // 修改用户套餐 + rpc updateNSUserPlan(UpdateNSUserPlanRequest) returns (RPCSuccess); + + // 删除用户套餐 + rpc deleteNSUserPlan(DeleteNSUserPlanRequest) returns (RPCSuccess); + + // 读取用户套餐 + rpc findNSUserPlan(FindNSUserPlanRequest) returns (FindNSUserPlanResponse); + + // 计算用户套餐数量 + rpc countNSUserPlans(CountNSUserPlansRequest) returns (RPCCountResponse); + + // 列出单页套餐 + rpc listNSUserPlans(ListNSUserPlansRequest) returns (ListNSUserPlansResponse); +} + +// 创建用户套餐 +message CreateNSUserPlanRequest { + int64 userId = 1; + int64 nsPlanId = 2; + string dayFrom = 3; // YYYYMMDD + string dayTo = 4; // YYYYMMDD + string periodUnit = 5; // yearly|monthly +} + +message CreateNSUserPlanResponse { + int64 nsUserPlanId = 1; +} + +// 修改用户套餐 +message UpdateNSUserPlanRequest { + int64 nsUserPlanId = 1; + int64 nsPlanId = 2; + string dayFrom = 3; // YYYYMMDD + string dayTo = 4; // YYYYMMDD + string periodUnit = 5; // yearly|monthly +} + +// 删除用户套餐 +message DeleteNSUserPlanRequest{ + int64 nsUserPlanId = 1; +} + +// 读取用户套餐 +message FindNSUserPlanRequest { + int64 userId = 1; // 和 nsUserPlanId 二选一 + int64 nsUserPlanId = 2; +} + +message FindNSUserPlanResponse { + NSUserPlan nsUserPlan = 1; +} + +// 计算用户套餐数量 +message CountNSUserPlansRequest{ + int64 userId = 1; + int64 nsPlanId = 2; + string periodUnit = 3; + bool isExpired = 4; + int32 expireDays = 5; +} + +// 列出单页套餐 +message ListNSUserPlansRequest { + int64 userId = 1; + int64 nsPlanId = 2; + string periodUnit = 3; + bool isExpired = 4; + int32 expireDays = 5; + int64 offset = 6; + int64 size = 7; +} + +message ListNSUserPlansResponse { + repeated NSUserPlan nsUserPlans = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_server_domain_hourly_stat.proto b/pkg/rpc/protos/service_server_domain_hourly_stat.proto index 6851bd1..479b94b 100644 --- a/pkg/rpc/protos/service_server_domain_hourly_stat.proto +++ b/pkg/rpc/protos/service_server_domain_hourly_stat.proto @@ -3,7 +3,7 @@ option go_package = "./pb"; package pb; -import "models/server_domain_hourly_stat.proto"; +import "models/model_server_domain_hourly_stat.proto"; // 服务域名按小时统计服务 service ServerDomainHourlyStatService {