Support DescribeInstallCaptcha API.

This commit is contained in:
sdk-team
2021-06-18 04:07:45 +00:00
parent 930b29acdd
commit 056354a86e
105 changed files with 4049 additions and 219 deletions

View File

@@ -1,3 +1,6 @@
2021-06-18 Version: 1.36.791
- Support DescribeInstallCaptcha API.
2021-06-18 Version: 1.36.790
- Supported 20210618 version for sdk.

View File

@@ -1 +1 @@
1.36.790
1.36.791

View File

@@ -29,6 +29,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/CheckSecurityEventIdResult.h
include/alibabacloud/sas/model/CreateAntiBruteForceRuleRequest.h
include/alibabacloud/sas/model/CreateAntiBruteForceRuleResult.h
include/alibabacloud/sas/model/CreateAssetRequest.h
include/alibabacloud/sas/model/CreateAssetResult.h
include/alibabacloud/sas/model/CreateBackupPolicyRequest.h
include/alibabacloud/sas/model/CreateBackupPolicyResult.h
include/alibabacloud/sas/model/CreateOrUpdateAssetGroupRequest.h
@@ -41,6 +43,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/CreateServiceLinkedRoleResult.h
include/alibabacloud/sas/model/CreateSimilarSecurityEventsQueryTaskRequest.h
include/alibabacloud/sas/model/CreateSimilarSecurityEventsQueryTaskResult.h
include/alibabacloud/sas/model/DeleteAssetRequest.h
include/alibabacloud/sas/model/DeleteAssetResult.h
include/alibabacloud/sas/model/DeleteBackupPolicyRequest.h
include/alibabacloud/sas/model/DeleteBackupPolicyResult.h
include/alibabacloud/sas/model/DeleteBackupPolicyMachineRequest.h
@@ -49,6 +53,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DeleteGroupResult.h
include/alibabacloud/sas/model/DeleteLoginBaseConfigRequest.h
include/alibabacloud/sas/model/DeleteLoginBaseConfigResult.h
include/alibabacloud/sas/model/DeleteStrategyRequest.h
include/alibabacloud/sas/model/DeleteStrategyResult.h
include/alibabacloud/sas/model/DeleteTagWithUuidRequest.h
include/alibabacloud/sas/model/DeleteTagWithUuidResult.h
include/alibabacloud/sas/model/DeleteVpcHoneyPotRequest.h
@@ -77,6 +83,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeAssetDetailByUuidsResult.h
include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h
include/alibabacloud/sas/model/DescribeAutoDelConfigResult.h
include/alibabacloud/sas/model/DescribeBackupClientsRequest.h
include/alibabacloud/sas/model/DescribeBackupClientsResult.h
include/alibabacloud/sas/model/DescribeBackupDirsRequest.h
include/alibabacloud/sas/model/DescribeBackupDirsResult.h
include/alibabacloud/sas/model/DescribeBackupFilesRequest.h
@@ -157,6 +165,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeHoneyPotSuspStatisticsResult.h
include/alibabacloud/sas/model/DescribeImageGroupedVulListRequest.h
include/alibabacloud/sas/model/DescribeImageGroupedVulListResult.h
include/alibabacloud/sas/model/DescribeImageScanAuthCountRequest.h
include/alibabacloud/sas/model/DescribeImageScanAuthCountResult.h
include/alibabacloud/sas/model/DescribeImageStatisticsRequest.h
include/alibabacloud/sas/model/DescribeImageStatisticsResult.h
include/alibabacloud/sas/model/DescribeImageVulListRequest.h
@@ -237,8 +247,14 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeSimilarSecurityEventsResult.h
include/alibabacloud/sas/model/DescribeSnapshotsRequest.h
include/alibabacloud/sas/model/DescribeSnapshotsResult.h
include/alibabacloud/sas/model/DescribeStrategyRequest.h
include/alibabacloud/sas/model/DescribeStrategyResult.h
include/alibabacloud/sas/model/DescribeStrategyExecDetailRequest.h
include/alibabacloud/sas/model/DescribeStrategyExecDetailResult.h
include/alibabacloud/sas/model/DescribeStrategyProcessRequest.h
include/alibabacloud/sas/model/DescribeStrategyProcessResult.h
include/alibabacloud/sas/model/DescribeStrategyTargetRequest.h
include/alibabacloud/sas/model/DescribeStrategyTargetResult.h
include/alibabacloud/sas/model/DescribeSummaryInfoRequest.h
include/alibabacloud/sas/model/DescribeSummaryInfoResult.h
include/alibabacloud/sas/model/DescribeSupportRegionRequest.h
@@ -279,6 +295,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeWebLockBindListResult.h
include/alibabacloud/sas/model/DescribeWebLockConfigListRequest.h
include/alibabacloud/sas/model/DescribeWebLockConfigListResult.h
include/alibabacloud/sas/model/ExecStrategyRequest.h
include/alibabacloud/sas/model/ExecStrategyResult.h
include/alibabacloud/sas/model/ExportRecordRequest.h
include/alibabacloud/sas/model/ExportRecordResult.h
include/alibabacloud/sas/model/FixCheckWarningsRequest.h
@@ -289,6 +307,10 @@ set(sas_public_header_model
include/alibabacloud/sas/model/GetIOCsResult.h
include/alibabacloud/sas/model/GetIncIOCsRequest.h
include/alibabacloud/sas/model/GetIncIOCsResult.h
include/alibabacloud/sas/model/GetLocalInstallScriptRequest.h
include/alibabacloud/sas/model/GetLocalInstallScriptResult.h
include/alibabacloud/sas/model/GetLocalUninstallScriptRequest.h
include/alibabacloud/sas/model/GetLocalUninstallScriptResult.h
include/alibabacloud/sas/model/GetSuspiciousStatisticsRequest.h
include/alibabacloud/sas/model/GetSuspiciousStatisticsResult.h
include/alibabacloud/sas/model/GetVulStatisticsRequest.h
@@ -337,6 +359,10 @@ set(sas_public_header_model
include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h
include/alibabacloud/sas/model/ModifyStartVulScanRequest.h
include/alibabacloud/sas/model/ModifyStartVulScanResult.h
include/alibabacloud/sas/model/ModifyStrategyRequest.h
include/alibabacloud/sas/model/ModifyStrategyResult.h
include/alibabacloud/sas/model/ModifyStrategyTargetRequest.h
include/alibabacloud/sas/model/ModifyStrategyTargetResult.h
include/alibabacloud/sas/model/ModifyTagWithUuidRequest.h
include/alibabacloud/sas/model/ModifyTagWithUuidResult.h
include/alibabacloud/sas/model/ModifyVpcHoneyPotRequest.h
@@ -392,6 +418,8 @@ set(sas_src
src/model/CheckSecurityEventIdResult.cc
src/model/CreateAntiBruteForceRuleRequest.cc
src/model/CreateAntiBruteForceRuleResult.cc
src/model/CreateAssetRequest.cc
src/model/CreateAssetResult.cc
src/model/CreateBackupPolicyRequest.cc
src/model/CreateBackupPolicyResult.cc
src/model/CreateOrUpdateAssetGroupRequest.cc
@@ -404,6 +432,8 @@ set(sas_src
src/model/CreateServiceLinkedRoleResult.cc
src/model/CreateSimilarSecurityEventsQueryTaskRequest.cc
src/model/CreateSimilarSecurityEventsQueryTaskResult.cc
src/model/DeleteAssetRequest.cc
src/model/DeleteAssetResult.cc
src/model/DeleteBackupPolicyRequest.cc
src/model/DeleteBackupPolicyResult.cc
src/model/DeleteBackupPolicyMachineRequest.cc
@@ -412,6 +442,8 @@ set(sas_src
src/model/DeleteGroupResult.cc
src/model/DeleteLoginBaseConfigRequest.cc
src/model/DeleteLoginBaseConfigResult.cc
src/model/DeleteStrategyRequest.cc
src/model/DeleteStrategyResult.cc
src/model/DeleteTagWithUuidRequest.cc
src/model/DeleteTagWithUuidResult.cc
src/model/DeleteVpcHoneyPotRequest.cc
@@ -440,6 +472,8 @@ set(sas_src
src/model/DescribeAssetDetailByUuidsResult.cc
src/model/DescribeAutoDelConfigRequest.cc
src/model/DescribeAutoDelConfigResult.cc
src/model/DescribeBackupClientsRequest.cc
src/model/DescribeBackupClientsResult.cc
src/model/DescribeBackupDirsRequest.cc
src/model/DescribeBackupDirsResult.cc
src/model/DescribeBackupFilesRequest.cc
@@ -520,6 +554,8 @@ set(sas_src
src/model/DescribeHoneyPotSuspStatisticsResult.cc
src/model/DescribeImageGroupedVulListRequest.cc
src/model/DescribeImageGroupedVulListResult.cc
src/model/DescribeImageScanAuthCountRequest.cc
src/model/DescribeImageScanAuthCountResult.cc
src/model/DescribeImageStatisticsRequest.cc
src/model/DescribeImageStatisticsResult.cc
src/model/DescribeImageVulListRequest.cc
@@ -600,8 +636,14 @@ set(sas_src
src/model/DescribeSimilarSecurityEventsResult.cc
src/model/DescribeSnapshotsRequest.cc
src/model/DescribeSnapshotsResult.cc
src/model/DescribeStrategyRequest.cc
src/model/DescribeStrategyResult.cc
src/model/DescribeStrategyExecDetailRequest.cc
src/model/DescribeStrategyExecDetailResult.cc
src/model/DescribeStrategyProcessRequest.cc
src/model/DescribeStrategyProcessResult.cc
src/model/DescribeStrategyTargetRequest.cc
src/model/DescribeStrategyTargetResult.cc
src/model/DescribeSummaryInfoRequest.cc
src/model/DescribeSummaryInfoResult.cc
src/model/DescribeSupportRegionRequest.cc
@@ -642,6 +684,8 @@ set(sas_src
src/model/DescribeWebLockBindListResult.cc
src/model/DescribeWebLockConfigListRequest.cc
src/model/DescribeWebLockConfigListResult.cc
src/model/ExecStrategyRequest.cc
src/model/ExecStrategyResult.cc
src/model/ExportRecordRequest.cc
src/model/ExportRecordResult.cc
src/model/FixCheckWarningsRequest.cc
@@ -652,6 +696,10 @@ set(sas_src
src/model/GetIOCsResult.cc
src/model/GetIncIOCsRequest.cc
src/model/GetIncIOCsResult.cc
src/model/GetLocalInstallScriptRequest.cc
src/model/GetLocalInstallScriptResult.cc
src/model/GetLocalUninstallScriptRequest.cc
src/model/GetLocalUninstallScriptResult.cc
src/model/GetSuspiciousStatisticsRequest.cc
src/model/GetSuspiciousStatisticsResult.cc
src/model/GetVulStatisticsRequest.cc
@@ -700,6 +748,10 @@ set(sas_src
src/model/ModifySecurityCheckScheduleConfigResult.cc
src/model/ModifyStartVulScanRequest.cc
src/model/ModifyStartVulScanResult.cc
src/model/ModifyStrategyRequest.cc
src/model/ModifyStrategyResult.cc
src/model/ModifyStrategyTargetRequest.cc
src/model/ModifyStrategyTargetResult.cc
src/model/ModifyTagWithUuidRequest.cc
src/model/ModifyTagWithUuidResult.cc
src/model/ModifyVpcHoneyPotRequest.cc

View File

@@ -30,6 +30,8 @@
#include "model/CheckSecurityEventIdResult.h"
#include "model/CreateAntiBruteForceRuleRequest.h"
#include "model/CreateAntiBruteForceRuleResult.h"
#include "model/CreateAssetRequest.h"
#include "model/CreateAssetResult.h"
#include "model/CreateBackupPolicyRequest.h"
#include "model/CreateBackupPolicyResult.h"
#include "model/CreateOrUpdateAssetGroupRequest.h"
@@ -42,6 +44,8 @@
#include "model/CreateServiceLinkedRoleResult.h"
#include "model/CreateSimilarSecurityEventsQueryTaskRequest.h"
#include "model/CreateSimilarSecurityEventsQueryTaskResult.h"
#include "model/DeleteAssetRequest.h"
#include "model/DeleteAssetResult.h"
#include "model/DeleteBackupPolicyRequest.h"
#include "model/DeleteBackupPolicyResult.h"
#include "model/DeleteBackupPolicyMachineRequest.h"
@@ -50,6 +54,8 @@
#include "model/DeleteGroupResult.h"
#include "model/DeleteLoginBaseConfigRequest.h"
#include "model/DeleteLoginBaseConfigResult.h"
#include "model/DeleteStrategyRequest.h"
#include "model/DeleteStrategyResult.h"
#include "model/DeleteTagWithUuidRequest.h"
#include "model/DeleteTagWithUuidResult.h"
#include "model/DeleteVpcHoneyPotRequest.h"
@@ -78,6 +84,8 @@
#include "model/DescribeAssetDetailByUuidsResult.h"
#include "model/DescribeAutoDelConfigRequest.h"
#include "model/DescribeAutoDelConfigResult.h"
#include "model/DescribeBackupClientsRequest.h"
#include "model/DescribeBackupClientsResult.h"
#include "model/DescribeBackupDirsRequest.h"
#include "model/DescribeBackupDirsResult.h"
#include "model/DescribeBackupFilesRequest.h"
@@ -158,6 +166,8 @@
#include "model/DescribeHoneyPotSuspStatisticsResult.h"
#include "model/DescribeImageGroupedVulListRequest.h"
#include "model/DescribeImageGroupedVulListResult.h"
#include "model/DescribeImageScanAuthCountRequest.h"
#include "model/DescribeImageScanAuthCountResult.h"
#include "model/DescribeImageStatisticsRequest.h"
#include "model/DescribeImageStatisticsResult.h"
#include "model/DescribeImageVulListRequest.h"
@@ -238,8 +248,14 @@
#include "model/DescribeSimilarSecurityEventsResult.h"
#include "model/DescribeSnapshotsRequest.h"
#include "model/DescribeSnapshotsResult.h"
#include "model/DescribeStrategyRequest.h"
#include "model/DescribeStrategyResult.h"
#include "model/DescribeStrategyExecDetailRequest.h"
#include "model/DescribeStrategyExecDetailResult.h"
#include "model/DescribeStrategyProcessRequest.h"
#include "model/DescribeStrategyProcessResult.h"
#include "model/DescribeStrategyTargetRequest.h"
#include "model/DescribeStrategyTargetResult.h"
#include "model/DescribeSummaryInfoRequest.h"
#include "model/DescribeSummaryInfoResult.h"
#include "model/DescribeSupportRegionRequest.h"
@@ -280,6 +296,8 @@
#include "model/DescribeWebLockBindListResult.h"
#include "model/DescribeWebLockConfigListRequest.h"
#include "model/DescribeWebLockConfigListResult.h"
#include "model/ExecStrategyRequest.h"
#include "model/ExecStrategyResult.h"
#include "model/ExportRecordRequest.h"
#include "model/ExportRecordResult.h"
#include "model/FixCheckWarningsRequest.h"
@@ -290,6 +308,10 @@
#include "model/GetIOCsResult.h"
#include "model/GetIncIOCsRequest.h"
#include "model/GetIncIOCsResult.h"
#include "model/GetLocalInstallScriptRequest.h"
#include "model/GetLocalInstallScriptResult.h"
#include "model/GetLocalUninstallScriptRequest.h"
#include "model/GetLocalUninstallScriptResult.h"
#include "model/GetSuspiciousStatisticsRequest.h"
#include "model/GetSuspiciousStatisticsResult.h"
#include "model/GetVulStatisticsRequest.h"
@@ -338,6 +360,10 @@
#include "model/ModifySecurityCheckScheduleConfigResult.h"
#include "model/ModifyStartVulScanRequest.h"
#include "model/ModifyStartVulScanResult.h"
#include "model/ModifyStrategyRequest.h"
#include "model/ModifyStrategyResult.h"
#include "model/ModifyStrategyTargetRequest.h"
#include "model/ModifyStrategyTargetResult.h"
#include "model/ModifyTagWithUuidRequest.h"
#include "model/ModifyTagWithUuidResult.h"
#include "model/ModifyVpcHoneyPotRequest.h"
@@ -403,6 +429,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateAntiBruteForceRuleResult> CreateAntiBruteForceRuleOutcome;
typedef std::future<CreateAntiBruteForceRuleOutcome> CreateAntiBruteForceRuleOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::CreateAntiBruteForceRuleRequest&, const CreateAntiBruteForceRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAntiBruteForceRuleAsyncHandler;
typedef Outcome<Error, Model::CreateAssetResult> CreateAssetOutcome;
typedef std::future<CreateAssetOutcome> CreateAssetOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::CreateAssetRequest&, const CreateAssetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAssetAsyncHandler;
typedef Outcome<Error, Model::CreateBackupPolicyResult> CreateBackupPolicyOutcome;
typedef std::future<CreateBackupPolicyOutcome> CreateBackupPolicyOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::CreateBackupPolicyRequest&, const CreateBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBackupPolicyAsyncHandler;
@@ -421,6 +450,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateSimilarSecurityEventsQueryTaskResult> CreateSimilarSecurityEventsQueryTaskOutcome;
typedef std::future<CreateSimilarSecurityEventsQueryTaskOutcome> CreateSimilarSecurityEventsQueryTaskOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::CreateSimilarSecurityEventsQueryTaskRequest&, const CreateSimilarSecurityEventsQueryTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSimilarSecurityEventsQueryTaskAsyncHandler;
typedef Outcome<Error, Model::DeleteAssetResult> DeleteAssetOutcome;
typedef std::future<DeleteAssetOutcome> DeleteAssetOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DeleteAssetRequest&, const DeleteAssetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAssetAsyncHandler;
typedef Outcome<Error, Model::DeleteBackupPolicyResult> DeleteBackupPolicyOutcome;
typedef std::future<DeleteBackupPolicyOutcome> DeleteBackupPolicyOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DeleteBackupPolicyRequest&, const DeleteBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBackupPolicyAsyncHandler;
@@ -433,6 +465,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteLoginBaseConfigResult> DeleteLoginBaseConfigOutcome;
typedef std::future<DeleteLoginBaseConfigOutcome> DeleteLoginBaseConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DeleteLoginBaseConfigRequest&, const DeleteLoginBaseConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLoginBaseConfigAsyncHandler;
typedef Outcome<Error, Model::DeleteStrategyResult> DeleteStrategyOutcome;
typedef std::future<DeleteStrategyOutcome> DeleteStrategyOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DeleteStrategyRequest&, const DeleteStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStrategyAsyncHandler;
typedef Outcome<Error, Model::DeleteTagWithUuidResult> DeleteTagWithUuidOutcome;
typedef std::future<DeleteTagWithUuidOutcome> DeleteTagWithUuidOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DeleteTagWithUuidRequest&, const DeleteTagWithUuidOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTagWithUuidAsyncHandler;
@@ -475,6 +510,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeAutoDelConfigResult> DescribeAutoDelConfigOutcome;
typedef std::future<DescribeAutoDelConfigOutcome> DescribeAutoDelConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeAutoDelConfigRequest&, const DescribeAutoDelConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAutoDelConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeBackupClientsResult> DescribeBackupClientsOutcome;
typedef std::future<DescribeBackupClientsOutcome> DescribeBackupClientsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeBackupClientsRequest&, const DescribeBackupClientsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupClientsAsyncHandler;
typedef Outcome<Error, Model::DescribeBackupDirsResult> DescribeBackupDirsOutcome;
typedef std::future<DescribeBackupDirsOutcome> DescribeBackupDirsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeBackupDirsRequest&, const DescribeBackupDirsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupDirsAsyncHandler;
@@ -595,6 +633,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeImageGroupedVulListResult> DescribeImageGroupedVulListOutcome;
typedef std::future<DescribeImageGroupedVulListOutcome> DescribeImageGroupedVulListOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeImageGroupedVulListRequest&, const DescribeImageGroupedVulListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageGroupedVulListAsyncHandler;
typedef Outcome<Error, Model::DescribeImageScanAuthCountResult> DescribeImageScanAuthCountOutcome;
typedef std::future<DescribeImageScanAuthCountOutcome> DescribeImageScanAuthCountOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeImageScanAuthCountRequest&, const DescribeImageScanAuthCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageScanAuthCountAsyncHandler;
typedef Outcome<Error, Model::DescribeImageStatisticsResult> DescribeImageStatisticsOutcome;
typedef std::future<DescribeImageStatisticsOutcome> DescribeImageStatisticsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeImageStatisticsRequest&, const DescribeImageStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeImageStatisticsAsyncHandler;
@@ -715,9 +756,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSnapshotsResult> DescribeSnapshotsOutcome;
typedef std::future<DescribeSnapshotsOutcome> DescribeSnapshotsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeSnapshotsRequest&, const DescribeSnapshotsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSnapshotsAsyncHandler;
typedef Outcome<Error, Model::DescribeStrategyResult> DescribeStrategyOutcome;
typedef std::future<DescribeStrategyOutcome> DescribeStrategyOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeStrategyRequest&, const DescribeStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStrategyAsyncHandler;
typedef Outcome<Error, Model::DescribeStrategyExecDetailResult> DescribeStrategyExecDetailOutcome;
typedef std::future<DescribeStrategyExecDetailOutcome> DescribeStrategyExecDetailOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeStrategyExecDetailRequest&, const DescribeStrategyExecDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStrategyExecDetailAsyncHandler;
typedef Outcome<Error, Model::DescribeStrategyProcessResult> DescribeStrategyProcessOutcome;
typedef std::future<DescribeStrategyProcessOutcome> DescribeStrategyProcessOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeStrategyProcessRequest&, const DescribeStrategyProcessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStrategyProcessAsyncHandler;
typedef Outcome<Error, Model::DescribeStrategyTargetResult> DescribeStrategyTargetOutcome;
typedef std::future<DescribeStrategyTargetOutcome> DescribeStrategyTargetOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeStrategyTargetRequest&, const DescribeStrategyTargetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStrategyTargetAsyncHandler;
typedef Outcome<Error, Model::DescribeSummaryInfoResult> DescribeSummaryInfoOutcome;
typedef std::future<DescribeSummaryInfoOutcome> DescribeSummaryInfoOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeSummaryInfoRequest&, const DescribeSummaryInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSummaryInfoAsyncHandler;
@@ -778,6 +828,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeWebLockConfigListResult> DescribeWebLockConfigListOutcome;
typedef std::future<DescribeWebLockConfigListOutcome> DescribeWebLockConfigListOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeWebLockConfigListRequest&, const DescribeWebLockConfigListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWebLockConfigListAsyncHandler;
typedef Outcome<Error, Model::ExecStrategyResult> ExecStrategyOutcome;
typedef std::future<ExecStrategyOutcome> ExecStrategyOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ExecStrategyRequest&, const ExecStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecStrategyAsyncHandler;
typedef Outcome<Error, Model::ExportRecordResult> ExportRecordOutcome;
typedef std::future<ExportRecordOutcome> ExportRecordOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ExportRecordRequest&, const ExportRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportRecordAsyncHandler;
@@ -793,6 +846,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetIncIOCsResult> GetIncIOCsOutcome;
typedef std::future<GetIncIOCsOutcome> GetIncIOCsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::GetIncIOCsRequest&, const GetIncIOCsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetIncIOCsAsyncHandler;
typedef Outcome<Error, Model::GetLocalInstallScriptResult> GetLocalInstallScriptOutcome;
typedef std::future<GetLocalInstallScriptOutcome> GetLocalInstallScriptOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::GetLocalInstallScriptRequest&, const GetLocalInstallScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLocalInstallScriptAsyncHandler;
typedef Outcome<Error, Model::GetLocalUninstallScriptResult> GetLocalUninstallScriptOutcome;
typedef std::future<GetLocalUninstallScriptOutcome> GetLocalUninstallScriptOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::GetLocalUninstallScriptRequest&, const GetLocalUninstallScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLocalUninstallScriptAsyncHandler;
typedef Outcome<Error, Model::GetSuspiciousStatisticsResult> GetSuspiciousStatisticsOutcome;
typedef std::future<GetSuspiciousStatisticsOutcome> GetSuspiciousStatisticsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::GetSuspiciousStatisticsRequest&, const GetSuspiciousStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSuspiciousStatisticsAsyncHandler;
@@ -865,6 +924,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyStartVulScanResult> ModifyStartVulScanOutcome;
typedef std::future<ModifyStartVulScanOutcome> ModifyStartVulScanOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ModifyStartVulScanRequest&, const ModifyStartVulScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyStartVulScanAsyncHandler;
typedef Outcome<Error, Model::ModifyStrategyResult> ModifyStrategyOutcome;
typedef std::future<ModifyStrategyOutcome> ModifyStrategyOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ModifyStrategyRequest&, const ModifyStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyStrategyAsyncHandler;
typedef Outcome<Error, Model::ModifyStrategyTargetResult> ModifyStrategyTargetOutcome;
typedef std::future<ModifyStrategyTargetOutcome> ModifyStrategyTargetOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ModifyStrategyTargetRequest&, const ModifyStrategyTargetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyStrategyTargetAsyncHandler;
typedef Outcome<Error, Model::ModifyTagWithUuidResult> ModifyTagWithUuidOutcome;
typedef std::future<ModifyTagWithUuidOutcome> ModifyTagWithUuidOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::ModifyTagWithUuidRequest&, const ModifyTagWithUuidOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyTagWithUuidAsyncHandler;
@@ -948,6 +1013,9 @@ namespace AlibabaCloud
CreateAntiBruteForceRuleOutcome createAntiBruteForceRule(const Model::CreateAntiBruteForceRuleRequest &request)const;
void createAntiBruteForceRuleAsync(const Model::CreateAntiBruteForceRuleRequest& request, const CreateAntiBruteForceRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAntiBruteForceRuleOutcomeCallable createAntiBruteForceRuleCallable(const Model::CreateAntiBruteForceRuleRequest& request) const;
CreateAssetOutcome createAsset(const Model::CreateAssetRequest &request)const;
void createAssetAsync(const Model::CreateAssetRequest& request, const CreateAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAssetOutcomeCallable createAssetCallable(const Model::CreateAssetRequest& request) const;
CreateBackupPolicyOutcome createBackupPolicy(const Model::CreateBackupPolicyRequest &request)const;
void createBackupPolicyAsync(const Model::CreateBackupPolicyRequest& request, const CreateBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateBackupPolicyOutcomeCallable createBackupPolicyCallable(const Model::CreateBackupPolicyRequest& request) const;
@@ -966,6 +1034,9 @@ namespace AlibabaCloud
CreateSimilarSecurityEventsQueryTaskOutcome createSimilarSecurityEventsQueryTask(const Model::CreateSimilarSecurityEventsQueryTaskRequest &request)const;
void createSimilarSecurityEventsQueryTaskAsync(const Model::CreateSimilarSecurityEventsQueryTaskRequest& request, const CreateSimilarSecurityEventsQueryTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSimilarSecurityEventsQueryTaskOutcomeCallable createSimilarSecurityEventsQueryTaskCallable(const Model::CreateSimilarSecurityEventsQueryTaskRequest& request) const;
DeleteAssetOutcome deleteAsset(const Model::DeleteAssetRequest &request)const;
void deleteAssetAsync(const Model::DeleteAssetRequest& request, const DeleteAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteAssetOutcomeCallable deleteAssetCallable(const Model::DeleteAssetRequest& request) const;
DeleteBackupPolicyOutcome deleteBackupPolicy(const Model::DeleteBackupPolicyRequest &request)const;
void deleteBackupPolicyAsync(const Model::DeleteBackupPolicyRequest& request, const DeleteBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteBackupPolicyOutcomeCallable deleteBackupPolicyCallable(const Model::DeleteBackupPolicyRequest& request) const;
@@ -978,6 +1049,9 @@ namespace AlibabaCloud
DeleteLoginBaseConfigOutcome deleteLoginBaseConfig(const Model::DeleteLoginBaseConfigRequest &request)const;
void deleteLoginBaseConfigAsync(const Model::DeleteLoginBaseConfigRequest& request, const DeleteLoginBaseConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLoginBaseConfigOutcomeCallable deleteLoginBaseConfigCallable(const Model::DeleteLoginBaseConfigRequest& request) const;
DeleteStrategyOutcome deleteStrategy(const Model::DeleteStrategyRequest &request)const;
void deleteStrategyAsync(const Model::DeleteStrategyRequest& request, const DeleteStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteStrategyOutcomeCallable deleteStrategyCallable(const Model::DeleteStrategyRequest& request) const;
DeleteTagWithUuidOutcome deleteTagWithUuid(const Model::DeleteTagWithUuidRequest &request)const;
void deleteTagWithUuidAsync(const Model::DeleteTagWithUuidRequest& request, const DeleteTagWithUuidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteTagWithUuidOutcomeCallable deleteTagWithUuidCallable(const Model::DeleteTagWithUuidRequest& request) const;
@@ -1020,6 +1094,9 @@ namespace AlibabaCloud
DescribeAutoDelConfigOutcome describeAutoDelConfig(const Model::DescribeAutoDelConfigRequest &request)const;
void describeAutoDelConfigAsync(const Model::DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAutoDelConfigOutcomeCallable describeAutoDelConfigCallable(const Model::DescribeAutoDelConfigRequest& request) const;
DescribeBackupClientsOutcome describeBackupClients(const Model::DescribeBackupClientsRequest &request)const;
void describeBackupClientsAsync(const Model::DescribeBackupClientsRequest& request, const DescribeBackupClientsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBackupClientsOutcomeCallable describeBackupClientsCallable(const Model::DescribeBackupClientsRequest& request) const;
DescribeBackupDirsOutcome describeBackupDirs(const Model::DescribeBackupDirsRequest &request)const;
void describeBackupDirsAsync(const Model::DescribeBackupDirsRequest& request, const DescribeBackupDirsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBackupDirsOutcomeCallable describeBackupDirsCallable(const Model::DescribeBackupDirsRequest& request) const;
@@ -1140,6 +1217,9 @@ namespace AlibabaCloud
DescribeImageGroupedVulListOutcome describeImageGroupedVulList(const Model::DescribeImageGroupedVulListRequest &request)const;
void describeImageGroupedVulListAsync(const Model::DescribeImageGroupedVulListRequest& request, const DescribeImageGroupedVulListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeImageGroupedVulListOutcomeCallable describeImageGroupedVulListCallable(const Model::DescribeImageGroupedVulListRequest& request) const;
DescribeImageScanAuthCountOutcome describeImageScanAuthCount(const Model::DescribeImageScanAuthCountRequest &request)const;
void describeImageScanAuthCountAsync(const Model::DescribeImageScanAuthCountRequest& request, const DescribeImageScanAuthCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeImageScanAuthCountOutcomeCallable describeImageScanAuthCountCallable(const Model::DescribeImageScanAuthCountRequest& request) const;
DescribeImageStatisticsOutcome describeImageStatistics(const Model::DescribeImageStatisticsRequest &request)const;
void describeImageStatisticsAsync(const Model::DescribeImageStatisticsRequest& request, const DescribeImageStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeImageStatisticsOutcomeCallable describeImageStatisticsCallable(const Model::DescribeImageStatisticsRequest& request) const;
@@ -1260,9 +1340,18 @@ namespace AlibabaCloud
DescribeSnapshotsOutcome describeSnapshots(const Model::DescribeSnapshotsRequest &request)const;
void describeSnapshotsAsync(const Model::DescribeSnapshotsRequest& request, const DescribeSnapshotsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSnapshotsOutcomeCallable describeSnapshotsCallable(const Model::DescribeSnapshotsRequest& request) const;
DescribeStrategyOutcome describeStrategy(const Model::DescribeStrategyRequest &request)const;
void describeStrategyAsync(const Model::DescribeStrategyRequest& request, const DescribeStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeStrategyOutcomeCallable describeStrategyCallable(const Model::DescribeStrategyRequest& request) const;
DescribeStrategyExecDetailOutcome describeStrategyExecDetail(const Model::DescribeStrategyExecDetailRequest &request)const;
void describeStrategyExecDetailAsync(const Model::DescribeStrategyExecDetailRequest& request, const DescribeStrategyExecDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeStrategyExecDetailOutcomeCallable describeStrategyExecDetailCallable(const Model::DescribeStrategyExecDetailRequest& request) const;
DescribeStrategyProcessOutcome describeStrategyProcess(const Model::DescribeStrategyProcessRequest &request)const;
void describeStrategyProcessAsync(const Model::DescribeStrategyProcessRequest& request, const DescribeStrategyProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeStrategyProcessOutcomeCallable describeStrategyProcessCallable(const Model::DescribeStrategyProcessRequest& request) const;
DescribeStrategyTargetOutcome describeStrategyTarget(const Model::DescribeStrategyTargetRequest &request)const;
void describeStrategyTargetAsync(const Model::DescribeStrategyTargetRequest& request, const DescribeStrategyTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeStrategyTargetOutcomeCallable describeStrategyTargetCallable(const Model::DescribeStrategyTargetRequest& request) const;
DescribeSummaryInfoOutcome describeSummaryInfo(const Model::DescribeSummaryInfoRequest &request)const;
void describeSummaryInfoAsync(const Model::DescribeSummaryInfoRequest& request, const DescribeSummaryInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSummaryInfoOutcomeCallable describeSummaryInfoCallable(const Model::DescribeSummaryInfoRequest& request) const;
@@ -1323,6 +1412,9 @@ namespace AlibabaCloud
DescribeWebLockConfigListOutcome describeWebLockConfigList(const Model::DescribeWebLockConfigListRequest &request)const;
void describeWebLockConfigListAsync(const Model::DescribeWebLockConfigListRequest& request, const DescribeWebLockConfigListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeWebLockConfigListOutcomeCallable describeWebLockConfigListCallable(const Model::DescribeWebLockConfigListRequest& request) const;
ExecStrategyOutcome execStrategy(const Model::ExecStrategyRequest &request)const;
void execStrategyAsync(const Model::ExecStrategyRequest& request, const ExecStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecStrategyOutcomeCallable execStrategyCallable(const Model::ExecStrategyRequest& request) const;
ExportRecordOutcome exportRecord(const Model::ExportRecordRequest &request)const;
void exportRecordAsync(const Model::ExportRecordRequest& request, const ExportRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExportRecordOutcomeCallable exportRecordCallable(const Model::ExportRecordRequest& request) const;
@@ -1338,6 +1430,12 @@ namespace AlibabaCloud
GetIncIOCsOutcome getIncIOCs(const Model::GetIncIOCsRequest &request)const;
void getIncIOCsAsync(const Model::GetIncIOCsRequest& request, const GetIncIOCsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetIncIOCsOutcomeCallable getIncIOCsCallable(const Model::GetIncIOCsRequest& request) const;
GetLocalInstallScriptOutcome getLocalInstallScript(const Model::GetLocalInstallScriptRequest &request)const;
void getLocalInstallScriptAsync(const Model::GetLocalInstallScriptRequest& request, const GetLocalInstallScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLocalInstallScriptOutcomeCallable getLocalInstallScriptCallable(const Model::GetLocalInstallScriptRequest& request) const;
GetLocalUninstallScriptOutcome getLocalUninstallScript(const Model::GetLocalUninstallScriptRequest &request)const;
void getLocalUninstallScriptAsync(const Model::GetLocalUninstallScriptRequest& request, const GetLocalUninstallScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLocalUninstallScriptOutcomeCallable getLocalUninstallScriptCallable(const Model::GetLocalUninstallScriptRequest& request) const;
GetSuspiciousStatisticsOutcome getSuspiciousStatistics(const Model::GetSuspiciousStatisticsRequest &request)const;
void getSuspiciousStatisticsAsync(const Model::GetSuspiciousStatisticsRequest& request, const GetSuspiciousStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSuspiciousStatisticsOutcomeCallable getSuspiciousStatisticsCallable(const Model::GetSuspiciousStatisticsRequest& request) const;
@@ -1410,6 +1508,12 @@ namespace AlibabaCloud
ModifyStartVulScanOutcome modifyStartVulScan(const Model::ModifyStartVulScanRequest &request)const;
void modifyStartVulScanAsync(const Model::ModifyStartVulScanRequest& request, const ModifyStartVulScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyStartVulScanOutcomeCallable modifyStartVulScanCallable(const Model::ModifyStartVulScanRequest& request) const;
ModifyStrategyOutcome modifyStrategy(const Model::ModifyStrategyRequest &request)const;
void modifyStrategyAsync(const Model::ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyStrategyOutcomeCallable modifyStrategyCallable(const Model::ModifyStrategyRequest& request) const;
ModifyStrategyTargetOutcome modifyStrategyTarget(const Model::ModifyStrategyTargetRequest &request)const;
void modifyStrategyTargetAsync(const Model::ModifyStrategyTargetRequest& request, const ModifyStrategyTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyStrategyTargetOutcomeCallable modifyStrategyTargetCallable(const Model::ModifyStrategyTargetRequest& request) const;
ModifyTagWithUuidOutcome modifyTagWithUuid(const Model::ModifyTagWithUuidRequest &request)const;
void modifyTagWithUuidAsync(const Model::ModifyTagWithUuidRequest& request, const ModifyTagWithUuidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyTagWithUuidOutcomeCallable modifyTagWithUuidCallable(const Model::ModifyTagWithUuidRequest& request) const;

View File

@@ -0,0 +1,66 @@
/*
* 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_CREATEASSETREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_CREATEASSETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT CreateAssetRequest : public RpcServiceRequest
{
public:
CreateAssetRequest();
~CreateAssetRequest();
std::string getInternetIp()const;
void setInternetIp(const std::string& internetIp);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getOsName()const;
void setOsName(const std::string& osName);
std::string getOs()const;
void setOs(const std::string& os);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
std::string getIntranetIp()const;
void setIntranetIp(const std::string& intranetIp);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string internetIp_;
std::string sourceIp_;
std::string osName_;
std::string os_;
std::string instanceName_;
std::string intranetIp_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_CREATEASSETREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_CREATEASSETRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_CREATEASSETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT CreateAssetResult : public ServiceResult
{
public:
CreateAssetResult();
explicit CreateAssetResult(const std::string &payload);
~CreateAssetResult();
std::string getUuid()const;
protected:
void parse(const std::string &payload);
private:
std::string uuid_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_CREATEASSETRESULT_H_

View File

@@ -45,10 +45,10 @@ namespace AlibabaCloud
void setPolicy(const std::string& policy);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getPolicyRegionId()const;
void setPolicyRegionId(const std::string& policyRegionId);
std::string getName()const;
void setName(const std::string& name);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
long resourceOwnerId_;
@@ -56,8 +56,8 @@ namespace AlibabaCloud
std::vector<std::string> uuidList_;
std::string policy_;
std::string policyVersion_;
std::string policyRegionId_;
std::string name_;
std::string status_;
};
}

View File

@@ -39,34 +39,34 @@ namespace AlibabaCloud
void setResourceOwnerId(long resourceOwnerId);
std::string getSnapshotId()const;
void setSnapshotId(const std::string& snapshotId);
std::string getVaultId()const;
void setVaultId(const std::string& vaultId);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSnapshotHash()const;
void setSnapshotHash(const std::string& snapshotHash);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getSourceType()const;
void setSourceType(const std::string& sourceType);
std::string getSnapshotVersion()const;
void setSnapshotVersion(const std::string& snapshotVersion);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getIncludes()const;
void setIncludes(const std::string& includes);
std::string getTarget()const;
void setTarget(const std::string& target);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
long resourceOwnerId_;
std::string snapshotId_;
std::string vaultId_;
std::string uuid_;
std::string snapshotHash_;
std::string sourceIp_;
std::string sourceType_;
std::string snapshotVersion_;
std::string policyVersion_;
std::string includes_;
std::string target_;
std::string instanceId_;
};
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DELETEASSETREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DELETEASSETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DeleteAssetRequest : public RpcServiceRequest
{
public:
DeleteAssetRequest();
~DeleteAssetRequest();
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string uuid_;
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DELETEASSETREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DELETEASSETRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DELETEASSETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DeleteAssetResult : public ServiceResult
{
public:
DeleteAssetResult();
explicit DeleteAssetResult(const std::string &payload);
~DeleteAssetResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DELETEASSETRESULT_H_

View File

@@ -37,8 +37,6 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
@@ -47,14 +45,16 @@ namespace AlibabaCloud
void setPolicyId(long policyId);
std::vector<std::string> getUuidList()const;
void setUuidList(const std::vector<std::string>& uuidList);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
private:
long resourceOwnerId_;
std::string policyVersion_;
std::string uuid_;
std::string sourceIp_;
long policyId_;
std::vector<std::string> uuidList_;
std::string policyVersion_;
};
}

View File

@@ -37,18 +37,18 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
long getId()const;
void setId(long id);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
private:
long resourceOwnerId_;
std::string policyVersion_;
std::string sourceIp_;
long id_;
std::string policyVersion_;
};
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DELETESTRATEGYREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DELETESTRATEGYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DeleteStrategyRequest : public RpcServiceRequest
{
public:
DeleteStrategyRequest();
~DeleteStrategyRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getId()const;
void setId(const std::string& id);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string sourceIp_;
std::string id_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DELETESTRATEGYREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DELETESTRATEGYRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DELETESTRATEGYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DeleteStrategyResult : public ServiceResult
{
public:
DeleteStrategyResult();
explicit DeleteStrategyResult(const std::string &payload);
~DeleteStrategyResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DELETESTRATEGYRESULT_H_

View File

@@ -35,12 +35,14 @@ namespace AlibabaCloud
struct AssetDetail
{
std::string groupTrace;
bool bind;
std::string os;
std::string ip;
int cpu;
std::string intranetIp;
std::string osDetail;
std::vector<std::string> diskInfoList;
long authModifyTime;
std::string internetIp;
std::string regionName;
std::string instanceStatus;
@@ -62,6 +64,7 @@ namespace AlibabaCloud
std::string vpcInstanceId;
std::string regionId;
std::string tag;
int authVersion;
};

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
std::string ip;
std::string osName;
std::string intranetIp;
int flag;
std::string instanceName;
std::string assetType;
std::string uuid;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEBACKUPCLIENTSREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEBACKUPCLIENTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeBackupClientsRequest : public RpcServiceRequest
{
public:
DescribeBackupClientsRequest();
~DescribeBackupClientsRequest();
std::string getSupportRegionId()const;
void setSupportRegionId(const std::string& supportRegionId);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string supportRegionId_;
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEBACKUPCLIENTSREQUEST_H_

View File

@@ -0,0 +1,58 @@
/*
* 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_DESCRIBEBACKUPCLIENTSRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEBACKUPCLIENTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeBackupClientsResult : public ServiceResult
{
public:
struct BackupMachineDTO
{
std::string clientStatus;
std::string uuid;
std::string instanceId;
std::string clientId;
};
DescribeBackupClientsResult();
explicit DescribeBackupClientsResult(const std::string &payload);
~DescribeBackupClientsResult();
std::vector<BackupMachineDTO> getClients()const;
protected:
void parse(const std::string &payload);
private:
std::vector<BackupMachineDTO> clients_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEBACKUPCLIENTSRESULT_H_

View File

@@ -37,8 +37,6 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
@@ -47,14 +45,16 @@ namespace AlibabaCloud
void setPolicyId(long policyId);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
private:
long resourceOwnerId_;
int currentPage_;
std::string uuid_;
std::string sourceIp_;
long policyId_;
int pageSize_;
int currentPage_;
};
}

View File

@@ -37,21 +37,21 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
long getPolicyId()const;
void setPolicyId(long policyId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
private:
long resourceOwnerId_;
std::string policyVersion_;
std::string uuid_;
std::string sourceIp_;
long policyId_;
std::string policyVersion_;
};
}

View File

@@ -37,23 +37,26 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getName()const;
void setName(const std::string& name);
std::string getMachineRemark()const;
void setMachineRemark(const std::string& machineRemark);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getName()const;
void setName(const std::string& name);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
long resourceOwnerId_;
int currentPage_;
std::string sourceIp_;
std::string name_;
std::string machineRemark_;
int pageSize_;
int currentPage_;
std::string name_;
std::string status_;
};

View File

@@ -46,7 +46,9 @@ namespace AlibabaCloud
std::string policyVersion;
std::string clientStatus;
std::vector<std::string> serviceErrorUuidList;
std::vector<std::string> remarkedUuidList;
std::string name;
std::string policyRegionId;
std::vector<std::string> clientErrorUuidList;
std::vector<std::string> healthClientUuidList;
std::vector<std::string> uuidList;

View File

@@ -37,18 +37,18 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
long getId()const;
void setId(long id);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
private:
long resourceOwnerId_;
std::string policyVersion_;
std::string sourceIp_;
long id_;
std::string policyVersion_;
};
}

View File

@@ -35,10 +35,12 @@ namespace AlibabaCloud
struct BackupPolicyDetail
{
std::string policy;
std::string policyVersion;
std::string status;
std::string clientStatus;
std::vector<std::string> uuidList;
long id;
std::string regionId;
std::string name;
};

View File

@@ -41,15 +41,18 @@ namespace AlibabaCloud
};
struct Instance
{
bool bind;
long createdTime;
std::string os;
std::string vulStatus;
std::string ip;
int exposedCount;
std::string clientVersion;
std::string intranetIp;
std::string riskCount;
int importance;
int podCount;
long authModifyTime;
int autoSnapshotsLevel;
std::string internetIp;
std::string regionName;
@@ -57,16 +60,19 @@ namespace AlibabaCloud
std::string status;
int exposedStatus;
std::string clientStatus;
std::string vendorName;
int safeEventCount;
std::string instanceId;
std::string clusterId;
std::string osName;
int vendor;
int healthCheckCount;
int flag;
std::string riskStatus;
int vulCount;
std::string groupId;
std::string instanceName;
int cores;
std::string assetType;
std::string uuid;
std::string alarmStatus;
@@ -74,6 +80,7 @@ namespace AlibabaCloud
std::string vpcInstanceId;
std::string tag;
std::string regionId;
int authVersion;
std::string hcStatus;
};

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setSourceIp(const std::string& sourceIp);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getCheckStatus()const;
void setCheckStatus(const std::string& checkStatus);
std::string getLang()const;
void setLang(const std::string& lang);
int getCurrentPage()const;
@@ -54,6 +56,7 @@ namespace AlibabaCloud
std::string scanType_;
std::string sourceIp_;
int pageSize_;
std::string checkStatus_;
std::string lang_;
int currentPage_;
std::string vulName_;

View File

@@ -37,18 +37,18 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
private:
long resourceOwnerId_;
int currentPage_;
std::string sourceIp_;
int pageSize_;
int currentPage_;
};
}

View File

@@ -37,13 +37,17 @@ namespace AlibabaCloud
int groupCount;
int exposedInstanceCount;
int riskInstanceCount;
int tencentInstanceCount;
int instanceSyncTaskCount;
int importantAssetCount;
int generalAssetCount;
int idcInstanceCount;
int testAssetCount;
int unprotectedInstanceCount;
int instanceCount;
int offlineInstanceCount;
int vpcCount;
int aliYunInstanceCount;
int regionCount;
int notRunningStatusCount;
int newInstanceCount;

View File

@@ -0,0 +1,48 @@
/*
* 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_DESCRIBEIMAGESCANAUTHCOUNTREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGESCANAUTHCOUNTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeImageScanAuthCountRequest : public RpcServiceRequest
{
public:
DescribeImageScanAuthCountRequest();
~DescribeImageScanAuthCountRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGESCANAUTHCOUNTREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGESCANAUTHCOUNTRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGESCANAUTHCOUNTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeImageScanAuthCountResult : public ServiceResult
{
public:
struct ImageScan
{
long imageScanCapacity;
std::string instanceId;
long scanCount;
};
DescribeImageScanAuthCountResult();
explicit DescribeImageScanAuthCountResult(const std::string &payload);
~DescribeImageScanAuthCountResult();
ImageScan getImageScan()const;
protected:
void parse(const std::string &payload);
private:
ImageScan imageScan_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGESCANAUTHCOUNTRESULT_H_

View File

@@ -37,23 +37,23 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getMachineRemark()const;
void setMachineRemark(const std::string& machineRemark);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
long resourceOwnerId_;
int currentPage_;
std::string sourceIp_;
std::string machineRemark_;
int pageSize_;
int currentPage_;
std::string status_;
};

View File

@@ -55,6 +55,8 @@ namespace AlibabaCloud
void setApiVersion(const std::string& apiVersion);
std::string getMachineRegion()const;
void setMachineRegion(const std::string& machineRegion);
std::string getIsAliYunEcs()const;
void setIsAliYunEcs(const std::string& isAliYunEcs);
private:
long resourceOwnerId_;
@@ -67,6 +69,7 @@ namespace AlibabaCloud
int currentPage_;
std::string apiVersion_;
std::string machineRegion_;
std::string isAliYunEcs_;
};
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYPROCESSREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYPROCESSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyProcessRequest : public RpcServiceRequest
{
public:
DescribeStrategyProcessRequest();
~DescribeStrategyProcessRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
long getStrategyId()const;
void setStrategyId(long strategyId);
private:
std::string sourceIp_;
long strategyId_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYPROCESSREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYPROCESSRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYPROCESSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyProcessResult : public ServiceResult
{
public:
DescribeStrategyProcessResult();
explicit DescribeStrategyProcessResult(const std::string &payload);
~DescribeStrategyProcessResult();
int getExecStatus()const;
std::string getPassRate()const;
int getProcessRate()const;
long getStrategyId()const;
protected:
void parse(const std::string &payload);
private:
int execStatus_;
std::string passRate_;
int processRate_;
long strategyId_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYPROCESSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyRequest : public RpcServiceRequest
{
public:
DescribeStrategyRequest();
~DescribeStrategyRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getStrategyIds()const;
void setStrategyIds(const std::string& strategyIds);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string sourceIp_;
std::string strategyIds_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyResult : public ServiceResult
{
public:
struct Strategy
{
struct ConfigTarget
{
std::string target;
std::string targetType;
std::string flag;
};
int cycleStartTime;
int ecsCount;
int type;
int execStatus;
int passRate;
int processRate;
int cycleDays;
int id;
std::string authVersionList;
std::vector<Strategy::ConfigTarget> configTargets;
int riskCount;
std::string name;
};
DescribeStrategyResult();
explicit DescribeStrategyResult(const std::string &payload);
~DescribeStrategyResult();
std::vector<Strategy> getStrategies()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Strategy> strategies_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYTARGETREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYTARGETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyTargetRequest : public RpcServiceRequest
{
public:
DescribeStrategyTargetRequest();
~DescribeStrategyTargetRequest();
std::string getType()const;
void setType(const std::string& type);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getConfig()const;
void setConfig(const std::string& config);
private:
std::string type_;
std::string sourceIp_;
std::string config_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYTARGETREQUEST_H_

View File

@@ -0,0 +1,58 @@
/*
* 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_DESCRIBESTRATEGYTARGETRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYTARGETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeStrategyTargetResult : public ServiceResult
{
public:
struct StrategyTarget
{
std::string target;
int bindUuidCount;
std::string targetType;
std::string flag;
};
DescribeStrategyTargetResult();
explicit DescribeStrategyTargetResult(const std::string &payload);
~DescribeStrategyTargetResult();
std::vector<StrategyTarget> getStrategyTargets()const;
protected:
void parse(const std::string &payload);
private:
std::vector<StrategyTarget> strategyTargets_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESTRATEGYTARGETRESULT_H_

View File

@@ -37,18 +37,18 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
private:
long resourceOwnerId_;
int currentPage_;
std::string sourceIp_;
int pageSize_;
int currentPage_;
};
}

View File

@@ -44,23 +44,29 @@ namespace AlibabaCloud
int getSasLog()const;
int getVersion()const;
int getAvdsFlag()const;
int getHighestVersion()const;
long getWebLockAuthCount()const;
long getSlsCapacity()const;
long getLastTrailEndTime()const;
int getUserDefinedAlarms()const;
int getAllowPartialBuy()const;
int getWebLock()const;
bool getIsOverBalance()const;
int getVmCores()const;
long getHoneypotCapacity()const;
int getAssetLevel()const;
std::string getInstanceId()const;
long getLastInstanceReleaseTime()const;
long getCreateTime()const;
int getSasScreen()const;
bool getIsSasOpening()const;
int getLogCapacity()const;
int getFlag()const;
int getMVAuthCount()const;
long getGmtCreate()const;
long getReleaseTime()const;
int getIsTrialVersion()const;
int getMVUnusedAuthCount()const;
int getAppWhiteList()const;
protected:
@@ -73,23 +79,29 @@ namespace AlibabaCloud
int sasLog_;
int version_;
int avdsFlag_;
int highestVersion_;
long webLockAuthCount_;
long slsCapacity_;
long lastTrailEndTime_;
int userDefinedAlarms_;
int allowPartialBuy_;
int webLock_;
bool isOverBalance_;
int vmCores_;
long honeypotCapacity_;
int assetLevel_;
std::string instanceId_;
long lastInstanceReleaseTime_;
long createTime_;
int sasScreen_;
bool isSasOpening_;
int logCapacity_;
int flag_;
int mVAuthCount_;
long gmtCreate_;
long releaseTime_;
int isTrialVersion_;
int mVUnusedAuthCount_;
int appWhiteList_;
};

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_EXECSTRATEGYREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_EXECSTRATEGYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT ExecStrategyRequest : public RpcServiceRequest
{
public:
ExecStrategyRequest();
~ExecStrategyRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
int getStrategyId()const;
void setStrategyId(int strategyId);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string sourceIp_;
int strategyId_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_EXECSTRATEGYREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_EXECSTRATEGYRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_EXECSTRATEGYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT ExecStrategyResult : public ServiceResult
{
public:
ExecStrategyResult();
explicit ExecStrategyResult(const std::string &payload);
~ExecStrategyResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_EXECSTRATEGYRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_GETLOCALINSTALLSCRIPTREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_GETLOCALINSTALLSCRIPTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT GetLocalInstallScriptRequest : public RpcServiceRequest
{
public:
GetLocalInstallScriptRequest();
~GetLocalInstallScriptRequest();
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
bool getInternalNetwork()const;
void setInternalNetwork(bool internalNetwork);
std::string getPlatformType()const;
void setPlatformType(const std::string& platformType);
private:
std::string uuid_;
std::string sourceIp_;
bool internalNetwork_;
std::string platformType_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_GETLOCALINSTALLSCRIPTREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_GETLOCALINSTALLSCRIPTRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_GETLOCALINSTALLSCRIPTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT GetLocalInstallScriptResult : public ServiceResult
{
public:
GetLocalInstallScriptResult();
explicit GetLocalInstallScriptResult(const std::string &payload);
~GetLocalInstallScriptResult();
std::string getScript()const;
protected:
void parse(const std::string &payload);
private:
std::string script_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_GETLOCALINSTALLSCRIPTRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_GETLOCALUNINSTALLSCRIPTREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_GETLOCALUNINSTALLSCRIPTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT GetLocalUninstallScriptRequest : public RpcServiceRequest
{
public:
GetLocalUninstallScriptRequest();
~GetLocalUninstallScriptRequest();
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
bool getInternalNetwork()const;
void setInternalNetwork(bool internalNetwork);
std::string getPlatformType()const;
void setPlatformType(const std::string& platformType);
private:
std::string uuid_;
std::string sourceIp_;
bool internalNetwork_;
std::string platformType_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_GETLOCALUNINSTALLSCRIPTREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_GETLOCALUNINSTALLSCRIPTRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_GETLOCALUNINSTALLSCRIPTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT GetLocalUninstallScriptResult : public ServiceResult
{
public:
GetLocalUninstallScriptResult();
explicit GetLocalUninstallScriptResult(const std::string &payload);
~GetLocalUninstallScriptResult();
std::string getScript()const;
protected:
void parse(const std::string &payload);
private:
std::string script_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_GETLOCALUNINSTALLSCRIPTRESULT_H_

View File

@@ -37,21 +37,21 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::vector<std::string> getUuidList()const;
void setUuidList(const std::vector<std::string>& uuidList);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
private:
long resourceOwnerId_;
std::string policyVersion_;
std::string uuid_;
std::string sourceIp_;
std::vector<std::string> uuidList_;
std::string policyVersion_;
};
}

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setPolicy(const std::string& policy);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getPolicyRegionId()const;
void setPolicyRegionId(const std::string& policyRegionId);
std::string getName()const;
void setName(const std::string& name);
@@ -57,6 +59,7 @@ namespace AlibabaCloud
long id_;
std::string policy_;
std::string policyVersion_;
std::string policyRegionId_;
std::string name_;
};

View File

@@ -37,20 +37,20 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
long getId()const;
void setId(long id);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
long resourceOwnerId_;
std::string policyVersion_;
std::string sourceIp_;
long id_;
std::string policyVersion_;
std::string status_;
};

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT ModifyStrategyRequest : public RpcServiceRequest
{
public:
ModifyStrategyRequest();
~ModifyStrategyRequest();
std::string getCycleDays()const;
void setCycleDays(const std::string& cycleDays);
std::string getRiskSubTypeName()const;
void setRiskSubTypeName(const std::string& riskSubTypeName);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getId()const;
void setId(const std::string& id);
std::string getCycleStartTime()const;
void setCycleStartTime(const std::string& cycleStartTime);
std::string getName()const;
void setName(const std::string& name);
private:
std::string cycleDays_;
std::string riskSubTypeName_;
std::string sourceIp_;
std::string id_;
std::string cycleStartTime_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT ModifyStrategyResult : public ServiceResult
{
public:
struct Result
{
int strategyId;
};
ModifyStrategyResult();
explicit ModifyStrategyResult(const std::string &payload);
~ModifyStrategyResult();
int getTotalCount()const;
int getHttpStatusCode()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int httpStatusCode_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYTARGETREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYTARGETREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT ModifyStrategyTargetRequest : public RpcServiceRequest
{
public:
ModifyStrategyTargetRequest();
~ModifyStrategyTargetRequest();
std::string getType()const;
void setType(const std::string& type);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getTarget()const;
void setTarget(const std::string& target);
std::string getConfig()const;
void setConfig(const std::string& config);
private:
std::string type_;
std::string sourceIp_;
std::string target_;
std::string config_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYTARGETREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYTARGETRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYTARGETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT ModifyStrategyTargetResult : public ServiceResult
{
public:
ModifyStrategyTargetResult();
explicit ModifyStrategyTargetResult(const std::string &payload);
~ModifyStrategyTargetResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYSTRATEGYTARGETRESULT_H_

View File

@@ -37,21 +37,21 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::vector<std::string> getUuidList()const;
void setUuidList(const std::vector<std::string>& uuidList);
std::string getPolicyVersion()const;
void setPolicyVersion(const std::string& policyVersion);
private:
long resourceOwnerId_;
std::string policyVersion_;
std::string uuid_;
std::string sourceIp_;
std::vector<std::string> uuidList_;
std::string policyVersion_;
};
}

View File

@@ -195,6 +195,42 @@ SasClient::CreateAntiBruteForceRuleOutcomeCallable SasClient::createAntiBruteFor
return task->get_future();
}
SasClient::CreateAssetOutcome SasClient::createAsset(const CreateAssetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateAssetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateAssetOutcome(CreateAssetResult(outcome.result()));
else
return CreateAssetOutcome(outcome.error());
}
void SasClient::createAssetAsync(const CreateAssetRequest& request, const CreateAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createAsset(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::CreateAssetOutcomeCallable SasClient::createAssetCallable(const CreateAssetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateAssetOutcome()>>(
[this, request]()
{
return this->createAsset(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::CreateBackupPolicyOutcome SasClient::createBackupPolicy(const CreateBackupPolicyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -411,6 +447,42 @@ SasClient::CreateSimilarSecurityEventsQueryTaskOutcomeCallable SasClient::create
return task->get_future();
}
SasClient::DeleteAssetOutcome SasClient::deleteAsset(const DeleteAssetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteAssetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteAssetOutcome(DeleteAssetResult(outcome.result()));
else
return DeleteAssetOutcome(outcome.error());
}
void SasClient::deleteAssetAsync(const DeleteAssetRequest& request, const DeleteAssetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteAsset(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DeleteAssetOutcomeCallable SasClient::deleteAssetCallable(const DeleteAssetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteAssetOutcome()>>(
[this, request]()
{
return this->deleteAsset(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DeleteBackupPolicyOutcome SasClient::deleteBackupPolicy(const DeleteBackupPolicyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +627,42 @@ SasClient::DeleteLoginBaseConfigOutcomeCallable SasClient::deleteLoginBaseConfig
return task->get_future();
}
SasClient::DeleteStrategyOutcome SasClient::deleteStrategy(const DeleteStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteStrategyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteStrategyOutcome(DeleteStrategyResult(outcome.result()));
else
return DeleteStrategyOutcome(outcome.error());
}
void SasClient::deleteStrategyAsync(const DeleteStrategyRequest& request, const DeleteStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteStrategy(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DeleteStrategyOutcomeCallable SasClient::deleteStrategyCallable(const DeleteStrategyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteStrategyOutcome()>>(
[this, request]()
{
return this->deleteStrategy(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DeleteTagWithUuidOutcome SasClient::deleteTagWithUuid(const DeleteTagWithUuidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,6 +1167,42 @@ SasClient::DescribeAutoDelConfigOutcomeCallable SasClient::describeAutoDelConfig
return task->get_future();
}
SasClient::DescribeBackupClientsOutcome SasClient::describeBackupClients(const DescribeBackupClientsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeBackupClientsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeBackupClientsOutcome(DescribeBackupClientsResult(outcome.result()));
else
return DescribeBackupClientsOutcome(outcome.error());
}
void SasClient::describeBackupClientsAsync(const DescribeBackupClientsRequest& request, const DescribeBackupClientsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeBackupClients(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeBackupClientsOutcomeCallable SasClient::describeBackupClientsCallable(const DescribeBackupClientsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeBackupClientsOutcome()>>(
[this, request]()
{
return this->describeBackupClients(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeBackupDirsOutcome SasClient::describeBackupDirs(const DescribeBackupDirsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2499,6 +2643,42 @@ SasClient::DescribeImageGroupedVulListOutcomeCallable SasClient::describeImageGr
return task->get_future();
}
SasClient::DescribeImageScanAuthCountOutcome SasClient::describeImageScanAuthCount(const DescribeImageScanAuthCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeImageScanAuthCountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeImageScanAuthCountOutcome(DescribeImageScanAuthCountResult(outcome.result()));
else
return DescribeImageScanAuthCountOutcome(outcome.error());
}
void SasClient::describeImageScanAuthCountAsync(const DescribeImageScanAuthCountRequest& request, const DescribeImageScanAuthCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeImageScanAuthCount(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeImageScanAuthCountOutcomeCallable SasClient::describeImageScanAuthCountCallable(const DescribeImageScanAuthCountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeImageScanAuthCountOutcome()>>(
[this, request]()
{
return this->describeImageScanAuthCount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeImageStatisticsOutcome SasClient::describeImageStatistics(const DescribeImageStatisticsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3939,6 +4119,42 @@ SasClient::DescribeSnapshotsOutcomeCallable SasClient::describeSnapshotsCallable
return task->get_future();
}
SasClient::DescribeStrategyOutcome SasClient::describeStrategy(const DescribeStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeStrategyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeStrategyOutcome(DescribeStrategyResult(outcome.result()));
else
return DescribeStrategyOutcome(outcome.error());
}
void SasClient::describeStrategyAsync(const DescribeStrategyRequest& request, const DescribeStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeStrategy(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeStrategyOutcomeCallable SasClient::describeStrategyCallable(const DescribeStrategyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeStrategyOutcome()>>(
[this, request]()
{
return this->describeStrategy(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeStrategyExecDetailOutcome SasClient::describeStrategyExecDetail(const DescribeStrategyExecDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3975,6 +4191,78 @@ SasClient::DescribeStrategyExecDetailOutcomeCallable SasClient::describeStrategy
return task->get_future();
}
SasClient::DescribeStrategyProcessOutcome SasClient::describeStrategyProcess(const DescribeStrategyProcessRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeStrategyProcessOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeStrategyProcessOutcome(DescribeStrategyProcessResult(outcome.result()));
else
return DescribeStrategyProcessOutcome(outcome.error());
}
void SasClient::describeStrategyProcessAsync(const DescribeStrategyProcessRequest& request, const DescribeStrategyProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeStrategyProcess(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeStrategyProcessOutcomeCallable SasClient::describeStrategyProcessCallable(const DescribeStrategyProcessRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeStrategyProcessOutcome()>>(
[this, request]()
{
return this->describeStrategyProcess(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeStrategyTargetOutcome SasClient::describeStrategyTarget(const DescribeStrategyTargetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeStrategyTargetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeStrategyTargetOutcome(DescribeStrategyTargetResult(outcome.result()));
else
return DescribeStrategyTargetOutcome(outcome.error());
}
void SasClient::describeStrategyTargetAsync(const DescribeStrategyTargetRequest& request, const DescribeStrategyTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeStrategyTarget(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeStrategyTargetOutcomeCallable SasClient::describeStrategyTargetCallable(const DescribeStrategyTargetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeStrategyTargetOutcome()>>(
[this, request]()
{
return this->describeStrategyTarget(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeSummaryInfoOutcome SasClient::describeSummaryInfo(const DescribeSummaryInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4695,6 +4983,42 @@ SasClient::DescribeWebLockConfigListOutcomeCallable SasClient::describeWebLockCo
return task->get_future();
}
SasClient::ExecStrategyOutcome SasClient::execStrategy(const ExecStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ExecStrategyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ExecStrategyOutcome(ExecStrategyResult(outcome.result()));
else
return ExecStrategyOutcome(outcome.error());
}
void SasClient::execStrategyAsync(const ExecStrategyRequest& request, const ExecStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, execStrategy(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ExecStrategyOutcomeCallable SasClient::execStrategyCallable(const ExecStrategyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ExecStrategyOutcome()>>(
[this, request]()
{
return this->execStrategy(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ExportRecordOutcome SasClient::exportRecord(const ExportRecordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4875,6 +5199,78 @@ SasClient::GetIncIOCsOutcomeCallable SasClient::getIncIOCsCallable(const GetIncI
return task->get_future();
}
SasClient::GetLocalInstallScriptOutcome SasClient::getLocalInstallScript(const GetLocalInstallScriptRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetLocalInstallScriptOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetLocalInstallScriptOutcome(GetLocalInstallScriptResult(outcome.result()));
else
return GetLocalInstallScriptOutcome(outcome.error());
}
void SasClient::getLocalInstallScriptAsync(const GetLocalInstallScriptRequest& request, const GetLocalInstallScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getLocalInstallScript(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::GetLocalInstallScriptOutcomeCallable SasClient::getLocalInstallScriptCallable(const GetLocalInstallScriptRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetLocalInstallScriptOutcome()>>(
[this, request]()
{
return this->getLocalInstallScript(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::GetLocalUninstallScriptOutcome SasClient::getLocalUninstallScript(const GetLocalUninstallScriptRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetLocalUninstallScriptOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetLocalUninstallScriptOutcome(GetLocalUninstallScriptResult(outcome.result()));
else
return GetLocalUninstallScriptOutcome(outcome.error());
}
void SasClient::getLocalUninstallScriptAsync(const GetLocalUninstallScriptRequest& request, const GetLocalUninstallScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getLocalUninstallScript(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::GetLocalUninstallScriptOutcomeCallable SasClient::getLocalUninstallScriptCallable(const GetLocalUninstallScriptRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetLocalUninstallScriptOutcome()>>(
[this, request]()
{
return this->getLocalUninstallScript(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::GetSuspiciousStatisticsOutcome SasClient::getSuspiciousStatistics(const GetSuspiciousStatisticsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5739,6 +6135,78 @@ SasClient::ModifyStartVulScanOutcomeCallable SasClient::modifyStartVulScanCallab
return task->get_future();
}
SasClient::ModifyStrategyOutcome SasClient::modifyStrategy(const ModifyStrategyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyStrategyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyStrategyOutcome(ModifyStrategyResult(outcome.result()));
else
return ModifyStrategyOutcome(outcome.error());
}
void SasClient::modifyStrategyAsync(const ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyStrategy(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ModifyStrategyOutcomeCallable SasClient::modifyStrategyCallable(const ModifyStrategyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyStrategyOutcome()>>(
[this, request]()
{
return this->modifyStrategy(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ModifyStrategyTargetOutcome SasClient::modifyStrategyTarget(const ModifyStrategyTargetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyStrategyTargetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyStrategyTargetOutcome(ModifyStrategyTargetResult(outcome.result()));
else
return ModifyStrategyTargetOutcome(outcome.error());
}
void SasClient::modifyStrategyTargetAsync(const ModifyStrategyTargetRequest& request, const ModifyStrategyTargetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyStrategyTarget(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::ModifyStrategyTargetOutcomeCallable SasClient::modifyStrategyTargetCallable(const ModifyStrategyTargetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyStrategyTargetOutcome()>>(
[this, request]()
{
return this->modifyStrategyTarget(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::ModifyTagWithUuidOutcome SasClient::modifyTagWithUuid(const ModifyTagWithUuidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/CreateAssetRequest.h>
using AlibabaCloud::Sas::Model::CreateAssetRequest;
CreateAssetRequest::CreateAssetRequest() :
RpcServiceRequest("sas", "2018-12-03", "CreateAsset")
{
setMethod(HttpRequest::Method::Post);
}
CreateAssetRequest::~CreateAssetRequest()
{}
std::string CreateAssetRequest::getInternetIp()const
{
return internetIp_;
}
void CreateAssetRequest::setInternetIp(const std::string& internetIp)
{
internetIp_ = internetIp;
setParameter("InternetIp", internetIp);
}
std::string CreateAssetRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateAssetRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateAssetRequest::getOsName()const
{
return osName_;
}
void CreateAssetRequest::setOsName(const std::string& osName)
{
osName_ = osName;
setParameter("OsName", osName);
}
std::string CreateAssetRequest::getOs()const
{
return os_;
}
void CreateAssetRequest::setOs(const std::string& os)
{
os_ = os;
setParameter("Os", os);
}
std::string CreateAssetRequest::getInstanceName()const
{
return instanceName_;
}
void CreateAssetRequest::setInstanceName(const std::string& instanceName)
{
instanceName_ = instanceName;
setParameter("InstanceName", instanceName);
}
std::string CreateAssetRequest::getIntranetIp()const
{
return intranetIp_;
}
void CreateAssetRequest::setIntranetIp(const std::string& intranetIp)
{
intranetIp_ = intranetIp;
setParameter("IntranetIp", intranetIp);
}
std::string CreateAssetRequest::getStatus()const
{
return status_;
}
void CreateAssetRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/CreateAssetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CreateAssetResult::CreateAssetResult() :
ServiceResult()
{}
CreateAssetResult::CreateAssetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAssetResult::~CreateAssetResult()
{}
void CreateAssetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Uuid"].isNull())
uuid_ = value["Uuid"].asString();
}
std::string CreateAssetResult::getUuid()const
{
return uuid_;
}

View File

@@ -84,6 +84,17 @@ void CreateBackupPolicyRequest::setPolicyVersion(const std::string& policyVersio
setParameter("PolicyVersion", policyVersion);
}
std::string CreateBackupPolicyRequest::getPolicyRegionId()const
{
return policyRegionId_;
}
void CreateBackupPolicyRequest::setPolicyRegionId(const std::string& policyRegionId)
{
policyRegionId_ = policyRegionId;
setParameter("PolicyRegionId", policyRegionId);
}
std::string CreateBackupPolicyRequest::getName()const
{
return name_;
@@ -95,14 +106,3 @@ void CreateBackupPolicyRequest::setName(const std::string& name)
setParameter("Name", name);
}
std::string CreateBackupPolicyRequest::getStatus()const
{
return status_;
}
void CreateBackupPolicyRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -49,6 +49,17 @@ void CreateRestoreJobRequest::setSnapshotId(const std::string& snapshotId)
setParameter("SnapshotId", snapshotId);
}
std::string CreateRestoreJobRequest::getVaultId()const
{
return vaultId_;
}
void CreateRestoreJobRequest::setVaultId(const std::string& vaultId)
{
vaultId_ = vaultId;
setParameter("VaultId", vaultId);
}
std::string CreateRestoreJobRequest::getUuid()const
{
return uuid_;
@@ -82,6 +93,17 @@ void CreateRestoreJobRequest::setSourceIp(const std::string& sourceIp)
setParameter("SourceIp", sourceIp);
}
std::string CreateRestoreJobRequest::getSourceType()const
{
return sourceType_;
}
void CreateRestoreJobRequest::setSourceType(const std::string& sourceType)
{
sourceType_ = sourceType;
setParameter("SourceType", sourceType);
}
std::string CreateRestoreJobRequest::getSnapshotVersion()const
{
return snapshotVersion_;
@@ -93,17 +115,6 @@ void CreateRestoreJobRequest::setSnapshotVersion(const std::string& snapshotVers
setParameter("SnapshotVersion", snapshotVersion);
}
std::string CreateRestoreJobRequest::getPolicyVersion()const
{
return policyVersion_;
}
void CreateRestoreJobRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string CreateRestoreJobRequest::getIncludes()const
{
return includes_;
@@ -126,14 +137,3 @@ void CreateRestoreJobRequest::setTarget(const std::string& target)
setParameter("Target", target);
}
std::string CreateRestoreJobRequest::getInstanceId()const
{
return instanceId_;
}
void CreateRestoreJobRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DeleteAssetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DeleteAssetResult::DeleteAssetResult() :
ServiceResult()
{}
DeleteAssetResult::DeleteAssetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAssetResult::~DeleteAssetResult()
{}
void DeleteAssetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -38,17 +38,6 @@ void DeleteBackupPolicyMachineRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBackupPolicyMachineRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DeleteBackupPolicyMachineRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DeleteBackupPolicyMachineRequest::getUuid()const
{
return uuid_;
@@ -95,3 +84,14 @@ void DeleteBackupPolicyMachineRequest::setUuidList(const std::vector<std::string
}
}
std::string DeleteBackupPolicyMachineRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DeleteBackupPolicyMachineRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}

View File

@@ -38,17 +38,6 @@ void DeleteBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBackupPolicyRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DeleteBackupPolicyRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DeleteBackupPolicyRequest::getSourceIp()const
{
return sourceIp_;
@@ -71,3 +60,14 @@ void DeleteBackupPolicyRequest::setId(long id)
setParameter("Id", std::to_string(id));
}
std::string DeleteBackupPolicyRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DeleteBackupPolicyRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}

View File

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

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DeleteStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DeleteStrategyResult::DeleteStrategyResult() :
ServiceResult()
{}
DeleteStrategyResult::DeleteStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteStrategyResult::~DeleteStrategyResult()
{}
void DeleteStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -90,6 +90,12 @@ void DescribeAssetDetailByUuidResult::parse(const std::string &payload)
assetDetail_.instanceStatus = assetDetailNode["InstanceStatus"].asString();
if(!assetDetailNode["CreateTime"].isNull())
assetDetail_.createTime = std::stol(assetDetailNode["CreateTime"].asString());
if(!assetDetailNode["AuthVersion"].isNull())
assetDetail_.authVersion = std::stoi(assetDetailNode["AuthVersion"].asString());
if(!assetDetailNode["Bind"].isNull())
assetDetail_.bind = assetDetailNode["Bind"].asString() == "true";
if(!assetDetailNode["AuthModifyTime"].isNull())
assetDetail_.authModifyTime = std::stol(assetDetailNode["AuthModifyTime"].asString());
auto allIpList = assetDetailNode["IpList"]["Ip"];
for (auto value : allIpList)
assetDetail_.ipList.push_back(value.asString());

View File

@@ -71,6 +71,8 @@ void DescribeAssetDetailByUuidsResult::parse(const std::string &payload)
assetListObject.vpcInstanceId = valueAssetListAsset["VpcInstanceId"].asString();
if(!valueAssetListAsset["OsName"].isNull())
assetListObject.osName = valueAssetListAsset["OsName"].asString();
if(!valueAssetListAsset["Flag"].isNull())
assetListObject.flag = std::stoi(valueAssetListAsset["Flag"].asString());
assetList_.push_back(assetListObject);
}

View File

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

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeBackupClientsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBackupClientsResult::DescribeBackupClientsResult() :
ServiceResult()
{}
DescribeBackupClientsResult::DescribeBackupClientsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupClientsResult::~DescribeBackupClientsResult()
{}
void DescribeBackupClientsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allClientsNode = value["Clients"]["BackupMachineDTO"];
for (auto valueClientsBackupMachineDTO : allClientsNode)
{
BackupMachineDTO clientsObject;
if(!valueClientsBackupMachineDTO["Uuid"].isNull())
clientsObject.uuid = valueClientsBackupMachineDTO["Uuid"].asString();
if(!valueClientsBackupMachineDTO["InstanceId"].isNull())
clientsObject.instanceId = valueClientsBackupMachineDTO["InstanceId"].asString();
if(!valueClientsBackupMachineDTO["ClientId"].isNull())
clientsObject.clientId = valueClientsBackupMachineDTO["ClientId"].asString();
if(!valueClientsBackupMachineDTO["ClientStatus"].isNull())
clientsObject.clientStatus = valueClientsBackupMachineDTO["ClientStatus"].asString();
clients_.push_back(clientsObject);
}
}
std::vector<DescribeBackupClientsResult::BackupMachineDTO> DescribeBackupClientsResult::getClients()const
{
return clients_;
}

View File

@@ -38,17 +38,6 @@ void DescribeBackupDirsRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeBackupDirsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeBackupDirsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeBackupDirsRequest::getUuid()const
{
return uuid_;
@@ -93,3 +82,14 @@ void DescribeBackupDirsRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeBackupDirsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeBackupDirsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}

View File

@@ -38,17 +38,6 @@ void DescribeBackupMachineStatusRequest::setResourceOwnerId(long resourceOwnerId
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBackupMachineStatusRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DescribeBackupMachineStatusRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DescribeBackupMachineStatusRequest::getUuid()const
{
return uuid_;
@@ -82,3 +71,14 @@ void DescribeBackupMachineStatusRequest::setPolicyId(long policyId)
setParameter("PolicyId", std::to_string(policyId));
}
std::string DescribeBackupMachineStatusRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DescribeBackupMachineStatusRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}

View File

@@ -38,17 +38,6 @@ void DescribeBackupPoliciesRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeBackupPoliciesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeBackupPoliciesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeBackupPoliciesRequest::getSourceIp()const
{
return sourceIp_;
@@ -60,15 +49,15 @@ void DescribeBackupPoliciesRequest::setSourceIp(const std::string& sourceIp)
setParameter("SourceIp", sourceIp);
}
std::string DescribeBackupPoliciesRequest::getName()const
std::string DescribeBackupPoliciesRequest::getMachineRemark()const
{
return name_;
return machineRemark_;
}
void DescribeBackupPoliciesRequest::setName(const std::string& name)
void DescribeBackupPoliciesRequest::setMachineRemark(const std::string& machineRemark)
{
name_ = name;
setParameter("Name", name);
machineRemark_ = machineRemark;
setParameter("MachineRemark", machineRemark);
}
int DescribeBackupPoliciesRequest::getPageSize()const
@@ -82,6 +71,28 @@ void DescribeBackupPoliciesRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeBackupPoliciesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeBackupPoliciesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeBackupPoliciesRequest::getName()const
{
return name_;
}
void DescribeBackupPoliciesRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribeBackupPoliciesRequest::getStatus()const
{
return status_;

View File

@@ -53,6 +53,8 @@ void DescribeBackupPoliciesResult::parse(const std::string &payload)
policiesObject.policy = valuePoliciesBackupPolicy["Policy"].asString();
if(!valuePoliciesBackupPolicy["PolicyVersion"].isNull())
policiesObject.policyVersion = valuePoliciesBackupPolicy["PolicyVersion"].asString();
if(!valuePoliciesBackupPolicy["PolicyRegionId"].isNull())
policiesObject.policyRegionId = valuePoliciesBackupPolicy["PolicyRegionId"].asString();
if(!valuePoliciesBackupPolicy["ClientStatus"].isNull())
policiesObject.clientStatus = valuePoliciesBackupPolicy["ClientStatus"].asString();
if(!valuePoliciesBackupPolicy["ClientErrorCount"].isNull())
@@ -64,6 +66,9 @@ void DescribeBackupPoliciesResult::parse(const std::string &payload)
auto allUuidList = value["UuidList"]["StringItem"];
for (auto value : allUuidList)
policiesObject.uuidList.push_back(value.asString());
auto allRemarkedUuidList = value["RemarkedUuidList"]["StringItem"];
for (auto value : allRemarkedUuidList)
policiesObject.remarkedUuidList.push_back(value.asString());
auto allClientErrorUuidList = value["ClientErrorUuidList"]["StringItem"];
for (auto value : allClientErrorUuidList)
policiesObject.clientErrorUuidList.push_back(value.asString());

View File

@@ -38,17 +38,6 @@ void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBackupPolicyRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DescribeBackupPolicyRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DescribeBackupPolicyRequest::getSourceIp()const
{
return sourceIp_;
@@ -71,3 +60,14 @@ void DescribeBackupPolicyRequest::setId(long id)
setParameter("Id", std::to_string(id));
}
std::string DescribeBackupPolicyRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DescribeBackupPolicyRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}

View File

@@ -46,6 +46,10 @@ void DescribeBackupPolicyResult::parse(const std::string &payload)
backupPolicyDetail_.name = backupPolicyDetailNode["Name"].asString();
if(!backupPolicyDetailNode["Policy"].isNull())
backupPolicyDetail_.policy = backupPolicyDetailNode["Policy"].asString();
if(!backupPolicyDetailNode["PolicyVersion"].isNull())
backupPolicyDetail_.policyVersion = backupPolicyDetailNode["PolicyVersion"].asString();
if(!backupPolicyDetailNode["RegionId"].isNull())
backupPolicyDetail_.regionId = backupPolicyDetailNode["RegionId"].asString();
if(!backupPolicyDetailNode["Status"].isNull())
backupPolicyDetail_.status = backupPolicyDetailNode["Status"].asString();
if(!backupPolicyDetailNode["ClientStatus"].isNull())

View File

@@ -111,6 +111,20 @@ void DescribeCloudCenterInstancesResult::parse(const std::string &payload)
instancesObject.exposedStatus = std::stoi(valueInstancesInstance["ExposedStatus"].asString());
if(!valueInstancesInstance["AutoSnapshotsLevel"].isNull())
instancesObject.autoSnapshotsLevel = std::stoi(valueInstancesInstance["AutoSnapshotsLevel"].asString());
if(!valueInstancesInstance["ExposedCount"].isNull())
instancesObject.exposedCount = std::stoi(valueInstancesInstance["ExposedCount"].asString());
if(!valueInstancesInstance["Vendor"].isNull())
instancesObject.vendor = std::stoi(valueInstancesInstance["Vendor"].asString());
if(!valueInstancesInstance["VendorName"].isNull())
instancesObject.vendorName = valueInstancesInstance["VendorName"].asString();
if(!valueInstancesInstance["Cores"].isNull())
instancesObject.cores = std::stoi(valueInstancesInstance["Cores"].asString());
if(!valueInstancesInstance["AuthVersion"].isNull())
instancesObject.authVersion = std::stoi(valueInstancesInstance["AuthVersion"].asString());
if(!valueInstancesInstance["Bind"].isNull())
instancesObject.bind = valueInstancesInstance["Bind"].asString() == "true";
if(!valueInstancesInstance["AuthModifyTime"].isNull())
instancesObject.authModifyTime = std::stol(valueInstancesInstance["AuthModifyTime"].asString());
instances_.push_back(instancesObject);
}
auto pageInfoNode = value["PageInfo"];

View File

@@ -60,6 +60,17 @@ void DescribeEmgVulItemRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeEmgVulItemRequest::getCheckStatus()const
{
return checkStatus_;
}
void DescribeEmgVulItemRequest::setCheckStatus(const std::string& checkStatus)
{
checkStatus_ = checkStatus;
setParameter("CheckStatus", checkStatus);
}
std::string DescribeEmgVulItemRequest::getLang()const
{
return lang_;

View File

@@ -38,17 +38,6 @@ void DescribeExcludeSystemPathRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeExcludeSystemPathRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeExcludeSystemPathRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeExcludeSystemPathRequest::getSourceIp()const
{
return sourceIp_;
@@ -71,3 +60,14 @@ void DescribeExcludeSystemPathRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeExcludeSystemPathRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeExcludeSystemPathRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}

View File

@@ -66,6 +66,14 @@ void DescribeFieldStatisticsResult::parse(const std::string &payload)
groupedFields_.testAssetCount = std::stoi(groupedFieldsNode["TestAssetCount"].asString());
if(!groupedFieldsNode["ExposedInstanceCount"].isNull())
groupedFields_.exposedInstanceCount = std::stoi(groupedFieldsNode["ExposedInstanceCount"].asString());
if(!groupedFieldsNode["AliYunInstanceCount"].isNull())
groupedFields_.aliYunInstanceCount = std::stoi(groupedFieldsNode["AliYunInstanceCount"].asString());
if(!groupedFieldsNode["IdcInstanceCount"].isNull())
groupedFields_.idcInstanceCount = std::stoi(groupedFieldsNode["IdcInstanceCount"].asString());
if(!groupedFieldsNode["TencentInstanceCount"].isNull())
groupedFields_.tencentInstanceCount = std::stoi(groupedFieldsNode["TencentInstanceCount"].asString());
if(!groupedFieldsNode["InstanceSyncTaskCount"].isNull())
groupedFields_.instanceSyncTaskCount = std::stoi(groupedFieldsNode["InstanceSyncTaskCount"].asString());
}

View File

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

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeImageScanAuthCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeImageScanAuthCountResult::DescribeImageScanAuthCountResult() :
ServiceResult()
{}
DescribeImageScanAuthCountResult::DescribeImageScanAuthCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeImageScanAuthCountResult::~DescribeImageScanAuthCountResult()
{}
void DescribeImageScanAuthCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto imageScanNode = value["ImageScan"];
if(!imageScanNode["InstanceId"].isNull())
imageScan_.instanceId = imageScanNode["InstanceId"].asString();
if(!imageScanNode["ImageScanCapacity"].isNull())
imageScan_.imageScanCapacity = std::stol(imageScanNode["ImageScanCapacity"].asString());
if(!imageScanNode["ScanCount"].isNull())
imageScan_.scanCount = std::stol(imageScanNode["ScanCount"].asString());
}
DescribeImageScanAuthCountResult::ImageScan DescribeImageScanAuthCountResult::getImageScan()const
{
return imageScan_;
}

View File

@@ -38,17 +38,6 @@ void DescribeRestoreJobsRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeRestoreJobsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeRestoreJobsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeRestoreJobsRequest::getSourceIp()const
{
return sourceIp_;
@@ -82,6 +71,17 @@ void DescribeRestoreJobsRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeRestoreJobsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeRestoreJobsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeRestoreJobsRequest::getStatus()const
{
return status_;

View File

@@ -137,3 +137,14 @@ void DescribeSnapshotsRequest::setMachineRegion(const std::string& machineRegion
setParameter("MachineRegion", machineRegion);
}
std::string DescribeSnapshotsRequest::getIsAliYunEcs()const
{
return isAliYunEcs_;
}
void DescribeSnapshotsRequest::setIsAliYunEcs(const std::string& isAliYunEcs)
{
isAliYunEcs_ = isAliYunEcs;
setParameter("IsAliYunEcs", isAliYunEcs);
}

View File

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

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeStrategyProcessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeStrategyProcessResult::DescribeStrategyProcessResult() :
ServiceResult()
{}
DescribeStrategyProcessResult::DescribeStrategyProcessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStrategyProcessResult::~DescribeStrategyProcessResult()
{}
void DescribeStrategyProcessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["StrategyId"].isNull())
strategyId_ = std::stol(value["StrategyId"].asString());
if(!value["ProcessRate"].isNull())
processRate_ = std::stoi(value["ProcessRate"].asString());
if(!value["ExecStatus"].isNull())
execStatus_ = std::stoi(value["ExecStatus"].asString());
if(!value["PassRate"].isNull())
passRate_ = value["PassRate"].asString();
}
int DescribeStrategyProcessResult::getExecStatus()const
{
return execStatus_;
}
std::string DescribeStrategyProcessResult::getPassRate()const
{
return passRate_;
}
int DescribeStrategyProcessResult::getProcessRate()const
{
return processRate_;
}
long DescribeStrategyProcessResult::getStrategyId()const
{
return strategyId_;
}

View File

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

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeStrategyResult::DescribeStrategyResult() :
ServiceResult()
{}
DescribeStrategyResult::DescribeStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStrategyResult::~DescribeStrategyResult()
{}
void DescribeStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStrategiesNode = value["Strategies"]["Strategy"];
for (auto valueStrategiesStrategy : allStrategiesNode)
{
Strategy strategiesObject;
if(!valueStrategiesStrategy["CycleDays"].isNull())
strategiesObject.cycleDays = std::stoi(valueStrategiesStrategy["CycleDays"].asString());
if(!valueStrategiesStrategy["Id"].isNull())
strategiesObject.id = std::stoi(valueStrategiesStrategy["Id"].asString());
if(!valueStrategiesStrategy["CycleStartTime"].isNull())
strategiesObject.cycleStartTime = std::stoi(valueStrategiesStrategy["CycleStartTime"].asString());
if(!valueStrategiesStrategy["Type"].isNull())
strategiesObject.type = std::stoi(valueStrategiesStrategy["Type"].asString());
if(!valueStrategiesStrategy["Name"].isNull())
strategiesObject.name = valueStrategiesStrategy["Name"].asString();
if(!valueStrategiesStrategy["RiskCount"].isNull())
strategiesObject.riskCount = std::stoi(valueStrategiesStrategy["RiskCount"].asString());
if(!valueStrategiesStrategy["EcsCount"].isNull())
strategiesObject.ecsCount = std::stoi(valueStrategiesStrategy["EcsCount"].asString());
if(!valueStrategiesStrategy["ExecStatus"].isNull())
strategiesObject.execStatus = std::stoi(valueStrategiesStrategy["ExecStatus"].asString());
if(!valueStrategiesStrategy["ProcessRate"].isNull())
strategiesObject.processRate = std::stoi(valueStrategiesStrategy["ProcessRate"].asString());
if(!valueStrategiesStrategy["PassRate"].isNull())
strategiesObject.passRate = std::stoi(valueStrategiesStrategy["PassRate"].asString());
if(!valueStrategiesStrategy["AuthVersionList"].isNull())
strategiesObject.authVersionList = valueStrategiesStrategy["AuthVersionList"].asString();
auto allConfigTargetsNode = valueStrategiesStrategy["ConfigTargets"]["ConfigTarget"];
for (auto valueStrategiesStrategyConfigTargetsConfigTarget : allConfigTargetsNode)
{
Strategy::ConfigTarget configTargetsObject;
if(!valueStrategiesStrategyConfigTargetsConfigTarget["Flag"].isNull())
configTargetsObject.flag = valueStrategiesStrategyConfigTargetsConfigTarget["Flag"].asString();
if(!valueStrategiesStrategyConfigTargetsConfigTarget["TargetType"].isNull())
configTargetsObject.targetType = valueStrategiesStrategyConfigTargetsConfigTarget["TargetType"].asString();
if(!valueStrategiesStrategyConfigTargetsConfigTarget["Target"].isNull())
configTargetsObject.target = valueStrategiesStrategyConfigTargetsConfigTarget["Target"].asString();
strategiesObject.configTargets.push_back(configTargetsObject);
}
strategies_.push_back(strategiesObject);
}
}
std::vector<DescribeStrategyResult::Strategy> DescribeStrategyResult::getStrategies()const
{
return strategies_;
}

View File

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

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeStrategyTargetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeStrategyTargetResult::DescribeStrategyTargetResult() :
ServiceResult()
{}
DescribeStrategyTargetResult::DescribeStrategyTargetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStrategyTargetResult::~DescribeStrategyTargetResult()
{}
void DescribeStrategyTargetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStrategyTargetsNode = value["StrategyTargets"]["StrategyTarget"];
for (auto valueStrategyTargetsStrategyTarget : allStrategyTargetsNode)
{
StrategyTarget strategyTargetsObject;
if(!valueStrategyTargetsStrategyTarget["Flag"].isNull())
strategyTargetsObject.flag = valueStrategyTargetsStrategyTarget["Flag"].asString();
if(!valueStrategyTargetsStrategyTarget["Target"].isNull())
strategyTargetsObject.target = valueStrategyTargetsStrategyTarget["Target"].asString();
if(!valueStrategyTargetsStrategyTarget["TargetType"].isNull())
strategyTargetsObject.targetType = valueStrategyTargetsStrategyTarget["TargetType"].asString();
if(!valueStrategyTargetsStrategyTarget["BindUuidCount"].isNull())
strategyTargetsObject.bindUuidCount = std::stoi(valueStrategyTargetsStrategyTarget["BindUuidCount"].asString());
strategyTargets_.push_back(strategyTargetsObject);
}
}
std::vector<DescribeStrategyTargetResult::StrategyTarget> DescribeStrategyTargetResult::getStrategyTargets()const
{
return strategyTargets_;
}

View File

@@ -38,17 +38,6 @@ void DescribeUserBackupMachinesRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeUserBackupMachinesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeUserBackupMachinesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeUserBackupMachinesRequest::getSourceIp()const
{
return sourceIp_;
@@ -71,3 +60,14 @@ void DescribeUserBackupMachinesRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeUserBackupMachinesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeUserBackupMachinesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}

View File

@@ -77,6 +77,10 @@ void DescribeVersionConfigResult::parse(const std::string &payload)
appWhiteList_ = std::stoi(value["AppWhiteList"].asString());
if(!value["SlsCapacity"].isNull())
slsCapacity_ = std::stol(value["SlsCapacity"].asString());
if(!value["GmtCreate"].isNull())
gmtCreate_ = std::stol(value["GmtCreate"].asString());
if(!value["LastInstanceReleaseTime"].isNull())
lastInstanceReleaseTime_ = std::stol(value["LastInstanceReleaseTime"].asString());
if(!value["IsOverBalance"].isNull())
isOverBalance_ = value["IsOverBalance"].asString() == "true";
if(!value["LastTrailEndTime"].isNull())
@@ -89,6 +93,14 @@ void DescribeVersionConfigResult::parse(const std::string &payload)
vmCores_ = std::stoi(value["VmCores"].asString());
if(!value["IsPaidUser"].isNull())
isPaidUser_ = value["IsPaidUser"].asString() == "true";
if(!value["HighestVersion"].isNull())
highestVersion_ = std::stoi(value["HighestVersion"].asString());
if(!value["MVAuthCount"].isNull())
mVAuthCount_ = std::stoi(value["MVAuthCount"].asString());
if(!value["MVUnusedAuthCount"].isNull())
mVUnusedAuthCount_ = std::stoi(value["MVUnusedAuthCount"].asString());
if(!value["AllowPartialBuy"].isNull())
allowPartialBuy_ = std::stoi(value["AllowPartialBuy"].asString());
}
@@ -127,6 +139,11 @@ int DescribeVersionConfigResult::getAvdsFlag()const
return avdsFlag_;
}
int DescribeVersionConfigResult::getHighestVersion()const
{
return highestVersion_;
}
long DescribeVersionConfigResult::getWebLockAuthCount()const
{
return webLockAuthCount_;
@@ -147,6 +164,11 @@ int DescribeVersionConfigResult::getUserDefinedAlarms()const
return userDefinedAlarms_;
}
int DescribeVersionConfigResult::getAllowPartialBuy()const
{
return allowPartialBuy_;
}
int DescribeVersionConfigResult::getWebLock()const
{
return webLock_;
@@ -177,6 +199,11 @@ std::string DescribeVersionConfigResult::getInstanceId()const
return instanceId_;
}
long DescribeVersionConfigResult::getLastInstanceReleaseTime()const
{
return lastInstanceReleaseTime_;
}
long DescribeVersionConfigResult::getCreateTime()const
{
return createTime_;
@@ -202,6 +229,16 @@ int DescribeVersionConfigResult::getFlag()const
return flag_;
}
int DescribeVersionConfigResult::getMVAuthCount()const
{
return mVAuthCount_;
}
long DescribeVersionConfigResult::getGmtCreate()const
{
return gmtCreate_;
}
long DescribeVersionConfigResult::getReleaseTime()const
{
return releaseTime_;
@@ -212,6 +249,11 @@ int DescribeVersionConfigResult::getIsTrialVersion()const
return isTrialVersion_;
}
int DescribeVersionConfigResult::getMVUnusedAuthCount()const
{
return mVUnusedAuthCount_;
}
int DescribeVersionConfigResult::getAppWhiteList()const
{
return appWhiteList_;

View File

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

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/ExecStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
ExecStrategyResult::ExecStrategyResult() :
ServiceResult()
{}
ExecStrategyResult::ExecStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExecStrategyResult::~ExecStrategyResult()
{}
void ExecStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetLocalInstallScriptRequest.h>
using AlibabaCloud::Sas::Model::GetLocalInstallScriptRequest;
GetLocalInstallScriptRequest::GetLocalInstallScriptRequest() :
RpcServiceRequest("sas", "2018-12-03", "GetLocalInstallScript")
{
setMethod(HttpRequest::Method::Post);
}
GetLocalInstallScriptRequest::~GetLocalInstallScriptRequest()
{}
std::string GetLocalInstallScriptRequest::getUuid()const
{
return uuid_;
}
void GetLocalInstallScriptRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string GetLocalInstallScriptRequest::getSourceIp()const
{
return sourceIp_;
}
void GetLocalInstallScriptRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
bool GetLocalInstallScriptRequest::getInternalNetwork()const
{
return internalNetwork_;
}
void GetLocalInstallScriptRequest::setInternalNetwork(bool internalNetwork)
{
internalNetwork_ = internalNetwork;
setParameter("InternalNetwork", internalNetwork ? "true" : "false");
}
std::string GetLocalInstallScriptRequest::getPlatformType()const
{
return platformType_;
}
void GetLocalInstallScriptRequest::setPlatformType(const std::string& platformType)
{
platformType_ = platformType;
setParameter("PlatformType", platformType);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetLocalInstallScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
GetLocalInstallScriptResult::GetLocalInstallScriptResult() :
ServiceResult()
{}
GetLocalInstallScriptResult::GetLocalInstallScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLocalInstallScriptResult::~GetLocalInstallScriptResult()
{}
void GetLocalInstallScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Script"].isNull())
script_ = value["Script"].asString();
}
std::string GetLocalInstallScriptResult::getScript()const
{
return script_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetLocalUninstallScriptRequest.h>
using AlibabaCloud::Sas::Model::GetLocalUninstallScriptRequest;
GetLocalUninstallScriptRequest::GetLocalUninstallScriptRequest() :
RpcServiceRequest("sas", "2018-12-03", "GetLocalUninstallScript")
{
setMethod(HttpRequest::Method::Post);
}
GetLocalUninstallScriptRequest::~GetLocalUninstallScriptRequest()
{}
std::string GetLocalUninstallScriptRequest::getUuid()const
{
return uuid_;
}
void GetLocalUninstallScriptRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string GetLocalUninstallScriptRequest::getSourceIp()const
{
return sourceIp_;
}
void GetLocalUninstallScriptRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
bool GetLocalUninstallScriptRequest::getInternalNetwork()const
{
return internalNetwork_;
}
void GetLocalUninstallScriptRequest::setInternalNetwork(bool internalNetwork)
{
internalNetwork_ = internalNetwork;
setParameter("InternalNetwork", internalNetwork ? "true" : "false");
}
std::string GetLocalUninstallScriptRequest::getPlatformType()const
{
return platformType_;
}
void GetLocalUninstallScriptRequest::setPlatformType(const std::string& platformType)
{
platformType_ = platformType;
setParameter("PlatformType", platformType);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/GetLocalUninstallScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
GetLocalUninstallScriptResult::GetLocalUninstallScriptResult() :
ServiceResult()
{}
GetLocalUninstallScriptResult::GetLocalUninstallScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetLocalUninstallScriptResult::~GetLocalUninstallScriptResult()
{}
void GetLocalUninstallScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Script"].isNull())
script_ = value["Script"].asString();
}
std::string GetLocalUninstallScriptResult::getScript()const
{
return script_;
}

View File

@@ -38,17 +38,6 @@ void InstallBackupClientRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string InstallBackupClientRequest::getPolicyVersion()const
{
return policyVersion_;
}
void InstallBackupClientRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string InstallBackupClientRequest::getUuid()const
{
return uuid_;
@@ -84,3 +73,14 @@ void InstallBackupClientRequest::setUuidList(const std::vector<std::string>& uui
}
}
std::string InstallBackupClientRequest::getPolicyVersion()const
{
return policyVersion_;
}
void InstallBackupClientRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}

View File

@@ -95,6 +95,17 @@ void ModifyBackupPolicyRequest::setPolicyVersion(const std::string& policyVersio
setParameter("PolicyVersion", policyVersion);
}
std::string ModifyBackupPolicyRequest::getPolicyRegionId()const
{
return policyRegionId_;
}
void ModifyBackupPolicyRequest::setPolicyRegionId(const std::string& policyRegionId)
{
policyRegionId_ = policyRegionId;
setParameter("PolicyRegionId", policyRegionId);
}
std::string ModifyBackupPolicyRequest::getName()const
{
return name_;

View File

@@ -38,17 +38,6 @@ void ModifyBackupPolicyStatusRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyBackupPolicyStatusRequest::getPolicyVersion()const
{
return policyVersion_;
}
void ModifyBackupPolicyStatusRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string ModifyBackupPolicyStatusRequest::getSourceIp()const
{
return sourceIp_;
@@ -71,6 +60,17 @@ void ModifyBackupPolicyStatusRequest::setId(long id)
setParameter("Id", std::to_string(id));
}
std::string ModifyBackupPolicyStatusRequest::getPolicyVersion()const
{
return policyVersion_;
}
void ModifyBackupPolicyStatusRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string ModifyBackupPolicyStatusRequest::getStatus()const
{
return status_;

Some files were not shown because too many files have changed in this diff Show More