SAS SDK Auto Released By lai.zhoulai,Version:1.36.14
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2019-04-16 Version: 1.36.14
|
||||
1, Add api about pushing security check commands
|
||||
|
||||
2019-04-16 Version: 1.36.13
|
||||
1, Fixed describeAccounts response type error
|
||||
|
||||
|
||||
@@ -20,114 +20,10 @@ set(sas_public_header
|
||||
include/alibabacloud/sas/SasClient.h
|
||||
include/alibabacloud/sas/SasExport.h )
|
||||
|
||||
set(sas_public_header_model
|
||||
include/alibabacloud/sas/model/DescribeAlarmEventDetailRequest.h
|
||||
include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h
|
||||
include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h
|
||||
include/alibabacloud/sas/model/DescribeAlarmEventListResult.h
|
||||
include/alibabacloud/sas/model/DescribeSuspEventsRequest.h
|
||||
include/alibabacloud/sas/model/DescribeSuspEventsResult.h
|
||||
include/alibabacloud/sas/model/DescribeConcernNecessityRequest.h
|
||||
include/alibabacloud/sas/model/DescribeConcernNecessityResult.h
|
||||
include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.h
|
||||
include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h
|
||||
include/alibabacloud/sas/model/DescribeEmgVulGroupRequest.h
|
||||
include/alibabacloud/sas/model/DescribeEmgVulGroupResult.h
|
||||
include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h
|
||||
include/alibabacloud/sas/model/DescribeAutoDelConfigResult.h
|
||||
include/alibabacloud/sas/model/DescribeVulListRequest.h
|
||||
include/alibabacloud/sas/model/DescribeVulListResult.h
|
||||
include/alibabacloud/sas/model/DescribeVulWhitelistRequest.h
|
||||
include/alibabacloud/sas/model/DescribeVulWhitelistResult.h
|
||||
include/alibabacloud/sas/model/ModifyRiskCheckStatusRequest.h
|
||||
include/alibabacloud/sas/model/ModifyRiskCheckStatusResult.h
|
||||
include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h
|
||||
include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h
|
||||
include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h
|
||||
include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h
|
||||
include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h
|
||||
include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h
|
||||
include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h
|
||||
include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h
|
||||
include/alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.h
|
||||
include/alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.h
|
||||
include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h
|
||||
include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h
|
||||
include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h
|
||||
include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h
|
||||
include/alibabacloud/sas/model/DescribeVulDetailsRequest.h
|
||||
include/alibabacloud/sas/model/DescribeVulDetailsResult.h
|
||||
include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h
|
||||
include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h
|
||||
include/alibabacloud/sas/model/DescribeGroupedVulRequest.h
|
||||
include/alibabacloud/sas/model/DescribeGroupedVulResult.h
|
||||
include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h
|
||||
include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h
|
||||
include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h
|
||||
include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h
|
||||
include/alibabacloud/sas/model/ModifyOperateVulRequest.h
|
||||
include/alibabacloud/sas/model/ModifyOperateVulResult.h
|
||||
include/alibabacloud/sas/model/DescribeRiskItemTypeRequest.h
|
||||
include/alibabacloud/sas/model/DescribeRiskItemTypeResult.h
|
||||
include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.h
|
||||
include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h
|
||||
include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h
|
||||
include/alibabacloud/sas/model/ModifyConcernNecessityResult.h )
|
||||
set(sas_public_header_model )
|
||||
|
||||
set(sas_src
|
||||
src/SasClient.cc
|
||||
src/model/DescribeAlarmEventDetailRequest.cc
|
||||
src/model/DescribeAlarmEventDetailResult.cc
|
||||
src/model/DescribeAlarmEventListRequest.cc
|
||||
src/model/DescribeAlarmEventListResult.cc
|
||||
src/model/DescribeSuspEventsRequest.cc
|
||||
src/model/DescribeSuspEventsResult.cc
|
||||
src/model/DescribeConcernNecessityRequest.cc
|
||||
src/model/DescribeConcernNecessityResult.cc
|
||||
src/model/ModifySecurityCheckScheduleConfigRequest.cc
|
||||
src/model/ModifySecurityCheckScheduleConfigResult.cc
|
||||
src/model/DescribeEmgVulGroupRequest.cc
|
||||
src/model/DescribeEmgVulGroupResult.cc
|
||||
src/model/DescribeAutoDelConfigRequest.cc
|
||||
src/model/DescribeAutoDelConfigResult.cc
|
||||
src/model/DescribeVulListRequest.cc
|
||||
src/model/DescribeVulListResult.cc
|
||||
src/model/DescribeVulWhitelistRequest.cc
|
||||
src/model/DescribeVulWhitelistResult.cc
|
||||
src/model/ModifyRiskCheckStatusRequest.cc
|
||||
src/model/ModifyRiskCheckStatusResult.cc
|
||||
src/model/DescribeSecurityCheckScheduleConfigRequest.cc
|
||||
src/model/DescribeSecurityCheckScheduleConfigResult.cc
|
||||
src/model/StartBaselineSecurityCheckRequest.cc
|
||||
src/model/StartBaselineSecurityCheckResult.cc
|
||||
src/model/DescribeRiskCheckResultRequest.cc
|
||||
src/model/DescribeRiskCheckResultResult.cc
|
||||
src/model/DescribeSuspEventDetailRequest.cc
|
||||
src/model/DescribeSuspEventDetailResult.cc
|
||||
src/model/ModifyRiskSingleResultStatusRequest.cc
|
||||
src/model/ModifyRiskSingleResultStatusResult.cc
|
||||
src/model/ModifyAutoDelConfigRequest.cc
|
||||
src/model/ModifyAutoDelConfigResult.cc
|
||||
src/model/ModifyEmgVulSubmitRequest.cc
|
||||
src/model/ModifyEmgVulSubmitResult.cc
|
||||
src/model/DescribeVulDetailsRequest.cc
|
||||
src/model/DescribeVulDetailsResult.cc
|
||||
src/model/ModifyCreateVulWhitelistRequest.cc
|
||||
src/model/ModifyCreateVulWhitelistResult.cc
|
||||
src/model/DescribeGroupedVulRequest.cc
|
||||
src/model/DescribeGroupedVulResult.cc
|
||||
src/model/ModifyDeleteVulWhitelistRequest.cc
|
||||
src/model/ModifyDeleteVulWhitelistResult.cc
|
||||
src/model/DescribeRiskCheckSummaryRequest.cc
|
||||
src/model/DescribeRiskCheckSummaryResult.cc
|
||||
src/model/ModifyOperateVulRequest.cc
|
||||
src/model/ModifyOperateVulResult.cc
|
||||
src/model/DescribeRiskItemTypeRequest.cc
|
||||
src/model/DescribeRiskItemTypeResult.cc
|
||||
src/model/DescribeUserBaselineAuthorizationRequest.cc
|
||||
src/model/DescribeUserBaselineAuthorizationResult.cc
|
||||
src/model/ModifyConcernNecessityRequest.cc
|
||||
src/model/ModifyConcernNecessityResult.cc )
|
||||
src/SasClient.cc )
|
||||
|
||||
add_library(sas ${LIB_TYPE}
|
||||
${sas_public_header}
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#include "model/DescribeConcernNecessityResult.h"
|
||||
#include "model/ModifySecurityCheckScheduleConfigRequest.h"
|
||||
#include "model/ModifySecurityCheckScheduleConfigResult.h"
|
||||
#include "model/DescribeCheckWarningSummaryRequest.h"
|
||||
#include "model/DescribeCheckWarningSummaryResult.h"
|
||||
#include "model/DescribeEmgVulGroupRequest.h"
|
||||
#include "model/DescribeEmgVulGroupResult.h"
|
||||
#include "model/DescribeAutoDelConfigRequest.h"
|
||||
@@ -46,10 +48,18 @@
|
||||
#include "model/DescribeSecurityCheckScheduleConfigResult.h"
|
||||
#include "model/StartBaselineSecurityCheckRequest.h"
|
||||
#include "model/StartBaselineSecurityCheckResult.h"
|
||||
#include "model/ModifyPushAllTaskRequest.h"
|
||||
#include "model/ModifyPushAllTaskResult.h"
|
||||
#include "model/DescribeRiskCheckResultRequest.h"
|
||||
#include "model/DescribeRiskCheckResultResult.h"
|
||||
#include "model/DescribeCheckWarningDetailRequest.h"
|
||||
#include "model/DescribeCheckWarningDetailResult.h"
|
||||
#include "model/DescribeSuspEventDetailRequest.h"
|
||||
#include "model/DescribeSuspEventDetailResult.h"
|
||||
#include "model/DescribeStratetyRequest.h"
|
||||
#include "model/DescribeStratetyResult.h"
|
||||
#include "model/DescribeWarningMachinesRequest.h"
|
||||
#include "model/DescribeWarningMachinesResult.h"
|
||||
#include "model/ModifyRiskSingleResultStatusRequest.h"
|
||||
#include "model/ModifyRiskSingleResultStatusResult.h"
|
||||
#include "model/ModifyAutoDelConfigRequest.h"
|
||||
@@ -64,6 +74,8 @@
|
||||
#include "model/DescribeGroupedVulResult.h"
|
||||
#include "model/ModifyDeleteVulWhitelistRequest.h"
|
||||
#include "model/ModifyDeleteVulWhitelistResult.h"
|
||||
#include "model/DescribeStrategyExecDetailRequest.h"
|
||||
#include "model/DescribeStrategyExecDetailResult.h"
|
||||
#include "model/DescribeRiskCheckSummaryRequest.h"
|
||||
#include "model/DescribeRiskCheckSummaryResult.h"
|
||||
#include "model/ModifyOperateVulRequest.h"
|
||||
@@ -72,6 +84,8 @@
|
||||
#include "model/DescribeRiskItemTypeResult.h"
|
||||
#include "model/DescribeUserBaselineAuthorizationRequest.h"
|
||||
#include "model/DescribeUserBaselineAuthorizationResult.h"
|
||||
#include "model/DescribeCheckWarningsRequest.h"
|
||||
#include "model/DescribeCheckWarningsResult.h"
|
||||
#include "model/ModifyConcernNecessityRequest.h"
|
||||
#include "model/ModifyConcernNecessityResult.h"
|
||||
|
||||
@@ -98,6 +112,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifySecurityCheckScheduleConfigResult> ModifySecurityCheckScheduleConfigOutcome;
|
||||
typedef std::future<ModifySecurityCheckScheduleConfigOutcome> ModifySecurityCheckScheduleConfigOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::ModifySecurityCheckScheduleConfigRequest&, const ModifySecurityCheckScheduleConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySecurityCheckScheduleConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCheckWarningSummaryResult> DescribeCheckWarningSummaryOutcome;
|
||||
typedef std::future<DescribeCheckWarningSummaryOutcome> DescribeCheckWarningSummaryOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeCheckWarningSummaryRequest&, const DescribeCheckWarningSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCheckWarningSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeEmgVulGroupResult> DescribeEmgVulGroupOutcome;
|
||||
typedef std::future<DescribeEmgVulGroupOutcome> DescribeEmgVulGroupOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeEmgVulGroupRequest&, const DescribeEmgVulGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEmgVulGroupAsyncHandler;
|
||||
@@ -119,12 +136,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartBaselineSecurityCheckResult> StartBaselineSecurityCheckOutcome;
|
||||
typedef std::future<StartBaselineSecurityCheckOutcome> StartBaselineSecurityCheckOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::StartBaselineSecurityCheckRequest&, const StartBaselineSecurityCheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartBaselineSecurityCheckAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyPushAllTaskResult> ModifyPushAllTaskOutcome;
|
||||
typedef std::future<ModifyPushAllTaskOutcome> ModifyPushAllTaskOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::ModifyPushAllTaskRequest&, const ModifyPushAllTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPushAllTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRiskCheckResultResult> DescribeRiskCheckResultOutcome;
|
||||
typedef std::future<DescribeRiskCheckResultOutcome> DescribeRiskCheckResultOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeRiskCheckResultRequest&, const DescribeRiskCheckResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRiskCheckResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCheckWarningDetailResult> DescribeCheckWarningDetailOutcome;
|
||||
typedef std::future<DescribeCheckWarningDetailOutcome> DescribeCheckWarningDetailOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeCheckWarningDetailRequest&, const DescribeCheckWarningDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCheckWarningDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSuspEventDetailResult> DescribeSuspEventDetailOutcome;
|
||||
typedef std::future<DescribeSuspEventDetailOutcome> DescribeSuspEventDetailOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeSuspEventDetailRequest&, const DescribeSuspEventDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSuspEventDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeStratetyResult> DescribeStratetyOutcome;
|
||||
typedef std::future<DescribeStratetyOutcome> DescribeStratetyOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeStratetyRequest&, const DescribeStratetyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStratetyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeWarningMachinesResult> DescribeWarningMachinesOutcome;
|
||||
typedef std::future<DescribeWarningMachinesOutcome> DescribeWarningMachinesOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeWarningMachinesRequest&, const DescribeWarningMachinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWarningMachinesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyRiskSingleResultStatusResult> ModifyRiskSingleResultStatusOutcome;
|
||||
typedef std::future<ModifyRiskSingleResultStatusOutcome> ModifyRiskSingleResultStatusOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::ModifyRiskSingleResultStatusRequest&, const ModifyRiskSingleResultStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyRiskSingleResultStatusAsyncHandler;
|
||||
@@ -146,6 +175,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDeleteVulWhitelistResult> ModifyDeleteVulWhitelistOutcome;
|
||||
typedef std::future<ModifyDeleteVulWhitelistOutcome> ModifyDeleteVulWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::ModifyDeleteVulWhitelistRequest&, const ModifyDeleteVulWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeleteVulWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeStrategyExecDetailResult> DescribeStrategyExecDetailOutcome;
|
||||
typedef std::future<DescribeStrategyExecDetailOutcome> DescribeStrategyExecDetailOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeStrategyExecDetailRequest&, const DescribeStrategyExecDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStrategyExecDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRiskCheckSummaryResult> DescribeRiskCheckSummaryOutcome;
|
||||
typedef std::future<DescribeRiskCheckSummaryOutcome> DescribeRiskCheckSummaryOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeRiskCheckSummaryRequest&, const DescribeRiskCheckSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRiskCheckSummaryAsyncHandler;
|
||||
@@ -158,6 +190,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeUserBaselineAuthorizationResult> DescribeUserBaselineAuthorizationOutcome;
|
||||
typedef std::future<DescribeUserBaselineAuthorizationOutcome> DescribeUserBaselineAuthorizationOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeUserBaselineAuthorizationRequest&, const DescribeUserBaselineAuthorizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserBaselineAuthorizationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCheckWarningsResult> DescribeCheckWarningsOutcome;
|
||||
typedef std::future<DescribeCheckWarningsOutcome> DescribeCheckWarningsOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::DescribeCheckWarningsRequest&, const DescribeCheckWarningsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCheckWarningsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyConcernNecessityResult> ModifyConcernNecessityOutcome;
|
||||
typedef std::future<ModifyConcernNecessityOutcome> ModifyConcernNecessityOutcomeCallable;
|
||||
typedef std::function<void(const SasClient*, const Model::ModifyConcernNecessityRequest&, const ModifyConcernNecessityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyConcernNecessityAsyncHandler;
|
||||
@@ -181,6 +216,9 @@ namespace AlibabaCloud
|
||||
ModifySecurityCheckScheduleConfigOutcome modifySecurityCheckScheduleConfig(const Model::ModifySecurityCheckScheduleConfigRequest &request)const;
|
||||
void modifySecurityCheckScheduleConfigAsync(const Model::ModifySecurityCheckScheduleConfigRequest& request, const ModifySecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySecurityCheckScheduleConfigOutcomeCallable modifySecurityCheckScheduleConfigCallable(const Model::ModifySecurityCheckScheduleConfigRequest& request) const;
|
||||
DescribeCheckWarningSummaryOutcome describeCheckWarningSummary(const Model::DescribeCheckWarningSummaryRequest &request)const;
|
||||
void describeCheckWarningSummaryAsync(const Model::DescribeCheckWarningSummaryRequest& request, const DescribeCheckWarningSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCheckWarningSummaryOutcomeCallable describeCheckWarningSummaryCallable(const Model::DescribeCheckWarningSummaryRequest& request) const;
|
||||
DescribeEmgVulGroupOutcome describeEmgVulGroup(const Model::DescribeEmgVulGroupRequest &request)const;
|
||||
void describeEmgVulGroupAsync(const Model::DescribeEmgVulGroupRequest& request, const DescribeEmgVulGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEmgVulGroupOutcomeCallable describeEmgVulGroupCallable(const Model::DescribeEmgVulGroupRequest& request) const;
|
||||
@@ -202,12 +240,24 @@ namespace AlibabaCloud
|
||||
StartBaselineSecurityCheckOutcome startBaselineSecurityCheck(const Model::StartBaselineSecurityCheckRequest &request)const;
|
||||
void startBaselineSecurityCheckAsync(const Model::StartBaselineSecurityCheckRequest& request, const StartBaselineSecurityCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartBaselineSecurityCheckOutcomeCallable startBaselineSecurityCheckCallable(const Model::StartBaselineSecurityCheckRequest& request) const;
|
||||
ModifyPushAllTaskOutcome modifyPushAllTask(const Model::ModifyPushAllTaskRequest &request)const;
|
||||
void modifyPushAllTaskAsync(const Model::ModifyPushAllTaskRequest& request, const ModifyPushAllTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyPushAllTaskOutcomeCallable modifyPushAllTaskCallable(const Model::ModifyPushAllTaskRequest& request) const;
|
||||
DescribeRiskCheckResultOutcome describeRiskCheckResult(const Model::DescribeRiskCheckResultRequest &request)const;
|
||||
void describeRiskCheckResultAsync(const Model::DescribeRiskCheckResultRequest& request, const DescribeRiskCheckResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRiskCheckResultOutcomeCallable describeRiskCheckResultCallable(const Model::DescribeRiskCheckResultRequest& request) const;
|
||||
DescribeCheckWarningDetailOutcome describeCheckWarningDetail(const Model::DescribeCheckWarningDetailRequest &request)const;
|
||||
void describeCheckWarningDetailAsync(const Model::DescribeCheckWarningDetailRequest& request, const DescribeCheckWarningDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCheckWarningDetailOutcomeCallable describeCheckWarningDetailCallable(const Model::DescribeCheckWarningDetailRequest& request) const;
|
||||
DescribeSuspEventDetailOutcome describeSuspEventDetail(const Model::DescribeSuspEventDetailRequest &request)const;
|
||||
void describeSuspEventDetailAsync(const Model::DescribeSuspEventDetailRequest& request, const DescribeSuspEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSuspEventDetailOutcomeCallable describeSuspEventDetailCallable(const Model::DescribeSuspEventDetailRequest& request) const;
|
||||
DescribeStratetyOutcome describeStratety(const Model::DescribeStratetyRequest &request)const;
|
||||
void describeStratetyAsync(const Model::DescribeStratetyRequest& request, const DescribeStratetyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeStratetyOutcomeCallable describeStratetyCallable(const Model::DescribeStratetyRequest& request) const;
|
||||
DescribeWarningMachinesOutcome describeWarningMachines(const Model::DescribeWarningMachinesRequest &request)const;
|
||||
void describeWarningMachinesAsync(const Model::DescribeWarningMachinesRequest& request, const DescribeWarningMachinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWarningMachinesOutcomeCallable describeWarningMachinesCallable(const Model::DescribeWarningMachinesRequest& request) const;
|
||||
ModifyRiskSingleResultStatusOutcome modifyRiskSingleResultStatus(const Model::ModifyRiskSingleResultStatusRequest &request)const;
|
||||
void modifyRiskSingleResultStatusAsync(const Model::ModifyRiskSingleResultStatusRequest& request, const ModifyRiskSingleResultStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyRiskSingleResultStatusOutcomeCallable modifyRiskSingleResultStatusCallable(const Model::ModifyRiskSingleResultStatusRequest& request) const;
|
||||
@@ -229,6 +279,9 @@ namespace AlibabaCloud
|
||||
ModifyDeleteVulWhitelistOutcome modifyDeleteVulWhitelist(const Model::ModifyDeleteVulWhitelistRequest &request)const;
|
||||
void modifyDeleteVulWhitelistAsync(const Model::ModifyDeleteVulWhitelistRequest& request, const ModifyDeleteVulWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeleteVulWhitelistOutcomeCallable modifyDeleteVulWhitelistCallable(const Model::ModifyDeleteVulWhitelistRequest& request) const;
|
||||
DescribeStrategyExecDetailOutcome describeStrategyExecDetail(const Model::DescribeStrategyExecDetailRequest &request)const;
|
||||
void describeStrategyExecDetailAsync(const Model::DescribeStrategyExecDetailRequest& request, const DescribeStrategyExecDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeStrategyExecDetailOutcomeCallable describeStrategyExecDetailCallable(const Model::DescribeStrategyExecDetailRequest& request) const;
|
||||
DescribeRiskCheckSummaryOutcome describeRiskCheckSummary(const Model::DescribeRiskCheckSummaryRequest &request)const;
|
||||
void describeRiskCheckSummaryAsync(const Model::DescribeRiskCheckSummaryRequest& request, const DescribeRiskCheckSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRiskCheckSummaryOutcomeCallable describeRiskCheckSummaryCallable(const Model::DescribeRiskCheckSummaryRequest& request) const;
|
||||
@@ -241,6 +294,9 @@ namespace AlibabaCloud
|
||||
DescribeUserBaselineAuthorizationOutcome describeUserBaselineAuthorization(const Model::DescribeUserBaselineAuthorizationRequest &request)const;
|
||||
void describeUserBaselineAuthorizationAsync(const Model::DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUserBaselineAuthorizationOutcomeCallable describeUserBaselineAuthorizationCallable(const Model::DescribeUserBaselineAuthorizationRequest& request) const;
|
||||
DescribeCheckWarningsOutcome describeCheckWarnings(const Model::DescribeCheckWarningsRequest &request)const;
|
||||
void describeCheckWarningsAsync(const Model::DescribeCheckWarningsRequest& request, const DescribeCheckWarningsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCheckWarningsOutcomeCallable describeCheckWarningsCallable(const Model::DescribeCheckWarningsRequest& request) const;
|
||||
ModifyConcernNecessityOutcome modifyConcernNecessity(const Model::ModifyConcernNecessityRequest &request)const;
|
||||
void modifyConcernNecessityAsync(const Model::ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyConcernNecessityOutcomeCallable modifyConcernNecessityCallable(const Model::ModifyConcernNecessityRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DESCRIBECHECKWARNINGDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeCheckWarningDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCheckWarningDetailRequest();
|
||||
~DescribeCheckWarningDetailRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
long getCheckWarningId()const;
|
||||
void setCheckWarningId(long checkWarningId);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
long checkWarningId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGDETAILREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_DESCRIBECHECKWARNINGDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeCheckWarningDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeCheckWarningDetailResult();
|
||||
explicit DescribeCheckWarningDetailResult(const std::string &payload);
|
||||
~DescribeCheckWarningDetailResult();
|
||||
std::string getItem()const;
|
||||
std::string getType()const;
|
||||
std::string getDescription()const;
|
||||
long getCheckId()const;
|
||||
std::string getLevel()const;
|
||||
std::string getPrompt()const;
|
||||
std::string getAdvice()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string item_;
|
||||
std::string type_;
|
||||
std::string description_;
|
||||
long checkId_;
|
||||
std::string level_;
|
||||
std::string prompt_;
|
||||
std::string advice_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGDETAILRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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_DESCRIBECHECKWARNINGSUMMARYREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSUMMARYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeCheckWarningSummaryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCheckWarningSummaryRequest();
|
||||
~DescribeCheckWarningSummaryRequest();
|
||||
|
||||
std::string getRiskName()const;
|
||||
void setRiskName(const std::string& riskName);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getRiskStatus()const;
|
||||
void setRiskStatus(int riskStatus);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getStrategyId()const;
|
||||
void setStrategyId(long strategyId);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getTypeName()const;
|
||||
void setTypeName(const std::string& typeName);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
std::string getUuids()const;
|
||||
void setUuids(const std::string& uuids);
|
||||
|
||||
private:
|
||||
std::string riskName_;
|
||||
std::string sourceIp_;
|
||||
int riskStatus_;
|
||||
int pageSize_;
|
||||
long strategyId_;
|
||||
int currentPage_;
|
||||
std::string lang_;
|
||||
std::string typeName_;
|
||||
std::string status_;
|
||||
std::string uuids_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSUMMARYREQUEST_H_
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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_DESCRIBECHECKWARNINGSUMMARYRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSUMMARYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeCheckWarningSummaryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct WarningSummary
|
||||
{
|
||||
long riskId;
|
||||
std::string lastFoundTime;
|
||||
int mediumWarningCount;
|
||||
int checkCount;
|
||||
int warningMachineCount;
|
||||
std::string typeAlias;
|
||||
std::string level;
|
||||
int highWarningCount;
|
||||
std::string riskName;
|
||||
std::string subTypeAlias;
|
||||
int lowWarningCount;
|
||||
};
|
||||
|
||||
|
||||
DescribeCheckWarningSummaryResult();
|
||||
explicit DescribeCheckWarningSummaryResult(const std::string &payload);
|
||||
~DescribeCheckWarningSummaryResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
int getCount()const;
|
||||
std::vector<WarningSummary> getWarningSummarys()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
int count_;
|
||||
std::vector<WarningSummary> warningSummarys_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSUMMARYRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_DESCRIBECHECKWARNINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeCheckWarningsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeCheckWarningsRequest();
|
||||
~DescribeCheckWarningsRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
long getRiskId()const;
|
||||
void setRiskId(long riskId);
|
||||
std::string getUuid()const;
|
||||
void setUuid(const std::string& uuid);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
std::string lang_;
|
||||
long riskId_;
|
||||
std::string uuid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSREQUEST_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_DESCRIBECHECKWARNINGSRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeCheckWarningsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CheckWarning
|
||||
{
|
||||
int status;
|
||||
std::string item;
|
||||
std::string type;
|
||||
std::string uuid;
|
||||
long checkId;
|
||||
long checkWarningId;
|
||||
std::string level;
|
||||
};
|
||||
|
||||
|
||||
DescribeCheckWarningsResult();
|
||||
explicit DescribeCheckWarningsResult(const std::string &payload);
|
||||
~DescribeCheckWarningsResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<CheckWarning> getCheckWarnings()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
int getCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<CheckWarning> checkWarnings_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
int count_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECHECKWARNINGSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_DESCRIBESTRATEGYEXECDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYEXECDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyExecDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeStrategyExecDetailRequest();
|
||||
~DescribeStrategyExecDetailRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getStrategyId()const;
|
||||
void setStrategyId(int strategyId);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
int strategyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYEXECDETAILREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_DESCRIBESTRATEGYEXECDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYEXECDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyExecDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct FailedEcs
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string iP;
|
||||
std::string intranetIp;
|
||||
std::string reason;
|
||||
};
|
||||
|
||||
|
||||
DescribeStrategyExecDetailResult();
|
||||
explicit DescribeStrategyExecDetailResult(const std::string &payload);
|
||||
~DescribeStrategyExecDetailResult();
|
||||
std::string getEndTime()const;
|
||||
std::string getPercent()const;
|
||||
int getFailCount()const;
|
||||
std::string getStartTime()const;
|
||||
int getSuccessCount()const;
|
||||
std::vector<FailedEcs> getFailedEcsList()const;
|
||||
std::string getSource()const;
|
||||
int getInProcessCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string percent_;
|
||||
int failCount_;
|
||||
std::string startTime_;
|
||||
int successCount_;
|
||||
std::vector<FailedEcs> failedEcsList_;
|
||||
std::string source_;
|
||||
int inProcessCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYEXECDETAILRESULT_H_
|
||||
54
sas/include/alibabacloud/sas/model/DescribeStratetyRequest.h
Normal file
54
sas/include/alibabacloud/sas/model/DescribeStratetyRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DESCRIBESTRATETYREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATETYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeStratetyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeStratetyRequest();
|
||||
~DescribeStratetyRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getStrategyIds()const;
|
||||
void setStrategyIds(const std::string& strategyIds);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string strategyIds_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATETYREQUEST_H_
|
||||
71
sas/include/alibabacloud/sas/model/DescribeStratetyResult.h
Normal file
71
sas/include/alibabacloud/sas/model/DescribeStratetyResult.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_DESCRIBESTRATETYRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATETYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeStratetyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Strategy
|
||||
{
|
||||
struct ConfigTarget
|
||||
{
|
||||
std::string target;
|
||||
std::string targetType;
|
||||
std::string flag;
|
||||
};
|
||||
int cycleStartTime;
|
||||
int ecsCount;
|
||||
int type;
|
||||
int execStatus;
|
||||
int passRate;
|
||||
int processRate;
|
||||
int cycleDays;
|
||||
int id;
|
||||
std::vector<Strategy::ConfigTarget> configTargets;
|
||||
int riskCount;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeStratetyResult();
|
||||
explicit DescribeStratetyResult(const std::string &payload);
|
||||
~DescribeStratetyResult();
|
||||
std::vector<Strategy> getStrategies()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Strategy> strategies_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATETYRESULT_H_
|
||||
@@ -47,7 +47,7 @@ namespace AlibabaCloud
|
||||
std::string enviroment_factor;
|
||||
std::string assets_factor;
|
||||
};
|
||||
struct RpmEntityListItem
|
||||
struct RpmEntity
|
||||
{
|
||||
std::string path;
|
||||
std::string updateCmd;
|
||||
@@ -62,7 +62,7 @@ namespace AlibabaCloud
|
||||
std::string aliasName;
|
||||
Necessity necessity;
|
||||
long lastTs;
|
||||
std::vector<RpmEntityListItem> rpmEntityList;
|
||||
std::vector<RpmEntity> rpmEntityList;
|
||||
std::string tag;
|
||||
std::string osRelease;
|
||||
std::string absolutePath;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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_DESCRIBEWARNINGMACHINESREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEWARNINGMACHINESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeWarningMachinesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeWarningMachinesRequest();
|
||||
~DescribeWarningMachinesRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getMachineName()const;
|
||||
void setMachineName(const std::string& machineName);
|
||||
long getStrategyId()const;
|
||||
void setStrategyId(long strategyId);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
long getRiskId()const;
|
||||
void setRiskId(long riskId);
|
||||
std::string getUuids()const;
|
||||
void setUuids(const std::string& uuids);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
std::string machineName_;
|
||||
long strategyId_;
|
||||
int currentPage_;
|
||||
std::string lang_;
|
||||
long riskId_;
|
||||
std::string uuids_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEWARNINGMACHINESREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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_DESCRIBEWARNINGMACHINESRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEWARNINGMACHINESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT DescribeWarningMachinesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct WarningMachine
|
||||
{
|
||||
int status;
|
||||
int mediumWarningCount;
|
||||
std::string uuid;
|
||||
std::string machineName;
|
||||
std::string internetIp;
|
||||
int highWarningCount;
|
||||
int passCount;
|
||||
std::string intranetIp;
|
||||
int lowWarningCount;
|
||||
};
|
||||
|
||||
|
||||
DescribeWarningMachinesResult();
|
||||
explicit DescribeWarningMachinesResult(const std::string &payload);
|
||||
~DescribeWarningMachinesResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
std::vector<WarningMachine> getWarningMachines()const;
|
||||
int getCount()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
std::vector<WarningMachine> warningMachines_;
|
||||
int count_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEWARNINGMACHINESRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_MODIFYPUSHALLTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_MODIFYPUSHALLTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT ModifyPushAllTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyPushAllTaskRequest();
|
||||
~ModifyPushAllTaskRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTasks()const;
|
||||
void setTasks(const std::string& tasks);
|
||||
std::string getUuids()const;
|
||||
void setUuids(const std::string& uuids);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string tasks_;
|
||||
std::string uuids_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYPUSHALLTASKREQUEST_H_
|
||||
68
sas/include/alibabacloud/sas/model/ModifyPushAllTaskResult.h
Normal file
68
sas/include/alibabacloud/sas/model/ModifyPushAllTaskResult.h
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_MODIFYPUSHALLTASKRESULT_H_
|
||||
#define ALIBABACLOUD_SAS_MODEL_MODIFYPUSHALLTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/sas/SasExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Sas
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SAS_EXPORT ModifyPushAllTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushTaskRsp
|
||||
{
|
||||
struct PushTaskResult
|
||||
{
|
||||
std::string instanceName;
|
||||
std::string uuid;
|
||||
std::string message;
|
||||
std::string instanceId;
|
||||
std::string osVersion;
|
||||
std::string ip;
|
||||
std::string region;
|
||||
bool online;
|
||||
bool success;
|
||||
long groupId;
|
||||
};
|
||||
std::vector<PushTaskResult> pushTaskResultList;
|
||||
};
|
||||
|
||||
|
||||
ModifyPushAllTaskResult();
|
||||
explicit ModifyPushAllTaskResult(const std::string &payload);
|
||||
~ModifyPushAllTaskResult();
|
||||
PushTaskRsp getPushTaskRsp()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PushTaskRsp pushTaskRsp_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYPUSHALLTASKRESULT_H_
|
||||
@@ -231,6 +231,42 @@ SasClient::ModifySecurityCheckScheduleConfigOutcomeCallable SasClient::modifySec
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeCheckWarningSummaryOutcome SasClient::describeCheckWarningSummary(const DescribeCheckWarningSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCheckWarningSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCheckWarningSummaryOutcome(DescribeCheckWarningSummaryResult(outcome.result()));
|
||||
else
|
||||
return DescribeCheckWarningSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeCheckWarningSummaryAsync(const DescribeCheckWarningSummaryRequest& request, const DescribeCheckWarningSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCheckWarningSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeCheckWarningSummaryOutcomeCallable SasClient::describeCheckWarningSummaryCallable(const DescribeCheckWarningSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCheckWarningSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCheckWarningSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeEmgVulGroupOutcome SasClient::describeEmgVulGroup(const DescribeEmgVulGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -483,6 +519,42 @@ SasClient::StartBaselineSecurityCheckOutcomeCallable SasClient::startBaselineSec
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyPushAllTaskOutcome SasClient::modifyPushAllTask(const ModifyPushAllTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyPushAllTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyPushAllTaskOutcome(ModifyPushAllTaskResult(outcome.result()));
|
||||
else
|
||||
return ModifyPushAllTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::modifyPushAllTaskAsync(const ModifyPushAllTaskRequest& request, const ModifyPushAllTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyPushAllTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::ModifyPushAllTaskOutcomeCallable SasClient::modifyPushAllTaskCallable(const ModifyPushAllTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyPushAllTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyPushAllTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskCheckResultOutcome SasClient::describeRiskCheckResult(const DescribeRiskCheckResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +591,42 @@ SasClient::DescribeRiskCheckResultOutcomeCallable SasClient::describeRiskCheckRe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeCheckWarningDetailOutcome SasClient::describeCheckWarningDetail(const DescribeCheckWarningDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCheckWarningDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCheckWarningDetailOutcome(DescribeCheckWarningDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeCheckWarningDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeCheckWarningDetailAsync(const DescribeCheckWarningDetailRequest& request, const DescribeCheckWarningDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCheckWarningDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeCheckWarningDetailOutcomeCallable SasClient::describeCheckWarningDetailCallable(const DescribeCheckWarningDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCheckWarningDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCheckWarningDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspEventDetailOutcome SasClient::describeSuspEventDetail(const DescribeSuspEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +663,78 @@ SasClient::DescribeSuspEventDetailOutcomeCallable SasClient::describeSuspEventDe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeStratetyOutcome SasClient::describeStratety(const DescribeStratetyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStratetyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeStratetyOutcome(DescribeStratetyResult(outcome.result()));
|
||||
else
|
||||
return DescribeStratetyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeStratetyAsync(const DescribeStratetyRequest& request, const DescribeStratetyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeStratety(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeStratetyOutcomeCallable SasClient::describeStratetyCallable(const DescribeStratetyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeStratetyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeStratety(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeWarningMachinesOutcome SasClient::describeWarningMachines(const DescribeWarningMachinesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWarningMachinesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWarningMachinesOutcome(DescribeWarningMachinesResult(outcome.result()));
|
||||
else
|
||||
return DescribeWarningMachinesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeWarningMachinesAsync(const DescribeWarningMachinesRequest& request, const DescribeWarningMachinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWarningMachines(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeWarningMachinesOutcomeCallable SasClient::describeWarningMachinesCallable(const DescribeWarningMachinesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWarningMachinesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWarningMachines(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyRiskSingleResultStatusOutcome SasClient::modifyRiskSingleResultStatus(const ModifyRiskSingleResultStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -807,6 +987,42 @@ SasClient::ModifyDeleteVulWhitelistOutcomeCallable SasClient::modifyDeleteVulWhi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeStrategyExecDetailOutcome SasClient::describeStrategyExecDetail(const DescribeStrategyExecDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeStrategyExecDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeStrategyExecDetailOutcome(DescribeStrategyExecDetailResult(outcome.result()));
|
||||
else
|
||||
return DescribeStrategyExecDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeStrategyExecDetailAsync(const DescribeStrategyExecDetailRequest& request, const DescribeStrategyExecDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeStrategyExecDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeStrategyExecDetailOutcomeCallable SasClient::describeStrategyExecDetailCallable(const DescribeStrategyExecDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeStrategyExecDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeStrategyExecDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeRiskCheckSummaryOutcome SasClient::describeRiskCheckSummary(const DescribeRiskCheckSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +1167,42 @@ SasClient::DescribeUserBaselineAuthorizationOutcomeCallable SasClient::describeU
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeCheckWarningsOutcome SasClient::describeCheckWarnings(const DescribeCheckWarningsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCheckWarningsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCheckWarningsOutcome(DescribeCheckWarningsResult(outcome.result()));
|
||||
else
|
||||
return DescribeCheckWarningsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeCheckWarningsAsync(const DescribeCheckWarningsRequest& request, const DescribeCheckWarningsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCheckWarnings(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeCheckWarningsOutcomeCallable SasClient::describeCheckWarningsCallable(const DescribeCheckWarningsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCheckWarningsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCheckWarnings(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::ModifyConcernNecessityOutcome SasClient::modifyConcernNecessity(const ModifyConcernNecessityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
60
sas/src/model/DescribeCheckWarningDetailRequest.cc
Normal file
60
sas/src/model/DescribeCheckWarningDetailRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeCheckWarningDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeCheckWarningDetailRequest;
|
||||
|
||||
DescribeCheckWarningDetailRequest::DescribeCheckWarningDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCheckWarningDetail")
|
||||
{}
|
||||
|
||||
DescribeCheckWarningDetailRequest::~DescribeCheckWarningDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCheckWarningDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningDetailRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeCheckWarningDetailRequest::getCheckWarningId()const
|
||||
{
|
||||
return checkWarningId_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningDetailRequest::setCheckWarningId(long checkWarningId)
|
||||
{
|
||||
checkWarningId_ = checkWarningId;
|
||||
setCoreParameter("CheckWarningId", std::to_string(checkWarningId));
|
||||
}
|
||||
|
||||
94
sas/src/model/DescribeCheckWarningDetailResult.cc
Normal file
94
sas/src/model/DescribeCheckWarningDetailResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeCheckWarningDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeCheckWarningDetailResult::DescribeCheckWarningDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCheckWarningDetailResult::DescribeCheckWarningDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCheckWarningDetailResult::~DescribeCheckWarningDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeCheckWarningDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CheckId"].isNull())
|
||||
checkId_ = std::stol(value["CheckId"].asString());
|
||||
if(!value["Level"].isNull())
|
||||
level_ = value["Level"].asString();
|
||||
if(!value["Item"].isNull())
|
||||
item_ = value["Item"].asString();
|
||||
if(!value["Prompt"].isNull())
|
||||
prompt_ = value["Prompt"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Advice"].isNull())
|
||||
advice_ = value["Advice"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailResult::getItem()const
|
||||
{
|
||||
return item_;
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
long DescribeCheckWarningDetailResult::getCheckId()const
|
||||
{
|
||||
return checkId_;
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailResult::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailResult::getPrompt()const
|
||||
{
|
||||
return prompt_;
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningDetailResult::getAdvice()const
|
||||
{
|
||||
return advice_;
|
||||
}
|
||||
|
||||
137
sas/src/model/DescribeCheckWarningSummaryRequest.cc
Normal file
137
sas/src/model/DescribeCheckWarningSummaryRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeCheckWarningSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeCheckWarningSummaryRequest;
|
||||
|
||||
DescribeCheckWarningSummaryRequest::DescribeCheckWarningSummaryRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCheckWarningSummary")
|
||||
{}
|
||||
|
||||
DescribeCheckWarningSummaryRequest::~DescribeCheckWarningSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getRiskName()const
|
||||
{
|
||||
return riskName_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setRiskName(const std::string& riskName)
|
||||
{
|
||||
riskName_ = riskName;
|
||||
setCoreParameter("RiskName", riskName);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryRequest::getRiskStatus()const
|
||||
{
|
||||
return riskStatus_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setRiskStatus(int riskStatus)
|
||||
{
|
||||
riskStatus_ = riskStatus;
|
||||
setCoreParameter("RiskStatus", std::to_string(riskStatus));
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeCheckWarningSummaryRequest::getStrategyId()const
|
||||
{
|
||||
return strategyId_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setStrategyId(long strategyId)
|
||||
{
|
||||
strategyId_ = strategyId;
|
||||
setCoreParameter("StrategyId", std::to_string(strategyId));
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getTypeName()const
|
||||
{
|
||||
return typeName_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setTypeName(const std::string& typeName)
|
||||
{
|
||||
typeName_ = typeName;
|
||||
setCoreParameter("TypeName", typeName);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningSummaryRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningSummaryRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
106
sas/src/model/DescribeCheckWarningSummaryResult.cc
Normal file
106
sas/src/model/DescribeCheckWarningSummaryResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeCheckWarningSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeCheckWarningSummaryResult::DescribeCheckWarningSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCheckWarningSummaryResult::DescribeCheckWarningSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCheckWarningSummaryResult::~DescribeCheckWarningSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribeCheckWarningSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allWarningSummarys = value["WarningSummarys"]["WarningSummary"];
|
||||
for (auto value : allWarningSummarys)
|
||||
{
|
||||
WarningSummary warningSummarysObject;
|
||||
if(!value["RiskId"].isNull())
|
||||
warningSummarysObject.riskId = std::stol(value["RiskId"].asString());
|
||||
if(!value["RiskName"].isNull())
|
||||
warningSummarysObject.riskName = value["RiskName"].asString();
|
||||
if(!value["TypeAlias"].isNull())
|
||||
warningSummarysObject.typeAlias = value["TypeAlias"].asString();
|
||||
if(!value["SubTypeAlias"].isNull())
|
||||
warningSummarysObject.subTypeAlias = value["SubTypeAlias"].asString();
|
||||
if(!value["LastFoundTime"].isNull())
|
||||
warningSummarysObject.lastFoundTime = value["LastFoundTime"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
warningSummarysObject.level = value["Level"].asString();
|
||||
if(!value["CheckCount"].isNull())
|
||||
warningSummarysObject.checkCount = std::stoi(value["CheckCount"].asString());
|
||||
if(!value["HighWarningCount"].isNull())
|
||||
warningSummarysObject.highWarningCount = std::stoi(value["HighWarningCount"].asString());
|
||||
if(!value["MediumWarningCount"].isNull())
|
||||
warningSummarysObject.mediumWarningCount = std::stoi(value["MediumWarningCount"].asString());
|
||||
if(!value["LowWarningCount"].isNull())
|
||||
warningSummarysObject.lowWarningCount = std::stoi(value["LowWarningCount"].asString());
|
||||
if(!value["WarningMachineCount"].isNull())
|
||||
warningSummarysObject.warningMachineCount = std::stoi(value["WarningMachineCount"].asString());
|
||||
warningSummarys_.push_back(warningSummarysObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
int DescribeCheckWarningSummaryResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCheckWarningSummaryResult::WarningSummary> DescribeCheckWarningSummaryResult::getWarningSummarys()const
|
||||
{
|
||||
return warningSummarys_;
|
||||
}
|
||||
|
||||
93
sas/src/model/DescribeCheckWarningsRequest.cc
Normal file
93
sas/src/model/DescribeCheckWarningsRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeCheckWarningsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeCheckWarningsRequest;
|
||||
|
||||
DescribeCheckWarningsRequest::DescribeCheckWarningsRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeCheckWarnings")
|
||||
{}
|
||||
|
||||
DescribeCheckWarningsRequest::~DescribeCheckWarningsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCheckWarningsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeCheckWarningsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeCheckWarningsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeCheckWarningsRequest::getRiskId()const
|
||||
{
|
||||
return riskId_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningsRequest::setRiskId(long riskId)
|
||||
{
|
||||
riskId_ = riskId;
|
||||
setCoreParameter("RiskId", std::to_string(riskId));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningsRequest::getUuid()const
|
||||
{
|
||||
return uuid_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningsRequest::setUuid(const std::string& uuid)
|
||||
{
|
||||
uuid_ = uuid;
|
||||
setCoreParameter("Uuid", uuid);
|
||||
}
|
||||
|
||||
98
sas/src/model/DescribeCheckWarningsResult.cc
Normal file
98
sas/src/model/DescribeCheckWarningsResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeCheckWarningsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeCheckWarningsResult::DescribeCheckWarningsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCheckWarningsResult::DescribeCheckWarningsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCheckWarningsResult::~DescribeCheckWarningsResult()
|
||||
{}
|
||||
|
||||
void DescribeCheckWarningsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCheckWarnings = value["CheckWarnings"]["CheckWarning"];
|
||||
for (auto value : allCheckWarnings)
|
||||
{
|
||||
CheckWarning checkWarningsObject;
|
||||
if(!value["Uuid"].isNull())
|
||||
checkWarningsObject.uuid = value["Uuid"].asString();
|
||||
if(!value["CheckId"].isNull())
|
||||
checkWarningsObject.checkId = std::stol(value["CheckId"].asString());
|
||||
if(!value["CheckWarningId"].isNull())
|
||||
checkWarningsObject.checkWarningId = std::stol(value["CheckWarningId"].asString());
|
||||
if(!value["Level"].isNull())
|
||||
checkWarningsObject.level = value["Level"].asString();
|
||||
if(!value["Item"].isNull())
|
||||
checkWarningsObject.item = value["Item"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
checkWarningsObject.type = value["Type"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
checkWarningsObject.status = std::stoi(value["Status"].asString());
|
||||
checkWarnings_.push_back(checkWarningsObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCheckWarningsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCheckWarningsResult::CheckWarning> DescribeCheckWarningsResult::getCheckWarnings()const
|
||||
{
|
||||
return checkWarnings_;
|
||||
}
|
||||
|
||||
int DescribeCheckWarningsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCheckWarningsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
int DescribeCheckWarningsResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
49
sas/src/model/DescribeStrategyExecDetailRequest.cc
Normal file
49
sas/src/model/DescribeStrategyExecDetailRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeStrategyExecDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeStrategyExecDetailRequest;
|
||||
|
||||
DescribeStrategyExecDetailRequest::DescribeStrategyExecDetailRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeStrategyExecDetail")
|
||||
{}
|
||||
|
||||
DescribeStrategyExecDetailRequest::~DescribeStrategyExecDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeStrategyExecDetailRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeStrategyExecDetailRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeStrategyExecDetailRequest::getStrategyId()const
|
||||
{
|
||||
return strategyId_;
|
||||
}
|
||||
|
||||
void DescribeStrategyExecDetailRequest::setStrategyId(int strategyId)
|
||||
{
|
||||
strategyId_ = strategyId;
|
||||
setCoreParameter("StrategyId", std::to_string(strategyId));
|
||||
}
|
||||
|
||||
113
sas/src/model/DescribeStrategyExecDetailResult.cc
Normal file
113
sas/src/model/DescribeStrategyExecDetailResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeStrategyExecDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeStrategyExecDetailResult::DescribeStrategyExecDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeStrategyExecDetailResult::DescribeStrategyExecDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeStrategyExecDetailResult::~DescribeStrategyExecDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeStrategyExecDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFailedEcsList = value["FailedEcsList"]["FailedEcs"];
|
||||
for (auto value : allFailedEcsList)
|
||||
{
|
||||
FailedEcs failedEcsListObject;
|
||||
if(!value["Reason"].isNull())
|
||||
failedEcsListObject.reason = value["Reason"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
failedEcsListObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["IP"].isNull())
|
||||
failedEcsListObject.iP = value["IP"].asString();
|
||||
if(!value["IntranetIp"].isNull())
|
||||
failedEcsListObject.intranetIp = value["IntranetIp"].asString();
|
||||
failedEcsList_.push_back(failedEcsListObject);
|
||||
}
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Source"].isNull())
|
||||
source_ = value["Source"].asString();
|
||||
if(!value["Percent"].isNull())
|
||||
percent_ = value["Percent"].asString();
|
||||
if(!value["SuccessCount"].isNull())
|
||||
successCount_ = std::stoi(value["SuccessCount"].asString());
|
||||
if(!value["FailCount"].isNull())
|
||||
failCount_ = std::stoi(value["FailCount"].asString());
|
||||
if(!value["InProcessCount"].isNull())
|
||||
inProcessCount_ = std::stoi(value["InProcessCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeStrategyExecDetailResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeStrategyExecDetailResult::getPercent()const
|
||||
{
|
||||
return percent_;
|
||||
}
|
||||
|
||||
int DescribeStrategyExecDetailResult::getFailCount()const
|
||||
{
|
||||
return failCount_;
|
||||
}
|
||||
|
||||
std::string DescribeStrategyExecDetailResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
int DescribeStrategyExecDetailResult::getSuccessCount()const
|
||||
{
|
||||
return successCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeStrategyExecDetailResult::FailedEcs> DescribeStrategyExecDetailResult::getFailedEcsList()const
|
||||
{
|
||||
return failedEcsList_;
|
||||
}
|
||||
|
||||
std::string DescribeStrategyExecDetailResult::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
int DescribeStrategyExecDetailResult::getInProcessCount()const
|
||||
{
|
||||
return inProcessCount_;
|
||||
}
|
||||
|
||||
60
sas/src/model/DescribeStratetyRequest.cc
Normal file
60
sas/src/model/DescribeStratetyRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeStratetyRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeStratetyRequest;
|
||||
|
||||
DescribeStratetyRequest::DescribeStratetyRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeStratety")
|
||||
{}
|
||||
|
||||
DescribeStratetyRequest::~DescribeStratetyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeStratetyRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeStratetyRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeStratetyRequest::getStrategyIds()const
|
||||
{
|
||||
return strategyIds_;
|
||||
}
|
||||
|
||||
void DescribeStratetyRequest::setStrategyIds(const std::string& strategyIds)
|
||||
{
|
||||
strategyIds_ = strategyIds;
|
||||
setCoreParameter("StrategyIds", strategyIds);
|
||||
}
|
||||
|
||||
std::string DescribeStratetyRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeStratetyRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
88
sas/src/model/DescribeStratetyResult.cc
Normal file
88
sas/src/model/DescribeStratetyResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeStratetyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeStratetyResult::DescribeStratetyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeStratetyResult::DescribeStratetyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeStratetyResult::~DescribeStratetyResult()
|
||||
{}
|
||||
|
||||
void DescribeStratetyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStrategies = value["Strategies"]["Strategy"];
|
||||
for (auto value : allStrategies)
|
||||
{
|
||||
Strategy strategiesObject;
|
||||
if(!value["CycleDays"].isNull())
|
||||
strategiesObject.cycleDays = std::stoi(value["CycleDays"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
strategiesObject.id = std::stoi(value["Id"].asString());
|
||||
if(!value["CycleStartTime"].isNull())
|
||||
strategiesObject.cycleStartTime = std::stoi(value["CycleStartTime"].asString());
|
||||
if(!value["Type"].isNull())
|
||||
strategiesObject.type = std::stoi(value["Type"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
strategiesObject.name = value["Name"].asString();
|
||||
if(!value["RiskCount"].isNull())
|
||||
strategiesObject.riskCount = std::stoi(value["RiskCount"].asString());
|
||||
if(!value["EcsCount"].isNull())
|
||||
strategiesObject.ecsCount = std::stoi(value["EcsCount"].asString());
|
||||
if(!value["ExecStatus"].isNull())
|
||||
strategiesObject.execStatus = std::stoi(value["ExecStatus"].asString());
|
||||
if(!value["ProcessRate"].isNull())
|
||||
strategiesObject.processRate = std::stoi(value["ProcessRate"].asString());
|
||||
if(!value["PassRate"].isNull())
|
||||
strategiesObject.passRate = std::stoi(value["PassRate"].asString());
|
||||
auto allConfigTargets = value["ConfigTargets"]["ConfigTarget"];
|
||||
for (auto value : allConfigTargets)
|
||||
{
|
||||
Strategy::ConfigTarget configTargetsObject;
|
||||
if(!value["Flag"].isNull())
|
||||
configTargetsObject.flag = value["Flag"].asString();
|
||||
if(!value["TargetType"].isNull())
|
||||
configTargetsObject.targetType = value["TargetType"].asString();
|
||||
if(!value["Target"].isNull())
|
||||
configTargetsObject.target = value["Target"].asString();
|
||||
strategiesObject.configTargets.push_back(configTargetsObject);
|
||||
}
|
||||
strategies_.push_back(strategiesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeStratetyResult::Strategy> DescribeStratetyResult::getStrategies()const
|
||||
{
|
||||
return strategies_;
|
||||
}
|
||||
|
||||
@@ -107,23 +107,23 @@ void DescribeVulListResult::parse(const std::string &payload)
|
||||
vulRecordsObject.extendContentJson.primaryId = std::stol(extendContentJsonNode["PrimaryId"].asString());
|
||||
if(!extendContentJsonNode["AbsolutePath"].isNull())
|
||||
vulRecordsObject.extendContentJson.absolutePath = extendContentJsonNode["AbsolutePath"].asString();
|
||||
auto allRpmEntityList = value["RpmEntityList"]["RpmEntityListItem"];
|
||||
auto allRpmEntityList = value["RpmEntityList"]["RpmEntity"];
|
||||
for (auto value : allRpmEntityList)
|
||||
{
|
||||
VulRecord::ExtendContentJson::RpmEntityListItem rpmEntityListItemObject;
|
||||
VulRecord::ExtendContentJson::RpmEntity rpmEntityObject;
|
||||
if(!value["FullVersion"].isNull())
|
||||
rpmEntityListItemObject.fullVersion = value["FullVersion"].asString();
|
||||
rpmEntityObject.fullVersion = value["FullVersion"].asString();
|
||||
if(!value["MatchDetail"].isNull())
|
||||
rpmEntityListItemObject.matchDetail = value["MatchDetail"].asString();
|
||||
rpmEntityObject.matchDetail = value["MatchDetail"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
rpmEntityListItemObject.name = value["Name"].asString();
|
||||
rpmEntityObject.name = value["Name"].asString();
|
||||
if(!value["Path"].isNull())
|
||||
rpmEntityListItemObject.path = value["Path"].asString();
|
||||
rpmEntityObject.path = value["Path"].asString();
|
||||
if(!value["UpdateCmd"].isNull())
|
||||
rpmEntityListItemObject.updateCmd = value["UpdateCmd"].asString();
|
||||
rpmEntityObject.updateCmd = value["UpdateCmd"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
rpmEntityListItemObject.version = value["Version"].asString();
|
||||
vulRecordsObject.extendContentJson.rpmEntityList.push_back(rpmEntityListItemObject);
|
||||
rpmEntityObject.version = value["Version"].asString();
|
||||
vulRecordsObject.extendContentJson.rpmEntityList.push_back(rpmEntityObject);
|
||||
}
|
||||
auto necessityNode = extendContentJsonNode["Necessity"];
|
||||
if(!necessityNode["Cvss_factor"].isNull())
|
||||
@@ -142,7 +142,7 @@ void DescribeVulListResult::parse(const std::string &payload)
|
||||
vulRecordsObject.extendContentJson.necessity.total_score = necessityNode["Total_score"].asString();
|
||||
if(!necessityNode["Time_factor"].isNull())
|
||||
vulRecordsObject.extendContentJson.necessity.time_factor = necessityNode["Time_factor"].asString();
|
||||
auto allCveList = extendContentJsonNode["cveList"]["CveList"];
|
||||
auto allCveList = extendContentJsonNode["cveList"]["Cve"];
|
||||
for (auto value : allCveList)
|
||||
vulRecordsObject.extendContentJson.cveList.push_back(value.asString());
|
||||
vulRecords_.push_back(vulRecordsObject);
|
||||
|
||||
115
sas/src/model/DescribeWarningMachinesRequest.cc
Normal file
115
sas/src/model/DescribeWarningMachinesRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeWarningMachinesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeWarningMachinesRequest;
|
||||
|
||||
DescribeWarningMachinesRequest::DescribeWarningMachinesRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "DescribeWarningMachines")
|
||||
{}
|
||||
|
||||
DescribeWarningMachinesRequest::~DescribeWarningMachinesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeWarningMachinesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeWarningMachinesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeWarningMachinesRequest::getMachineName()const
|
||||
{
|
||||
return machineName_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setMachineName(const std::string& machineName)
|
||||
{
|
||||
machineName_ = machineName;
|
||||
setCoreParameter("MachineName", machineName);
|
||||
}
|
||||
|
||||
long DescribeWarningMachinesRequest::getStrategyId()const
|
||||
{
|
||||
return strategyId_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setStrategyId(long strategyId)
|
||||
{
|
||||
strategyId_ = strategyId;
|
||||
setCoreParameter("StrategyId", std::to_string(strategyId));
|
||||
}
|
||||
|
||||
int DescribeWarningMachinesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeWarningMachinesRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
long DescribeWarningMachinesRequest::getRiskId()const
|
||||
{
|
||||
return riskId_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setRiskId(long riskId)
|
||||
{
|
||||
riskId_ = riskId;
|
||||
setCoreParameter("RiskId", std::to_string(riskId));
|
||||
}
|
||||
|
||||
std::string DescribeWarningMachinesRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeWarningMachinesRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
102
sas/src/model/DescribeWarningMachinesResult.cc
Normal file
102
sas/src/model/DescribeWarningMachinesResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/DescribeWarningMachinesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeWarningMachinesResult::DescribeWarningMachinesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeWarningMachinesResult::DescribeWarningMachinesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeWarningMachinesResult::~DescribeWarningMachinesResult()
|
||||
{}
|
||||
|
||||
void DescribeWarningMachinesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allWarningMachines = value["WarningMachines"]["WarningMachine"];
|
||||
for (auto value : allWarningMachines)
|
||||
{
|
||||
WarningMachine warningMachinesObject;
|
||||
if(!value["Uuid"].isNull())
|
||||
warningMachinesObject.uuid = value["Uuid"].asString();
|
||||
if(!value["MachineName"].isNull())
|
||||
warningMachinesObject.machineName = value["MachineName"].asString();
|
||||
if(!value["InternetIp"].isNull())
|
||||
warningMachinesObject.internetIp = value["InternetIp"].asString();
|
||||
if(!value["IntranetIp"].isNull())
|
||||
warningMachinesObject.intranetIp = value["IntranetIp"].asString();
|
||||
if(!value["PassCount"].isNull())
|
||||
warningMachinesObject.passCount = std::stoi(value["PassCount"].asString());
|
||||
if(!value["HighWarningCount"].isNull())
|
||||
warningMachinesObject.highWarningCount = std::stoi(value["HighWarningCount"].asString());
|
||||
if(!value["MediumWarningCount"].isNull())
|
||||
warningMachinesObject.mediumWarningCount = std::stoi(value["MediumWarningCount"].asString());
|
||||
if(!value["LowWarningCount"].isNull())
|
||||
warningMachinesObject.lowWarningCount = std::stoi(value["LowWarningCount"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
warningMachinesObject.status = std::stoi(value["Status"].asString());
|
||||
warningMachines_.push_back(warningMachinesObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeWarningMachinesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeWarningMachinesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeWarningMachinesResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeWarningMachinesResult::WarningMachine> DescribeWarningMachinesResult::getWarningMachines()const
|
||||
{
|
||||
return warningMachines_;
|
||||
}
|
||||
|
||||
int DescribeWarningMachinesResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
60
sas/src/model/ModifyPushAllTaskRequest.cc
Normal file
60
sas/src/model/ModifyPushAllTaskRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/ModifyPushAllTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyPushAllTaskRequest;
|
||||
|
||||
ModifyPushAllTaskRequest::ModifyPushAllTaskRequest() :
|
||||
RpcServiceRequest("sas", "2018-12-03", "ModifyPushAllTask")
|
||||
{}
|
||||
|
||||
ModifyPushAllTaskRequest::~ModifyPushAllTaskRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyPushAllTaskRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyPushAllTaskRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setCoreParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyPushAllTaskRequest::getTasks()const
|
||||
{
|
||||
return tasks_;
|
||||
}
|
||||
|
||||
void ModifyPushAllTaskRequest::setTasks(const std::string& tasks)
|
||||
{
|
||||
tasks_ = tasks;
|
||||
setCoreParameter("Tasks", tasks);
|
||||
}
|
||||
|
||||
std::string ModifyPushAllTaskRequest::getUuids()const
|
||||
{
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void ModifyPushAllTaskRequest::setUuids(const std::string& uuids)
|
||||
{
|
||||
uuids_ = uuids;
|
||||
setCoreParameter("Uuids", uuids);
|
||||
}
|
||||
|
||||
77
sas/src/model/ModifyPushAllTaskResult.cc
Normal file
77
sas/src/model/ModifyPushAllTaskResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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 <alibabacloud/sas/model/ModifyPushAllTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyPushAllTaskResult::ModifyPushAllTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyPushAllTaskResult::ModifyPushAllTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyPushAllTaskResult::~ModifyPushAllTaskResult()
|
||||
{}
|
||||
|
||||
void ModifyPushAllTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pushTaskRspNode = value["PushTaskRsp"];
|
||||
auto allPushTaskResultList = value["PushTaskResultList"]["pushTaskResult"];
|
||||
for (auto value : allPushTaskResultList)
|
||||
{
|
||||
PushTaskRsp::PushTaskResult pushTaskResultObject;
|
||||
if(!value["InstanceId"].isNull())
|
||||
pushTaskResultObject.instanceId = value["InstanceId"].asString();
|
||||
if(!value["OsVersion"].isNull())
|
||||
pushTaskResultObject.osVersion = value["OsVersion"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
pushTaskResultObject.instanceName = value["InstanceName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
pushTaskResultObject.success = value["Success"].asString() == "true";
|
||||
if(!value["GroupId"].isNull())
|
||||
pushTaskResultObject.groupId = std::stol(value["GroupId"].asString());
|
||||
if(!value["Ip"].isNull())
|
||||
pushTaskResultObject.ip = value["Ip"].asString();
|
||||
if(!value["Online"].isNull())
|
||||
pushTaskResultObject.online = value["Online"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
pushTaskResultObject.message = value["Message"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
pushTaskResultObject.region = value["Region"].asString();
|
||||
if(!value["Uuid"].isNull())
|
||||
pushTaskResultObject.uuid = value["Uuid"].asString();
|
||||
pushTaskRsp_.pushTaskResultList.push_back(pushTaskResultObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ModifyPushAllTaskResult::PushTaskRsp ModifyPushAllTaskResult::getPushTaskRsp()const
|
||||
{
|
||||
return pushTaskRsp_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user