Generated 2018-12-03 for Sas.

This commit is contained in:
sdk-team
2022-04-21 03:41:05 +00:00
parent 68ed888149
commit 6d5e5142e1
33 changed files with 2233 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2022-04-21 Version: 1.36.1110
- Generated 2018-12-03 for `Sas`.
2022-04-21 Version: 1.36.1109
- Add API OfflineTaskFlow.

View File

@@ -1 +1 @@
1.36.1109
1.36.1110

View File

@@ -23,6 +23,8 @@ set(sas_public_header
set(sas_public_header_model
include/alibabacloud/sas/model/AddVpcHoneyPotRequest.h
include/alibabacloud/sas/model/AddVpcHoneyPotResult.h
include/alibabacloud/sas/model/CheckQuaraFileIdRequest.h
include/alibabacloud/sas/model/CheckQuaraFileIdResult.h
include/alibabacloud/sas/model/CheckSecurityEventIdRequest.h
include/alibabacloud/sas/model/CheckSecurityEventIdResult.h
include/alibabacloud/sas/model/CreateAntiBruteForceRuleRequest.h
@@ -61,6 +63,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h
include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h
include/alibabacloud/sas/model/DescribeAlarmEventListResult.h
include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h
include/alibabacloud/sas/model/DescribeAlarmEventStackInfoResult.h
include/alibabacloud/sas/model/DescribeAllEntityRequest.h
include/alibabacloud/sas/model/DescribeAllEntityResult.h
include/alibabacloud/sas/model/DescribeAllGroupsRequest.h
@@ -129,6 +133,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeExposedStatisticsDetailResult.h
include/alibabacloud/sas/model/DescribeFieldStatisticsRequest.h
include/alibabacloud/sas/model/DescribeFieldStatisticsResult.h
include/alibabacloud/sas/model/DescribeFrontVulPatchListRequest.h
include/alibabacloud/sas/model/DescribeFrontVulPatchListResult.h
include/alibabacloud/sas/model/DescribeGroupedContainerInstancesRequest.h
include/alibabacloud/sas/model/DescribeGroupedContainerInstancesResult.h
include/alibabacloud/sas/model/DescribeGroupedInstancesRequest.h
@@ -253,6 +259,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h
include/alibabacloud/sas/model/DescribeUserLayoutAuthorizationRequest.h
include/alibabacloud/sas/model/DescribeUserLayoutAuthorizationResult.h
include/alibabacloud/sas/model/DescribeUuidsByVulNamesRequest.h
include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h
include/alibabacloud/sas/model/DescribeVersionConfigRequest.h
include/alibabacloud/sas/model/DescribeVersionConfigResult.h
include/alibabacloud/sas/model/DescribeVpcHoneyPotCriteriaRequest.h
@@ -287,6 +295,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/GetBackupStorageCountResult.h
include/alibabacloud/sas/model/GetHoneypotNodeRequest.h
include/alibabacloud/sas/model/GetHoneypotNodeResult.h
include/alibabacloud/sas/model/GetOpaDefenceDetailRequest.h
include/alibabacloud/sas/model/GetOpaDefenceDetailResult.h
include/alibabacloud/sas/model/GetSuspiciousStatisticsRequest.h
include/alibabacloud/sas/model/GetSuspiciousStatisticsResult.h
include/alibabacloud/sas/model/GetVulStatisticsRequest.h
@@ -301,6 +311,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/InstallBackupClientResult.h
include/alibabacloud/sas/model/InstallCloudMonitorRequest.h
include/alibabacloud/sas/model/InstallCloudMonitorResult.h
include/alibabacloud/sas/model/ListCriteriaStrategyRequest.h
include/alibabacloud/sas/model/ListCriteriaStrategyResult.h
include/alibabacloud/sas/model/ListVulAutoRepairConfigRequest.h
include/alibabacloud/sas/model/ListVulAutoRepairConfigResult.h
include/alibabacloud/sas/model/ModifyAntiBruteForceRuleRequest.h
@@ -365,6 +377,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/OperationSuspEventsResult.h
include/alibabacloud/sas/model/PauseClientRequest.h
include/alibabacloud/sas/model/PauseClientResult.h
include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskRequest.h
include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskResult.h
include/alibabacloud/sas/model/QueryGroupIdByGroupNameRequest.h
include/alibabacloud/sas/model/QueryGroupIdByGroupNameResult.h
include/alibabacloud/sas/model/QueryGroupedSecurityEventMarkMissListRequest.h
@@ -396,6 +410,8 @@ set(sas_src
src/SasClient.cc
src/model/AddVpcHoneyPotRequest.cc
src/model/AddVpcHoneyPotResult.cc
src/model/CheckQuaraFileIdRequest.cc
src/model/CheckQuaraFileIdResult.cc
src/model/CheckSecurityEventIdRequest.cc
src/model/CheckSecurityEventIdResult.cc
src/model/CreateAntiBruteForceRuleRequest.cc
@@ -434,6 +450,8 @@ set(sas_src
src/model/DescribeAlarmEventDetailResult.cc
src/model/DescribeAlarmEventListRequest.cc
src/model/DescribeAlarmEventListResult.cc
src/model/DescribeAlarmEventStackInfoRequest.cc
src/model/DescribeAlarmEventStackInfoResult.cc
src/model/DescribeAllEntityRequest.cc
src/model/DescribeAllEntityResult.cc
src/model/DescribeAllGroupsRequest.cc
@@ -502,6 +520,8 @@ set(sas_src
src/model/DescribeExposedStatisticsDetailResult.cc
src/model/DescribeFieldStatisticsRequest.cc
src/model/DescribeFieldStatisticsResult.cc
src/model/DescribeFrontVulPatchListRequest.cc
src/model/DescribeFrontVulPatchListResult.cc
src/model/DescribeGroupedContainerInstancesRequest.cc
src/model/DescribeGroupedContainerInstancesResult.cc
src/model/DescribeGroupedInstancesRequest.cc
@@ -626,6 +646,8 @@ set(sas_src
src/model/DescribeUserBaselineAuthorizationResult.cc
src/model/DescribeUserLayoutAuthorizationRequest.cc
src/model/DescribeUserLayoutAuthorizationResult.cc
src/model/DescribeUuidsByVulNamesRequest.cc
src/model/DescribeUuidsByVulNamesResult.cc
src/model/DescribeVersionConfigRequest.cc
src/model/DescribeVersionConfigResult.cc
src/model/DescribeVpcHoneyPotCriteriaRequest.cc
@@ -660,6 +682,8 @@ set(sas_src
src/model/GetBackupStorageCountResult.cc
src/model/GetHoneypotNodeRequest.cc
src/model/GetHoneypotNodeResult.cc
src/model/GetOpaDefenceDetailRequest.cc
src/model/GetOpaDefenceDetailResult.cc
src/model/GetSuspiciousStatisticsRequest.cc
src/model/GetSuspiciousStatisticsResult.cc
src/model/GetVulStatisticsRequest.cc
@@ -674,6 +698,8 @@ set(sas_src
src/model/InstallBackupClientResult.cc
src/model/InstallCloudMonitorRequest.cc
src/model/InstallCloudMonitorResult.cc
src/model/ListCriteriaStrategyRequest.cc
src/model/ListCriteriaStrategyResult.cc
src/model/ListVulAutoRepairConfigRequest.cc
src/model/ListVulAutoRepairConfigResult.cc
src/model/ModifyAntiBruteForceRuleRequest.cc
@@ -738,6 +764,8 @@ set(sas_src
src/model/OperationSuspEventsResult.cc
src/model/PauseClientRequest.cc
src/model/PauseClientResult.cc
src/model/PublicSyncAndCreateImageScanTaskRequest.cc
src/model/PublicSyncAndCreateImageScanTaskResult.cc
src/model/QueryGroupIdByGroupNameRequest.cc
src/model/QueryGroupIdByGroupNameResult.cc
src/model/QueryGroupedSecurityEventMarkMissListRequest.cc

View File

@@ -24,6 +24,8 @@
#include "SasExport.h"
#include "model/AddVpcHoneyPotRequest.h"
#include "model/AddVpcHoneyPotResult.h"
#include "model/CheckQuaraFileIdRequest.h"
#include "model/CheckQuaraFileIdResult.h"
#include "model/CheckSecurityEventIdRequest.h"
#include "model/CheckSecurityEventIdResult.h"
#include "model/CreateAntiBruteForceRuleRequest.h"
@@ -62,6 +64,8 @@
#include "model/DescribeAlarmEventDetailResult.h"
#include "model/DescribeAlarmEventListRequest.h"
#include "model/DescribeAlarmEventListResult.h"
#include "model/DescribeAlarmEventStackInfoRequest.h"
#include "model/DescribeAlarmEventStackInfoResult.h"
#include "model/DescribeAllEntityRequest.h"
#include "model/DescribeAllEntityResult.h"
#include "model/DescribeAllGroupsRequest.h"
@@ -130,6 +134,8 @@
#include "model/DescribeExposedStatisticsDetailResult.h"
#include "model/DescribeFieldStatisticsRequest.h"
#include "model/DescribeFieldStatisticsResult.h"
#include "model/DescribeFrontVulPatchListRequest.h"
#include "model/DescribeFrontVulPatchListResult.h"
#include "model/DescribeGroupedContainerInstancesRequest.h"
#include "model/DescribeGroupedContainerInstancesResult.h"
#include "model/DescribeGroupedInstancesRequest.h"
@@ -254,6 +260,8 @@
#include "model/DescribeUserBaselineAuthorizationResult.h"
#include "model/DescribeUserLayoutAuthorizationRequest.h"
#include "model/DescribeUserLayoutAuthorizationResult.h"
#include "model/DescribeUuidsByVulNamesRequest.h"
#include "model/DescribeUuidsByVulNamesResult.h"
#include "model/DescribeVersionConfigRequest.h"
#include "model/DescribeVersionConfigResult.h"
#include "model/DescribeVpcHoneyPotCriteriaRequest.h"
@@ -288,6 +296,8 @@
#include "model/GetBackupStorageCountResult.h"
#include "model/GetHoneypotNodeRequest.h"
#include "model/GetHoneypotNodeResult.h"
#include "model/GetOpaDefenceDetailRequest.h"
#include "model/GetOpaDefenceDetailResult.h"
#include "model/GetSuspiciousStatisticsRequest.h"
#include "model/GetSuspiciousStatisticsResult.h"
#include "model/GetVulStatisticsRequest.h"
@@ -302,6 +312,8 @@
#include "model/InstallBackupClientResult.h"
#include "model/InstallCloudMonitorRequest.h"
#include "model/InstallCloudMonitorResult.h"
#include "model/ListCriteriaStrategyRequest.h"
#include "model/ListCriteriaStrategyResult.h"
#include "model/ListVulAutoRepairConfigRequest.h"
#include "model/ListVulAutoRepairConfigResult.h"
#include "model/ModifyAntiBruteForceRuleRequest.h"
@@ -366,6 +378,8 @@
#include "model/OperationSuspEventsResult.h"
#include "model/PauseClientRequest.h"
#include "model/PauseClientResult.h"
#include "model/PublicSyncAndCreateImageScanTaskRequest.h"
#include "model/PublicSyncAndCreateImageScanTaskResult.h"
#include "model/QueryGroupIdByGroupNameRequest.h"
#include "model/QueryGroupIdByGroupNameResult.h"
#include "model/QueryGroupedSecurityEventMarkMissListRequest.h"
@@ -404,6 +418,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddVpcHoneyPotResult> AddVpcHoneyPotOutcome;
typedef std::future<AddVpcHoneyPotOutcome> AddVpcHoneyPotOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::AddVpcHoneyPotRequest&, const AddVpcHoneyPotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddVpcHoneyPotAsyncHandler;
typedef Outcome<Error, Model::CheckQuaraFileIdResult> CheckQuaraFileIdOutcome;
typedef std::future<CheckQuaraFileIdOutcome> CheckQuaraFileIdOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::CheckQuaraFileIdRequest&, const CheckQuaraFileIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckQuaraFileIdAsyncHandler;
typedef Outcome<Error, Model::CheckSecurityEventIdResult> CheckSecurityEventIdOutcome;
typedef std::future<CheckSecurityEventIdOutcome> CheckSecurityEventIdOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::CheckSecurityEventIdRequest&, const CheckSecurityEventIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckSecurityEventIdAsyncHandler;
@@ -461,6 +478,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeAlarmEventListResult> DescribeAlarmEventListOutcome;
typedef std::future<DescribeAlarmEventListOutcome> DescribeAlarmEventListOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeAlarmEventListRequest&, const DescribeAlarmEventListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlarmEventListAsyncHandler;
typedef Outcome<Error, Model::DescribeAlarmEventStackInfoResult> DescribeAlarmEventStackInfoOutcome;
typedef std::future<DescribeAlarmEventStackInfoOutcome> DescribeAlarmEventStackInfoOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeAlarmEventStackInfoRequest&, const DescribeAlarmEventStackInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlarmEventStackInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeAllEntityResult> DescribeAllEntityOutcome;
typedef std::future<DescribeAllEntityOutcome> DescribeAllEntityOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeAllEntityRequest&, const DescribeAllEntityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAllEntityAsyncHandler;
@@ -563,6 +583,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeFieldStatisticsResult> DescribeFieldStatisticsOutcome;
typedef std::future<DescribeFieldStatisticsOutcome> DescribeFieldStatisticsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeFieldStatisticsRequest&, const DescribeFieldStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFieldStatisticsAsyncHandler;
typedef Outcome<Error, Model::DescribeFrontVulPatchListResult> DescribeFrontVulPatchListOutcome;
typedef std::future<DescribeFrontVulPatchListOutcome> DescribeFrontVulPatchListOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeFrontVulPatchListRequest&, const DescribeFrontVulPatchListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFrontVulPatchListAsyncHandler;
typedef Outcome<Error, Model::DescribeGroupedContainerInstancesResult> DescribeGroupedContainerInstancesOutcome;
typedef std::future<DescribeGroupedContainerInstancesOutcome> DescribeGroupedContainerInstancesOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeGroupedContainerInstancesRequest&, const DescribeGroupedContainerInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeGroupedContainerInstancesAsyncHandler;
@@ -749,6 +772,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeUserLayoutAuthorizationResult> DescribeUserLayoutAuthorizationOutcome;
typedef std::future<DescribeUserLayoutAuthorizationOutcome> DescribeUserLayoutAuthorizationOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeUserLayoutAuthorizationRequest&, const DescribeUserLayoutAuthorizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserLayoutAuthorizationAsyncHandler;
typedef Outcome<Error, Model::DescribeUuidsByVulNamesResult> DescribeUuidsByVulNamesOutcome;
typedef std::future<DescribeUuidsByVulNamesOutcome> DescribeUuidsByVulNamesOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeUuidsByVulNamesRequest&, const DescribeUuidsByVulNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUuidsByVulNamesAsyncHandler;
typedef Outcome<Error, Model::DescribeVersionConfigResult> DescribeVersionConfigOutcome;
typedef std::future<DescribeVersionConfigOutcome> DescribeVersionConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeVersionConfigRequest&, const DescribeVersionConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVersionConfigAsyncHandler;
@@ -800,6 +826,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetHoneypotNodeResult> GetHoneypotNodeOutcome;
typedef std::future<GetHoneypotNodeOutcome> GetHoneypotNodeOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::GetHoneypotNodeRequest&, const GetHoneypotNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHoneypotNodeAsyncHandler;
typedef Outcome<Error, Model::GetOpaDefenceDetailResult> GetOpaDefenceDetailOutcome;
typedef std::future<GetOpaDefenceDetailOutcome> GetOpaDefenceDetailOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::GetOpaDefenceDetailRequest&, const GetOpaDefenceDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOpaDefenceDetailAsyncHandler;
typedef Outcome<Error, Model::GetSuspiciousStatisticsResult> GetSuspiciousStatisticsOutcome;
typedef std::future<GetSuspiciousStatisticsOutcome> GetSuspiciousStatisticsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::GetSuspiciousStatisticsRequest&, const GetSuspiciousStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSuspiciousStatisticsAsyncHandler;
@@ -821,6 +850,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InstallCloudMonitorResult> InstallCloudMonitorOutcome;
typedef std::future<InstallCloudMonitorOutcome> InstallCloudMonitorOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::InstallCloudMonitorRequest&, const InstallCloudMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InstallCloudMonitorAsyncHandler;
typedef Outcome<Error, Model::ListCriteriaStrategyResult> ListCriteriaStrategyOutcome;
typedef std::future<ListCriteriaStrategyOutcome> ListCriteriaStrategyOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ListCriteriaStrategyRequest&, const ListCriteriaStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCriteriaStrategyAsyncHandler;
typedef Outcome<Error, Model::ListVulAutoRepairConfigResult> ListVulAutoRepairConfigOutcome;
typedef std::future<ListVulAutoRepairConfigOutcome> ListVulAutoRepairConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ListVulAutoRepairConfigRequest&, const ListVulAutoRepairConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVulAutoRepairConfigAsyncHandler;
@@ -917,6 +949,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::PauseClientResult> PauseClientOutcome;
typedef std::future<PauseClientOutcome> PauseClientOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::PauseClientRequest&, const PauseClientOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PauseClientAsyncHandler;
typedef Outcome<Error, Model::PublicSyncAndCreateImageScanTaskResult> PublicSyncAndCreateImageScanTaskOutcome;
typedef std::future<PublicSyncAndCreateImageScanTaskOutcome> PublicSyncAndCreateImageScanTaskOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::PublicSyncAndCreateImageScanTaskRequest&, const PublicSyncAndCreateImageScanTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublicSyncAndCreateImageScanTaskAsyncHandler;
typedef Outcome<Error, Model::QueryGroupIdByGroupNameResult> QueryGroupIdByGroupNameOutcome;
typedef std::future<QueryGroupIdByGroupNameOutcome> QueryGroupIdByGroupNameOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::QueryGroupIdByGroupNameRequest&, const QueryGroupIdByGroupNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGroupIdByGroupNameAsyncHandler;
@@ -964,6 +999,9 @@ namespace AlibabaCloud
AddVpcHoneyPotOutcome addVpcHoneyPot(const Model::AddVpcHoneyPotRequest &request)const;
void addVpcHoneyPotAsync(const Model::AddVpcHoneyPotRequest& request, const AddVpcHoneyPotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddVpcHoneyPotOutcomeCallable addVpcHoneyPotCallable(const Model::AddVpcHoneyPotRequest& request) const;
CheckQuaraFileIdOutcome checkQuaraFileId(const Model::CheckQuaraFileIdRequest &request)const;
void checkQuaraFileIdAsync(const Model::CheckQuaraFileIdRequest& request, const CheckQuaraFileIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckQuaraFileIdOutcomeCallable checkQuaraFileIdCallable(const Model::CheckQuaraFileIdRequest& request) const;
CheckSecurityEventIdOutcome checkSecurityEventId(const Model::CheckSecurityEventIdRequest &request)const;
void checkSecurityEventIdAsync(const Model::CheckSecurityEventIdRequest& request, const CheckSecurityEventIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckSecurityEventIdOutcomeCallable checkSecurityEventIdCallable(const Model::CheckSecurityEventIdRequest& request) const;
@@ -1021,6 +1059,9 @@ namespace AlibabaCloud
DescribeAlarmEventListOutcome describeAlarmEventList(const Model::DescribeAlarmEventListRequest &request)const;
void describeAlarmEventListAsync(const Model::DescribeAlarmEventListRequest& request, const DescribeAlarmEventListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAlarmEventListOutcomeCallable describeAlarmEventListCallable(const Model::DescribeAlarmEventListRequest& request) const;
DescribeAlarmEventStackInfoOutcome describeAlarmEventStackInfo(const Model::DescribeAlarmEventStackInfoRequest &request)const;
void describeAlarmEventStackInfoAsync(const Model::DescribeAlarmEventStackInfoRequest& request, const DescribeAlarmEventStackInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAlarmEventStackInfoOutcomeCallable describeAlarmEventStackInfoCallable(const Model::DescribeAlarmEventStackInfoRequest& request) const;
DescribeAllEntityOutcome describeAllEntity(const Model::DescribeAllEntityRequest &request)const;
void describeAllEntityAsync(const Model::DescribeAllEntityRequest& request, const DescribeAllEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAllEntityOutcomeCallable describeAllEntityCallable(const Model::DescribeAllEntityRequest& request) const;
@@ -1123,6 +1164,9 @@ namespace AlibabaCloud
DescribeFieldStatisticsOutcome describeFieldStatistics(const Model::DescribeFieldStatisticsRequest &request)const;
void describeFieldStatisticsAsync(const Model::DescribeFieldStatisticsRequest& request, const DescribeFieldStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFieldStatisticsOutcomeCallable describeFieldStatisticsCallable(const Model::DescribeFieldStatisticsRequest& request) const;
DescribeFrontVulPatchListOutcome describeFrontVulPatchList(const Model::DescribeFrontVulPatchListRequest &request)const;
void describeFrontVulPatchListAsync(const Model::DescribeFrontVulPatchListRequest& request, const DescribeFrontVulPatchListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFrontVulPatchListOutcomeCallable describeFrontVulPatchListCallable(const Model::DescribeFrontVulPatchListRequest& request) const;
DescribeGroupedContainerInstancesOutcome describeGroupedContainerInstances(const Model::DescribeGroupedContainerInstancesRequest &request)const;
void describeGroupedContainerInstancesAsync(const Model::DescribeGroupedContainerInstancesRequest& request, const DescribeGroupedContainerInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeGroupedContainerInstancesOutcomeCallable describeGroupedContainerInstancesCallable(const Model::DescribeGroupedContainerInstancesRequest& request) const;
@@ -1309,6 +1353,9 @@ namespace AlibabaCloud
DescribeUserLayoutAuthorizationOutcome describeUserLayoutAuthorization(const Model::DescribeUserLayoutAuthorizationRequest &request)const;
void describeUserLayoutAuthorizationAsync(const Model::DescribeUserLayoutAuthorizationRequest& request, const DescribeUserLayoutAuthorizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUserLayoutAuthorizationOutcomeCallable describeUserLayoutAuthorizationCallable(const Model::DescribeUserLayoutAuthorizationRequest& request) const;
DescribeUuidsByVulNamesOutcome describeUuidsByVulNames(const Model::DescribeUuidsByVulNamesRequest &request)const;
void describeUuidsByVulNamesAsync(const Model::DescribeUuidsByVulNamesRequest& request, const DescribeUuidsByVulNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUuidsByVulNamesOutcomeCallable describeUuidsByVulNamesCallable(const Model::DescribeUuidsByVulNamesRequest& request) const;
DescribeVersionConfigOutcome describeVersionConfig(const Model::DescribeVersionConfigRequest &request)const;
void describeVersionConfigAsync(const Model::DescribeVersionConfigRequest& request, const DescribeVersionConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVersionConfigOutcomeCallable describeVersionConfigCallable(const Model::DescribeVersionConfigRequest& request) const;
@@ -1360,6 +1407,9 @@ namespace AlibabaCloud
GetHoneypotNodeOutcome getHoneypotNode(const Model::GetHoneypotNodeRequest &request)const;
void getHoneypotNodeAsync(const Model::GetHoneypotNodeRequest& request, const GetHoneypotNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetHoneypotNodeOutcomeCallable getHoneypotNodeCallable(const Model::GetHoneypotNodeRequest& request) const;
GetOpaDefenceDetailOutcome getOpaDefenceDetail(const Model::GetOpaDefenceDetailRequest &request)const;
void getOpaDefenceDetailAsync(const Model::GetOpaDefenceDetailRequest& request, const GetOpaDefenceDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOpaDefenceDetailOutcomeCallable getOpaDefenceDetailCallable(const Model::GetOpaDefenceDetailRequest& request) const;
GetSuspiciousStatisticsOutcome getSuspiciousStatistics(const Model::GetSuspiciousStatisticsRequest &request)const;
void getSuspiciousStatisticsAsync(const Model::GetSuspiciousStatisticsRequest& request, const GetSuspiciousStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSuspiciousStatisticsOutcomeCallable getSuspiciousStatisticsCallable(const Model::GetSuspiciousStatisticsRequest& request) const;
@@ -1381,6 +1431,9 @@ namespace AlibabaCloud
InstallCloudMonitorOutcome installCloudMonitor(const Model::InstallCloudMonitorRequest &request)const;
void installCloudMonitorAsync(const Model::InstallCloudMonitorRequest& request, const InstallCloudMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InstallCloudMonitorOutcomeCallable installCloudMonitorCallable(const Model::InstallCloudMonitorRequest& request) const;
ListCriteriaStrategyOutcome listCriteriaStrategy(const Model::ListCriteriaStrategyRequest &request)const;
void listCriteriaStrategyAsync(const Model::ListCriteriaStrategyRequest& request, const ListCriteriaStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCriteriaStrategyOutcomeCallable listCriteriaStrategyCallable(const Model::ListCriteriaStrategyRequest& request) const;
ListVulAutoRepairConfigOutcome listVulAutoRepairConfig(const Model::ListVulAutoRepairConfigRequest &request)const;
void listVulAutoRepairConfigAsync(const Model::ListVulAutoRepairConfigRequest& request, const ListVulAutoRepairConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListVulAutoRepairConfigOutcomeCallable listVulAutoRepairConfigCallable(const Model::ListVulAutoRepairConfigRequest& request) const;
@@ -1477,6 +1530,9 @@ namespace AlibabaCloud
PauseClientOutcome pauseClient(const Model::PauseClientRequest &request)const;
void pauseClientAsync(const Model::PauseClientRequest& request, const PauseClientAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PauseClientOutcomeCallable pauseClientCallable(const Model::PauseClientRequest& request) const;
PublicSyncAndCreateImageScanTaskOutcome publicSyncAndCreateImageScanTask(const Model::PublicSyncAndCreateImageScanTaskRequest &request)const;
void publicSyncAndCreateImageScanTaskAsync(const Model::PublicSyncAndCreateImageScanTaskRequest& request, const PublicSyncAndCreateImageScanTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PublicSyncAndCreateImageScanTaskOutcomeCallable publicSyncAndCreateImageScanTaskCallable(const Model::PublicSyncAndCreateImageScanTaskRequest& request) const;
QueryGroupIdByGroupNameOutcome queryGroupIdByGroupName(const Model::QueryGroupIdByGroupNameRequest &request)const;
void queryGroupIdByGroupNameAsync(const Model::QueryGroupIdByGroupNameRequest& request, const QueryGroupIdByGroupNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryGroupIdByGroupNameOutcomeCallable queryGroupIdByGroupNameCallable(const Model::QueryGroupIdByGroupNameRequest& request) const;

View 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_CHECKQUARAFILEIDREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_CHECKQUARAFILEIDREQUEST_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 CheckQuaraFileIdRequest : public RpcServiceRequest
{
public:
CheckQuaraFileIdRequest();
~CheckQuaraFileIdRequest();
std::vector<std::string> getQuaraFileIds()const;
void setQuaraFileIds(const std::vector<std::string>& quaraFileIds);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::vector<std::string> quaraFileIds_;
std::string uuid_;
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_CHECKQUARAFILEIDREQUEST_H_

View File

@@ -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_CHECKQUARAFILEIDRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_CHECKQUARAFILEIDRESULT_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 CheckQuaraFileIdResult : public ServiceResult
{
public:
CheckQuaraFileIdResult();
explicit CheckQuaraFileIdResult(const std::string &payload);
~CheckQuaraFileIdResult();
bool getData()const;
protected:
void parse(const std::string &payload);
private:
bool data_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_CHECKQUARAFILEIDRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTSTACKINFOREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTSTACKINFOREQUEST_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 DescribeAlarmEventStackInfoRequest : public RpcServiceRequest
{
public:
DescribeAlarmEventStackInfoRequest();
~DescribeAlarmEventStackInfoRequest();
std::string getUniqueInfo()const;
void setUniqueInfo(const std::string& uniqueInfo);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getEventName()const;
void setEventName(const std::string& eventName);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string uniqueInfo_;
std::string uuid_;
std::string eventName_;
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTSTACKINFOREQUEST_H_

View File

@@ -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_DESCRIBEALARMEVENTSTACKINFORESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTSTACKINFORESULT_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 DescribeAlarmEventStackInfoResult : public ServiceResult
{
public:
DescribeAlarmEventStackInfoResult();
explicit DescribeAlarmEventStackInfoResult(const std::string &payload);
~DescribeAlarmEventStackInfoResult();
std::string getStackInfo()const;
protected:
void parse(const std::string &payload);
private:
std::string stackInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTSTACKINFORESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_DESCRIBEFRONTVULPATCHLISTREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEFRONTVULPATCHLISTREQUEST_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 DescribeFrontVulPatchListRequest : public RpcServiceRequest
{
public:
DescribeFrontVulPatchListRequest();
~DescribeFrontVulPatchListRequest();
std::string getType()const;
void setType(const std::string& type);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getOperateType()const;
void setOperateType(const std::string& operateType);
std::string getInfo()const;
void setInfo(const std::string& info);
private:
std::string type_;
std::string sourceIp_;
std::string operateType_;
std::string info_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEFRONTVULPATCHLISTREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_DESCRIBEFRONTVULPATCHLISTRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEFRONTVULPATCHLISTRESULT_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 DescribeFrontVulPatchListResult : public ServiceResult
{
public:
struct FrontPatch
{
struct Patch
{
std::string aliasName;
std::string name;
};
std::vector<FrontPatch::Patch> patchList;
std::string uuid;
};
DescribeFrontVulPatchListResult();
explicit DescribeFrontVulPatchListResult(const std::string &payload);
~DescribeFrontVulPatchListResult();
std::vector<FrontPatch> getFrontPatchList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<FrontPatch> frontPatchList_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEFRONTVULPATCHLISTRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEUUIDSBYVULNAMESREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEUUIDSBYVULNAMESREQUEST_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 DescribeUuidsByVulNamesRequest : public RpcServiceRequest
{
public:
DescribeUuidsByVulNamesRequest();
~DescribeUuidsByVulNamesRequest();
std::string getStatusList()const;
void setStatusList(const std::string& statusList);
std::string getTargetType()const;
void setTargetType(const std::string& targetType);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getType()const;
void setType(const std::string& type);
std::string getVpcInstanceIds()const;
void setVpcInstanceIds(const std::string& vpcInstanceIds);
std::vector<std::string> getVulNames()const;
void setVulNames(const std::vector<std::string>& vulNames);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getTag()const;
void setTag(const std::string& tag);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getLevel()const;
void setLevel(const std::string& level);
long getGroupId()const;
void setGroupId(long groupId);
std::string getDealed()const;
void setDealed(const std::string& dealed);
std::string getFieldValue()const;
void setFieldValue(const std::string& fieldValue);
std::string getFieldName()const;
void setFieldName(const std::string& fieldName);
std::string getSearchTags()const;
void setSearchTags(const std::string& searchTags);
std::string getNecessity()const;
void setNecessity(const std::string& necessity);
private:
std::string statusList_;
std::string targetType_;
std::string remark_;
std::string type_;
std::string vpcInstanceIds_;
std::vector<std::string> vulNames_;
std::string sourceIp_;
std::string tag_;
std::string lang_;
std::string level_;
long groupId_;
std::string dealed_;
std::string fieldValue_;
std::string fieldName_;
std::string searchTags_;
std::string necessity_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEUUIDSBYVULNAMESREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEUUIDSBYVULNAMESRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEUUIDSBYVULNAMESRESULT_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 DescribeUuidsByVulNamesResult : public ServiceResult
{
public:
struct MachineInfoStatistic
{
std::string uuid;
std::string os;
std::string machineName;
std::string machineInstanceId;
std::string regionId;
std::string machineIp;
};
DescribeUuidsByVulNamesResult();
explicit DescribeUuidsByVulNamesResult(const std::string &payload);
~DescribeUuidsByVulNamesResult();
std::vector<MachineInfoStatistic> getMachineInfoStatistics()const;
protected:
void parse(const std::string &payload);
private:
std::vector<MachineInfoStatistic> machineInfoStatistics_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEUUIDSBYVULNAMESRESULT_H_

View 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_GETOPADEFENCEDETAILREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_GETOPADEFENCEDETAILREQUEST_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 GetOpaDefenceDetailRequest : public RpcServiceRequest
{
public:
GetOpaDefenceDetailRequest();
~GetOpaDefenceDetailRequest();
long getInterceptionId()const;
void setInterceptionId(long interceptionId);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
private:
long interceptionId_;
int pageSize_;
int currentPage_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_GETOPADEFENCEDETAILREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_GETOPADEFENCEDETAILRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_GETOPADEFENCEDETAILRESULT_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 GetOpaDefenceDetailResult : public ServiceResult
{
public:
GetOpaDefenceDetailResult();
explicit GetOpaDefenceDetailResult(const std::string &payload);
~GetOpaDefenceDetailResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_GETOPADEFENCEDETAILRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_LISTCRITERIASTRATEGYREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_LISTCRITERIASTRATEGYREQUEST_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 ListCriteriaStrategyRequest : public RpcServiceRequest
{
public:
ListCriteriaStrategyRequest();
~ListCriteriaStrategyRequest();
std::string getImageName()const;
void setImageName(const std::string& imageName);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getLabel()const;
void setLabel(const std::string& label);
std::string getStrategyName()const;
void setStrategyName(const std::string& strategyName);
std::string get_Namespace()const;
void set_Namespace(const std::string& _namespace);
private:
std::string imageName_;
std::string clusterId_;
std::string label_;
std::string strategyName_;
std::string _namespace_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_LISTCRITERIASTRATEGYREQUEST_H_

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_LISTCRITERIASTRATEGYRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_LISTCRITERIASTRATEGYRESULT_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 ListCriteriaStrategyResult : public ServiceResult
{
public:
struct DataItem
{
std::string value;
long id;
};
ListCriteriaStrategyResult();
explicit ListCriteriaStrategyResult(const std::string &payload);
~ListCriteriaStrategyResult();
std::string getMessage()const;
std::vector<DataItem> getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::vector<DataItem> data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_LISTCRITERIASTRATEGYRESULT_H_

View 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_PUBLICSYNCANDCREATEIMAGESCANTASKREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_PUBLICSYNCANDCREATEIMAGESCANTASKREQUEST_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 PublicSyncAndCreateImageScanTaskRequest : public RpcServiceRequest
{
public:
PublicSyncAndCreateImageScanTaskRequest();
~PublicSyncAndCreateImageScanTaskRequest();
std::string getImages()const;
void setImages(const std::string& images);
std::string getImageItems()const;
void setImageItems(const std::string& imageItems);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string images_;
std::string imageItems_;
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_PUBLICSYNCANDCREATEIMAGESCANTASKREQUEST_H_

View File

@@ -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_PUBLICSYNCANDCREATEIMAGESCANTASKRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_PUBLICSYNCANDCREATEIMAGESCANTASKRESULT_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 PublicSyncAndCreateImageScanTaskResult : public ServiceResult
{
public:
struct Data
{
std::string status;
int totalCount;
int progress;
std::string taskId;
long collectTime;
int finishCount;
long execTime;
std::string result;
bool canCreate;
};
PublicSyncAndCreateImageScanTaskResult();
explicit PublicSyncAndCreateImageScanTaskResult(const std::string &payload);
~PublicSyncAndCreateImageScanTaskResult();
Data getData()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_PUBLICSYNCANDCREATEIMAGESCANTASKRESULT_H_

View File

@@ -87,6 +87,42 @@ SasClient::AddVpcHoneyPotOutcomeCallable SasClient::addVpcHoneyPotCallable(const
return task->get_future();
}
SasClient::CheckQuaraFileIdOutcome SasClient::checkQuaraFileId(const CheckQuaraFileIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CheckQuaraFileIdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CheckQuaraFileIdOutcome(CheckQuaraFileIdResult(outcome.result()));
else
return CheckQuaraFileIdOutcome(outcome.error());
}
void SasClient::checkQuaraFileIdAsync(const CheckQuaraFileIdRequest& request, const CheckQuaraFileIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, checkQuaraFileId(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::CheckQuaraFileIdOutcomeCallable SasClient::checkQuaraFileIdCallable(const CheckQuaraFileIdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CheckQuaraFileIdOutcome()>>(
[this, request]()
{
return this->checkQuaraFileId(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::CheckSecurityEventIdOutcome SasClient::checkSecurityEventId(const CheckSecurityEventIdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -771,6 +807,42 @@ SasClient::DescribeAlarmEventListOutcomeCallable SasClient::describeAlarmEventLi
return task->get_future();
}
SasClient::DescribeAlarmEventStackInfoOutcome SasClient::describeAlarmEventStackInfo(const DescribeAlarmEventStackInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAlarmEventStackInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAlarmEventStackInfoOutcome(DescribeAlarmEventStackInfoResult(outcome.result()));
else
return DescribeAlarmEventStackInfoOutcome(outcome.error());
}
void SasClient::describeAlarmEventStackInfoAsync(const DescribeAlarmEventStackInfoRequest& request, const DescribeAlarmEventStackInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAlarmEventStackInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeAlarmEventStackInfoOutcomeCallable SasClient::describeAlarmEventStackInfoCallable(const DescribeAlarmEventStackInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAlarmEventStackInfoOutcome()>>(
[this, request]()
{
return this->describeAlarmEventStackInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeAllEntityOutcome SasClient::describeAllEntity(const DescribeAllEntityRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1995,6 +2067,42 @@ SasClient::DescribeFieldStatisticsOutcomeCallable SasClient::describeFieldStatis
return task->get_future();
}
SasClient::DescribeFrontVulPatchListOutcome SasClient::describeFrontVulPatchList(const DescribeFrontVulPatchListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeFrontVulPatchListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeFrontVulPatchListOutcome(DescribeFrontVulPatchListResult(outcome.result()));
else
return DescribeFrontVulPatchListOutcome(outcome.error());
}
void SasClient::describeFrontVulPatchListAsync(const DescribeFrontVulPatchListRequest& request, const DescribeFrontVulPatchListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeFrontVulPatchList(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeFrontVulPatchListOutcomeCallable SasClient::describeFrontVulPatchListCallable(const DescribeFrontVulPatchListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeFrontVulPatchListOutcome()>>(
[this, request]()
{
return this->describeFrontVulPatchList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeGroupedContainerInstancesOutcome SasClient::describeGroupedContainerInstances(const DescribeGroupedContainerInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4227,6 +4335,42 @@ SasClient::DescribeUserLayoutAuthorizationOutcomeCallable SasClient::describeUse
return task->get_future();
}
SasClient::DescribeUuidsByVulNamesOutcome SasClient::describeUuidsByVulNames(const DescribeUuidsByVulNamesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUuidsByVulNamesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUuidsByVulNamesOutcome(DescribeUuidsByVulNamesResult(outcome.result()));
else
return DescribeUuidsByVulNamesOutcome(outcome.error());
}
void SasClient::describeUuidsByVulNamesAsync(const DescribeUuidsByVulNamesRequest& request, const DescribeUuidsByVulNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUuidsByVulNames(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeUuidsByVulNamesOutcomeCallable SasClient::describeUuidsByVulNamesCallable(const DescribeUuidsByVulNamesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUuidsByVulNamesOutcome()>>(
[this, request]()
{
return this->describeUuidsByVulNames(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeVersionConfigOutcome SasClient::describeVersionConfig(const DescribeVersionConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4839,6 +4983,42 @@ SasClient::GetHoneypotNodeOutcomeCallable SasClient::getHoneypotNodeCallable(con
return task->get_future();
}
SasClient::GetOpaDefenceDetailOutcome SasClient::getOpaDefenceDetail(const GetOpaDefenceDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetOpaDefenceDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetOpaDefenceDetailOutcome(GetOpaDefenceDetailResult(outcome.result()));
else
return GetOpaDefenceDetailOutcome(outcome.error());
}
void SasClient::getOpaDefenceDetailAsync(const GetOpaDefenceDetailRequest& request, const GetOpaDefenceDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getOpaDefenceDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::GetOpaDefenceDetailOutcomeCallable SasClient::getOpaDefenceDetailCallable(const GetOpaDefenceDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetOpaDefenceDetailOutcome()>>(
[this, request]()
{
return this->getOpaDefenceDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::GetSuspiciousStatisticsOutcome SasClient::getSuspiciousStatistics(const GetSuspiciousStatisticsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5091,6 +5271,42 @@ SasClient::InstallCloudMonitorOutcomeCallable SasClient::installCloudMonitorCall
return task->get_future();
}
SasClient::ListCriteriaStrategyOutcome SasClient::listCriteriaStrategy(const ListCriteriaStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListCriteriaStrategyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListCriteriaStrategyOutcome(ListCriteriaStrategyResult(outcome.result()));
else
return ListCriteriaStrategyOutcome(outcome.error());
}
void SasClient::listCriteriaStrategyAsync(const ListCriteriaStrategyRequest& request, const ListCriteriaStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listCriteriaStrategy(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ListCriteriaStrategyOutcomeCallable SasClient::listCriteriaStrategyCallable(const ListCriteriaStrategyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListCriteriaStrategyOutcome()>>(
[this, request]()
{
return this->listCriteriaStrategy(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ListVulAutoRepairConfigOutcome SasClient::listVulAutoRepairConfig(const ListVulAutoRepairConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6243,6 +6459,42 @@ SasClient::PauseClientOutcomeCallable SasClient::pauseClientCallable(const Pause
return task->get_future();
}
SasClient::PublicSyncAndCreateImageScanTaskOutcome SasClient::publicSyncAndCreateImageScanTask(const PublicSyncAndCreateImageScanTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PublicSyncAndCreateImageScanTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PublicSyncAndCreateImageScanTaskOutcome(PublicSyncAndCreateImageScanTaskResult(outcome.result()));
else
return PublicSyncAndCreateImageScanTaskOutcome(outcome.error());
}
void SasClient::publicSyncAndCreateImageScanTaskAsync(const PublicSyncAndCreateImageScanTaskRequest& request, const PublicSyncAndCreateImageScanTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, publicSyncAndCreateImageScanTask(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::PublicSyncAndCreateImageScanTaskOutcomeCallable SasClient::publicSyncAndCreateImageScanTaskCallable(const PublicSyncAndCreateImageScanTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PublicSyncAndCreateImageScanTaskOutcome()>>(
[this, request]()
{
return this->publicSyncAndCreateImageScanTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::QueryGroupIdByGroupNameOutcome SasClient::queryGroupIdByGroupName(const QueryGroupIdByGroupNameRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,64 @@
/*
* 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/CheckQuaraFileIdRequest.h>
using AlibabaCloud::Sas::Model::CheckQuaraFileIdRequest;
CheckQuaraFileIdRequest::CheckQuaraFileIdRequest() :
RpcServiceRequest("sas", "2018-12-03", "CheckQuaraFileId")
{
setMethod(HttpRequest::Method::Post);
}
CheckQuaraFileIdRequest::~CheckQuaraFileIdRequest()
{}
std::vector<std::string> CheckQuaraFileIdRequest::getQuaraFileIds()const
{
return quaraFileIds_;
}
void CheckQuaraFileIdRequest::setQuaraFileIds(const std::vector<std::string>& quaraFileIds)
{
quaraFileIds_ = quaraFileIds;
for(int dep1 = 0; dep1!= quaraFileIds.size(); dep1++) {
setParameter("QuaraFileIds."+ std::to_string(dep1), quaraFileIds.at(dep1));
}
}
std::string CheckQuaraFileIdRequest::getUuid()const
{
return uuid_;
}
void CheckQuaraFileIdRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string CheckQuaraFileIdRequest::getSourceIp()const
{
return sourceIp_;
}
void CheckQuaraFileIdRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -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.
*/
#include <alibabacloud/sas/model/CheckQuaraFileIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CheckQuaraFileIdResult::CheckQuaraFileIdResult() :
ServiceResult()
{}
CheckQuaraFileIdResult::CheckQuaraFileIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckQuaraFileIdResult::~CheckQuaraFileIdResult()
{}
void CheckQuaraFileIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";
}
bool CheckQuaraFileIdResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h>
using AlibabaCloud::Sas::Model::DescribeAlarmEventStackInfoRequest;
DescribeAlarmEventStackInfoRequest::DescribeAlarmEventStackInfoRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventStackInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAlarmEventStackInfoRequest::~DescribeAlarmEventStackInfoRequest()
{}
std::string DescribeAlarmEventStackInfoRequest::getUniqueInfo()const
{
return uniqueInfo_;
}
void DescribeAlarmEventStackInfoRequest::setUniqueInfo(const std::string& uniqueInfo)
{
uniqueInfo_ = uniqueInfo;
setParameter("UniqueInfo", uniqueInfo);
}
std::string DescribeAlarmEventStackInfoRequest::getUuid()const
{
return uuid_;
}
void DescribeAlarmEventStackInfoRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string DescribeAlarmEventStackInfoRequest::getEventName()const
{
return eventName_;
}
void DescribeAlarmEventStackInfoRequest::setEventName(const std::string& eventName)
{
eventName_ = eventName;
setParameter("EventName", eventName);
}
std::string DescribeAlarmEventStackInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAlarmEventStackInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeAlarmEventStackInfoRequest::getLang()const
{
return lang_;
}
void DescribeAlarmEventStackInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -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.
*/
#include <alibabacloud/sas/model/DescribeAlarmEventStackInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeAlarmEventStackInfoResult::DescribeAlarmEventStackInfoResult() :
ServiceResult()
{}
DescribeAlarmEventStackInfoResult::DescribeAlarmEventStackInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlarmEventStackInfoResult::~DescribeAlarmEventStackInfoResult()
{}
void DescribeAlarmEventStackInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["StackInfo"].isNull())
stackInfo_ = value["StackInfo"].asString();
}
std::string DescribeAlarmEventStackInfoResult::getStackInfo()const
{
return stackInfo_;
}

View File

@@ -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.
*/
#include <alibabacloud/sas/model/DescribeFrontVulPatchListRequest.h>
using AlibabaCloud::Sas::Model::DescribeFrontVulPatchListRequest;
DescribeFrontVulPatchListRequest::DescribeFrontVulPatchListRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeFrontVulPatchList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFrontVulPatchListRequest::~DescribeFrontVulPatchListRequest()
{}
std::string DescribeFrontVulPatchListRequest::getType()const
{
return type_;
}
void DescribeFrontVulPatchListRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeFrontVulPatchListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeFrontVulPatchListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeFrontVulPatchListRequest::getOperateType()const
{
return operateType_;
}
void DescribeFrontVulPatchListRequest::setOperateType(const std::string& operateType)
{
operateType_ = operateType;
setParameter("OperateType", operateType);
}
std::string DescribeFrontVulPatchListRequest::getInfo()const
{
return info_;
}
void DescribeFrontVulPatchListRequest::setInfo(const std::string& info)
{
info_ = info;
setParameter("Info", info);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/DescribeFrontVulPatchListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeFrontVulPatchListResult::DescribeFrontVulPatchListResult() :
ServiceResult()
{}
DescribeFrontVulPatchListResult::DescribeFrontVulPatchListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFrontVulPatchListResult::~DescribeFrontVulPatchListResult()
{}
void DescribeFrontVulPatchListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFrontPatchListNode = value["FrontPatchList"]["FrontPatch"];
for (auto valueFrontPatchListFrontPatch : allFrontPatchListNode)
{
FrontPatch frontPatchListObject;
if(!valueFrontPatchListFrontPatch["Uuid"].isNull())
frontPatchListObject.uuid = valueFrontPatchListFrontPatch["Uuid"].asString();
auto allPatchListNode = valueFrontPatchListFrontPatch["PatchList"]["Patch"];
for (auto valueFrontPatchListFrontPatchPatchListPatch : allPatchListNode)
{
FrontPatch::Patch patchListObject;
if(!valueFrontPatchListFrontPatchPatchListPatch["Name"].isNull())
patchListObject.name = valueFrontPatchListFrontPatchPatchListPatch["Name"].asString();
if(!valueFrontPatchListFrontPatchPatchListPatch["AliasName"].isNull())
patchListObject.aliasName = valueFrontPatchListFrontPatchPatchListPatch["AliasName"].asString();
frontPatchListObject.patchList.push_back(patchListObject);
}
frontPatchList_.push_back(frontPatchListObject);
}
}
std::vector<DescribeFrontVulPatchListResult::FrontPatch> DescribeFrontVulPatchListResult::getFrontPatchList()const
{
return frontPatchList_;
}

View File

@@ -0,0 +1,207 @@
/*
* 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/DescribeUuidsByVulNamesRequest.h>
using AlibabaCloud::Sas::Model::DescribeUuidsByVulNamesRequest;
DescribeUuidsByVulNamesRequest::DescribeUuidsByVulNamesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeUuidsByVulNames")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUuidsByVulNamesRequest::~DescribeUuidsByVulNamesRequest()
{}
std::string DescribeUuidsByVulNamesRequest::getStatusList()const
{
return statusList_;
}
void DescribeUuidsByVulNamesRequest::setStatusList(const std::string& statusList)
{
statusList_ = statusList;
setParameter("StatusList", statusList);
}
std::string DescribeUuidsByVulNamesRequest::getTargetType()const
{
return targetType_;
}
void DescribeUuidsByVulNamesRequest::setTargetType(const std::string& targetType)
{
targetType_ = targetType;
setParameter("TargetType", targetType);
}
std::string DescribeUuidsByVulNamesRequest::getRemark()const
{
return remark_;
}
void DescribeUuidsByVulNamesRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string DescribeUuidsByVulNamesRequest::getType()const
{
return type_;
}
void DescribeUuidsByVulNamesRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeUuidsByVulNamesRequest::getVpcInstanceIds()const
{
return vpcInstanceIds_;
}
void DescribeUuidsByVulNamesRequest::setVpcInstanceIds(const std::string& vpcInstanceIds)
{
vpcInstanceIds_ = vpcInstanceIds;
setParameter("VpcInstanceIds", vpcInstanceIds);
}
std::vector<std::string> DescribeUuidsByVulNamesRequest::getVulNames()const
{
return vulNames_;
}
void DescribeUuidsByVulNamesRequest::setVulNames(const std::vector<std::string>& vulNames)
{
vulNames_ = vulNames;
for(int dep1 = 0; dep1!= vulNames.size(); dep1++) {
setParameter("VulNames."+ std::to_string(dep1), vulNames.at(dep1));
}
}
std::string DescribeUuidsByVulNamesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUuidsByVulNamesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeUuidsByVulNamesRequest::getTag()const
{
return tag_;
}
void DescribeUuidsByVulNamesRequest::setTag(const std::string& tag)
{
tag_ = tag;
setParameter("Tag", tag);
}
std::string DescribeUuidsByVulNamesRequest::getLang()const
{
return lang_;
}
void DescribeUuidsByVulNamesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeUuidsByVulNamesRequest::getLevel()const
{
return level_;
}
void DescribeUuidsByVulNamesRequest::setLevel(const std::string& level)
{
level_ = level;
setParameter("Level", level);
}
long DescribeUuidsByVulNamesRequest::getGroupId()const
{
return groupId_;
}
void DescribeUuidsByVulNamesRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
std::string DescribeUuidsByVulNamesRequest::getDealed()const
{
return dealed_;
}
void DescribeUuidsByVulNamesRequest::setDealed(const std::string& dealed)
{
dealed_ = dealed;
setParameter("Dealed", dealed);
}
std::string DescribeUuidsByVulNamesRequest::getFieldValue()const
{
return fieldValue_;
}
void DescribeUuidsByVulNamesRequest::setFieldValue(const std::string& fieldValue)
{
fieldValue_ = fieldValue;
setParameter("FieldValue", fieldValue);
}
std::string DescribeUuidsByVulNamesRequest::getFieldName()const
{
return fieldName_;
}
void DescribeUuidsByVulNamesRequest::setFieldName(const std::string& fieldName)
{
fieldName_ = fieldName;
setParameter("FieldName", fieldName);
}
std::string DescribeUuidsByVulNamesRequest::getSearchTags()const
{
return searchTags_;
}
void DescribeUuidsByVulNamesRequest::setSearchTags(const std::string& searchTags)
{
searchTags_ = searchTags;
setParameter("SearchTags", searchTags);
}
std::string DescribeUuidsByVulNamesRequest::getNecessity()const
{
return necessity_;
}
void DescribeUuidsByVulNamesRequest::setNecessity(const std::string& necessity)
{
necessity_ = necessity;
setParameter("Necessity", necessity);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/DescribeUuidsByVulNamesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeUuidsByVulNamesResult::DescribeUuidsByVulNamesResult() :
ServiceResult()
{}
DescribeUuidsByVulNamesResult::DescribeUuidsByVulNamesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUuidsByVulNamesResult::~DescribeUuidsByVulNamesResult()
{}
void DescribeUuidsByVulNamesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMachineInfoStatisticsNode = value["MachineInfoStatistics"]["MachineInfoStatistic"];
for (auto valueMachineInfoStatisticsMachineInfoStatistic : allMachineInfoStatisticsNode)
{
MachineInfoStatistic machineInfoStatisticsObject;
if(!valueMachineInfoStatisticsMachineInfoStatistic["Uuid"].isNull())
machineInfoStatisticsObject.uuid = valueMachineInfoStatisticsMachineInfoStatistic["Uuid"].asString();
if(!valueMachineInfoStatisticsMachineInfoStatistic["MachineIp"].isNull())
machineInfoStatisticsObject.machineIp = valueMachineInfoStatisticsMachineInfoStatistic["MachineIp"].asString();
if(!valueMachineInfoStatisticsMachineInfoStatistic["Os"].isNull())
machineInfoStatisticsObject.os = valueMachineInfoStatisticsMachineInfoStatistic["Os"].asString();
if(!valueMachineInfoStatisticsMachineInfoStatistic["MachineName"].isNull())
machineInfoStatisticsObject.machineName = valueMachineInfoStatisticsMachineInfoStatistic["MachineName"].asString();
if(!valueMachineInfoStatisticsMachineInfoStatistic["MachineInstanceId"].isNull())
machineInfoStatisticsObject.machineInstanceId = valueMachineInfoStatisticsMachineInfoStatistic["MachineInstanceId"].asString();
if(!valueMachineInfoStatisticsMachineInfoStatistic["RegionId"].isNull())
machineInfoStatisticsObject.regionId = valueMachineInfoStatisticsMachineInfoStatistic["RegionId"].asString();
machineInfoStatistics_.push_back(machineInfoStatisticsObject);
}
}
std::vector<DescribeUuidsByVulNamesResult::MachineInfoStatistic> DescribeUuidsByVulNamesResult::getMachineInfoStatistics()const
{
return machineInfoStatistics_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetOpaDefenceDetailRequest.h>
using AlibabaCloud::Sas::Model::GetOpaDefenceDetailRequest;
GetOpaDefenceDetailRequest::GetOpaDefenceDetailRequest() :
RpcServiceRequest("sas", "2018-12-03", "GetOpaDefenceDetail")
{
setMethod(HttpRequest::Method::Post);
}
GetOpaDefenceDetailRequest::~GetOpaDefenceDetailRequest()
{}
long GetOpaDefenceDetailRequest::getInterceptionId()const
{
return interceptionId_;
}
void GetOpaDefenceDetailRequest::setInterceptionId(long interceptionId)
{
interceptionId_ = interceptionId;
setParameter("InterceptionId", std::to_string(interceptionId));
}
int GetOpaDefenceDetailRequest::getPageSize()const
{
return pageSize_;
}
void GetOpaDefenceDetailRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int GetOpaDefenceDetailRequest::getCurrentPage()const
{
return currentPage_;
}
void GetOpaDefenceDetailRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}

View File

@@ -0,0 +1,44 @@
/*
* 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/GetOpaDefenceDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
GetOpaDefenceDetailResult::GetOpaDefenceDetailResult() :
ServiceResult()
{}
GetOpaDefenceDetailResult::GetOpaDefenceDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOpaDefenceDetailResult::~GetOpaDefenceDetailResult()
{}
void GetOpaDefenceDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ListCriteriaStrategyRequest.h>
using AlibabaCloud::Sas::Model::ListCriteriaStrategyRequest;
ListCriteriaStrategyRequest::ListCriteriaStrategyRequest() :
RpcServiceRequest("sas", "2018-12-03", "ListCriteriaStrategy")
{
setMethod(HttpRequest::Method::Post);
}
ListCriteriaStrategyRequest::~ListCriteriaStrategyRequest()
{}
std::string ListCriteriaStrategyRequest::getImageName()const
{
return imageName_;
}
void ListCriteriaStrategyRequest::setImageName(const std::string& imageName)
{
imageName_ = imageName;
setParameter("ImageName", imageName);
}
std::string ListCriteriaStrategyRequest::getClusterId()const
{
return clusterId_;
}
void ListCriteriaStrategyRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string ListCriteriaStrategyRequest::getLabel()const
{
return label_;
}
void ListCriteriaStrategyRequest::setLabel(const std::string& label)
{
label_ = label;
setParameter("Label", label);
}
std::string ListCriteriaStrategyRequest::getStrategyName()const
{
return strategyName_;
}
void ListCriteriaStrategyRequest::setStrategyName(const std::string& strategyName)
{
strategyName_ = strategyName;
setParameter("StrategyName", strategyName);
}
std::string ListCriteriaStrategyRequest::get_Namespace()const
{
return _namespace_;
}
void ListCriteriaStrategyRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setParameter("_Namespace", _namespace);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/ListCriteriaStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
ListCriteriaStrategyResult::ListCriteriaStrategyResult() :
ServiceResult()
{}
ListCriteriaStrategyResult::ListCriteriaStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCriteriaStrategyResult::~ListCriteriaStrategyResult()
{}
void ListCriteriaStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["Id"].isNull())
dataObject.id = std::stol(valueDataDataItem["Id"].asString());
if(!valueDataDataItem["Value"].isNull())
dataObject.value = valueDataDataItem["Value"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListCriteriaStrategyResult::getMessage()const
{
return message_;
}
std::vector<ListCriteriaStrategyResult::DataItem> ListCriteriaStrategyResult::getData()const
{
return data_;
}
std::string ListCriteriaStrategyResult::getCode()const
{
return code_;
}
bool ListCriteriaStrategyResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskRequest.h>
using AlibabaCloud::Sas::Model::PublicSyncAndCreateImageScanTaskRequest;
PublicSyncAndCreateImageScanTaskRequest::PublicSyncAndCreateImageScanTaskRequest() :
RpcServiceRequest("sas", "2018-12-03", "PublicSyncAndCreateImageScanTask")
{
setMethod(HttpRequest::Method::Post);
}
PublicSyncAndCreateImageScanTaskRequest::~PublicSyncAndCreateImageScanTaskRequest()
{}
std::string PublicSyncAndCreateImageScanTaskRequest::getImages()const
{
return images_;
}
void PublicSyncAndCreateImageScanTaskRequest::setImages(const std::string& images)
{
images_ = images;
setParameter("Images", images);
}
std::string PublicSyncAndCreateImageScanTaskRequest::getImageItems()const
{
return imageItems_;
}
void PublicSyncAndCreateImageScanTaskRequest::setImageItems(const std::string& imageItems)
{
imageItems_ = imageItems;
setParameter("ImageItems", imageItems);
}
std::string PublicSyncAndCreateImageScanTaskRequest::getSourceIp()const
{
return sourceIp_;
}
void PublicSyncAndCreateImageScanTaskRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View 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.
*/
#include <alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
PublicSyncAndCreateImageScanTaskResult::PublicSyncAndCreateImageScanTaskResult() :
ServiceResult()
{}
PublicSyncAndCreateImageScanTaskResult::PublicSyncAndCreateImageScanTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PublicSyncAndCreateImageScanTaskResult::~PublicSyncAndCreateImageScanTaskResult()
{}
void PublicSyncAndCreateImageScanTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
if(!dataNode["Progress"].isNull())
data_.progress = std::stoi(dataNode["Progress"].asString());
if(!dataNode["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["CollectTime"].isNull())
data_.collectTime = std::stol(dataNode["CollectTime"].asString());
if(!dataNode["FinishCount"].isNull())
data_.finishCount = std::stoi(dataNode["FinishCount"].asString());
if(!dataNode["ExecTime"].isNull())
data_.execTime = std::stol(dataNode["ExecTime"].asString());
if(!dataNode["Result"].isNull())
data_.result = dataNode["Result"].asString();
if(!dataNode["CanCreate"].isNull())
data_.canCreate = dataNode["CanCreate"].asString() == "true";
}
PublicSyncAndCreateImageScanTaskResult::Data PublicSyncAndCreateImageScanTaskResult::getData()const
{
return data_;
}