From 6d5e5142e19c54c2ae0e8e1ab0b1b21d78630061 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 21 Apr 2022 03:41:05 +0000 Subject: [PATCH] Generated 2018-12-03 for Sas. --- CHANGELOG | 3 + VERSION | 2 +- sas/CMakeLists.txt | 28 ++ sas/include/alibabacloud/sas/SasClient.h | 56 ++++ .../sas/model/CheckQuaraFileIdRequest.h | 54 ++++ .../sas/model/CheckQuaraFileIdResult.h | 51 ++++ .../DescribeAlarmEventStackInfoRequest.h | 60 +++++ .../model/DescribeAlarmEventStackInfoResult.h | 51 ++++ .../model/DescribeFrontVulPatchListRequest.h | 57 ++++ .../model/DescribeFrontVulPatchListResult.h | 61 +++++ .../model/DescribeUuidsByVulNamesRequest.h | 93 +++++++ .../sas/model/DescribeUuidsByVulNamesResult.h | 60 +++++ .../sas/model/GetOpaDefenceDetailRequest.h | 54 ++++ .../sas/model/GetOpaDefenceDetailResult.h | 49 ++++ .../sas/model/ListCriteriaStrategyRequest.h | 60 +++++ .../sas/model/ListCriteriaStrategyResult.h | 62 +++++ .../PublicSyncAndCreateImageScanTaskRequest.h | 54 ++++ .../PublicSyncAndCreateImageScanTaskResult.h | 63 +++++ sas/src/SasClient.cc | 252 ++++++++++++++++++ sas/src/model/CheckQuaraFileIdRequest.cc | 64 +++++ sas/src/model/CheckQuaraFileIdResult.cc | 51 ++++ .../DescribeAlarmEventStackInfoRequest.cc | 84 ++++++ .../DescribeAlarmEventStackInfoResult.cc | 51 ++++ .../model/DescribeFrontVulPatchListRequest.cc | 73 +++++ .../model/DescribeFrontVulPatchListResult.cc | 67 +++++ .../model/DescribeUuidsByVulNamesRequest.cc | 207 ++++++++++++++ .../model/DescribeUuidsByVulNamesResult.cc | 67 +++++ sas/src/model/GetOpaDefenceDetailRequest.cc | 62 +++++ sas/src/model/GetOpaDefenceDetailResult.cc | 44 +++ sas/src/model/ListCriteriaStrategyRequest.cc | 84 ++++++ sas/src/model/ListCriteriaStrategyResult.cc | 80 ++++++ ...PublicSyncAndCreateImageScanTaskRequest.cc | 62 +++++ .../PublicSyncAndCreateImageScanTaskResult.cc | 68 +++++ 33 files changed, 2233 insertions(+), 1 deletion(-) create mode 100644 sas/include/alibabacloud/sas/model/CheckQuaraFileIdRequest.h create mode 100644 sas/include/alibabacloud/sas/model/CheckQuaraFileIdResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetOpaDefenceDetailRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetOpaDefenceDetailResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListCriteriaStrategyRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListCriteriaStrategyResult.h create mode 100644 sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskRequest.h create mode 100644 sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskResult.h create mode 100644 sas/src/model/CheckQuaraFileIdRequest.cc create mode 100644 sas/src/model/CheckQuaraFileIdResult.cc create mode 100644 sas/src/model/DescribeAlarmEventStackInfoRequest.cc create mode 100644 sas/src/model/DescribeAlarmEventStackInfoResult.cc create mode 100644 sas/src/model/DescribeFrontVulPatchListRequest.cc create mode 100644 sas/src/model/DescribeFrontVulPatchListResult.cc create mode 100644 sas/src/model/DescribeUuidsByVulNamesRequest.cc create mode 100644 sas/src/model/DescribeUuidsByVulNamesResult.cc create mode 100644 sas/src/model/GetOpaDefenceDetailRequest.cc create mode 100644 sas/src/model/GetOpaDefenceDetailResult.cc create mode 100644 sas/src/model/ListCriteriaStrategyRequest.cc create mode 100644 sas/src/model/ListCriteriaStrategyResult.cc create mode 100644 sas/src/model/PublicSyncAndCreateImageScanTaskRequest.cc create mode 100644 sas/src/model/PublicSyncAndCreateImageScanTaskResult.cc diff --git a/CHANGELOG b/CHANGELOG index a88dec305..fe6e4a706 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/VERSION b/VERSION index 2257c7113..6736afb24 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1109 \ No newline at end of file +1.36.1110 \ No newline at end of file diff --git a/sas/CMakeLists.txt b/sas/CMakeLists.txt index de3db52a8..886c5184a 100644 --- a/sas/CMakeLists.txt +++ b/sas/CMakeLists.txt @@ -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 diff --git a/sas/include/alibabacloud/sas/SasClient.h b/sas/include/alibabacloud/sas/SasClient.h index 99c9d364e..7cc3098be 100644 --- a/sas/include/alibabacloud/sas/SasClient.h +++ b/sas/include/alibabacloud/sas/SasClient.h @@ -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 AddVpcHoneyPotOutcome; typedef std::future AddVpcHoneyPotOutcomeCallable; typedef std::function&)> AddVpcHoneyPotAsyncHandler; + typedef Outcome CheckQuaraFileIdOutcome; + typedef std::future CheckQuaraFileIdOutcomeCallable; + typedef std::function&)> CheckQuaraFileIdAsyncHandler; typedef Outcome CheckSecurityEventIdOutcome; typedef std::future CheckSecurityEventIdOutcomeCallable; typedef std::function&)> CheckSecurityEventIdAsyncHandler; @@ -461,6 +478,9 @@ namespace AlibabaCloud typedef Outcome DescribeAlarmEventListOutcome; typedef std::future DescribeAlarmEventListOutcomeCallable; typedef std::function&)> DescribeAlarmEventListAsyncHandler; + typedef Outcome DescribeAlarmEventStackInfoOutcome; + typedef std::future DescribeAlarmEventStackInfoOutcomeCallable; + typedef std::function&)> DescribeAlarmEventStackInfoAsyncHandler; typedef Outcome DescribeAllEntityOutcome; typedef std::future DescribeAllEntityOutcomeCallable; typedef std::function&)> DescribeAllEntityAsyncHandler; @@ -563,6 +583,9 @@ namespace AlibabaCloud typedef Outcome DescribeFieldStatisticsOutcome; typedef std::future DescribeFieldStatisticsOutcomeCallable; typedef std::function&)> DescribeFieldStatisticsAsyncHandler; + typedef Outcome DescribeFrontVulPatchListOutcome; + typedef std::future DescribeFrontVulPatchListOutcomeCallable; + typedef std::function&)> DescribeFrontVulPatchListAsyncHandler; typedef Outcome DescribeGroupedContainerInstancesOutcome; typedef std::future DescribeGroupedContainerInstancesOutcomeCallable; typedef std::function&)> DescribeGroupedContainerInstancesAsyncHandler; @@ -749,6 +772,9 @@ namespace AlibabaCloud typedef Outcome DescribeUserLayoutAuthorizationOutcome; typedef std::future DescribeUserLayoutAuthorizationOutcomeCallable; typedef std::function&)> DescribeUserLayoutAuthorizationAsyncHandler; + typedef Outcome DescribeUuidsByVulNamesOutcome; + typedef std::future DescribeUuidsByVulNamesOutcomeCallable; + typedef std::function&)> DescribeUuidsByVulNamesAsyncHandler; typedef Outcome DescribeVersionConfigOutcome; typedef std::future DescribeVersionConfigOutcomeCallable; typedef std::function&)> DescribeVersionConfigAsyncHandler; @@ -800,6 +826,9 @@ namespace AlibabaCloud typedef Outcome GetHoneypotNodeOutcome; typedef std::future GetHoneypotNodeOutcomeCallable; typedef std::function&)> GetHoneypotNodeAsyncHandler; + typedef Outcome GetOpaDefenceDetailOutcome; + typedef std::future GetOpaDefenceDetailOutcomeCallable; + typedef std::function&)> GetOpaDefenceDetailAsyncHandler; typedef Outcome GetSuspiciousStatisticsOutcome; typedef std::future GetSuspiciousStatisticsOutcomeCallable; typedef std::function&)> GetSuspiciousStatisticsAsyncHandler; @@ -821,6 +850,9 @@ namespace AlibabaCloud typedef Outcome InstallCloudMonitorOutcome; typedef std::future InstallCloudMonitorOutcomeCallable; typedef std::function&)> InstallCloudMonitorAsyncHandler; + typedef Outcome ListCriteriaStrategyOutcome; + typedef std::future ListCriteriaStrategyOutcomeCallable; + typedef std::function&)> ListCriteriaStrategyAsyncHandler; typedef Outcome ListVulAutoRepairConfigOutcome; typedef std::future ListVulAutoRepairConfigOutcomeCallable; typedef std::function&)> ListVulAutoRepairConfigAsyncHandler; @@ -917,6 +949,9 @@ namespace AlibabaCloud typedef Outcome PauseClientOutcome; typedef std::future PauseClientOutcomeCallable; typedef std::function&)> PauseClientAsyncHandler; + typedef Outcome PublicSyncAndCreateImageScanTaskOutcome; + typedef std::future PublicSyncAndCreateImageScanTaskOutcomeCallable; + typedef std::function&)> PublicSyncAndCreateImageScanTaskAsyncHandler; typedef Outcome QueryGroupIdByGroupNameOutcome; typedef std::future QueryGroupIdByGroupNameOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; QueryGroupIdByGroupNameOutcomeCallable queryGroupIdByGroupNameCallable(const Model::QueryGroupIdByGroupNameRequest& request) const; diff --git a/sas/include/alibabacloud/sas/model/CheckQuaraFileIdRequest.h b/sas/include/alibabacloud/sas/model/CheckQuaraFileIdRequest.h new file mode 100644 index 000000000..a4f0273a6 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CheckQuaraFileIdRequest.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_CHECKQUARAFILEIDREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_CHECKQUARAFILEIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT CheckQuaraFileIdRequest : public RpcServiceRequest + { + + public: + CheckQuaraFileIdRequest(); + ~CheckQuaraFileIdRequest(); + + std::vector getQuaraFileIds()const; + void setQuaraFileIds(const std::vector& quaraFileIds); + std::string getUuid()const; + void setUuid(const std::string& uuid); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::vector quaraFileIds_; + std::string uuid_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_CHECKQUARAFILEIDREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/CheckQuaraFileIdResult.h b/sas/include/alibabacloud/sas/model/CheckQuaraFileIdResult.h new file mode 100644 index 000000000..47650c8c4 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CheckQuaraFileIdResult.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_CHECKQUARAFILEIDRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_CHECKQUARAFILEIDRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h b/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h new file mode 100644 index 000000000..f7f8c77b0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoResult.h b/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoResult.h new file mode 100644 index 000000000..d1ed647a0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoResult.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_DESCRIBEALARMEVENTSTACKINFORESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTSTACKINFORESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListRequest.h b/sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListRequest.h new file mode 100644 index 000000000..ece2925aa --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListResult.h b/sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListResult.h new file mode 100644 index 000000000..f66276dd9 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeFrontVulPatchListResult.h @@ -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 +#include +#include +#include +#include + +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 patchList; + std::string uuid; + }; + + + DescribeFrontVulPatchListResult(); + explicit DescribeFrontVulPatchListResult(const std::string &payload); + ~DescribeFrontVulPatchListResult(); + std::vector getFrontPatchList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector frontPatchList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEFRONTVULPATCHLISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesRequest.h b/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesRequest.h new file mode 100644 index 000000000..b17a470d3 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesRequest.h @@ -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 +#include +#include +#include + +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 getVulNames()const; + void setVulNames(const std::vector& 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 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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h b/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h new file mode 100644 index 000000000..7d31438f3 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h @@ -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 +#include +#include +#include +#include + +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 getMachineInfoStatistics()const; + + protected: + void parse(const std::string &payload); + private: + std::vector machineInfoStatistics_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEUUIDSBYVULNAMESRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetOpaDefenceDetailRequest.h b/sas/include/alibabacloud/sas/model/GetOpaDefenceDetailRequest.h new file mode 100644 index 000000000..426d002df --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetOpaDefenceDetailRequest.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_GETOPADEFENCEDETAILREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETOPADEFENCEDETAILREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetOpaDefenceDetailResult.h b/sas/include/alibabacloud/sas/model/GetOpaDefenceDetailResult.h new file mode 100644 index 000000000..85dbaa7a6 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetOpaDefenceDetailResult.h @@ -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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListCriteriaStrategyRequest.h b/sas/include/alibabacloud/sas/model/ListCriteriaStrategyRequest.h new file mode 100644 index 000000000..704a5de5f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListCriteriaStrategyRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListCriteriaStrategyResult.h b/sas/include/alibabacloud/sas/model/ListCriteriaStrategyResult.h new file mode 100644 index 000000000..6171a7a67 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListCriteriaStrategyResult.h @@ -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 +#include +#include +#include +#include + +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 getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTCRITERIASTRATEGYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskRequest.h b/sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskRequest.h new file mode 100644 index 000000000..91d867391 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskRequest.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_PUBLICSYNCANDCREATEIMAGESCANTASKREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_PUBLICSYNCANDCREATEIMAGESCANTASKREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskResult.h b/sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskResult.h new file mode 100644 index 000000000..f82cd315c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/PublicSyncAndCreateImageScanTaskResult.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_PUBLICSYNCANDCREATEIMAGESCANTASKRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_PUBLICSYNCANDCREATEIMAGESCANTASKRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/sas/src/SasClient.cc b/sas/src/SasClient.cc index f6035c4d2..418338242 100644 --- a/sas/src/SasClient.cc +++ b/sas/src/SasClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/sas/src/model/CheckQuaraFileIdRequest.cc b/sas/src/model/CheckQuaraFileIdRequest.cc new file mode 100644 index 000000000..4645dbc3e --- /dev/null +++ b/sas/src/model/CheckQuaraFileIdRequest.cc @@ -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 + +using AlibabaCloud::Sas::Model::CheckQuaraFileIdRequest; + +CheckQuaraFileIdRequest::CheckQuaraFileIdRequest() : + RpcServiceRequest("sas", "2018-12-03", "CheckQuaraFileId") +{ + setMethod(HttpRequest::Method::Post); +} + +CheckQuaraFileIdRequest::~CheckQuaraFileIdRequest() +{} + +std::vector CheckQuaraFileIdRequest::getQuaraFileIds()const +{ + return quaraFileIds_; +} + +void CheckQuaraFileIdRequest::setQuaraFileIds(const std::vector& 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); +} + diff --git a/sas/src/model/CheckQuaraFileIdResult.cc b/sas/src/model/CheckQuaraFileIdResult.cc new file mode 100644 index 000000000..7a2b800a4 --- /dev/null +++ b/sas/src/model/CheckQuaraFileIdResult.cc @@ -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 +#include + +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_; +} + diff --git a/sas/src/model/DescribeAlarmEventStackInfoRequest.cc b/sas/src/model/DescribeAlarmEventStackInfoRequest.cc new file mode 100644 index 000000000..65fd2e61f --- /dev/null +++ b/sas/src/model/DescribeAlarmEventStackInfoRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::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); +} + diff --git a/sas/src/model/DescribeAlarmEventStackInfoResult.cc b/sas/src/model/DescribeAlarmEventStackInfoResult.cc new file mode 100644 index 000000000..d052bad81 --- /dev/null +++ b/sas/src/model/DescribeAlarmEventStackInfoResult.cc @@ -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 +#include + +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_; +} + diff --git a/sas/src/model/DescribeFrontVulPatchListRequest.cc b/sas/src/model/DescribeFrontVulPatchListRequest.cc new file mode 100644 index 000000000..cacc1844c --- /dev/null +++ b/sas/src/model/DescribeFrontVulPatchListRequest.cc @@ -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 + +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); +} + diff --git a/sas/src/model/DescribeFrontVulPatchListResult.cc b/sas/src/model/DescribeFrontVulPatchListResult.cc new file mode 100644 index 000000000..72c570f24 --- /dev/null +++ b/sas/src/model/DescribeFrontVulPatchListResult.cc @@ -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 +#include + +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::getFrontPatchList()const +{ + return frontPatchList_; +} + diff --git a/sas/src/model/DescribeUuidsByVulNamesRequest.cc b/sas/src/model/DescribeUuidsByVulNamesRequest.cc new file mode 100644 index 000000000..ca4b1e26a --- /dev/null +++ b/sas/src/model/DescribeUuidsByVulNamesRequest.cc @@ -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 + +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 DescribeUuidsByVulNamesRequest::getVulNames()const +{ + return vulNames_; +} + +void DescribeUuidsByVulNamesRequest::setVulNames(const std::vector& 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); +} + diff --git a/sas/src/model/DescribeUuidsByVulNamesResult.cc b/sas/src/model/DescribeUuidsByVulNamesResult.cc new file mode 100644 index 000000000..14e0d176f --- /dev/null +++ b/sas/src/model/DescribeUuidsByVulNamesResult.cc @@ -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 +#include + +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::getMachineInfoStatistics()const +{ + return machineInfoStatistics_; +} + diff --git a/sas/src/model/GetOpaDefenceDetailRequest.cc b/sas/src/model/GetOpaDefenceDetailRequest.cc new file mode 100644 index 000000000..899a21517 --- /dev/null +++ b/sas/src/model/GetOpaDefenceDetailRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::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)); +} + diff --git a/sas/src/model/GetOpaDefenceDetailResult.cc b/sas/src/model/GetOpaDefenceDetailResult.cc new file mode 100644 index 000000000..1abe5b471 --- /dev/null +++ b/sas/src/model/GetOpaDefenceDetailResult.cc @@ -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 +#include + +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()); + +} + diff --git a/sas/src/model/ListCriteriaStrategyRequest.cc b/sas/src/model/ListCriteriaStrategyRequest.cc new file mode 100644 index 000000000..d2b7f53ba --- /dev/null +++ b/sas/src/model/ListCriteriaStrategyRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::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); +} + diff --git a/sas/src/model/ListCriteriaStrategyResult.cc b/sas/src/model/ListCriteriaStrategyResult.cc new file mode 100644 index 000000000..75d6e3e67 --- /dev/null +++ b/sas/src/model/ListCriteriaStrategyResult.cc @@ -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 +#include + +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::getData()const +{ + return data_; +} + +std::string ListCriteriaStrategyResult::getCode()const +{ + return code_; +} + +bool ListCriteriaStrategyResult::getSuccess()const +{ + return success_; +} + diff --git a/sas/src/model/PublicSyncAndCreateImageScanTaskRequest.cc b/sas/src/model/PublicSyncAndCreateImageScanTaskRequest.cc new file mode 100644 index 000000000..38b3812ae --- /dev/null +++ b/sas/src/model/PublicSyncAndCreateImageScanTaskRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::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); +} + diff --git a/sas/src/model/PublicSyncAndCreateImageScanTaskResult.cc b/sas/src/model/PublicSyncAndCreateImageScanTaskResult.cc new file mode 100644 index 000000000..23ed9bfbc --- /dev/null +++ b/sas/src/model/PublicSyncAndCreateImageScanTaskResult.cc @@ -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 +#include + +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_; +} +