diff --git a/CHANGELOG b/CHANGELOG index 453b249d1..09ca5a15b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-05-26 Version: 1.36.437 +- Support DescribeAllEntity API. + 2020-05-26 Version: 1.36.436 - Add smartcall service api. diff --git a/VERSION b/VERSION index 2ad1c51fa..f724944ab 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.436 \ No newline at end of file +1.36.437 \ No newline at end of file diff --git a/sas/CMakeLists.txt b/sas/CMakeLists.txt index bc44d9b19..6b588aa1b 100644 --- a/sas/CMakeLists.txt +++ b/sas/CMakeLists.txt @@ -163,6 +163,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DescribeWarningMachinesResult.h include/alibabacloud/sas/model/ExportRecordRequest.h include/alibabacloud/sas/model/ExportRecordResult.h + include/alibabacloud/sas/model/FixCheckWarningsRequest.h + include/alibabacloud/sas/model/FixCheckWarningsResult.h include/alibabacloud/sas/model/GetIOCsRequest.h include/alibabacloud/sas/model/GetIOCsResult.h include/alibabacloud/sas/model/GetIncIOCsRequest.h @@ -171,14 +173,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/HandleSimilarSecurityEventsResult.h include/alibabacloud/sas/model/ModifyAntiBruteForceRuleRequest.h include/alibabacloud/sas/model/ModifyAntiBruteForceRuleResult.h - include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h - include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h - include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h - include/alibabacloud/sas/model/ModifyConcernNecessityResult.h include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h - include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h - include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h include/alibabacloud/sas/model/ModifyGroupPropertyRequest.h @@ -214,7 +210,9 @@ set(sas_public_header_model include/alibabacloud/sas/model/SasInstallCodeRequest.h include/alibabacloud/sas/model/SasInstallCodeResult.h include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h - include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h ) + include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h + include/alibabacloud/sas/model/ValidateHcWarningsRequest.h + include/alibabacloud/sas/model/ValidateHcWarningsResult.h ) set(sas_src src/SasClient.cc @@ -360,6 +358,8 @@ set(sas_src src/model/DescribeWarningMachinesResult.cc src/model/ExportRecordRequest.cc src/model/ExportRecordResult.cc + src/model/FixCheckWarningsRequest.cc + src/model/FixCheckWarningsResult.cc src/model/GetIOCsRequest.cc src/model/GetIOCsResult.cc src/model/GetIncIOCsRequest.cc @@ -368,14 +368,8 @@ set(sas_src src/model/HandleSimilarSecurityEventsResult.cc src/model/ModifyAntiBruteForceRuleRequest.cc src/model/ModifyAntiBruteForceRuleResult.cc - src/model/ModifyAutoDelConfigRequest.cc - src/model/ModifyAutoDelConfigResult.cc - src/model/ModifyConcernNecessityRequest.cc - src/model/ModifyConcernNecessityResult.cc src/model/ModifyCreateVulWhitelistRequest.cc src/model/ModifyCreateVulWhitelistResult.cc - src/model/ModifyDeleteVulWhitelistRequest.cc - src/model/ModifyDeleteVulWhitelistResult.cc src/model/ModifyEmgVulSubmitRequest.cc src/model/ModifyEmgVulSubmitResult.cc src/model/ModifyGroupPropertyRequest.cc @@ -411,7 +405,9 @@ set(sas_src src/model/SasInstallCodeRequest.cc src/model/SasInstallCodeResult.cc src/model/StartBaselineSecurityCheckRequest.cc - src/model/StartBaselineSecurityCheckResult.cc ) + src/model/StartBaselineSecurityCheckResult.cc + src/model/ValidateHcWarningsRequest.cc + src/model/ValidateHcWarningsResult.cc ) add_library(sas ${LIB_TYPE} ${sas_public_header} diff --git a/sas/include/alibabacloud/sas/SasClient.h b/sas/include/alibabacloud/sas/SasClient.h index 741722bfa..da1e4f79c 100644 --- a/sas/include/alibabacloud/sas/SasClient.h +++ b/sas/include/alibabacloud/sas/SasClient.h @@ -164,6 +164,8 @@ #include "model/DescribeWarningMachinesResult.h" #include "model/ExportRecordRequest.h" #include "model/ExportRecordResult.h" +#include "model/FixCheckWarningsRequest.h" +#include "model/FixCheckWarningsResult.h" #include "model/GetIOCsRequest.h" #include "model/GetIOCsResult.h" #include "model/GetIncIOCsRequest.h" @@ -172,14 +174,8 @@ #include "model/HandleSimilarSecurityEventsResult.h" #include "model/ModifyAntiBruteForceRuleRequest.h" #include "model/ModifyAntiBruteForceRuleResult.h" -#include "model/ModifyAutoDelConfigRequest.h" -#include "model/ModifyAutoDelConfigResult.h" -#include "model/ModifyConcernNecessityRequest.h" -#include "model/ModifyConcernNecessityResult.h" #include "model/ModifyCreateVulWhitelistRequest.h" #include "model/ModifyCreateVulWhitelistResult.h" -#include "model/ModifyDeleteVulWhitelistRequest.h" -#include "model/ModifyDeleteVulWhitelistResult.h" #include "model/ModifyEmgVulSubmitRequest.h" #include "model/ModifyEmgVulSubmitResult.h" #include "model/ModifyGroupPropertyRequest.h" @@ -216,6 +212,8 @@ #include "model/SasInstallCodeResult.h" #include "model/StartBaselineSecurityCheckRequest.h" #include "model/StartBaselineSecurityCheckResult.h" +#include "model/ValidateHcWarningsRequest.h" +#include "model/ValidateHcWarningsResult.h" namespace AlibabaCloud @@ -438,6 +436,9 @@ namespace AlibabaCloud typedef Outcome ExportRecordOutcome; typedef std::future ExportRecordOutcomeCallable; typedef std::function&)> ExportRecordAsyncHandler; + typedef Outcome FixCheckWarningsOutcome; + typedef std::future FixCheckWarningsOutcomeCallable; + typedef std::function&)> FixCheckWarningsAsyncHandler; typedef Outcome GetIOCsOutcome; typedef std::future GetIOCsOutcomeCallable; typedef std::function&)> GetIOCsAsyncHandler; @@ -450,18 +451,9 @@ namespace AlibabaCloud typedef Outcome ModifyAntiBruteForceRuleOutcome; typedef std::future ModifyAntiBruteForceRuleOutcomeCallable; typedef std::function&)> ModifyAntiBruteForceRuleAsyncHandler; - typedef Outcome ModifyAutoDelConfigOutcome; - typedef std::future ModifyAutoDelConfigOutcomeCallable; - typedef std::function&)> ModifyAutoDelConfigAsyncHandler; - typedef Outcome ModifyConcernNecessityOutcome; - typedef std::future ModifyConcernNecessityOutcomeCallable; - typedef std::function&)> ModifyConcernNecessityAsyncHandler; typedef Outcome ModifyCreateVulWhitelistOutcome; typedef std::future ModifyCreateVulWhitelistOutcomeCallable; typedef std::function&)> ModifyCreateVulWhitelistAsyncHandler; - typedef Outcome ModifyDeleteVulWhitelistOutcome; - typedef std::future ModifyDeleteVulWhitelistOutcomeCallable; - typedef std::function&)> ModifyDeleteVulWhitelistAsyncHandler; typedef Outcome ModifyEmgVulSubmitOutcome; typedef std::future ModifyEmgVulSubmitOutcomeCallable; typedef std::function&)> ModifyEmgVulSubmitAsyncHandler; @@ -516,6 +508,9 @@ namespace AlibabaCloud typedef Outcome StartBaselineSecurityCheckOutcome; typedef std::future StartBaselineSecurityCheckOutcomeCallable; typedef std::function&)> StartBaselineSecurityCheckAsyncHandler; + typedef Outcome ValidateHcWarningsOutcome; + typedef std::future ValidateHcWarningsOutcomeCallable; + typedef std::function&)> ValidateHcWarningsAsyncHandler; SasClient(const Credentials &credentials, const ClientConfiguration &configuration); SasClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -734,6 +729,9 @@ namespace AlibabaCloud ExportRecordOutcome exportRecord(const Model::ExportRecordRequest &request)const; void exportRecordAsync(const Model::ExportRecordRequest& request, const ExportRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportRecordOutcomeCallable exportRecordCallable(const Model::ExportRecordRequest& request) const; + FixCheckWarningsOutcome fixCheckWarnings(const Model::FixCheckWarningsRequest &request)const; + void fixCheckWarningsAsync(const Model::FixCheckWarningsRequest& request, const FixCheckWarningsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FixCheckWarningsOutcomeCallable fixCheckWarningsCallable(const Model::FixCheckWarningsRequest& request) const; GetIOCsOutcome getIOCs(const Model::GetIOCsRequest &request)const; void getIOCsAsync(const Model::GetIOCsRequest& request, const GetIOCsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetIOCsOutcomeCallable getIOCsCallable(const Model::GetIOCsRequest& request) const; @@ -746,18 +744,9 @@ namespace AlibabaCloud ModifyAntiBruteForceRuleOutcome modifyAntiBruteForceRule(const Model::ModifyAntiBruteForceRuleRequest &request)const; void modifyAntiBruteForceRuleAsync(const Model::ModifyAntiBruteForceRuleRequest& request, const ModifyAntiBruteForceRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAntiBruteForceRuleOutcomeCallable modifyAntiBruteForceRuleCallable(const Model::ModifyAntiBruteForceRuleRequest& request) const; - ModifyAutoDelConfigOutcome modifyAutoDelConfig(const Model::ModifyAutoDelConfigRequest &request)const; - void modifyAutoDelConfigAsync(const Model::ModifyAutoDelConfigRequest& request, const ModifyAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAutoDelConfigOutcomeCallable modifyAutoDelConfigCallable(const Model::ModifyAutoDelConfigRequest& request) const; - ModifyConcernNecessityOutcome modifyConcernNecessity(const Model::ModifyConcernNecessityRequest &request)const; - void modifyConcernNecessityAsync(const Model::ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyConcernNecessityOutcomeCallable modifyConcernNecessityCallable(const Model::ModifyConcernNecessityRequest& request) const; ModifyCreateVulWhitelistOutcome modifyCreateVulWhitelist(const Model::ModifyCreateVulWhitelistRequest &request)const; void modifyCreateVulWhitelistAsync(const Model::ModifyCreateVulWhitelistRequest& request, const ModifyCreateVulWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyCreateVulWhitelistOutcomeCallable modifyCreateVulWhitelistCallable(const Model::ModifyCreateVulWhitelistRequest& request) const; - ModifyDeleteVulWhitelistOutcome modifyDeleteVulWhitelist(const Model::ModifyDeleteVulWhitelistRequest &request)const; - void modifyDeleteVulWhitelistAsync(const Model::ModifyDeleteVulWhitelistRequest& request, const ModifyDeleteVulWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDeleteVulWhitelistOutcomeCallable modifyDeleteVulWhitelistCallable(const Model::ModifyDeleteVulWhitelistRequest& request) const; ModifyEmgVulSubmitOutcome modifyEmgVulSubmit(const Model::ModifyEmgVulSubmitRequest &request)const; void modifyEmgVulSubmitAsync(const Model::ModifyEmgVulSubmitRequest& request, const ModifyEmgVulSubmitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyEmgVulSubmitOutcomeCallable modifyEmgVulSubmitCallable(const Model::ModifyEmgVulSubmitRequest& request) const; @@ -812,6 +801,9 @@ namespace AlibabaCloud StartBaselineSecurityCheckOutcome startBaselineSecurityCheck(const Model::StartBaselineSecurityCheckRequest &request)const; void startBaselineSecurityCheckAsync(const Model::StartBaselineSecurityCheckRequest& request, const StartBaselineSecurityCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartBaselineSecurityCheckOutcomeCallable startBaselineSecurityCheckCallable(const Model::StartBaselineSecurityCheckRequest& request) const; + ValidateHcWarningsOutcome validateHcWarnings(const Model::ValidateHcWarningsRequest &request)const; + void validateHcWarningsAsync(const Model::ValidateHcWarningsRequest& request, const ValidateHcWarningsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateHcWarningsOutcomeCallable validateHcWarningsCallable(const Model::ValidateHcWarningsRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h index ecad8a87b..1dcdad381 100644 --- a/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h @@ -41,11 +41,14 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); std::string getLang()const; void setLang(const std::string& lang); + std::string getResourceDirectoryAccountId()const; + void setResourceDirectoryAccountId(const std::string& resourceDirectoryAccountId); private: long resourceOwnerId_; std::string sourceIp_; std::string lang_; + std::string resourceDirectoryAccountId_; }; } diff --git a/sas/include/alibabacloud/sas/model/DescribeSecurityStatInfoRequest.h b/sas/include/alibabacloud/sas/model/DescribeSecurityStatInfoRequest.h index b8a58d40e..c3b0e9e52 100644 --- a/sas/include/alibabacloud/sas/model/DescribeSecurityStatInfoRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeSecurityStatInfoRequest.h @@ -39,10 +39,13 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); std::string getLang()const; void setLang(const std::string& lang); + std::string getResourceDirectoryAccountId()const; + void setResourceDirectoryAccountId(const std::string& resourceDirectoryAccountId); private: std::string sourceIp_; std::string lang_; + std::string resourceDirectoryAccountId_; }; } diff --git a/sas/include/alibabacloud/sas/model/DescribeSummaryInfoRequest.h b/sas/include/alibabacloud/sas/model/DescribeSummaryInfoRequest.h index c0bd844ac..d2015554c 100644 --- a/sas/include/alibabacloud/sas/model/DescribeSummaryInfoRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeSummaryInfoRequest.h @@ -39,10 +39,13 @@ namespace AlibabaCloud void setSourceIp(const std::string& sourceIp); std::string getLang()const; void setLang(const std::string& lang); + std::string getResourceDirectoryAccountId()const; + void setResourceDirectoryAccountId(const std::string& resourceDirectoryAccountId); private: std::string sourceIp_; std::string lang_; + std::string resourceDirectoryAccountId_; }; } diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h index edf34c118..4bfa2dc7b 100644 --- a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud ~DescribeSuspEventDetailResult(); std::string getEventDesc()const; std::string getEventTypeDesc()const; + std::string getOperateErrorCode()const; std::string getEventStatus()const; std::string getEventName()const; std::string getSaleVersion()const; @@ -68,6 +69,7 @@ namespace AlibabaCloud private: std::string eventDesc_; std::string eventTypeDesc_; + std::string operateErrorCode_; std::string eventStatus_; std::string eventName_; std::string saleVersion_; diff --git a/sas/include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h b/sas/include/alibabacloud/sas/model/FixCheckWarningsRequest.h similarity index 62% rename from sas/include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h rename to sas/include/alibabacloud/sas/model/FixCheckWarningsRequest.h index 7f7f4e67b..756052406 100644 --- a/sas/include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h +++ b/sas/include/alibabacloud/sas/model/FixCheckWarningsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYREQUEST_H_ -#define ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYREQUEST_H_ +#ifndef ALIBABACLOUD_SAS_MODEL_FIXCHECKWARNINGSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_FIXCHECKWARNINGSREQUEST_H_ #include #include @@ -28,27 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SAS_EXPORT ModifyConcernNecessityRequest : public RpcServiceRequest + class ALIBABACLOUD_SAS_EXPORT FixCheckWarningsRequest : public RpcServiceRequest { public: - ModifyConcernNecessityRequest(); - ~ModifyConcernNecessityRequest(); + FixCheckWarningsRequest(); + ~FixCheckWarningsRequest(); + long getRiskId()const; + void setRiskId(long riskId); + std::string getCheckParams()const; + void setCheckParams(const std::string& checkParams); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); std::string getLang()const; void setLang(const std::string& lang); - std::string getConcernNecessity()const; - void setConcernNecessity(const std::string& concernNecessity); + std::string getUuids()const; + void setUuids(const std::string& uuids); private: + long riskId_; + std::string checkParams_; std::string sourceIp_; std::string lang_; - std::string concernNecessity_; + std::string uuids_; }; } } } -#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SAS_MODEL_FIXCHECKWARNINGSREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyConcernNecessityResult.h b/sas/include/alibabacloud/sas/model/FixCheckWarningsResult.h similarity index 68% rename from sas/include/alibabacloud/sas/model/ModifyConcernNecessityResult.h rename to sas/include/alibabacloud/sas/model/FixCheckWarningsResult.h index 539dc7739..51a0199dd 100644 --- a/sas/include/alibabacloud/sas/model/ModifyConcernNecessityResult.h +++ b/sas/include/alibabacloud/sas/model/FixCheckWarningsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYRESULT_H_ -#define ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYRESULT_H_ +#ifndef ALIBABACLOUD_SAS_MODEL_FIXCHECKWARNINGSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_FIXCHECKWARNINGSRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SAS_EXPORT ModifyConcernNecessityResult : public ServiceResult + class ALIBABACLOUD_SAS_EXPORT FixCheckWarningsResult : public ServiceResult { public: - ModifyConcernNecessityResult(); - explicit ModifyConcernNecessityResult(const std::string &payload); - ~ModifyConcernNecessityResult(); + FixCheckWarningsResult(); + explicit FixCheckWarningsResult(const std::string &payload); + ~FixCheckWarningsResult(); + long getBatchId()const; protected: void parse(const std::string &payload); private: + long batchId_; }; } } } -#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SAS_MODEL_FIXCHECKWARNINGSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetIOCsRequest.h b/sas/include/alibabacloud/sas/model/GetIOCsRequest.h index 7cd2744c5..8d427859c 100644 --- a/sas/include/alibabacloud/sas/model/GetIOCsRequest.h +++ b/sas/include/alibabacloud/sas/model/GetIOCsRequest.h @@ -35,12 +35,15 @@ namespace AlibabaCloud GetIOCsRequest(); ~GetIOCsRequest(); + std::string getDate()const; + void setDate(const std::string& date); std::string getType()const; void setType(const std::string& type); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); private: + std::string date_; std::string type_; std::string sourceIp_; diff --git a/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h b/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h deleted file mode 100644 index f6835319c..000000000 --- a/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * 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. - */ - -#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTREQUEST_H_ -#define ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sas - { - namespace Model - { - class ALIBABACLOUD_SAS_EXPORT ModifyDeleteVulWhitelistRequest : public RpcServiceRequest - { - - public: - ModifyDeleteVulWhitelistRequest(); - ~ModifyDeleteVulWhitelistRequest(); - - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); - std::string getWhitelist()const; - void setWhitelist(const std::string& whitelist); - - private: - std::string sourceIp_; - std::string whitelist_; - - }; - } - } -} -#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h b/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h deleted file mode 100644 index f22573b84..000000000 --- a/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * 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. - */ - -#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_ -#define ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Sas - { - namespace Model - { - class ALIBABACLOUD_SAS_EXPORT ModifyDeleteVulWhitelistResult : public ServiceResult - { - public: - - - ModifyDeleteVulWhitelistResult(); - explicit ModifyDeleteVulWhitelistResult(const std::string &payload); - ~ModifyDeleteVulWhitelistResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h b/sas/include/alibabacloud/sas/model/ValidateHcWarningsRequest.h similarity index 64% rename from sas/include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h rename to sas/include/alibabacloud/sas/model/ValidateHcWarningsRequest.h index 30d48ff16..42dcb37cc 100644 --- a/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h +++ b/sas/include/alibabacloud/sas/model/ValidateHcWarningsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGREQUEST_H_ -#define ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGREQUEST_H_ +#ifndef ALIBABACLOUD_SAS_MODEL_VALIDATEHCWARNINGSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_VALIDATEHCWARNINGSREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SAS_EXPORT ModifyAutoDelConfigRequest : public RpcServiceRequest + class ALIBABACLOUD_SAS_EXPORT ValidateHcWarningsRequest : public RpcServiceRequest { public: - ModifyAutoDelConfigRequest(); - ~ModifyAutoDelConfigRequest(); + ValidateHcWarningsRequest(); + ~ValidateHcWarningsRequest(); + std::string getRiskIds()const; + void setRiskIds(const std::string& riskIds); std::string getSourceIp()const; void setSourceIp(const std::string& sourceIp); - int getDays()const; - void setDays(int days); + std::string getUuids()const; + void setUuids(const std::string& uuids); private: + std::string riskIds_; std::string sourceIp_; - int days_; + std::string uuids_; }; } } } -#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SAS_MODEL_VALIDATEHCWARNINGSREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h b/sas/include/alibabacloud/sas/model/ValidateHcWarningsResult.h similarity index 70% rename from sas/include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h rename to sas/include/alibabacloud/sas/model/ValidateHcWarningsResult.h index 271df9498..eaf027ff6 100644 --- a/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h +++ b/sas/include/alibabacloud/sas/model/ValidateHcWarningsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGRESULT_H_ -#define ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGRESULT_H_ +#ifndef ALIBABACLOUD_SAS_MODEL_VALIDATEHCWARNINGSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_VALIDATEHCWARNINGSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SAS_EXPORT ModifyAutoDelConfigResult : public ServiceResult + class ALIBABACLOUD_SAS_EXPORT ValidateHcWarningsResult : public ServiceResult { public: - ModifyAutoDelConfigResult(); - explicit ModifyAutoDelConfigResult(const std::string &payload); - ~ModifyAutoDelConfigResult(); + ValidateHcWarningsResult(); + explicit ValidateHcWarningsResult(const std::string &payload); + ~ValidateHcWarningsResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SAS_MODEL_VALIDATEHCWARNINGSRESULT_H_ \ No newline at end of file diff --git a/sas/src/SasClient.cc b/sas/src/SasClient.cc index d0816320a..17c5bd518 100644 --- a/sas/src/SasClient.cc +++ b/sas/src/SasClient.cc @@ -2607,6 +2607,42 @@ SasClient::ExportRecordOutcomeCallable SasClient::exportRecordCallable(const Exp return task->get_future(); } +SasClient::FixCheckWarningsOutcome SasClient::fixCheckWarnings(const FixCheckWarningsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FixCheckWarningsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FixCheckWarningsOutcome(FixCheckWarningsResult(outcome.result())); + else + return FixCheckWarningsOutcome(outcome.error()); +} + +void SasClient::fixCheckWarningsAsync(const FixCheckWarningsRequest& request, const FixCheckWarningsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, fixCheckWarnings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::FixCheckWarningsOutcomeCallable SasClient::fixCheckWarningsCallable(const FixCheckWarningsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->fixCheckWarnings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetIOCsOutcome SasClient::getIOCs(const GetIOCsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2751,78 +2787,6 @@ SasClient::ModifyAntiBruteForceRuleOutcomeCallable SasClient::modifyAntiBruteFor return task->get_future(); } -SasClient::ModifyAutoDelConfigOutcome SasClient::modifyAutoDelConfig(const ModifyAutoDelConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAutoDelConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAutoDelConfigOutcome(ModifyAutoDelConfigResult(outcome.result())); - else - return ModifyAutoDelConfigOutcome(outcome.error()); -} - -void SasClient::modifyAutoDelConfigAsync(const ModifyAutoDelConfigRequest& request, const ModifyAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyAutoDelConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SasClient::ModifyAutoDelConfigOutcomeCallable SasClient::modifyAutoDelConfigCallable(const ModifyAutoDelConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyAutoDelConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -SasClient::ModifyConcernNecessityOutcome SasClient::modifyConcernNecessity(const ModifyConcernNecessityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyConcernNecessityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyConcernNecessityOutcome(ModifyConcernNecessityResult(outcome.result())); - else - return ModifyConcernNecessityOutcome(outcome.error()); -} - -void SasClient::modifyConcernNecessityAsync(const ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyConcernNecessity(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SasClient::ModifyConcernNecessityOutcomeCallable SasClient::modifyConcernNecessityCallable(const ModifyConcernNecessityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyConcernNecessity(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SasClient::ModifyCreateVulWhitelistOutcome SasClient::modifyCreateVulWhitelist(const ModifyCreateVulWhitelistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,42 +2823,6 @@ SasClient::ModifyCreateVulWhitelistOutcomeCallable SasClient::modifyCreateVulWhi return task->get_future(); } -SasClient::ModifyDeleteVulWhitelistOutcome SasClient::modifyDeleteVulWhitelist(const ModifyDeleteVulWhitelistRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDeleteVulWhitelistOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDeleteVulWhitelistOutcome(ModifyDeleteVulWhitelistResult(outcome.result())); - else - return ModifyDeleteVulWhitelistOutcome(outcome.error()); -} - -void SasClient::modifyDeleteVulWhitelistAsync(const ModifyDeleteVulWhitelistRequest& request, const ModifyDeleteVulWhitelistAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDeleteVulWhitelist(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -SasClient::ModifyDeleteVulWhitelistOutcomeCallable SasClient::modifyDeleteVulWhitelistCallable(const ModifyDeleteVulWhitelistRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDeleteVulWhitelist(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - SasClient::ModifyEmgVulSubmitOutcome SasClient::modifyEmgVulSubmit(const ModifyEmgVulSubmitRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3543,3 +3471,39 @@ SasClient::StartBaselineSecurityCheckOutcomeCallable SasClient::startBaselineSec return task->get_future(); } +SasClient::ValidateHcWarningsOutcome SasClient::validateHcWarnings(const ValidateHcWarningsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateHcWarningsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateHcWarningsOutcome(ValidateHcWarningsResult(outcome.result())); + else + return ValidateHcWarningsOutcome(outcome.error()); +} + +void SasClient::validateHcWarningsAsync(const ValidateHcWarningsRequest& request, const ValidateHcWarningsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateHcWarnings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ValidateHcWarningsOutcomeCallable SasClient::validateHcWarningsCallable(const ValidateHcWarningsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateHcWarnings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/sas/src/model/DescribeRiskCheckSummaryRequest.cc b/sas/src/model/DescribeRiskCheckSummaryRequest.cc index 100e8b64d..5d52bc921 100644 --- a/sas/src/model/DescribeRiskCheckSummaryRequest.cc +++ b/sas/src/model/DescribeRiskCheckSummaryRequest.cc @@ -60,3 +60,14 @@ void DescribeRiskCheckSummaryRequest::setLang(const std::string& lang) setParameter("Lang", lang); } +std::string DescribeRiskCheckSummaryRequest::getResourceDirectoryAccountId()const +{ + return resourceDirectoryAccountId_; +} + +void DescribeRiskCheckSummaryRequest::setResourceDirectoryAccountId(const std::string& resourceDirectoryAccountId) +{ + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId); +} + diff --git a/sas/src/model/DescribeSecurityStatInfoRequest.cc b/sas/src/model/DescribeSecurityStatInfoRequest.cc index f1ff03676..2c9be0009 100644 --- a/sas/src/model/DescribeSecurityStatInfoRequest.cc +++ b/sas/src/model/DescribeSecurityStatInfoRequest.cc @@ -49,3 +49,14 @@ void DescribeSecurityStatInfoRequest::setLang(const std::string& lang) setParameter("Lang", lang); } +std::string DescribeSecurityStatInfoRequest::getResourceDirectoryAccountId()const +{ + return resourceDirectoryAccountId_; +} + +void DescribeSecurityStatInfoRequest::setResourceDirectoryAccountId(const std::string& resourceDirectoryAccountId) +{ + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId); +} + diff --git a/sas/src/model/DescribeSummaryInfoRequest.cc b/sas/src/model/DescribeSummaryInfoRequest.cc index c51abdc70..42ede9517 100644 --- a/sas/src/model/DescribeSummaryInfoRequest.cc +++ b/sas/src/model/DescribeSummaryInfoRequest.cc @@ -49,3 +49,14 @@ void DescribeSummaryInfoRequest::setLang(const std::string& lang) setParameter("Lang", lang); } +std::string DescribeSummaryInfoRequest::getResourceDirectoryAccountId()const +{ + return resourceDirectoryAccountId_; +} + +void DescribeSummaryInfoRequest::setResourceDirectoryAccountId(const std::string& resourceDirectoryAccountId) +{ + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter("ResourceDirectoryAccountId", resourceDirectoryAccountId); +} + diff --git a/sas/src/model/DescribeSuspEventDetailResult.cc b/sas/src/model/DescribeSuspEventDetailResult.cc index b305a726a..24e11a9ea 100644 --- a/sas/src/model/DescribeSuspEventDetailResult.cc +++ b/sas/src/model/DescribeSuspEventDetailResult.cc @@ -87,6 +87,8 @@ void DescribeSuspEventDetailResult::parse(const std::string &payload) eventName_ = value["EventName"].asString(); if(!value["CanBeDealOnLine"].isNull()) canBeDealOnLine_ = value["CanBeDealOnLine"].asString() == "true"; + if(!value["OperateErrorCode"].isNull()) + operateErrorCode_ = value["OperateErrorCode"].asString(); } @@ -100,6 +102,11 @@ std::string DescribeSuspEventDetailResult::getEventTypeDesc()const return eventTypeDesc_; } +std::string DescribeSuspEventDetailResult::getOperateErrorCode()const +{ + return operateErrorCode_; +} + std::string DescribeSuspEventDetailResult::getEventStatus()const { return eventStatus_; diff --git a/sas/src/model/FixCheckWarningsRequest.cc b/sas/src/model/FixCheckWarningsRequest.cc new file mode 100644 index 000000000..f7020d647 --- /dev/null +++ b/sas/src/model/FixCheckWarningsRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::Sas::Model::FixCheckWarningsRequest; + +FixCheckWarningsRequest::FixCheckWarningsRequest() : + RpcServiceRequest("sas", "2018-12-03", "FixCheckWarnings") +{ + setMethod(HttpRequest::Method::Post); +} + +FixCheckWarningsRequest::~FixCheckWarningsRequest() +{} + +long FixCheckWarningsRequest::getRiskId()const +{ + return riskId_; +} + +void FixCheckWarningsRequest::setRiskId(long riskId) +{ + riskId_ = riskId; + setParameter("RiskId", std::to_string(riskId)); +} + +std::string FixCheckWarningsRequest::getCheckParams()const +{ + return checkParams_; +} + +void FixCheckWarningsRequest::setCheckParams(const std::string& checkParams) +{ + checkParams_ = checkParams; + setParameter("CheckParams", checkParams); +} + +std::string FixCheckWarningsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void FixCheckWarningsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string FixCheckWarningsRequest::getLang()const +{ + return lang_; +} + +void FixCheckWarningsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +std::string FixCheckWarningsRequest::getUuids()const +{ + return uuids_; +} + +void FixCheckWarningsRequest::setUuids(const std::string& uuids) +{ + uuids_ = uuids; + setParameter("Uuids", uuids); +} + diff --git a/sas/src/model/ModifyAutoDelConfigResult.cc b/sas/src/model/FixCheckWarningsResult.cc similarity index 61% rename from sas/src/model/ModifyAutoDelConfigResult.cc rename to sas/src/model/FixCheckWarningsResult.cc index 2db614682..ca7fe94a9 100644 --- a/sas/src/model/ModifyAutoDelConfigResult.cc +++ b/sas/src/model/FixCheckWarningsResult.cc @@ -14,35 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Sas; using namespace AlibabaCloud::Sas::Model; -ModifyAutoDelConfigResult::ModifyAutoDelConfigResult() : +FixCheckWarningsResult::FixCheckWarningsResult() : ServiceResult() {} -ModifyAutoDelConfigResult::ModifyAutoDelConfigResult(const std::string &payload) : +FixCheckWarningsResult::FixCheckWarningsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyAutoDelConfigResult::~ModifyAutoDelConfigResult() +FixCheckWarningsResult::~FixCheckWarningsResult() {} -void ModifyAutoDelConfigResult::parse(const std::string &payload) +void FixCheckWarningsResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["BatchId"].isNull()) + batchId_ = std::stol(value["BatchId"].asString()); } +long FixCheckWarningsResult::getBatchId()const +{ + return batchId_; +} + diff --git a/sas/src/model/GetIOCsRequest.cc b/sas/src/model/GetIOCsRequest.cc index fb46e54a7..c18926947 100644 --- a/sas/src/model/GetIOCsRequest.cc +++ b/sas/src/model/GetIOCsRequest.cc @@ -27,6 +27,17 @@ GetIOCsRequest::GetIOCsRequest() : GetIOCsRequest::~GetIOCsRequest() {} +std::string GetIOCsRequest::getDate()const +{ + return date_; +} + +void GetIOCsRequest::setDate(const std::string& date) +{ + date_ = date; + setParameter("Date", date); +} + std::string GetIOCsRequest::getType()const { return type_; diff --git a/sas/src/model/ModifyAutoDelConfigRequest.cc b/sas/src/model/ModifyAutoDelConfigRequest.cc deleted file mode 100644 index 0c4c2b59f..000000000 --- a/sas/src/model/ModifyAutoDelConfigRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * 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. - */ - -#include - -using AlibabaCloud::Sas::Model::ModifyAutoDelConfigRequest; - -ModifyAutoDelConfigRequest::ModifyAutoDelConfigRequest() : - RpcServiceRequest("sas", "2018-12-03", "ModifyAutoDelConfig") -{} - -ModifyAutoDelConfigRequest::~ModifyAutoDelConfigRequest() -{} - -std::string ModifyAutoDelConfigRequest::getSourceIp()const -{ - return sourceIp_; -} - -void ModifyAutoDelConfigRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setCoreParameter("SourceIp", sourceIp); -} - -int ModifyAutoDelConfigRequest::getDays()const -{ - return days_; -} - -void ModifyAutoDelConfigRequest::setDays(int days) -{ - days_ = days; - setCoreParameter("Days", std::to_string(days)); -} - diff --git a/sas/src/model/ModifyConcernNecessityRequest.cc b/sas/src/model/ModifyConcernNecessityRequest.cc deleted file mode 100644 index 7c2324f5d..000000000 --- a/sas/src/model/ModifyConcernNecessityRequest.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * 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. - */ - -#include - -using AlibabaCloud::Sas::Model::ModifyConcernNecessityRequest; - -ModifyConcernNecessityRequest::ModifyConcernNecessityRequest() : - RpcServiceRequest("sas", "2018-12-03", "ModifyConcernNecessity") -{} - -ModifyConcernNecessityRequest::~ModifyConcernNecessityRequest() -{} - -std::string ModifyConcernNecessityRequest::getSourceIp()const -{ - return sourceIp_; -} - -void ModifyConcernNecessityRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setCoreParameter("SourceIp", sourceIp); -} - -std::string ModifyConcernNecessityRequest::getLang()const -{ - return lang_; -} - -void ModifyConcernNecessityRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setCoreParameter("Lang", lang); -} - -std::string ModifyConcernNecessityRequest::getConcernNecessity()const -{ - return concernNecessity_; -} - -void ModifyConcernNecessityRequest::setConcernNecessity(const std::string& concernNecessity) -{ - concernNecessity_ = concernNecessity; - setCoreParameter("ConcernNecessity", concernNecessity); -} - diff --git a/sas/src/model/ModifyDeleteVulWhitelistRequest.cc b/sas/src/model/ModifyDeleteVulWhitelistRequest.cc deleted file mode 100644 index 85df99da3..000000000 --- a/sas/src/model/ModifyDeleteVulWhitelistRequest.cc +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * 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. - */ - -#include - -using AlibabaCloud::Sas::Model::ModifyDeleteVulWhitelistRequest; - -ModifyDeleteVulWhitelistRequest::ModifyDeleteVulWhitelistRequest() : - RpcServiceRequest("sas", "2018-12-03", "ModifyDeleteVulWhitelist") -{} - -ModifyDeleteVulWhitelistRequest::~ModifyDeleteVulWhitelistRequest() -{} - -std::string ModifyDeleteVulWhitelistRequest::getSourceIp()const -{ - return sourceIp_; -} - -void ModifyDeleteVulWhitelistRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setCoreParameter("SourceIp", sourceIp); -} - -std::string ModifyDeleteVulWhitelistRequest::getWhitelist()const -{ - return whitelist_; -} - -void ModifyDeleteVulWhitelistRequest::setWhitelist(const std::string& whitelist) -{ - whitelist_ = whitelist; - setCoreParameter("Whitelist", whitelist); -} - diff --git a/sas/src/model/ModifyDeleteVulWhitelistResult.cc b/sas/src/model/ModifyDeleteVulWhitelistResult.cc deleted file mode 100644 index 53e353c07..000000000 --- a/sas/src/model/ModifyDeleteVulWhitelistResult.cc +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * 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. - */ - -#include -#include - -using namespace AlibabaCloud::Sas; -using namespace AlibabaCloud::Sas::Model; - -ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult() : - ServiceResult() -{} - -ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDeleteVulWhitelistResult::~ModifyDeleteVulWhitelistResult() -{} - -void ModifyDeleteVulWhitelistResult::parse(const std::string &payload) -{ - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; - Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; - setRequestId(value["RequestId"].asString()); - -} - diff --git a/sas/src/model/ValidateHcWarningsRequest.cc b/sas/src/model/ValidateHcWarningsRequest.cc new file mode 100644 index 000000000..ce3f8140c --- /dev/null +++ b/sas/src/model/ValidateHcWarningsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * 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. + */ + +#include + +using AlibabaCloud::Sas::Model::ValidateHcWarningsRequest; + +ValidateHcWarningsRequest::ValidateHcWarningsRequest() : + RpcServiceRequest("sas", "2018-12-03", "ValidateHcWarnings") +{ + setMethod(HttpRequest::Method::Post); +} + +ValidateHcWarningsRequest::~ValidateHcWarningsRequest() +{} + +std::string ValidateHcWarningsRequest::getRiskIds()const +{ + return riskIds_; +} + +void ValidateHcWarningsRequest::setRiskIds(const std::string& riskIds) +{ + riskIds_ = riskIds; + setParameter("RiskIds", riskIds); +} + +std::string ValidateHcWarningsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ValidateHcWarningsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string ValidateHcWarningsRequest::getUuids()const +{ + return uuids_; +} + +void ValidateHcWarningsRequest::setUuids(const std::string& uuids) +{ + uuids_ = uuids; + setParameter("Uuids", uuids); +} + diff --git a/sas/src/model/ModifyConcernNecessityResult.cc b/sas/src/model/ValidateHcWarningsResult.cc similarity index 60% rename from sas/src/model/ModifyConcernNecessityResult.cc rename to sas/src/model/ValidateHcWarningsResult.cc index ce5aaeabe..ca5013bdc 100644 --- a/sas/src/model/ModifyConcernNecessityResult.cc +++ b/sas/src/model/ValidateHcWarningsResult.cc @@ -14,34 +14,30 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Sas; using namespace AlibabaCloud::Sas::Model; -ModifyConcernNecessityResult::ModifyConcernNecessityResult() : +ValidateHcWarningsResult::ValidateHcWarningsResult() : ServiceResult() {} -ModifyConcernNecessityResult::ModifyConcernNecessityResult(const std::string &payload) : +ValidateHcWarningsResult::ValidateHcWarningsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyConcernNecessityResult::~ModifyConcernNecessityResult() +ValidateHcWarningsResult::~ValidateHcWarningsResult() {} -void ModifyConcernNecessityResult::parse(const std::string &payload) +void ValidateHcWarningsResult::parse(const std::string &payload) { - Json::CharReaderBuilder builder; - Json::CharReader *reader = builder.newCharReader(); - Json::Value *val; + Json::Reader reader; Json::Value value; - JSONCPP_STRING *errs; - reader->parse(payload.data(), payload.data() + payload.size(), val, errs); - value = *val; + reader.parse(payload, value); setRequestId(value["RequestId"].asString()); }