From d63ccc39001026753d8a33a716226d18304ac8f7 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Fri, 24 Apr 2026 04:02:16 +0000 Subject: [PATCH] sdk: rolling update for 1.2.63-release --- VERSION | 2 +- examples/generic/pom.xml | 4 +- examples/uhost/pom.xml | 4 +- pom.xml | 3 +- ucloud-sdk-java-cloudwatch/pom.xml | 6 +- ucloud-sdk-java-common/pom.xml | 4 +- ucloud-sdk-java-cube/pom.xml | 6 +- ucloud-sdk-java-ipsecvpn/pom.xml | 6 +- ucloud-sdk-java-label/pom.xml | 6 +- ucloud-sdk-java-nlb/pom.xml | 6 +- ucloud-sdk-java-pathx/pom.xml | 6 +- ucloud-sdk-java-sts/pom.xml | 6 +- ucloud-sdk-java-uaccount/pom.xml | 6 +- ucloud-sdk-java-uai_modelverse/pom.xml | 6 +- ucloud-sdk-java-ubill/pom.xml | 6 +- ucloud-sdk-java-ucdn/pom.xml | 6 +- ucloud-sdk-java-uclickhouse/pom.xml | 6 +- ucloud-sdk-java-ucompshare/pom.xml | 6 +- ucloud-sdk-java-udb/pom.xml | 6 +- ucloud-sdk-java-udbproxy/pom.xml | 6 +- ucloud-sdk-java-udi/pom.xml | 6 +- ucloud-sdk-java-udisk/pom.xml | 6 +- ucloud-sdk-java-udns/pom.xml | 6 +- ucloud-sdk-java-udpn/pom.xml | 6 +- ucloud-sdk-java-uec/pom.xml | 6 +- ucloud-sdk-java-ues/pom.xml | 6 +- ucloud-sdk-java-uewaf/pom.xml | 6 +- ucloud-sdk-java-ufile/pom.xml | 6 +- ucloud-sdk-java-ufs/pom.xml | 6 +- ucloud-sdk-java-uhadoop/pom.xml | 6 +- ucloud-sdk-java-uhids/pom.xml | 49 ++ .../cn/ucloud/uhids/client/UHIDSClient.java | 440 ++++++++++++++++++ .../uhids/client/UHIDSClientInterface.java | 329 +++++++++++++ .../AddUHostSecBaseCheckWhiteRuleRequest.java | 53 +++ ...AddUHostSecBaseCheckWhiteRuleResponse.java | 46 ++ .../AddUHostSecWebRiskWhiteRuleRequest.java | 53 +++ .../AddUHostSecWebRiskWhiteRuleResponse.java | 46 ++ .../AddUhostsecCommonLoginIpRequest.java | 51 ++ .../AddUhostsecCommonLoginIpResponse.java | 20 + ...AddUhostsecCommonLoginLocationRequest.java | 53 +++ ...ddUhostsecCommonLoginLocationResponse.java | 20 + .../uhids/models/AgentOSStatisticRequest.java | 35 ++ .../models/AgentOSStatisticResponse.java | 128 +++++ .../models/AgentWarnningStatisticRequest.java | 35 ++ .../AgentWarnningStatisticResponse.java | 97 ++++ .../uhids/models/BuyBillPointRequest.java | 77 +++ .../uhids/models/BuyBillPointResponse.java | 20 + .../DelUHostSecBaseCheckWhiteRuleRequest.java | 50 ++ ...DelUHostSecBaseCheckWhiteRuleResponse.java | 20 + .../models/DelUHostSecCommonLoginRequest.java | 75 +++ .../DelUHostSecCommonLoginResponse.java | 20 + .../models/DelUHostSecWarningsRequest.java | 53 +++ .../models/DelUHostSecWarningsResponse.java | 20 + ...stsecAgentDeploymentStatisticsRequest.java | 38 ++ ...tsecAgentDeploymentStatisticsResponse.java | 46 ++ .../GetUHostsecAgentInstallScriptRequest.java | 38 ++ ...GetUHostsecAgentInstallScriptResponse.java | 34 ++ ...ostsecBaseCheckRuleDescriptionRequest.java | 48 ++ ...stsecBaseCheckRuleDescriptionResponse.java | 34 ++ ...DeploymentSituationWithVerInfoRequest.java | 35 ++ ...eploymentSituationWithVerInfoResponse.java | 221 +++++++++ .../GetUhostsecTrojanDescriptionRequest.java | 50 ++ .../GetUhostsecTrojanDescriptionResponse.java | 34 ++ ...stUHostsecWarnDaysStatisticsV2Request.java | 62 +++ ...tUHostsecWarnDaysStatisticsV2Response.java | 122 +++++ .../ListUHostsecWarnStatisticsV2Request.java | 38 ++ .../ListUHostsecWarnStatisticsV2Response.java | 109 +++++ .../ListUhostsecCommonLoginIpRequest.java | 38 ++ .../ListUhostsecCommonLoginIpResponse.java | 86 ++++ ...istUhostsecCommonLoginLocationRequest.java | 38 ++ ...stUhostsecCommonLoginLocationResponse.java | 98 ++++ .../models/OptBusinessVerAutoRequest.java | 48 ++ .../models/OptBusinessVerAutoResponse.java | 34 ++ .../uhids/models/OptPayAutoRenewRequest.java | 48 ++ .../uhids/models/OptPayAutoRenewResponse.java | 34 ++ ...yBillPointDeductionFlowByCycleRequest.java | 72 +++ ...BillPointDeductionFlowByCycleResponse.java | 86 ++++ .../models/QueryNewestUpdateTimeRequest.java | 35 ++ .../models/QueryNewestUpdateTimeResponse.java | 97 ++++ .../uhids/models/QueryPayInfoRequest.java | 35 ++ .../uhids/models/QueryPayInfoResponse.java | 142 ++++++ ...QueryUHostSecWarningBaseChecksRequest.java | 51 ++ ...ueryUHostSecWarningBaseChecksResponse.java | 122 +++++ .../models/QueryWeekReportListRequest.java | 59 +++ .../models/QueryWeekReportListResponse.java | 62 +++ .../SwitchAgentFunctionVersionRequest.java | 98 ++++ .../SwitchAgentFunctionVersionResponse.java | 73 +++ .../uhids/models/VulStatisticTopNRequest.java | 47 ++ .../models/VulStatisticTopNResponse.java | 74 +++ ucloud-sdk-java-uhost/pom.xml | 6 +- ucloud-sdk-java-uk8s/pom.xml | 6 +- ucloud-sdk-java-ukafka/pom.xml | 6 +- ucloud-sdk-java-ulb/pom.xml | 6 +- ucloud-sdk-java-ulighthost/pom.xml | 6 +- ucloud-sdk-java-ulog/pom.xml | 6 +- ucloud-sdk-java-umem/pom.xml | 6 +- ucloud-sdk-java-umon/pom.xml | 6 +- ucloud-sdk-java-umongodb/pom.xml | 6 +- ucloud-sdk-java-unet/pom.xml | 6 +- ucloud-sdk-java-upfs/pom.xml | 6 +- ucloud-sdk-java-upgsql/pom.xml | 6 +- ucloud-sdk-java-uphone/pom.xml | 6 +- ucloud-sdk-java-uphost/pom.xml | 6 +- ucloud-sdk-java-uslk/pom.xml | 6 +- ucloud-sdk-java-usms/pom.xml | 6 +- ucloud-sdk-java-usnap/pom.xml | 6 +- ucloud-sdk-java-uvms/pom.xml | 6 +- ucloud-sdk-java-vpc/pom.xml | 6 +- 108 files changed, 4317 insertions(+), 140 deletions(-) create mode 100644 ucloud-sdk-java-uhids/pom.xml create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClient.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClientInterface.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Request.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Response.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Request.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Response.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionResponse.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNRequest.java create mode 100644 ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNResponse.java diff --git a/VERSION b/VERSION index 1c4934bc..41e6b25c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.62-release +1.2.63-release diff --git a/examples/generic/pom.xml b/examples/generic/pom.xml index c0c09c24..5a5f2f11 100644 --- a/examples/generic/pom.xml +++ b/examples/generic/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/examples/uhost/pom.xml b/examples/uhost/pom.xml index eefe6460..94d2d7ad 100644 --- a/examples/uhost/pom.xml +++ b/examples/uhost/pom.xml @@ -7,7 +7,7 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 @@ -19,7 +19,7 @@ cn.ucloud ucloud-sdk-java-uhost - 1.2.62-release + 1.2.63-release diff --git a/pom.xml b/pom.xml index a9a9049d..94fcebfa 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ cn.ucloud ucloud-sdk-java pom - 1.2.62-release + 1.2.63-release ucloud-sdk-java-common ucloud-sdk-java-cloudwatch @@ -34,6 +34,7 @@ ucloud-sdk-java-uewaf ucloud-sdk-java-ufs ucloud-sdk-java-ufile + ucloud-sdk-java-uhids ucloud-sdk-java-uhadoop ucloud-sdk-java-uhost ucloud-sdk-java-uk8s diff --git a/ucloud-sdk-java-cloudwatch/pom.xml b/ucloud-sdk-java-cloudwatch/pom.xml index 603357e0..9d566c03 100644 --- a/ucloud-sdk-java-cloudwatch/pom.xml +++ b/ucloud-sdk-java-cloudwatch/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-cloudwatch ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-common/pom.xml b/ucloud-sdk-java-common/pom.xml index 70b0e9e2..1406a4ce 100644 --- a/ucloud-sdk-java-common/pom.xml +++ b/ucloud-sdk-java-common/pom.xml @@ -7,13 +7,13 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-common ucloud-sdk-java - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-cube/pom.xml b/ucloud-sdk-java-cube/pom.xml index 52d531b1..f81051d1 100644 --- a/ucloud-sdk-java-cube/pom.xml +++ b/ucloud-sdk-java-cube/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-cube ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ipsecvpn/pom.xml b/ucloud-sdk-java-ipsecvpn/pom.xml index 74d1b751..4e057649 100644 --- a/ucloud-sdk-java-ipsecvpn/pom.xml +++ b/ucloud-sdk-java-ipsecvpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ipsecvpn ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-label/pom.xml b/ucloud-sdk-java-label/pom.xml index a9db70c0..b6bc1aee 100644 --- a/ucloud-sdk-java-label/pom.xml +++ b/ucloud-sdk-java-label/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-label ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-nlb/pom.xml b/ucloud-sdk-java-nlb/pom.xml index 3ec95008..6a25f7fd 100644 --- a/ucloud-sdk-java-nlb/pom.xml +++ b/ucloud-sdk-java-nlb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-nlb ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-pathx/pom.xml b/ucloud-sdk-java-pathx/pom.xml index 68266f7d..43e3d9f6 100644 --- a/ucloud-sdk-java-pathx/pom.xml +++ b/ucloud-sdk-java-pathx/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-pathx ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-sts/pom.xml b/ucloud-sdk-java-sts/pom.xml index 65749102..0e89b3e7 100644 --- a/ucloud-sdk-java-sts/pom.xml +++ b/ucloud-sdk-java-sts/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-sts ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uaccount/pom.xml b/ucloud-sdk-java-uaccount/pom.xml index 391dc582..89a06c72 100644 --- a/ucloud-sdk-java-uaccount/pom.xml +++ b/ucloud-sdk-java-uaccount/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uaccount ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uai_modelverse/pom.xml b/ucloud-sdk-java-uai_modelverse/pom.xml index 72f53932..f3adc2a1 100644 --- a/ucloud-sdk-java-uai_modelverse/pom.xml +++ b/ucloud-sdk-java-uai_modelverse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uai_modelverse ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ubill/pom.xml b/ucloud-sdk-java-ubill/pom.xml index b13e0552..4f3ba3b4 100644 --- a/ucloud-sdk-java-ubill/pom.xml +++ b/ucloud-sdk-java-ubill/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ubill ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ucdn/pom.xml b/ucloud-sdk-java-ucdn/pom.xml index 12c1468f..72b2c186 100644 --- a/ucloud-sdk-java-ucdn/pom.xml +++ b/ucloud-sdk-java-ucdn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ucdn ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uclickhouse/pom.xml b/ucloud-sdk-java-uclickhouse/pom.xml index d61ba526..6a262b60 100644 --- a/ucloud-sdk-java-uclickhouse/pom.xml +++ b/ucloud-sdk-java-uclickhouse/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uclickhouse ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ucompshare/pom.xml b/ucloud-sdk-java-ucompshare/pom.xml index 69ee1fa1..7cf0ee9a 100644 --- a/ucloud-sdk-java-ucompshare/pom.xml +++ b/ucloud-sdk-java-ucompshare/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ucompshare ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-udb/pom.xml b/ucloud-sdk-java-udb/pom.xml index d25eec14..c04dba86 100644 --- a/ucloud-sdk-java-udb/pom.xml +++ b/ucloud-sdk-java-udb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-udb ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-udbproxy/pom.xml b/ucloud-sdk-java-udbproxy/pom.xml index da6fa9f4..7954da94 100644 --- a/ucloud-sdk-java-udbproxy/pom.xml +++ b/ucloud-sdk-java-udbproxy/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-udbproxy ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-udi/pom.xml b/ucloud-sdk-java-udi/pom.xml index 32831ddd..d39c7bd3 100644 --- a/ucloud-sdk-java-udi/pom.xml +++ b/ucloud-sdk-java-udi/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-udi ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-udisk/pom.xml b/ucloud-sdk-java-udisk/pom.xml index cc699b7f..18e39ccb 100644 --- a/ucloud-sdk-java-udisk/pom.xml +++ b/ucloud-sdk-java-udisk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-udisk ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-udns/pom.xml b/ucloud-sdk-java-udns/pom.xml index fe8aaa22..27611911 100644 --- a/ucloud-sdk-java-udns/pom.xml +++ b/ucloud-sdk-java-udns/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-udns ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-udpn/pom.xml b/ucloud-sdk-java-udpn/pom.xml index f98382ce..aa9b9478 100644 --- a/ucloud-sdk-java-udpn/pom.xml +++ b/ucloud-sdk-java-udpn/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-udpn ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uec/pom.xml b/ucloud-sdk-java-uec/pom.xml index 956ac602..1cd5d9a2 100644 --- a/ucloud-sdk-java-uec/pom.xml +++ b/ucloud-sdk-java-uec/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uec ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ues/pom.xml b/ucloud-sdk-java-ues/pom.xml index 46d6366a..d0c19215 100644 --- a/ucloud-sdk-java-ues/pom.xml +++ b/ucloud-sdk-java-ues/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ues ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uewaf/pom.xml b/ucloud-sdk-java-uewaf/pom.xml index d61e7d3b..4366d868 100644 --- a/ucloud-sdk-java-uewaf/pom.xml +++ b/ucloud-sdk-java-uewaf/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uewaf ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ufile/pom.xml b/ucloud-sdk-java-ufile/pom.xml index 0c65fe9b..2ea6a64c 100644 --- a/ucloud-sdk-java-ufile/pom.xml +++ b/ucloud-sdk-java-ufile/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ufile ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ufs/pom.xml b/ucloud-sdk-java-ufs/pom.xml index 4f0a44de..f00b6cac 100644 --- a/ucloud-sdk-java-ufs/pom.xml +++ b/ucloud-sdk-java-ufs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ufs ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uhadoop/pom.xml b/ucloud-sdk-java-uhadoop/pom.xml index e42ba315..c84274cc 100644 --- a/ucloud-sdk-java-uhadoop/pom.xml +++ b/ucloud-sdk-java-uhadoop/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uhadoop ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uhids/pom.xml b/ucloud-sdk-java-uhids/pom.xml new file mode 100644 index 00000000..182bd31f --- /dev/null +++ b/ucloud-sdk-java-uhids/pom.xml @@ -0,0 +1,49 @@ + + + + ucloud-sdk-java + cn.ucloud + 1.2.63-release + + + 4.0.0 + ucloud-sdk-java-uhids + ucloud-sdk-java + 1.2.63-release + + + + cn.ucloud + ucloud-sdk-java-common + 1.2.63-release + + + + com.google.code.gson + gson + + + + commons-codec + commons-codec + + + org.apache.commons + commons-lang3 + + + + junit + junit + test + + + + org.slf4j + slf4j-simple + provided + + + diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClient.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClient.java new file mode 100644 index 00000000..d23dd549 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClient.java @@ -0,0 +1,440 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.client; + +import cn.ucloud.common.client.DefaultClient; +import cn.ucloud.common.config.Config; +import cn.ucloud.common.credential.Credential; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.uhids.models.AddUHostSecBaseCheckWhiteRuleRequest; +import cn.ucloud.uhids.models.AddUHostSecBaseCheckWhiteRuleResponse; +import cn.ucloud.uhids.models.AddUHostSecWebRiskWhiteRuleRequest; +import cn.ucloud.uhids.models.AddUHostSecWebRiskWhiteRuleResponse; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginIpRequest; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginIpResponse; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginLocationRequest; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginLocationResponse; +import cn.ucloud.uhids.models.AgentOSStatisticRequest; +import cn.ucloud.uhids.models.AgentOSStatisticResponse; +import cn.ucloud.uhids.models.AgentWarnningStatisticRequest; +import cn.ucloud.uhids.models.AgentWarnningStatisticResponse; +import cn.ucloud.uhids.models.BuyBillPointRequest; +import cn.ucloud.uhids.models.BuyBillPointResponse; +import cn.ucloud.uhids.models.DelUHostSecBaseCheckWhiteRuleRequest; +import cn.ucloud.uhids.models.DelUHostSecBaseCheckWhiteRuleResponse; +import cn.ucloud.uhids.models.DelUHostSecCommonLoginRequest; +import cn.ucloud.uhids.models.DelUHostSecCommonLoginResponse; +import cn.ucloud.uhids.models.DelUHostSecWarningsRequest; +import cn.ucloud.uhids.models.DelUHostSecWarningsResponse; +import cn.ucloud.uhids.models.GetUHostsecAgentDeploymentStatisticsRequest; +import cn.ucloud.uhids.models.GetUHostsecAgentDeploymentStatisticsResponse; +import cn.ucloud.uhids.models.GetUHostsecAgentInstallScriptRequest; +import cn.ucloud.uhids.models.GetUHostsecAgentInstallScriptResponse; +import cn.ucloud.uhids.models.GetUHostsecBaseCheckRuleDescriptionRequest; +import cn.ucloud.uhids.models.GetUHostsecBaseCheckRuleDescriptionResponse; +import cn.ucloud.uhids.models.GetUhostsecAgentDeploymentSituationWithVerInfoRequest; +import cn.ucloud.uhids.models.GetUhostsecAgentDeploymentSituationWithVerInfoResponse; +import cn.ucloud.uhids.models.GetUhostsecTrojanDescriptionRequest; +import cn.ucloud.uhids.models.GetUhostsecTrojanDescriptionResponse; +import cn.ucloud.uhids.models.ListUHostsecWarnDaysStatisticsV2Request; +import cn.ucloud.uhids.models.ListUHostsecWarnDaysStatisticsV2Response; +import cn.ucloud.uhids.models.ListUHostsecWarnStatisticsV2Request; +import cn.ucloud.uhids.models.ListUHostsecWarnStatisticsV2Response; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginIpRequest; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginIpResponse; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginLocationRequest; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginLocationResponse; +import cn.ucloud.uhids.models.OptBusinessVerAutoRequest; +import cn.ucloud.uhids.models.OptBusinessVerAutoResponse; +import cn.ucloud.uhids.models.OptPayAutoRenewRequest; +import cn.ucloud.uhids.models.OptPayAutoRenewResponse; +import cn.ucloud.uhids.models.QueryBillPointDeductionFlowByCycleRequest; +import cn.ucloud.uhids.models.QueryBillPointDeductionFlowByCycleResponse; +import cn.ucloud.uhids.models.QueryNewestUpdateTimeRequest; +import cn.ucloud.uhids.models.QueryNewestUpdateTimeResponse; +import cn.ucloud.uhids.models.QueryPayInfoRequest; +import cn.ucloud.uhids.models.QueryPayInfoResponse; +import cn.ucloud.uhids.models.QueryUHostSecWarningBaseChecksRequest; +import cn.ucloud.uhids.models.QueryUHostSecWarningBaseChecksResponse; +import cn.ucloud.uhids.models.QueryWeekReportListRequest; +import cn.ucloud.uhids.models.QueryWeekReportListResponse; +import cn.ucloud.uhids.models.SwitchAgentFunctionVersionRequest; +import cn.ucloud.uhids.models.SwitchAgentFunctionVersionResponse; +import cn.ucloud.uhids.models.VulStatisticTopNRequest; +import cn.ucloud.uhids.models.VulStatisticTopNResponse; + +/** This client is used to call actions of **UHIDS** service */ +public class UHIDSClient extends DefaultClient implements UHIDSClientInterface { + public UHIDSClient(Config config, Credential credential) { + super(config, credential); + } + + /** + * AddUHostSecBaseCheckWhiteRule - 添加安全基线白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUHostSecBaseCheckWhiteRuleResponse addUHostSecBaseCheckWhiteRule( + AddUHostSecBaseCheckWhiteRuleRequest request) throws UCloudException { + request.setAction("AddUHostSecBaseCheckWhiteRule"); + return (AddUHostSecBaseCheckWhiteRuleResponse) + this.invoke(request, AddUHostSecBaseCheckWhiteRuleResponse.class); + } + + /** + * AddUHostSecWebRiskWhiteRule - 添加webrisk白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUHostSecWebRiskWhiteRuleResponse addUHostSecWebRiskWhiteRule( + AddUHostSecWebRiskWhiteRuleRequest request) throws UCloudException { + request.setAction("AddUHostSecWebRiskWhiteRule"); + return (AddUHostSecWebRiskWhiteRuleResponse) + this.invoke(request, AddUHostSecWebRiskWhiteRuleResponse.class); + } + + /** + * AddUhostsecCommonLoginIp - 添加常用登录Ip + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUhostsecCommonLoginIpResponse addUhostsecCommonLoginIp( + AddUhostsecCommonLoginIpRequest request) throws UCloudException { + request.setAction("AddUhostsecCommonLoginIp"); + return (AddUhostsecCommonLoginIpResponse) + this.invoke(request, AddUhostsecCommonLoginIpResponse.class); + } + + /** + * AddUhostsecCommonLoginLocation - 添加常用登录地 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUhostsecCommonLoginLocationResponse addUhostsecCommonLoginLocation( + AddUhostsecCommonLoginLocationRequest request) throws UCloudException { + request.setAction("AddUhostsecCommonLoginLocation"); + return (AddUhostsecCommonLoginLocationResponse) + this.invoke(request, AddUhostsecCommonLoginLocationResponse.class); + } + + /** + * AgentOSStatistic - 主机操作系统分布 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AgentOSStatisticResponse agentOSStatistic(AgentOSStatisticRequest request) + throws UCloudException { + request.setAction("AgentOSStatistic"); + return (AgentOSStatisticResponse) this.invoke(request, AgentOSStatisticResponse.class); + } + + /** + * AgentWarnningStatistic - 服务器状态统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AgentWarnningStatisticResponse agentWarnningStatistic( + AgentWarnningStatisticRequest request) throws UCloudException { + request.setAction("AgentWarnningStatistic"); + return (AgentWarnningStatisticResponse) + this.invoke(request, AgentWarnningStatisticResponse.class); + } + + /** + * BuyBillPoint - 购买付费点数 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BuyBillPointResponse buyBillPoint(BuyBillPointRequest request) throws UCloudException { + request.setAction("BuyBillPoint"); + return (BuyBillPointResponse) this.invoke(request, BuyBillPointResponse.class); + } + + /** + * DelUHostSecBaseCheckWhiteRule - 删除安全基线白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUHostSecBaseCheckWhiteRuleResponse delUHostSecBaseCheckWhiteRule( + DelUHostSecBaseCheckWhiteRuleRequest request) throws UCloudException { + request.setAction("DelUHostSecBaseCheckWhiteRule"); + return (DelUHostSecBaseCheckWhiteRuleResponse) + this.invoke(request, DelUHostSecBaseCheckWhiteRuleResponse.class); + } + + /** + * DelUHostSecCommonLogin - 删除常用登陆IP或常用登陆地 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUHostSecCommonLoginResponse delUHostSecCommonLogin( + DelUHostSecCommonLoginRequest request) throws UCloudException { + request.setAction("DelUHostSecCommonLogin"); + return (DelUHostSecCommonLoginResponse) + this.invoke(request, DelUHostSecCommonLoginResponse.class); + } + + /** + * DelUHostSecWarnings - 删除告警 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUHostSecWarningsResponse delUHostSecWarnings(DelUHostSecWarningsRequest request) + throws UCloudException { + request.setAction("DelUHostSecWarnings"); + return (DelUHostSecWarningsResponse) + this.invoke(request, DelUHostSecWarningsResponse.class); + } + + /** + * GetUHostsecAgentDeploymentStatistics - 获取当前项目制定工程的Agent部署统计值 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostsecAgentDeploymentStatisticsResponse getUHostsecAgentDeploymentStatistics( + GetUHostsecAgentDeploymentStatisticsRequest request) throws UCloudException { + request.setAction("GetUHostsecAgentDeploymentStatistics"); + return (GetUHostsecAgentDeploymentStatisticsResponse) + this.invoke(request, GetUHostsecAgentDeploymentStatisticsResponse.class); + } + + /** + * GetUHostsecAgentInstallScript - 获取主机安全Agent安全脚本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostsecAgentInstallScriptResponse getUHostsecAgentInstallScript( + GetUHostsecAgentInstallScriptRequest request) throws UCloudException { + request.setAction("GetUHostsecAgentInstallScript"); + return (GetUHostsecAgentInstallScriptResponse) + this.invoke(request, GetUHostsecAgentInstallScriptResponse.class); + } + + /** + * GetUHostsecBaseCheckRuleDescription - 获取基线检测指定规则详细描述 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostsecBaseCheckRuleDescriptionResponse getUHostsecBaseCheckRuleDescription( + GetUHostsecBaseCheckRuleDescriptionRequest request) throws UCloudException { + request.setAction("GetUHostsecBaseCheckRuleDescription"); + return (GetUHostsecBaseCheckRuleDescriptionResponse) + this.invoke(request, GetUHostsecBaseCheckRuleDescriptionResponse.class); + } + + /** + * GetUhostsecAgentDeploymentSituationWithVerInfo - 列出当前项目的主机安装信息(包括付费版本信息) + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUhostsecAgentDeploymentSituationWithVerInfoResponse + getUhostsecAgentDeploymentSituationWithVerInfo( + GetUhostsecAgentDeploymentSituationWithVerInfoRequest request) + throws UCloudException { + request.setAction("GetUhostsecAgentDeploymentSituationWithVerInfo"); + return (GetUhostsecAgentDeploymentSituationWithVerInfoResponse) + this.invoke(request, GetUhostsecAgentDeploymentSituationWithVerInfoResponse.class); + } + + /** + * GetUhostsecTrojanDescription - 获取某一类木马告警的详细描述信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUhostsecTrojanDescriptionResponse getUhostsecTrojanDescription( + GetUhostsecTrojanDescriptionRequest request) throws UCloudException { + request.setAction("GetUhostsecTrojanDescription"); + return (GetUhostsecTrojanDescriptionResponse) + this.invoke(request, GetUhostsecTrojanDescriptionResponse.class); + } + + /** + * ListUHostsecWarnDaysStatisticsV2 - 获取按天列出各类告警统计值 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUHostsecWarnDaysStatisticsV2Response listUHostsecWarnDaysStatisticsV2( + ListUHostsecWarnDaysStatisticsV2Request request) throws UCloudException { + request.setAction("ListUHostsecWarnDaysStatisticsV2"); + return (ListUHostsecWarnDaysStatisticsV2Response) + this.invoke(request, ListUHostsecWarnDaysStatisticsV2Response.class); + } + + /** + * ListUHostsecWarnStatisticsV2 - 获取当前账号与项目下的各类主机安全告警统计值 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUHostsecWarnStatisticsV2Response listUHostsecWarnStatisticsV2( + ListUHostsecWarnStatisticsV2Request request) throws UCloudException { + request.setAction("ListUHostsecWarnStatisticsV2"); + return (ListUHostsecWarnStatisticsV2Response) + this.invoke(request, ListUHostsecWarnStatisticsV2Response.class); + } + + /** + * ListUhostsecCommonLoginIp - 列出公共登录ip列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUhostsecCommonLoginIpResponse listUhostsecCommonLoginIp( + ListUhostsecCommonLoginIpRequest request) throws UCloudException { + request.setAction("ListUhostsecCommonLoginIp"); + return (ListUhostsecCommonLoginIpResponse) + this.invoke(request, ListUhostsecCommonLoginIpResponse.class); + } + + /** + * ListUhostsecCommonLoginLocation - 获取公共登录地列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUhostsecCommonLoginLocationResponse listUhostsecCommonLoginLocation( + ListUhostsecCommonLoginLocationRequest request) throws UCloudException { + request.setAction("ListUhostsecCommonLoginLocation"); + return (ListUhostsecCommonLoginLocationResponse) + this.invoke(request, ListUhostsecCommonLoginLocationResponse.class); + } + + /** + * OptBusinessVerAuto - 操作自动设置企业版开关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public OptBusinessVerAutoResponse optBusinessVerAuto(OptBusinessVerAutoRequest request) + throws UCloudException { + request.setAction("OptBusinessVerAuto"); + return (OptBusinessVerAutoResponse) this.invoke(request, OptBusinessVerAutoResponse.class); + } + + /** + * OptPayAutoRenew - 操作自动续费开关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public OptPayAutoRenewResponse optPayAutoRenew(OptPayAutoRenewRequest request) + throws UCloudException { + request.setAction("OptPayAutoRenew"); + return (OptPayAutoRenewResponse) this.invoke(request, OptPayAutoRenewResponse.class); + } + + /** + * QueryBillPointDeductionFlowByCycle - 按照周期统计用户计费点数变化情况 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryBillPointDeductionFlowByCycleResponse queryBillPointDeductionFlowByCycle( + QueryBillPointDeductionFlowByCycleRequest request) throws UCloudException { + request.setAction("QueryBillPointDeductionFlowByCycle"); + return (QueryBillPointDeductionFlowByCycleResponse) + this.invoke(request, QueryBillPointDeductionFlowByCycleResponse.class); + } + + /** + * QueryNewestUpdateTime - 查询下载数据最新更新时间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryNewestUpdateTimeResponse queryNewestUpdateTime(QueryNewestUpdateTimeRequest request) + throws UCloudException { + request.setAction("QueryNewestUpdateTime"); + return (QueryNewestUpdateTimeResponse) + this.invoke(request, QueryNewestUpdateTimeResponse.class); + } + + /** + * QueryPayInfo - 查询用户付费信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryPayInfoResponse queryPayInfo(QueryPayInfoRequest request) throws UCloudException { + request.setAction("QueryPayInfo"); + return (QueryPayInfoResponse) this.invoke(request, QueryPayInfoResponse.class); + } + + /** + * QueryUHostSecWarningBaseChecks - 查询正在告警的安全基线类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryUHostSecWarningBaseChecksResponse queryUHostSecWarningBaseChecks( + QueryUHostSecWarningBaseChecksRequest request) throws UCloudException { + request.setAction("QueryUHostSecWarningBaseChecks"); + return (QueryUHostSecWarningBaseChecksResponse) + this.invoke(request, QueryUHostSecWarningBaseChecksResponse.class); + } + + /** + * QueryWeekReportList - 查询主机安全周报 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryWeekReportListResponse queryWeekReportList(QueryWeekReportListRequest request) + throws UCloudException { + request.setAction("QueryWeekReportList"); + return (QueryWeekReportListResponse) + this.invoke(request, QueryWeekReportListResponse.class); + } + + /** + * SwitchAgentFunctionVersion - 切换agent的功能版本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SwitchAgentFunctionVersionResponse switchAgentFunctionVersion( + SwitchAgentFunctionVersionRequest request) throws UCloudException { + request.setAction("SwitchAgentFunctionVersion"); + return (SwitchAgentFunctionVersionResponse) + this.invoke(request, SwitchAgentFunctionVersionResponse.class); + } + + /** + * VulStatisticTopN - 高危漏洞TOP N + * + * @param request Request object + * @throws UCloudException Exception + */ + public VulStatisticTopNResponse vulStatisticTopN(VulStatisticTopNRequest request) + throws UCloudException { + request.setAction("VulStatisticTopN"); + return (VulStatisticTopNResponse) this.invoke(request, VulStatisticTopNResponse.class); + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClientInterface.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClientInterface.java new file mode 100644 index 00000000..8fd68ee5 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/client/UHIDSClientInterface.java @@ -0,0 +1,329 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.client; + +import cn.ucloud.common.client.Client; +import cn.ucloud.common.exception.UCloudException; +import cn.ucloud.uhids.models.AddUHostSecBaseCheckWhiteRuleRequest; +import cn.ucloud.uhids.models.AddUHostSecBaseCheckWhiteRuleResponse; +import cn.ucloud.uhids.models.AddUHostSecWebRiskWhiteRuleRequest; +import cn.ucloud.uhids.models.AddUHostSecWebRiskWhiteRuleResponse; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginIpRequest; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginIpResponse; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginLocationRequest; +import cn.ucloud.uhids.models.AddUhostsecCommonLoginLocationResponse; +import cn.ucloud.uhids.models.AgentOSStatisticRequest; +import cn.ucloud.uhids.models.AgentOSStatisticResponse; +import cn.ucloud.uhids.models.AgentWarnningStatisticRequest; +import cn.ucloud.uhids.models.AgentWarnningStatisticResponse; +import cn.ucloud.uhids.models.BuyBillPointRequest; +import cn.ucloud.uhids.models.BuyBillPointResponse; +import cn.ucloud.uhids.models.DelUHostSecBaseCheckWhiteRuleRequest; +import cn.ucloud.uhids.models.DelUHostSecBaseCheckWhiteRuleResponse; +import cn.ucloud.uhids.models.DelUHostSecCommonLoginRequest; +import cn.ucloud.uhids.models.DelUHostSecCommonLoginResponse; +import cn.ucloud.uhids.models.DelUHostSecWarningsRequest; +import cn.ucloud.uhids.models.DelUHostSecWarningsResponse; +import cn.ucloud.uhids.models.GetUHostsecAgentDeploymentStatisticsRequest; +import cn.ucloud.uhids.models.GetUHostsecAgentDeploymentStatisticsResponse; +import cn.ucloud.uhids.models.GetUHostsecAgentInstallScriptRequest; +import cn.ucloud.uhids.models.GetUHostsecAgentInstallScriptResponse; +import cn.ucloud.uhids.models.GetUHostsecBaseCheckRuleDescriptionRequest; +import cn.ucloud.uhids.models.GetUHostsecBaseCheckRuleDescriptionResponse; +import cn.ucloud.uhids.models.GetUhostsecAgentDeploymentSituationWithVerInfoRequest; +import cn.ucloud.uhids.models.GetUhostsecAgentDeploymentSituationWithVerInfoResponse; +import cn.ucloud.uhids.models.GetUhostsecTrojanDescriptionRequest; +import cn.ucloud.uhids.models.GetUhostsecTrojanDescriptionResponse; +import cn.ucloud.uhids.models.ListUHostsecWarnDaysStatisticsV2Request; +import cn.ucloud.uhids.models.ListUHostsecWarnDaysStatisticsV2Response; +import cn.ucloud.uhids.models.ListUHostsecWarnStatisticsV2Request; +import cn.ucloud.uhids.models.ListUHostsecWarnStatisticsV2Response; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginIpRequest; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginIpResponse; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginLocationRequest; +import cn.ucloud.uhids.models.ListUhostsecCommonLoginLocationResponse; +import cn.ucloud.uhids.models.OptBusinessVerAutoRequest; +import cn.ucloud.uhids.models.OptBusinessVerAutoResponse; +import cn.ucloud.uhids.models.OptPayAutoRenewRequest; +import cn.ucloud.uhids.models.OptPayAutoRenewResponse; +import cn.ucloud.uhids.models.QueryBillPointDeductionFlowByCycleRequest; +import cn.ucloud.uhids.models.QueryBillPointDeductionFlowByCycleResponse; +import cn.ucloud.uhids.models.QueryNewestUpdateTimeRequest; +import cn.ucloud.uhids.models.QueryNewestUpdateTimeResponse; +import cn.ucloud.uhids.models.QueryPayInfoRequest; +import cn.ucloud.uhids.models.QueryPayInfoResponse; +import cn.ucloud.uhids.models.QueryUHostSecWarningBaseChecksRequest; +import cn.ucloud.uhids.models.QueryUHostSecWarningBaseChecksResponse; +import cn.ucloud.uhids.models.QueryWeekReportListRequest; +import cn.ucloud.uhids.models.QueryWeekReportListResponse; +import cn.ucloud.uhids.models.SwitchAgentFunctionVersionRequest; +import cn.ucloud.uhids.models.SwitchAgentFunctionVersionResponse; +import cn.ucloud.uhids.models.VulStatisticTopNRequest; +import cn.ucloud.uhids.models.VulStatisticTopNResponse; + +/** This client is used to call actions of **UHIDS** service */ +public interface UHIDSClientInterface extends Client { + + /** + * AddUHostSecBaseCheckWhiteRule - 添加安全基线白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUHostSecBaseCheckWhiteRuleResponse addUHostSecBaseCheckWhiteRule( + AddUHostSecBaseCheckWhiteRuleRequest request) throws UCloudException; + + /** + * AddUHostSecWebRiskWhiteRule - 添加webrisk白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUHostSecWebRiskWhiteRuleResponse addUHostSecWebRiskWhiteRule( + AddUHostSecWebRiskWhiteRuleRequest request) throws UCloudException; + + /** + * AddUhostsecCommonLoginIp - 添加常用登录Ip + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUhostsecCommonLoginIpResponse addUhostsecCommonLoginIp( + AddUhostsecCommonLoginIpRequest request) throws UCloudException; + + /** + * AddUhostsecCommonLoginLocation - 添加常用登录地 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AddUhostsecCommonLoginLocationResponse addUhostsecCommonLoginLocation( + AddUhostsecCommonLoginLocationRequest request) throws UCloudException; + + /** + * AgentOSStatistic - 主机操作系统分布 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AgentOSStatisticResponse agentOSStatistic(AgentOSStatisticRequest request) + throws UCloudException; + + /** + * AgentWarnningStatistic - 服务器状态统计 + * + * @param request Request object + * @throws UCloudException Exception + */ + public AgentWarnningStatisticResponse agentWarnningStatistic( + AgentWarnningStatisticRequest request) throws UCloudException; + + /** + * BuyBillPoint - 购买付费点数 + * + * @param request Request object + * @throws UCloudException Exception + */ + public BuyBillPointResponse buyBillPoint(BuyBillPointRequest request) throws UCloudException; + + /** + * DelUHostSecBaseCheckWhiteRule - 删除安全基线白名单 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUHostSecBaseCheckWhiteRuleResponse delUHostSecBaseCheckWhiteRule( + DelUHostSecBaseCheckWhiteRuleRequest request) throws UCloudException; + + /** + * DelUHostSecCommonLogin - 删除常用登陆IP或常用登陆地 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUHostSecCommonLoginResponse delUHostSecCommonLogin( + DelUHostSecCommonLoginRequest request) throws UCloudException; + + /** + * DelUHostSecWarnings - 删除告警 + * + * @param request Request object + * @throws UCloudException Exception + */ + public DelUHostSecWarningsResponse delUHostSecWarnings(DelUHostSecWarningsRequest request) + throws UCloudException; + + /** + * GetUHostsecAgentDeploymentStatistics - 获取当前项目制定工程的Agent部署统计值 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostsecAgentDeploymentStatisticsResponse getUHostsecAgentDeploymentStatistics( + GetUHostsecAgentDeploymentStatisticsRequest request) throws UCloudException; + + /** + * GetUHostsecAgentInstallScript - 获取主机安全Agent安全脚本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostsecAgentInstallScriptResponse getUHostsecAgentInstallScript( + GetUHostsecAgentInstallScriptRequest request) throws UCloudException; + + /** + * GetUHostsecBaseCheckRuleDescription - 获取基线检测指定规则详细描述 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUHostsecBaseCheckRuleDescriptionResponse getUHostsecBaseCheckRuleDescription( + GetUHostsecBaseCheckRuleDescriptionRequest request) throws UCloudException; + + /** + * GetUhostsecAgentDeploymentSituationWithVerInfo - 列出当前项目的主机安装信息(包括付费版本信息) + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUhostsecAgentDeploymentSituationWithVerInfoResponse + getUhostsecAgentDeploymentSituationWithVerInfo( + GetUhostsecAgentDeploymentSituationWithVerInfoRequest request) + throws UCloudException; + + /** + * GetUhostsecTrojanDescription - 获取某一类木马告警的详细描述信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public GetUhostsecTrojanDescriptionResponse getUhostsecTrojanDescription( + GetUhostsecTrojanDescriptionRequest request) throws UCloudException; + + /** + * ListUHostsecWarnDaysStatisticsV2 - 获取按天列出各类告警统计值 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUHostsecWarnDaysStatisticsV2Response listUHostsecWarnDaysStatisticsV2( + ListUHostsecWarnDaysStatisticsV2Request request) throws UCloudException; + + /** + * ListUHostsecWarnStatisticsV2 - 获取当前账号与项目下的各类主机安全告警统计值 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUHostsecWarnStatisticsV2Response listUHostsecWarnStatisticsV2( + ListUHostsecWarnStatisticsV2Request request) throws UCloudException; + + /** + * ListUhostsecCommonLoginIp - 列出公共登录ip列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUhostsecCommonLoginIpResponse listUhostsecCommonLoginIp( + ListUhostsecCommonLoginIpRequest request) throws UCloudException; + + /** + * ListUhostsecCommonLoginLocation - 获取公共登录地列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public ListUhostsecCommonLoginLocationResponse listUhostsecCommonLoginLocation( + ListUhostsecCommonLoginLocationRequest request) throws UCloudException; + + /** + * OptBusinessVerAuto - 操作自动设置企业版开关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public OptBusinessVerAutoResponse optBusinessVerAuto(OptBusinessVerAutoRequest request) + throws UCloudException; + + /** + * OptPayAutoRenew - 操作自动续费开关 + * + * @param request Request object + * @throws UCloudException Exception + */ + public OptPayAutoRenewResponse optPayAutoRenew(OptPayAutoRenewRequest request) + throws UCloudException; + + /** + * QueryBillPointDeductionFlowByCycle - 按照周期统计用户计费点数变化情况 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryBillPointDeductionFlowByCycleResponse queryBillPointDeductionFlowByCycle( + QueryBillPointDeductionFlowByCycleRequest request) throws UCloudException; + + /** + * QueryNewestUpdateTime - 查询下载数据最新更新时间 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryNewestUpdateTimeResponse queryNewestUpdateTime(QueryNewestUpdateTimeRequest request) + throws UCloudException; + + /** + * QueryPayInfo - 查询用户付费信息 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryPayInfoResponse queryPayInfo(QueryPayInfoRequest request) throws UCloudException; + + /** + * QueryUHostSecWarningBaseChecks - 查询正在告警的安全基线类型列表 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryUHostSecWarningBaseChecksResponse queryUHostSecWarningBaseChecks( + QueryUHostSecWarningBaseChecksRequest request) throws UCloudException; + + /** + * QueryWeekReportList - 查询主机安全周报 + * + * @param request Request object + * @throws UCloudException Exception + */ + public QueryWeekReportListResponse queryWeekReportList(QueryWeekReportListRequest request) + throws UCloudException; + + /** + * SwitchAgentFunctionVersion - 切换agent的功能版本 + * + * @param request Request object + * @throws UCloudException Exception + */ + public SwitchAgentFunctionVersionResponse switchAgentFunctionVersion( + SwitchAgentFunctionVersionRequest request) throws UCloudException; + + /** + * VulStatisticTopN - 高危漏洞TOP N + * + * @param request Request object + * @throws UCloudException Exception + */ + public VulStatisticTopNResponse vulStatisticTopN(VulStatisticTopNRequest request) + throws UCloudException; +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleRequest.java new file mode 100644 index 00000000..27fbf23f --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleRequest.java @@ -0,0 +1,53 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddUHostSecBaseCheckWhiteRuleRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** + * 基线白名单规则信息(值为以下字段的json转base64后字符串,json格式:{"Data":[{"IP":{"Type":"ip","IPs":["192.168.3.4","192.168.3.4"]},"RuleID":"B0101001V01","AppName":"Linux","Description":"存在弱口令用户[testUser]","RiskType":"配置缺陷","RiskLevel":"高危","User":"testUser"},{"IP":{"Type":"all","IPs":[]},"RuleID":"B0101001V01","AppName":"Linux","Description":"存在弱口令用户[testUser]","RiskType":"配置缺陷","RiskLevel":"高危","User":"testUser"}]}) + */ + @NotEmpty + @UCloudParam("Data") + private String data; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleResponse.java new file mode 100644 index 00000000..d31c4d91 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecBaseCheckWhiteRuleResponse.java @@ -0,0 +1,46 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddUHostSecBaseCheckWhiteRuleResponse extends Response { + + /** 成功数 */ + @SerializedName("Success") + private Integer success; + + /** 失败数 */ + @SerializedName("Fail") + private Integer fail; + + public Integer getSuccess() { + return success; + } + + public void setSuccess(Integer success) { + this.success = success; + } + + public Integer getFail() { + return fail; + } + + public void setFail(Integer fail) { + this.fail = fail; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleRequest.java new file mode 100644 index 00000000..afa34e85 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleRequest.java @@ -0,0 +1,53 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddUHostSecWebRiskWhiteRuleRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** + * webrisk白名单规则信息(值为以下字段的json转base64后字符串,json格式:{"Data":[{"IP":{"Type":"subnet","IPs":["192.168.1.0/24","172.36.1.0-172.36.255.255"]},"Type":"不安全的配置","RuleId":"30001","RiskDesc":"未删除的.git目录","Detail":"未删除的.git目录,黑客可以直接下载git相关文件","FileName":"/var/www/html/DiscuzX/install/index.php"},{"IP":{"Type":"all","IPs":[]},"Type":"不安全的配置","RuleId":"30001","RiskDesc":"未删除的.git目录","Detail":"未删除的.git目录,黑客可以直接下载git相关文件","FileName":"/var/www/html/DiscuzX/install/index.php"}]}) + */ + @NotEmpty + @UCloudParam("Data") + private String data; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleResponse.java new file mode 100644 index 00000000..1545d97b --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUHostSecWebRiskWhiteRuleResponse.java @@ -0,0 +1,46 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AddUHostSecWebRiskWhiteRuleResponse extends Response { + + /** 成功数 */ + @SerializedName("Success") + private Integer success; + + /** 失败数 */ + @SerializedName("Fail") + private Integer fail; + + public Integer getSuccess() { + return success; + } + + public void setSuccess(Integer success) { + this.success = success; + } + + public Integer getFail() { + return fail; + } + + public void setFail(Integer fail) { + this.fail = fail; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpRequest.java new file mode 100644 index 00000000..c9fc1170 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpRequest.java @@ -0,0 +1,51 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddUhostsecCommonLoginIpRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** IP白名单列表,多个逗号间隔 */ + @NotEmpty + @UCloudParam("IPs") + private String iPs; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getIPs() { + return iPs; + } + + public void setIPs(String iPs) { + this.iPs = iPs; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpResponse.java new file mode 100644 index 00000000..54c6b577 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginIpResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + + +import cn.ucloud.common.response.Response; + +public class AddUhostsecCommonLoginIpResponse extends Response {} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationRequest.java new file mode 100644 index 00000000..f53c64b8 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationRequest.java @@ -0,0 +1,53 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AddUhostsecCommonLoginLocationRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** + * 登录地址信息(值为以下字段的json转base64后字符串,json格式:{"Data":[{"Country":"中国","Province":"广东","City":"深圳"},{"Country":"中国","Province":"广东","City":"广州"}]}) + */ + @NotEmpty + @UCloudParam("Data") + private String data; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationResponse.java new file mode 100644 index 00000000..c0f8fe15 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AddUhostsecCommonLoginLocationResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + + +import cn.ucloud.common.response.Response; + +public class AddUhostsecCommonLoginLocationResponse extends Response {} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticRequest.java new file mode 100644 index 00000000..8d0bac8b --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticRequest.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AgentOSStatisticRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticResponse.java new file mode 100644 index 00000000..23bc5667 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentOSStatisticResponse.java @@ -0,0 +1,128 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class AgentOSStatisticResponse extends Response { + + /** 操作系统安装量统计结果 */ + @SerializedName("Result") + private OSList result; + + public OSList getResult() { + return result; + } + + public void setResult(OSList result) { + this.result = result; + } + + public static class OSInfo extends Response { + + /** 主机数 */ + @SerializedName("Count") + private Integer count; + + /** 系统类型 */ + @SerializedName("OSType") + private String osType; + + /** 系统版本列表 */ + @SerializedName("Version") + private List version; + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public String getOSType() { + return osType; + } + + public void setOSType(String osType) { + this.osType = osType; + } + + public List getVersion() { + return version; + } + + public void setVersion(List version) { + this.version = version; + } + } + + public static class OSList extends Response { + + /** 主机操作系统总数 */ + @SerializedName("Total") + private Integer total; + + /** 主机操作系统列表 */ + @SerializedName("OS") + private List os; + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public List getOS() { + return os; + } + + public void setOS(List os) { + this.os = os; + } + } + + public static class OSVersion extends Response { + + /** 系统名称 */ + @SerializedName("Name") + private String name; + + /** 该版本系统安装主机数 */ + @SerializedName("Count") + private Integer count; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticRequest.java new file mode 100644 index 00000000..8a229cd9 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticRequest.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class AgentWarnningStatisticRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticResponse.java new file mode 100644 index 00000000..e8bba899 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/AgentWarnningStatisticResponse.java @@ -0,0 +1,97 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class AgentWarnningStatisticResponse extends Response { + + /** 主机状态统计结果值 */ + @SerializedName("Result") + private AgentWarnningStatisticInfo result; + + public AgentWarnningStatisticInfo getResult() { + return result; + } + + public void setResult(AgentWarnningStatisticInfo result) { + this.result = result; + } + + public static class AgentWarnningStatisticInfo extends Response { + + /** 主机总数 */ + @SerializedName("AgentTotal") + private Integer agentTotal; + + /** 在线主机数 */ + @SerializedName("Online") + private Integer online; + + /** 离线主机数 */ + @SerializedName("Offline") + private Integer offline; + + /** 有风险主机数 */ + @SerializedName("WarnningCount") + private Integer warnningCount; + + /** 无风险主机数 */ + @SerializedName("SafeCount") + private Integer safeCount; + + public Integer getAgentTotal() { + return agentTotal; + } + + public void setAgentTotal(Integer agentTotal) { + this.agentTotal = agentTotal; + } + + public Integer getOnline() { + return online; + } + + public void setOnline(Integer online) { + this.online = online; + } + + public Integer getOffline() { + return offline; + } + + public void setOffline(Integer offline) { + this.offline = offline; + } + + public Integer getWarnningCount() { + return warnningCount; + } + + public void setWarnningCount(Integer warnningCount) { + this.warnningCount = warnningCount; + } + + public Integer getSafeCount() { + return safeCount; + } + + public void setSafeCount(Integer safeCount) { + this.safeCount = safeCount; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointRequest.java new file mode 100644 index 00000000..1e1eb7cd --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointRequest.java @@ -0,0 +1,77 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class BuyBillPointRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 购买数量 */ + @NotEmpty + @UCloudParam("PointNum") + private Integer pointNum; + + /** 是否自动续费(true-是,false-否) */ + @NotEmpty + @UCloudParam("AutoRenew") + private Boolean autoRenew; + + /** 是否自动设置企业版(true-是,false-否) */ + @NotEmpty + @UCloudParam("AutoBusiness") + private Boolean autoBusiness; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getPointNum() { + return pointNum; + } + + public void setPointNum(Integer pointNum) { + this.pointNum = pointNum; + } + + public Boolean getAutoRenew() { + return autoRenew; + } + + public void setAutoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + } + + public Boolean getAutoBusiness() { + return autoBusiness; + } + + public void setAutoBusiness(Boolean autoBusiness) { + this.autoBusiness = autoBusiness; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointResponse.java new file mode 100644 index 00000000..d3ceadb8 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/BuyBillPointResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + + +import cn.ucloud.common.response.Response; + +public class BuyBillPointResponse extends Response {} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleRequest.java new file mode 100644 index 00000000..9685f5c6 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleRequest.java @@ -0,0 +1,50 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DelUHostSecBaseCheckWhiteRuleRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @UCloudParam("ProjectId") + private String projectId; + + /** 基线白名单ID */ + @NotEmpty + @UCloudParam("WhiteID") + private String whiteID; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getWhiteID() { + return whiteID; + } + + public void setWhiteID(String whiteID) { + this.whiteID = whiteID; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleResponse.java new file mode 100644 index 00000000..dbd4d60b --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecBaseCheckWhiteRuleResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + + +import cn.ucloud.common.response.Response; + +public class DelUHostSecBaseCheckWhiteRuleResponse extends Response {} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginRequest.java new file mode 100644 index 00000000..dc18bb4a --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginRequest.java @@ -0,0 +1,75 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DelUHostSecCommonLoginRequest extends Request { + + /** 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Region") + private String region; + + /** 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) */ + @UCloudParam("Zone") + private String zone; + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 登录白名单ID */ + @NotEmpty + @UCloudParam("WhiteID") + private String whiteID; + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getWhiteID() { + return whiteID; + } + + public void setWhiteID(String whiteID) { + this.whiteID = whiteID; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginResponse.java new file mode 100644 index 00000000..33f0fd96 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecCommonLoginResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + + +import cn.ucloud.common.response.Response; + +public class DelUHostSecCommonLoginResponse extends Response {} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsRequest.java new file mode 100644 index 00000000..19d07414 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsRequest.java @@ -0,0 +1,53 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class DelUHostSecWarningsRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** + * 要删除告警的列表json格式:{"Data":[{"WarnType":"WebShellAlarm","ID":"59e870483ef9f419617b7744"},{"WarnType":"checkCockhorse","ID":"59f67a26812c307b65d72e99"}]})WarnType类型:WebShellAlarm,checkCockhorse,BaseCheck,webRisk,VulCheck2,AbnormalLogin,SshBruteSucceeded + */ + @NotEmpty + @UCloudParam("Data") + private String data; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsResponse.java new file mode 100644 index 00000000..c01f24e1 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/DelUHostSecWarningsResponse.java @@ -0,0 +1,20 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + + +import cn.ucloud.common.response.Response; + +public class DelUHostSecWarningsResponse extends Response {} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsRequest.java new file mode 100644 index 00000000..c3bed7a1 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsRequest.java @@ -0,0 +1,38 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUHostsecAgentDeploymentStatisticsRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsResponse.java new file mode 100644 index 00000000..9228a03e --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentDeploymentStatisticsResponse.java @@ -0,0 +1,46 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUHostsecAgentDeploymentStatisticsResponse extends Response { + + /** 已安装台数 */ + @SerializedName("Installed") + private Integer installed; + + /** 未安装台数 */ + @SerializedName("Uninstalled") + private Integer uninstalled; + + public Integer getInstalled() { + return installed; + } + + public void setInstalled(Integer installed) { + this.installed = installed; + } + + public Integer getUninstalled() { + return uninstalled; + } + + public void setUninstalled(Integer uninstalled) { + this.uninstalled = uninstalled; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptRequest.java new file mode 100644 index 00000000..bbf3653b --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptRequest.java @@ -0,0 +1,38 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUHostsecAgentInstallScriptRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptResponse.java new file mode 100644 index 00000000..724a49a2 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecAgentInstallScriptResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUHostsecAgentInstallScriptResponse extends Response { + + /** 安装脚本内容 */ + @SerializedName("InstallScript") + private String installScript; + + public String getInstallScript() { + return installScript; + } + + public void setInstallScript(String installScript) { + this.installScript = installScript; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionRequest.java new file mode 100644 index 00000000..b0a9e1dd --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionRequest.java @@ -0,0 +1,48 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUHostsecBaseCheckRuleDescriptionRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 规则ID */ + @NotEmpty + @UCloudParam("RuleID") + private String ruleID; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getRuleID() { + return ruleID; + } + + public void setRuleID(String ruleID) { + this.ruleID = ruleID; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionResponse.java new file mode 100644 index 00000000..d49c7d15 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUHostsecBaseCheckRuleDescriptionResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUHostsecBaseCheckRuleDescriptionResponse extends Response { + + /** 规则描述 */ + @SerializedName("Description") + private String description; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoRequest.java new file mode 100644 index 00000000..9ed13edf --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoRequest.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUhostsecAgentDeploymentSituationWithVerInfoRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoResponse.java new file mode 100644 index 00000000..532bb738 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecAgentDeploymentSituationWithVerInfoResponse.java @@ -0,0 +1,221 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class GetUhostsecAgentDeploymentSituationWithVerInfoResponse extends Response { + + /** 主机信息 */ + @SerializedName("InfoList") + private List infoList; + + /** 主机总数 */ + @SerializedName("TotalNum") + private Integer totalNum; + + /** 已安装UHIDS的主机数 */ + @SerializedName("InstallNum") + private Integer installNum; + + /** 未安装UHIDS的主机数 */ + @SerializedName("UninstallNum") + private Integer uninstallNum; + + public List getInfoList() { + return infoList; + } + + public void setInfoList(List infoList) { + this.infoList = infoList; + } + + public Integer getTotalNum() { + return totalNum; + } + + public void setTotalNum(Integer totalNum) { + this.totalNum = totalNum; + } + + public Integer getInstallNum() { + return installNum; + } + + public void setInstallNum(Integer installNum) { + this.installNum = installNum; + } + + public Integer getUninstallNum() { + return uninstallNum; + } + + public void setUninstallNum(Integer uninstallNum) { + this.uninstallNum = uninstallNum; + } + + public static class HostAgentStatusInfo extends Response { + + /** 可用区 */ + @SerializedName("Zone") + private String zone; + + /** 主机IP列表 */ + @SerializedName("Ip") + private List ip; + + /** uhost资源短ID */ + @SerializedName("UHostId") + private String uHostId; + + /** UHIDS的Agent识别ID */ + @SerializedName("AgentId") + private String agentId; + + /** 是否已经安装 */ + @SerializedName("Installed") + private Boolean installed; + + /** 此主机当前UHIDS版本信息 */ + @SerializedName("NowVer") + private Integer nowVer; + + /** 用户设置此主机UHIDS版本信息 */ + @SerializedName("SetVer") + private Integer setVer; + + /** uhost的备注名 */ + @SerializedName("HostName") + private String hostName; + + /** 网卡信息列表 */ + @SerializedName("NICs") + private List niCs; + + /** 系统版本 */ + @SerializedName("OsName") + private String osName; + + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + public List getIp() { + return ip; + } + + public void setIp(List ip) { + this.ip = ip; + } + + public String getUHostId() { + return uHostId; + } + + public void setUHostId(String uHostId) { + this.uHostId = uHostId; + } + + public String getAgentId() { + return agentId; + } + + public void setAgentId(String agentId) { + this.agentId = agentId; + } + + public Boolean getInstalled() { + return installed; + } + + public void setInstalled(Boolean installed) { + this.installed = installed; + } + + public Integer getNowVer() { + return nowVer; + } + + public void setNowVer(Integer nowVer) { + this.nowVer = nowVer; + } + + public Integer getSetVer() { + return setVer; + } + + public void setSetVer(Integer setVer) { + this.setVer = setVer; + } + + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public List getNICs() { + return niCs; + } + + public void setNICs(List niCs) { + this.niCs = niCs; + } + + public String getOsName() { + return osName; + } + + public void setOsName(String osName) { + this.osName = osName; + } + } + + public static class NIC extends Response { + + /** 网卡ip */ + @SerializedName("IP") + private String ip; + + /** 网卡mac */ + @SerializedName("Mac") + private String mac; + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionRequest.java new file mode 100644 index 00000000..1cd890c5 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionRequest.java @@ -0,0 +1,50 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class GetUhostsecTrojanDescriptionRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** + * 获取指定当前木马对应的告警表名,指定当前木马对应的告警表名,利用告警表名来获取当前的描述信息,可以通过获取ListUHostsecTrojanWarnsResponse的返回信息提供TableName值内容,值:WebShellAlarm、checkCockhorse + */ + @NotEmpty + @UCloudParam("TableName") + private String tableName; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionResponse.java new file mode 100644 index 00000000..c0d50703 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/GetUhostsecTrojanDescriptionResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class GetUhostsecTrojanDescriptionResponse extends Response { + + /** 木马描述信息 */ + @SerializedName("Description") + private String description; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Request.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Request.java new file mode 100644 index 00000000..624d16f0 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Request.java @@ -0,0 +1,62 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUHostsecWarnDaysStatisticsV2Request extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 统计开始时间(y-m-d hh:mm:ss)。不填写默认从一周前开始统计 */ + @UCloudParam("StartTime") + private String startTime; + + /** 统计结束时间(y-m-d hh:mm:ss)。不填写默认为当前时间 */ + @UCloudParam("EndTime") + private String endTime; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Response.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Response.java new file mode 100644 index 00000000..28eeda74 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnDaysStatisticsV2Response.java @@ -0,0 +1,122 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUHostsecWarnDaysStatisticsV2Response extends Response { + + /** 按天的统计对象数组 */ + @SerializedName("Statistics") + private List statistics; + + public List getStatistics() { + return statistics; + } + + public void setStatistics(List statistics) { + this.statistics = statistics; + } + + public static class Statistics extends Response { + + /** 进行告警统计的时间 */ + @SerializedName("Date") + private String date; + + /** 安全基线检查告警统计值 */ + @SerializedName("BaseCheck") + private Integer baseCheck; + + /** 异常登录告警统计值 */ + @SerializedName("AbnormalLogin") + private Integer abnormalLogin; + + /** 暴力破解成功告警统计值 */ + @SerializedName("SshBruteSucceeded") + private Integer sshBruteSucceeded; + + /** 暴力破解失败统计值 */ + @SerializedName("SshBruteFailed") + private Integer sshBruteFailed; + + /** 木马告警统计值 */ + @SerializedName("Trojan") + private Integer trojan; + + /** 漏洞检查告警统计值 */ + @SerializedName("VulCheck") + private Integer vulCheck; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public Integer getBaseCheck() { + return baseCheck; + } + + public void setBaseCheck(Integer baseCheck) { + this.baseCheck = baseCheck; + } + + public Integer getAbnormalLogin() { + return abnormalLogin; + } + + public void setAbnormalLogin(Integer abnormalLogin) { + this.abnormalLogin = abnormalLogin; + } + + public Integer getSshBruteSucceeded() { + return sshBruteSucceeded; + } + + public void setSshBruteSucceeded(Integer sshBruteSucceeded) { + this.sshBruteSucceeded = sshBruteSucceeded; + } + + public Integer getSshBruteFailed() { + return sshBruteFailed; + } + + public void setSshBruteFailed(Integer sshBruteFailed) { + this.sshBruteFailed = sshBruteFailed; + } + + public Integer getTrojan() { + return trojan; + } + + public void setTrojan(Integer trojan) { + this.trojan = trojan; + } + + public Integer getVulCheck() { + return vulCheck; + } + + public void setVulCheck(Integer vulCheck) { + this.vulCheck = vulCheck; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Request.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Request.java new file mode 100644 index 00000000..efc1545d --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Request.java @@ -0,0 +1,38 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUHostsecWarnStatisticsV2Request extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Response.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Response.java new file mode 100644 index 00000000..3b7b953a --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUHostsecWarnStatisticsV2Response.java @@ -0,0 +1,109 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class ListUHostsecWarnStatisticsV2Response extends Response { + + /** 主机安全各告警统计值 */ + @SerializedName("WarnStatistics") + private WarnStatistics warnStatistics; + + public WarnStatistics getWarnStatistics() { + return warnStatistics; + } + + public void setWarnStatistics(WarnStatistics warnStatistics) { + this.warnStatistics = warnStatistics; + } + + public static class WarnStatistics extends Response { + + /** 安全基线检查告警统计值 */ + @SerializedName("BaseCheck") + private Integer baseCheck; + + /** 异常登录告警统计值 */ + @SerializedName("AbnormalLogin") + private Integer abnormalLogin; + + /** 暴力破解成功告警统计值 */ + @SerializedName("SshBruteSucceeded") + private Integer sshBruteSucceeded; + + /** 木马告警统计值 */ + @SerializedName("Trojan") + private Integer trojan; + + /** 漏洞检查告警统计值 */ + @SerializedName("VulCheck") + private Integer vulCheck; + + /** 暴力破解失败统计值 */ + @SerializedName("SshBruteFailed") + private Integer sshBruteFailed; + + public Integer getBaseCheck() { + return baseCheck; + } + + public void setBaseCheck(Integer baseCheck) { + this.baseCheck = baseCheck; + } + + public Integer getAbnormalLogin() { + return abnormalLogin; + } + + public void setAbnormalLogin(Integer abnormalLogin) { + this.abnormalLogin = abnormalLogin; + } + + public Integer getSshBruteSucceeded() { + return sshBruteSucceeded; + } + + public void setSshBruteSucceeded(Integer sshBruteSucceeded) { + this.sshBruteSucceeded = sshBruteSucceeded; + } + + public Integer getTrojan() { + return trojan; + } + + public void setTrojan(Integer trojan) { + this.trojan = trojan; + } + + public Integer getVulCheck() { + return vulCheck; + } + + public void setVulCheck(Integer vulCheck) { + this.vulCheck = vulCheck; + } + + public Integer getSshBruteFailed() { + return sshBruteFailed; + } + + public void setSshBruteFailed(Integer sshBruteFailed) { + this.sshBruteFailed = sshBruteFailed; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpRequest.java new file mode 100644 index 00000000..e779d6e3 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpRequest.java @@ -0,0 +1,38 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUhostsecCommonLoginIpRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpResponse.java new file mode 100644 index 00000000..c248321a --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginIpResponse.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUhostsecCommonLoginIpResponse extends Response { + + /** IP白名单列表 */ + @SerializedName("Infos") + private List infos; + + public List getInfos() { + return infos; + } + + public void setInfos(List infos) { + this.infos = infos; + } + + public static class IP extends Response { + + /** IP */ + @SerializedName("IP") + private String ip; + + /** ID */ + @SerializedName("ID") + private String id; + + /** 操作账号 */ + @SerializedName("Account") + private String account; + + /** 添加时间 */ + @SerializedName("CreateTime") + private String createTime; + + public String getIP() { + return ip; + } + + public void setIP(String ip) { + this.ip = ip; + } + + public String getID() { + return id; + } + + public void setID(String id) { + this.id = id; + } + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationRequest.java new file mode 100644 index 00000000..4ee35c44 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationRequest.java @@ -0,0 +1,38 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class ListUhostsecCommonLoginLocationRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationResponse.java new file mode 100644 index 00000000..f68aad05 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/ListUhostsecCommonLoginLocationResponse.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class ListUhostsecCommonLoginLocationResponse extends Response { + + /** 公共登录地列表 */ + @SerializedName("Infos") + private List infos; + + public List getInfos() { + return infos; + } + + public void setInfos(List infos) { + this.infos = infos; + } + + public static class CommonLoginLocationInfo extends Response { + + /** 国家 */ + @SerializedName("Country") + private String country; + + /** 省份 */ + @SerializedName("Province") + private String province; + + /** 城市 */ + @SerializedName("City") + private String city; + + /** 账号 */ + @SerializedName("Account") + private String account; + + /** 创建/修改时间 */ + @SerializedName("CreateTime") + private String createTime; + + public String getCountry() { + return country; + } + + public void setCountry(String country) { + this.country = country; + } + + public String getProvince() { + return province; + } + + public void setProvince(String province) { + this.province = province; + } + + public String getCity() { + return city; + } + + public void setCity(String city) { + this.city = city; + } + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoRequest.java new file mode 100644 index 00000000..8f16a049 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoRequest.java @@ -0,0 +1,48 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class OptBusinessVerAutoRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 开(true)/关(false) */ + @NotEmpty + @UCloudParam("Open") + private Boolean open; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Boolean getOpen() { + return open; + } + + public void setOpen(Boolean open) { + this.open = open; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoResponse.java new file mode 100644 index 00000000..cce80a52 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptBusinessVerAutoResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class OptBusinessVerAutoResponse extends Response { + + /** 当前开关状态,false-关闭,true-开启 */ + @SerializedName("OpenStatus") + private Boolean openStatus; + + public Boolean getOpenStatus() { + return openStatus; + } + + public void setOpenStatus(Boolean openStatus) { + this.openStatus = openStatus; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewRequest.java new file mode 100644 index 00000000..5cf36d00 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewRequest.java @@ -0,0 +1,48 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class OptPayAutoRenewRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 开(true)/关(false) */ + @NotEmpty + @UCloudParam("Open") + private Boolean open; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Boolean getOpen() { + return open; + } + + public void setOpen(Boolean open) { + this.open = open; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewResponse.java new file mode 100644 index 00000000..a11d1fc7 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/OptPayAutoRenewResponse.java @@ -0,0 +1,34 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class OptPayAutoRenewResponse extends Response { + + /** 当前开关状态,false-关闭,true-开启 */ + @SerializedName("OpenStatus") + private Boolean openStatus; + + public Boolean getOpenStatus() { + return openStatus; + } + + public void setOpenStatus(Boolean openStatus) { + this.openStatus = openStatus; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleRequest.java new file mode 100644 index 00000000..44d671d4 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleRequest.java @@ -0,0 +1,72 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class QueryBillPointDeductionFlowByCycleRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 周期(可用值:day) */ + @NotEmpty + @UCloudParam("Type") + private String type; + + /** (可选)查询开始时间,格式xxxx-xx-xx */ + @UCloudParam("StartTime") + private String startTime; + + /** (可选)查询结束时间,格式xxxx-xx-xx */ + @UCloudParam("EndTime") + private String endTime; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleResponse.java new file mode 100644 index 00000000..ec417dce --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryBillPointDeductionFlowByCycleResponse.java @@ -0,0 +1,86 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class QueryBillPointDeductionFlowByCycleResponse extends Response { + + /** 返回的数据 */ + @SerializedName("Result") + private List result; + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + public static class CycleBillPointStat extends Response { + + /** 统计时间 */ + @SerializedName("Time") + private String time; + + /** 增加的点数 */ + @SerializedName("SubPointNum") + private Integer subPointNum; + + /** 减少的减少 */ + @SerializedName("AddPointNum") + private Integer addPointNum; + + /** 余留的点数 */ + @SerializedName("RemainPointNum") + private Integer remainPointNum; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public Integer getSubPointNum() { + return subPointNum; + } + + public void setSubPointNum(Integer subPointNum) { + this.subPointNum = subPointNum; + } + + public Integer getAddPointNum() { + return addPointNum; + } + + public void setAddPointNum(Integer addPointNum) { + this.addPointNum = addPointNum; + } + + public Integer getRemainPointNum() { + return remainPointNum; + } + + public void setRemainPointNum(Integer remainPointNum) { + this.remainPointNum = remainPointNum; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeRequest.java new file mode 100644 index 00000000..72788928 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeRequest.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class QueryNewestUpdateTimeRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeResponse.java new file mode 100644 index 00000000..b07f25f3 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryNewestUpdateTimeResponse.java @@ -0,0 +1,97 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class QueryNewestUpdateTimeResponse extends Response { + + /** 数据最新更新时间 */ + @SerializedName("Result") + private DataSignatureNewestUpdateTime result; + + public DataSignatureNewestUpdateTime getResult() { + return result; + } + + public void setResult(DataSignatureNewestUpdateTime result) { + this.result = result; + } + + public static class DataSignatureNewestUpdateTime extends Response { + + /** 木马样本最新更新时间 */ + @SerializedName("Torojan") + private String torojan; + + /** web基线最新更新时间 */ + @SerializedName("WebBase") + private String webBase; + + /** Webshell最新更新时间 */ + @SerializedName("Webshell") + private String webshell; + + /** 漏洞最新更新时间 */ + @SerializedName("Vul") + private String vul; + + /** 登录流水最新更新时间 */ + @SerializedName("Login") + private String login; + + public String getTorojan() { + return torojan; + } + + public void setTorojan(String torojan) { + this.torojan = torojan; + } + + public String getWebBase() { + return webBase; + } + + public void setWebBase(String webBase) { + this.webBase = webBase; + } + + public String getWebshell() { + return webshell; + } + + public void setWebshell(String webshell) { + this.webshell = webshell; + } + + public String getVul() { + return vul; + } + + public void setVul(String vul) { + this.vul = vul; + } + + public String getLogin() { + return login; + } + + public void setLogin(String login) { + this.login = login; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoRequest.java new file mode 100644 index 00000000..9c8e3d8a --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoRequest.java @@ -0,0 +1,35 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class QueryPayInfoRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoResponse.java new file mode 100644 index 00000000..512a0849 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryPayInfoResponse.java @@ -0,0 +1,142 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class QueryPayInfoResponse extends Response { + + /** 未消费预付费点数 */ + @SerializedName("BillPoint") + private Integer billPoint; + + /** 预付费点数剩余使用时长 */ + @SerializedName("RemainTime") + private String remainTime; + + /** 预付费点数过期时间 */ + @SerializedName("ExpiratTime") + private String expiratTime; + + /** 自动续费开关 */ + @SerializedName("AutoRenew") + private Boolean autoRenew; + + /** 自动企业版开关 */ + @SerializedName("AutoBusinessVer") + private Boolean autoBusinessVer; + + /** 用户最近一次购买的点数大小 */ + @SerializedName("RenewPointNum") + private Integer renewPointNum; + + /** 公司ID */ + @SerializedName("CompanyId") + private Integer companyId; + + /** 项目ID */ + @SerializedName("OrganizationId") + private Integer organizationId; + + /** 资源ID */ + @SerializedName("ResourceLongId") + private String resourceLongId; + + /** 更改时间 */ + @SerializedName("UpdateTime") + private String updateTime; + + public Integer getBillPoint() { + return billPoint; + } + + public void setBillPoint(Integer billPoint) { + this.billPoint = billPoint; + } + + public String getRemainTime() { + return remainTime; + } + + public void setRemainTime(String remainTime) { + this.remainTime = remainTime; + } + + public String getExpiratTime() { + return expiratTime; + } + + public void setExpiratTime(String expiratTime) { + this.expiratTime = expiratTime; + } + + public Boolean getAutoRenew() { + return autoRenew; + } + + public void setAutoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + } + + public Boolean getAutoBusinessVer() { + return autoBusinessVer; + } + + public void setAutoBusinessVer(Boolean autoBusinessVer) { + this.autoBusinessVer = autoBusinessVer; + } + + public Integer getRenewPointNum() { + return renewPointNum; + } + + public void setRenewPointNum(Integer renewPointNum) { + this.renewPointNum = renewPointNum; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public Integer getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Integer organizationId) { + this.organizationId = organizationId; + } + + public String getResourceLongId() { + return resourceLongId; + } + + public void setResourceLongId(String resourceLongId) { + this.resourceLongId = resourceLongId; + } + + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksRequest.java new file mode 100644 index 00000000..cb575c00 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksRequest.java @@ -0,0 +1,51 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class QueryUHostSecWarningBaseChecksRequest extends Request { + + /** + * 项目ID。不填写为默认项目,子帐号必须填写。 + * 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 过滤BaseCheck告警类型,sys:系统安全检查,app:应用安全检查 */ + @NotEmpty + @UCloudParam("Type") + private String type; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksResponse.java new file mode 100644 index 00000000..3153227a --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryUHostSecWarningBaseChecksResponse.java @@ -0,0 +1,122 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class QueryUHostSecWarningBaseChecksResponse extends Response { + + /** 正在告警基线类型 */ + @SerializedName("Result") + private List result; + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + public static class BaseCheckWarning extends Response { + + /** 基线规则ID */ + @SerializedName("RuleID") + private String ruleID; + + /** 应用类 */ + @SerializedName("AppName") + private String appName; + + /** 风险描述 */ + @SerializedName("Description") + private String description; + + /** 风险英文描述 */ + @SerializedName("DescriptionEn") + private String descriptionEn; + + /** 风险类型 */ + @SerializedName("RiskType") + private String riskType; + + /** 风险等级 */ + @SerializedName("RiskLevel") + private String riskLevel; + + /** 影响主机数 */ + @SerializedName("AgentCount") + private Integer agentCount; + + public String getRuleID() { + return ruleID; + } + + public void setRuleID(String ruleID) { + this.ruleID = ruleID; + } + + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescriptionEn() { + return descriptionEn; + } + + public void setDescriptionEn(String descriptionEn) { + this.descriptionEn = descriptionEn; + } + + public String getRiskType() { + return riskType; + } + + public void setRiskType(String riskType) { + this.riskType = riskType; + } + + public String getRiskLevel() { + return riskLevel; + } + + public void setRiskLevel(String riskLevel) { + this.riskLevel = riskLevel; + } + + public Integer getAgentCount() { + return agentCount; + } + + public void setAgentCount(Integer agentCount) { + this.agentCount = agentCount; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListRequest.java new file mode 100644 index 00000000..fc2d9337 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListRequest.java @@ -0,0 +1,59 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class QueryWeekReportListRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 页大小 */ + @UCloudParam("PageSize") + private Integer pageSize; + + /** 第N页 */ + @UCloudParam("PageIndex") + private Integer pageIndex; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public Integer getPageIndex() { + return pageIndex; + } + + public void setPageIndex(Integer pageIndex) { + this.pageIndex = pageIndex; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListResponse.java new file mode 100644 index 00000000..4f916947 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/QueryWeekReportListResponse.java @@ -0,0 +1,62 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class QueryWeekReportListResponse extends Response { + + /** 文件列表 */ + @SerializedName("Result") + private List result; + + /** 记录总数 */ + @SerializedName("Total") + private Integer total; + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public static class WeekReport extends Response { + + /** 文件名称 */ + @SerializedName("FileName") + private String fileName; + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionRequest.java new file mode 100644 index 00000000..8bd5e640 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionRequest.java @@ -0,0 +1,98 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class SwitchAgentFunctionVersionRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 功能版本(0-基础版 1-企业版) */ + @NotEmpty + @UCloudParam("FuncVersion") + private Integer funcVersion; + + /** 操作的Agent列表,以逗号分隔,如全部则设成ALL */ + @NotEmpty + @UCloudParam("AgentList") + private String agentList; + + /** 付费类型 月付或年付 */ + @NotEmpty + @UCloudParam("ChargeType") + private Integer chargeType; + + /** 购买数量 */ + @UCloudParam("Quantity") + private Integer quantity; + + /** 代金券 */ + @UCloudParam("Coupon") + private String coupon; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getFuncVersion() { + return funcVersion; + } + + public void setFuncVersion(Integer funcVersion) { + this.funcVersion = funcVersion; + } + + public String getAgentList() { + return agentList; + } + + public void setAgentList(String agentList) { + this.agentList = agentList; + } + + public Integer getChargeType() { + return chargeType; + } + + public void setChargeType(Integer chargeType) { + this.chargeType = chargeType; + } + + public Integer getQuantity() { + return quantity; + } + + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + public String getCoupon() { + return coupon; + } + + public void setCoupon(String coupon) { + this.coupon = coupon; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionResponse.java new file mode 100644 index 00000000..204aac92 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/SwitchAgentFunctionVersionResponse.java @@ -0,0 +1,73 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +public class SwitchAgentFunctionVersionResponse extends Response { + + /** 切换 Agent 版本结果 */ + @SerializedName("Records") + private SwitchAgentRecord records; + + public SwitchAgentRecord getRecords() { + return records; + } + + public void setRecords(SwitchAgentRecord records) { + this.records = records; + } + + public static class SwitchAgentRecord extends Response { + + /** */ + @SerializedName("AgentID") + private String agentID; + + /** */ + @SerializedName("RetCode") + private Integer retCode; + + /** */ + @SerializedName("Message") + private String message; + + public String getAgentID() { + return agentID; + } + + public void setAgentID(String agentID) { + this.agentID = agentID; + } + + public Integer getRetCode() { + return retCode; + } + + public void setRetCode(Integer retCode) { + this.retCode = retCode; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNRequest.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNRequest.java new file mode 100644 index 00000000..43f69911 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNRequest.java @@ -0,0 +1,47 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + + +import cn.ucloud.common.annotation.NotEmpty; +import cn.ucloud.common.annotation.UCloudParam; +import cn.ucloud.common.request.Request; + +public class VulStatisticTopNRequest extends Request { + + /** 项目ID */ + @NotEmpty + @UCloudParam("ProjectId") + private String projectId; + + /** 感染主机数量最多的前N个漏洞,最小为10 */ + @UCloudParam("TopN") + private Integer topN; + + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public Integer getTopN() { + return topN; + } + + public void setTopN(Integer topN) { + this.topN = topN; + } +} diff --git a/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNResponse.java b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNResponse.java new file mode 100644 index 00000000..edffa9e5 --- /dev/null +++ b/ucloud-sdk-java-uhids/src/main/java/cn/ucloud/uhids/models/VulStatisticTopNResponse.java @@ -0,0 +1,74 @@ +/** + * Copyright 2021 UCloud Technology Co., Ltd. + * + *

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of the License at + * + *

http://www.apache.org/licenses/LICENSE-2.0 + * + *

Unless required by applicable law or agreed to in writing, software distributed under the + * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package cn.ucloud.uhids.models; + +import cn.ucloud.common.response.Response; + +import com.google.gson.annotations.SerializedName; + +import java.util.List; + +public class VulStatisticTopNResponse extends Response { + + /** 感染主机数量最多的前N个漏洞列表信息 */ + @SerializedName("Result") + private List result; + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + public static class VulStatisticTopNInfo extends Response { + + /** 漏洞ID */ + @SerializedName("VulID") + private String vulID; + + /** 漏洞名称 */ + @SerializedName("Name") + private String name; + + /** 存在该漏洞的主机数 */ + @SerializedName("AgentCount") + private Integer agentCount; + + public String getVulID() { + return vulID; + } + + public void setVulID(String vulID) { + this.vulID = vulID; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getAgentCount() { + return agentCount; + } + + public void setAgentCount(Integer agentCount) { + this.agentCount = agentCount; + } + } +} diff --git a/ucloud-sdk-java-uhost/pom.xml b/ucloud-sdk-java-uhost/pom.xml index cd37118e..576884c9 100644 --- a/ucloud-sdk-java-uhost/pom.xml +++ b/ucloud-sdk-java-uhost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uhost ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uk8s/pom.xml b/ucloud-sdk-java-uk8s/pom.xml index 3dff8b7c..b557a407 100644 --- a/ucloud-sdk-java-uk8s/pom.xml +++ b/ucloud-sdk-java-uk8s/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uk8s ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ukafka/pom.xml b/ucloud-sdk-java-ukafka/pom.xml index 7286d81a..f52b0850 100644 --- a/ucloud-sdk-java-ukafka/pom.xml +++ b/ucloud-sdk-java-ukafka/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ukafka ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ulb/pom.xml b/ucloud-sdk-java-ulb/pom.xml index 942d6777..81b36bd6 100644 --- a/ucloud-sdk-java-ulb/pom.xml +++ b/ucloud-sdk-java-ulb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ulb ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ulighthost/pom.xml b/ucloud-sdk-java-ulighthost/pom.xml index 51bf7318..d6db2f16 100644 --- a/ucloud-sdk-java-ulighthost/pom.xml +++ b/ucloud-sdk-java-ulighthost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ulighthost ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-ulog/pom.xml b/ucloud-sdk-java-ulog/pom.xml index 05472ca0..95a048fb 100644 --- a/ucloud-sdk-java-ulog/pom.xml +++ b/ucloud-sdk-java-ulog/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-ulog ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-umem/pom.xml b/ucloud-sdk-java-umem/pom.xml index 4df763d0..ba5cdc29 100644 --- a/ucloud-sdk-java-umem/pom.xml +++ b/ucloud-sdk-java-umem/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-umem ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-umon/pom.xml b/ucloud-sdk-java-umon/pom.xml index e6d82dd8..86ce5d39 100644 --- a/ucloud-sdk-java-umon/pom.xml +++ b/ucloud-sdk-java-umon/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-umon ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-umongodb/pom.xml b/ucloud-sdk-java-umongodb/pom.xml index 15845806..9745aa1f 100644 --- a/ucloud-sdk-java-umongodb/pom.xml +++ b/ucloud-sdk-java-umongodb/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-umongodb ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-unet/pom.xml b/ucloud-sdk-java-unet/pom.xml index 0823575f..f95fac94 100644 --- a/ucloud-sdk-java-unet/pom.xml +++ b/ucloud-sdk-java-unet/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-unet ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-upfs/pom.xml b/ucloud-sdk-java-upfs/pom.xml index 5bc7ddeb..97378146 100644 --- a/ucloud-sdk-java-upfs/pom.xml +++ b/ucloud-sdk-java-upfs/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-upfs ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-upgsql/pom.xml b/ucloud-sdk-java-upgsql/pom.xml index 73ebc658..6e4a2111 100644 --- a/ucloud-sdk-java-upgsql/pom.xml +++ b/ucloud-sdk-java-upgsql/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-upgsql ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uphone/pom.xml b/ucloud-sdk-java-uphone/pom.xml index 4b2d6593..760b3532 100644 --- a/ucloud-sdk-java-uphone/pom.xml +++ b/ucloud-sdk-java-uphone/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uphone ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uphost/pom.xml b/ucloud-sdk-java-uphost/pom.xml index 001352b3..ae251027 100644 --- a/ucloud-sdk-java-uphost/pom.xml +++ b/ucloud-sdk-java-uphost/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uphost ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uslk/pom.xml b/ucloud-sdk-java-uslk/pom.xml index 2d682575..56127756 100644 --- a/ucloud-sdk-java-uslk/pom.xml +++ b/ucloud-sdk-java-uslk/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uslk ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-usms/pom.xml b/ucloud-sdk-java-usms/pom.xml index 57b47b71..949c5a34 100644 --- a/ucloud-sdk-java-usms/pom.xml +++ b/ucloud-sdk-java-usms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-usms ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-usnap/pom.xml b/ucloud-sdk-java-usnap/pom.xml index 56c53a96..b4347d64 100644 --- a/ucloud-sdk-java-usnap/pom.xml +++ b/ucloud-sdk-java-usnap/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-usnap ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-uvms/pom.xml b/ucloud-sdk-java-uvms/pom.xml index cbd16c0c..be29382b 100644 --- a/ucloud-sdk-java-uvms/pom.xml +++ b/ucloud-sdk-java-uvms/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-uvms ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release diff --git a/ucloud-sdk-java-vpc/pom.xml b/ucloud-sdk-java-vpc/pom.xml index 5b8a5170..b7517a3a 100644 --- a/ucloud-sdk-java-vpc/pom.xml +++ b/ucloud-sdk-java-vpc/pom.xml @@ -5,19 +5,19 @@ ucloud-sdk-java cn.ucloud - 1.2.62-release + 1.2.63-release 4.0.0 ucloud-sdk-java-vpc ucloud-sdk-java - 1.2.62-release + 1.2.63-release cn.ucloud ucloud-sdk-java-common - 1.2.62-release + 1.2.63-release