From 0efc4956ec2796fc7b00bf9c2f1a25aac2a135c8 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 20 Jul 2023 10:26:07 +0000 Subject: [PATCH] Support rd sdk. --- VERSION | 2 +- sas/CMakeLists.txt | 68 ++ sas/include/alibabacloud/sas/SasClient.h | 136 ++++ .../sas/model/AddImageVulWhiteListRequest.h | 54 ++ .../sas/model/AddImageVulWhiteListResult.h | 59 ++ .../ChangeAssetRefreshTaskConfigRequest.h | 53 ++ .../ChangeAssetRefreshTaskConfigResult.h | 53 ++ .../sas/model/ChangeCheckConfigRequest.h | 20 + .../model/CreateAgentlessScanTaskRequest.h | 57 ++ .../sas/model/CreateAgentlessScanTaskResult.h | 49 ++ .../sas/model/CreateServiceTrailRequest.h | 45 ++ .../sas/model/CreateServiceTrailResult.h | 49 ++ .../model/DeleteBinarySecurityPolicyRequest.h | 48 ++ .../model/DeleteBinarySecurityPolicyResult.h | 49 ++ .../sas/model/DeleteServiceTrailRequest.h | 45 ++ .../sas/model/DeleteServiceTrailResult.h | 49 ++ .../model/DescribeAccessKeyLeakDetailResult.h | 4 + .../DescribeAlarmEventStackInfoRequest.h | 3 + .../model/DescribeAntiBruteForceRulesResult.h | 1 + .../model/DescribeAssetDetailByUuidsRequest.h | 3 + .../DescribeCloudCenterInstancesRequest.h | 12 +- .../DescribeCloudCenterInstancesResult.h | 1 + .../model/DescribeContainerInstancesResult.h | 2 + .../model/DescribeFieldStatisticsRequest.h | 9 +- .../model/DescribeGroupedInstancesResult.h | 1 + .../sas/model/DescribeGroupedVulRequest.h | 3 + .../model/DescribeImageVulWhiteListRequest.h | 51 ++ .../model/DescribeImageVulWhiteListResult.h | 79 +++ .../model/DescribeMonitorAccountsRequest.h | 45 ++ .../sas/model/DescribeMonitorAccountsResult.h | 51 ++ ...DescribeSecurityEventMarkMissListRequest.h | 57 ++ .../DescribeSecurityEventMarkMissListResult.h | 78 +++ .../model/DescribeSuspEventDetailRequest.h | 3 + .../sas/model/DescribeSuspEventsRequest.h | 3 + .../sas/model/DescribeUuidsByVulNamesResult.h | 2 + .../sas/model/DescribeVersionConfigResult.h | 8 + .../sas/model/DescribeVulDetailsRequest.h | 3 + .../sas/model/DescribeVulListRequest.h | 3 + .../sas/model/GetAgentlessTaskCountRequest.h | 42 ++ .../sas/model/GetAgentlessTaskCountResult.h | 65 ++ .../sas/model/GetCheckConfigResult.h | 17 +- .../model/GetClientRatioStatisticRequest.h | 51 ++ .../sas/model/GetClientRatioStatisticResult.h | 113 ++++ .../sas/model/GetServiceTrailRequest.h | 45 ++ .../sas/model/GetServiceTrailResult.h | 57 ++ .../sas/model/HandleSecurityEventsRequest.h | 3 + .../HandleSimilarSecurityEventsRequest.h | 3 + .../sas/model/ListAgentlessRegionRequest.h | 42 ++ .../sas/model/ListAgentlessRegionResult.h | 51 ++ .../ListAgentlessRelateMaliciousRequest.h | 51 ++ .../ListAgentlessRelateMaliciousResult.h | 70 ++ .../sas/model/ListAgentlessRiskUuidRequest.h | 63 ++ .../sas/model/ListAgentlessRiskUuidResult.h | 72 +++ .../sas/model/ListAgentlessTaskRequest.h | 87 +++ .../sas/model/ListAgentlessTaskResult.h | 75 +++ .../model/ListAssetRefreshTaskConfigRequest.h | 42 ++ .../model/ListAssetRefreshTaskConfigResult.h | 57 ++ .../sas/model/ListCheckInstanceResultResult.h | 1 + .../sas/model/ListCheckResultRequest.h | 3 + .../sas/model/ListCheckResultResult.h | 7 +- .../OperationCancelIgnoreSuspEventRequest.h | 3 + .../sas/model/SubmitCheckRequest.h | 3 + sas/src/SasClient.cc | 612 ++++++++++++++++++ sas/src/model/AddImageVulWhiteListRequest.cc | 72 +++ sas/src/model/AddImageVulWhiteListResult.cc | 79 +++ .../ChangeAssetRefreshTaskConfigRequest.cc | 60 ++ .../ChangeAssetRefreshTaskConfigResult.cc | 58 ++ sas/src/model/ChangeCheckConfigRequest.cc | 42 ++ .../model/CreateAgentlessScanTaskRequest.cc | 80 +++ .../model/CreateAgentlessScanTaskResult.cc | 44 ++ sas/src/model/CreateServiceTrailRequest.cc | 45 ++ sas/src/model/CreateServiceTrailResult.cc | 44 ++ .../DeleteBinarySecurityPolicyRequest.cc | 54 ++ .../model/DeleteBinarySecurityPolicyResult.cc | 44 ++ sas/src/model/DeleteServiceTrailRequest.cc | 45 ++ sas/src/model/DeleteServiceTrailResult.cc | 44 ++ .../DescribeAccessKeyLeakDetailResult.cc | 14 + .../DescribeAlarmEventStackInfoRequest.cc | 9 + .../DescribeAntiBruteForceRulesResult.cc | 2 + .../DescribeAssetDetailByUuidsRequest.cc | 9 + .../DescribeCloudCenterInstancesRequest.cc | 24 +- .../DescribeCloudCenterInstancesResult.cc | 2 + .../model/DescribeContainerInstancesResult.cc | 4 + .../model/DescribeFieldStatisticsRequest.cc | 27 +- .../model/DescribeGroupedInstancesResult.cc | 2 + sas/src/model/DescribeGroupedVulRequest.cc | 9 + .../model/DescribeImageVulWhiteListRequest.cc | 63 ++ .../model/DescribeImageVulWhiteListResult.cc | 116 ++++ .../model/DescribeMonitorAccountsRequest.cc | 45 ++ .../model/DescribeMonitorAccountsResult.cc | 52 ++ ...escribeSecurityEventMarkMissListRequest.cc | 81 +++ ...DescribeSecurityEventMarkMissListResult.cc | 99 +++ .../model/DescribeSuspEventDetailRequest.cc | 9 + sas/src/model/DescribeSuspEventsRequest.cc | 9 + .../model/DescribeUuidsByVulNamesResult.cc | 7 + sas/src/model/DescribeVersionConfigResult.cc | 28 + sas/src/model/DescribeVulDetailsRequest.cc | 9 + sas/src/model/DescribeVulListRequest.cc | 9 + sas/src/model/GetAgentlessTaskCountRequest.cc | 36 ++ sas/src/model/GetAgentlessTaskCountResult.cc | 100 +++ sas/src/model/GetCheckConfigResult.cc | 55 +- .../model/GetClientRatioStatisticRequest.cc | 65 ++ .../model/GetClientRatioStatisticResult.cc | 152 +++++ sas/src/model/GetServiceTrailRequest.cc | 45 ++ sas/src/model/GetServiceTrailResult.cc | 56 ++ sas/src/model/HandleSecurityEventsRequest.cc | 9 + .../HandleSimilarSecurityEventsRequest.cc | 9 + sas/src/model/ListAgentlessRegionRequest.cc | 36 ++ sas/src/model/ListAgentlessRegionResult.cc | 52 ++ .../ListAgentlessRelateMaliciousRequest.cc | 63 ++ .../ListAgentlessRelateMaliciousResult.cc | 83 +++ sas/src/model/ListAgentlessRiskUuidRequest.cc | 99 +++ sas/src/model/ListAgentlessRiskUuidResult.cc | 87 +++ sas/src/model/ListAgentlessTaskRequest.cc | 171 +++++ sas/src/model/ListAgentlessTaskResult.cc | 93 +++ .../ListAssetRefreshTaskConfigRequest.cc | 36 ++ .../model/ListAssetRefreshTaskConfigResult.cc | 61 ++ .../model/ListCheckInstanceResultResult.cc | 2 + sas/src/model/ListCheckResultRequest.cc | 9 + sas/src/model/ListCheckResultResult.cc | 2 + .../OperationCancelIgnoreSuspEventRequest.cc | 9 + sas/src/model/SubmitCheckRequest.cc | 9 + 122 files changed, 5534 insertions(+), 38 deletions(-) create mode 100644 sas/include/alibabacloud/sas/model/AddImageVulWhiteListRequest.h create mode 100644 sas/include/alibabacloud/sas/model/AddImageVulWhiteListResult.h create mode 100644 sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigResult.h create mode 100644 sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskRequest.h create mode 100644 sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskResult.h create mode 100644 sas/include/alibabacloud/sas/model/CreateServiceTrailRequest.h create mode 100644 sas/include/alibabacloud/sas/model/CreateServiceTrailResult.h create mode 100644 sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyResult.h create mode 100644 sas/include/alibabacloud/sas/model/DeleteServiceTrailRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DeleteServiceTrailResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeMonitorAccountsRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeMonitorAccountsResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetAgentlessTaskCountRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetAgentlessTaskCountResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetClientRatioStatisticRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetClientRatioStatisticResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetServiceTrailRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetServiceTrailResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessRegionRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessRegionResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessTaskRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListAgentlessTaskResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigResult.h create mode 100644 sas/src/model/AddImageVulWhiteListRequest.cc create mode 100644 sas/src/model/AddImageVulWhiteListResult.cc create mode 100644 sas/src/model/ChangeAssetRefreshTaskConfigRequest.cc create mode 100644 sas/src/model/ChangeAssetRefreshTaskConfigResult.cc create mode 100644 sas/src/model/CreateAgentlessScanTaskRequest.cc create mode 100644 sas/src/model/CreateAgentlessScanTaskResult.cc create mode 100644 sas/src/model/CreateServiceTrailRequest.cc create mode 100644 sas/src/model/CreateServiceTrailResult.cc create mode 100644 sas/src/model/DeleteBinarySecurityPolicyRequest.cc create mode 100644 sas/src/model/DeleteBinarySecurityPolicyResult.cc create mode 100644 sas/src/model/DeleteServiceTrailRequest.cc create mode 100644 sas/src/model/DeleteServiceTrailResult.cc create mode 100644 sas/src/model/DescribeImageVulWhiteListRequest.cc create mode 100644 sas/src/model/DescribeImageVulWhiteListResult.cc create mode 100644 sas/src/model/DescribeMonitorAccountsRequest.cc create mode 100644 sas/src/model/DescribeMonitorAccountsResult.cc create mode 100644 sas/src/model/DescribeSecurityEventMarkMissListRequest.cc create mode 100644 sas/src/model/DescribeSecurityEventMarkMissListResult.cc create mode 100644 sas/src/model/GetAgentlessTaskCountRequest.cc create mode 100644 sas/src/model/GetAgentlessTaskCountResult.cc create mode 100644 sas/src/model/GetClientRatioStatisticRequest.cc create mode 100644 sas/src/model/GetClientRatioStatisticResult.cc create mode 100644 sas/src/model/GetServiceTrailRequest.cc create mode 100644 sas/src/model/GetServiceTrailResult.cc create mode 100644 sas/src/model/ListAgentlessRegionRequest.cc create mode 100644 sas/src/model/ListAgentlessRegionResult.cc create mode 100644 sas/src/model/ListAgentlessRelateMaliciousRequest.cc create mode 100644 sas/src/model/ListAgentlessRelateMaliciousResult.cc create mode 100644 sas/src/model/ListAgentlessRiskUuidRequest.cc create mode 100644 sas/src/model/ListAgentlessRiskUuidResult.cc create mode 100644 sas/src/model/ListAgentlessTaskRequest.cc create mode 100644 sas/src/model/ListAgentlessTaskResult.cc create mode 100644 sas/src/model/ListAssetRefreshTaskConfigRequest.cc create mode 100644 sas/src/model/ListAssetRefreshTaskConfigResult.cc diff --git a/VERSION b/VERSION index d3ddeff40..aef92c340 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1672 \ No newline at end of file +1.36.1673 \ No newline at end of file diff --git a/sas/CMakeLists.txt b/sas/CMakeLists.txt index b79392b68..42c452efa 100644 --- a/sas/CMakeLists.txt +++ b/sas/CMakeLists.txt @@ -29,6 +29,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/AddCheckResultWhiteListResult.h include/alibabacloud/sas/model/AddClientUserDefineRuleRequest.h include/alibabacloud/sas/model/AddClientUserDefineRuleResult.h + include/alibabacloud/sas/model/AddImageVulWhiteListRequest.h + include/alibabacloud/sas/model/AddImageVulWhiteListResult.h include/alibabacloud/sas/model/AddInstallCodeRequest.h include/alibabacloud/sas/model/AddInstallCodeResult.h include/alibabacloud/sas/model/AddPrivateRegistryRequest.h @@ -47,6 +49,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/BindAuthToMachineResult.h include/alibabacloud/sas/model/CancelOnceTaskRequest.h include/alibabacloud/sas/model/CancelOnceTaskResult.h + include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigRequest.h + include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigResult.h include/alibabacloud/sas/model/ChangeCheckConfigRequest.h include/alibabacloud/sas/model/ChangeCheckConfigResult.h include/alibabacloud/sas/model/ChangeCheckCustomConfigRequest.h @@ -59,6 +63,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/CheckUserHasEcsResult.h include/alibabacloud/sas/model/ConfirmVirusEventsRequest.h include/alibabacloud/sas/model/ConfirmVirusEventsResult.h + include/alibabacloud/sas/model/CreateAgentlessScanTaskRequest.h + include/alibabacloud/sas/model/CreateAgentlessScanTaskResult.h include/alibabacloud/sas/model/CreateAntiBruteForceRuleRequest.h include/alibabacloud/sas/model/CreateAntiBruteForceRuleResult.h include/alibabacloud/sas/model/CreateAssetSelectionConfigRequest.h @@ -97,6 +103,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/CreateRestoreJobResult.h include/alibabacloud/sas/model/CreateServiceLinkedRoleRequest.h include/alibabacloud/sas/model/CreateServiceLinkedRoleResult.h + include/alibabacloud/sas/model/CreateServiceTrailRequest.h + include/alibabacloud/sas/model/CreateServiceTrailResult.h include/alibabacloud/sas/model/CreateSimilarSecurityEventsQueryTaskRequest.h include/alibabacloud/sas/model/CreateSimilarSecurityEventsQueryTaskResult.h include/alibabacloud/sas/model/CreateSuspEventNoteRequest.h @@ -113,6 +121,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DeleteBackupPolicyResult.h include/alibabacloud/sas/model/DeleteBackupPolicyMachineRequest.h include/alibabacloud/sas/model/DeleteBackupPolicyMachineResult.h + include/alibabacloud/sas/model/DeleteBinarySecurityPolicyRequest.h + include/alibabacloud/sas/model/DeleteBinarySecurityPolicyResult.h include/alibabacloud/sas/model/DeleteClientUserDefineRuleRequest.h include/alibabacloud/sas/model/DeleteClientUserDefineRuleResult.h include/alibabacloud/sas/model/DeleteCustomBlockRecordRequest.h @@ -141,6 +151,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DeletePrivateRegistryResult.h include/alibabacloud/sas/model/DeleteSecurityEventMarkMissListRequest.h include/alibabacloud/sas/model/DeleteSecurityEventMarkMissListResult.h + include/alibabacloud/sas/model/DeleteServiceTrailRequest.h + include/alibabacloud/sas/model/DeleteServiceTrailResult.h include/alibabacloud/sas/model/DeleteStrategyRequest.h include/alibabacloud/sas/model/DeleteStrategyResult.h include/alibabacloud/sas/model/DeleteSuspEventNodeRequest.h @@ -363,6 +375,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DescribeImageStatisticsResult.h include/alibabacloud/sas/model/DescribeImageVulListRequest.h include/alibabacloud/sas/model/DescribeImageVulListResult.h + include/alibabacloud/sas/model/DescribeImageVulWhiteListRequest.h + include/alibabacloud/sas/model/DescribeImageVulWhiteListResult.h include/alibabacloud/sas/model/DescribeInstallCaptchaRequest.h include/alibabacloud/sas/model/DescribeInstallCaptchaResult.h include/alibabacloud/sas/model/DescribeInstallCodeRequest.h @@ -393,6 +407,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DescribeMachineCanRebootResult.h include/alibabacloud/sas/model/DescribeModuleConfigRequest.h include/alibabacloud/sas/model/DescribeModuleConfigResult.h + include/alibabacloud/sas/model/DescribeMonitorAccountsRequest.h + include/alibabacloud/sas/model/DescribeMonitorAccountsResult.h include/alibabacloud/sas/model/DescribeNoticeConfigRequest.h include/alibabacloud/sas/model/DescribeNoticeConfigResult.h include/alibabacloud/sas/model/DescribeNsasSuspEventTypeRequest.h @@ -467,6 +483,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DescribeSecureSuggestionResult.h include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h + include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListRequest.h + include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListResult.h include/alibabacloud/sas/model/DescribeSecurityEventOperationStatusRequest.h include/alibabacloud/sas/model/DescribeSecurityEventOperationStatusResult.h include/alibabacloud/sas/model/DescribeSecurityEventOperationsRequest.h @@ -619,6 +637,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/FixCheckWarningsResult.h include/alibabacloud/sas/model/GenerateOnceTaskRequest.h include/alibabacloud/sas/model/GenerateOnceTaskResult.h + include/alibabacloud/sas/model/GetAgentlessTaskCountRequest.h + include/alibabacloud/sas/model/GetAgentlessTaskCountResult.h include/alibabacloud/sas/model/GetAlarmMachineCountRequest.h include/alibabacloud/sas/model/GetAlarmMachineCountResult.h include/alibabacloud/sas/model/GetAppNetworkRequest.h @@ -643,6 +663,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/GetCheckRiskStatisticsResult.h include/alibabacloud/sas/model/GetCheckSummaryRequest.h include/alibabacloud/sas/model/GetCheckSummaryResult.h + include/alibabacloud/sas/model/GetClientRatioStatisticRequest.h + include/alibabacloud/sas/model/GetClientRatioStatisticResult.h include/alibabacloud/sas/model/GetClientUserDefineRuleRequest.h include/alibabacloud/sas/model/GetClientUserDefineRuleResult.h include/alibabacloud/sas/model/GetCloudAssetCriteriaRequest.h @@ -685,6 +707,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/GetPropertyScheduleConfigResult.h include/alibabacloud/sas/model/GetRulesCountRequest.h include/alibabacloud/sas/model/GetRulesCountResult.h + include/alibabacloud/sas/model/GetServiceTrailRequest.h + include/alibabacloud/sas/model/GetServiceTrailResult.h include/alibabacloud/sas/model/GetSuspiciousStatisticsRequest.h include/alibabacloud/sas/model/GetSuspiciousStatisticsResult.h include/alibabacloud/sas/model/GetVulStatisticsRequest.h @@ -709,6 +733,16 @@ set(sas_public_header_model include/alibabacloud/sas/model/InstallUniBackupAgentResult.h include/alibabacloud/sas/model/JoinWebLockProcessWhiteListRequest.h include/alibabacloud/sas/model/JoinWebLockProcessWhiteListResult.h + include/alibabacloud/sas/model/ListAgentlessRegionRequest.h + include/alibabacloud/sas/model/ListAgentlessRegionResult.h + include/alibabacloud/sas/model/ListAgentlessRelateMaliciousRequest.h + include/alibabacloud/sas/model/ListAgentlessRelateMaliciousResult.h + include/alibabacloud/sas/model/ListAgentlessRiskUuidRequest.h + include/alibabacloud/sas/model/ListAgentlessRiskUuidResult.h + include/alibabacloud/sas/model/ListAgentlessTaskRequest.h + include/alibabacloud/sas/model/ListAgentlessTaskResult.h + include/alibabacloud/sas/model/ListAssetRefreshTaskConfigRequest.h + include/alibabacloud/sas/model/ListAssetRefreshTaskConfigResult.h include/alibabacloud/sas/model/ListAssetSelectionSelectedTargetRequest.h include/alibabacloud/sas/model/ListAssetSelectionSelectedTargetResult.h include/alibabacloud/sas/model/ListAssetSelectionTargetRequest.h @@ -1006,6 +1040,8 @@ set(sas_src src/model/AddCheckResultWhiteListResult.cc src/model/AddClientUserDefineRuleRequest.cc src/model/AddClientUserDefineRuleResult.cc + src/model/AddImageVulWhiteListRequest.cc + src/model/AddImageVulWhiteListResult.cc src/model/AddInstallCodeRequest.cc src/model/AddInstallCodeResult.cc src/model/AddPrivateRegistryRequest.cc @@ -1024,6 +1060,8 @@ set(sas_src src/model/BindAuthToMachineResult.cc src/model/CancelOnceTaskRequest.cc src/model/CancelOnceTaskResult.cc + src/model/ChangeAssetRefreshTaskConfigRequest.cc + src/model/ChangeAssetRefreshTaskConfigResult.cc src/model/ChangeCheckConfigRequest.cc src/model/ChangeCheckConfigResult.cc src/model/ChangeCheckCustomConfigRequest.cc @@ -1036,6 +1074,8 @@ set(sas_src src/model/CheckUserHasEcsResult.cc src/model/ConfirmVirusEventsRequest.cc src/model/ConfirmVirusEventsResult.cc + src/model/CreateAgentlessScanTaskRequest.cc + src/model/CreateAgentlessScanTaskResult.cc src/model/CreateAntiBruteForceRuleRequest.cc src/model/CreateAntiBruteForceRuleResult.cc src/model/CreateAssetSelectionConfigRequest.cc @@ -1074,6 +1114,8 @@ set(sas_src src/model/CreateRestoreJobResult.cc src/model/CreateServiceLinkedRoleRequest.cc src/model/CreateServiceLinkedRoleResult.cc + src/model/CreateServiceTrailRequest.cc + src/model/CreateServiceTrailResult.cc src/model/CreateSimilarSecurityEventsQueryTaskRequest.cc src/model/CreateSimilarSecurityEventsQueryTaskResult.cc src/model/CreateSuspEventNoteRequest.cc @@ -1090,6 +1132,8 @@ set(sas_src src/model/DeleteBackupPolicyResult.cc src/model/DeleteBackupPolicyMachineRequest.cc src/model/DeleteBackupPolicyMachineResult.cc + src/model/DeleteBinarySecurityPolicyRequest.cc + src/model/DeleteBinarySecurityPolicyResult.cc src/model/DeleteClientUserDefineRuleRequest.cc src/model/DeleteClientUserDefineRuleResult.cc src/model/DeleteCustomBlockRecordRequest.cc @@ -1118,6 +1162,8 @@ set(sas_src src/model/DeletePrivateRegistryResult.cc src/model/DeleteSecurityEventMarkMissListRequest.cc src/model/DeleteSecurityEventMarkMissListResult.cc + src/model/DeleteServiceTrailRequest.cc + src/model/DeleteServiceTrailResult.cc src/model/DeleteStrategyRequest.cc src/model/DeleteStrategyResult.cc src/model/DeleteSuspEventNodeRequest.cc @@ -1340,6 +1386,8 @@ set(sas_src src/model/DescribeImageStatisticsResult.cc src/model/DescribeImageVulListRequest.cc src/model/DescribeImageVulListResult.cc + src/model/DescribeImageVulWhiteListRequest.cc + src/model/DescribeImageVulWhiteListResult.cc src/model/DescribeInstallCaptchaRequest.cc src/model/DescribeInstallCaptchaResult.cc src/model/DescribeInstallCodeRequest.cc @@ -1370,6 +1418,8 @@ set(sas_src src/model/DescribeMachineCanRebootResult.cc src/model/DescribeModuleConfigRequest.cc src/model/DescribeModuleConfigResult.cc + src/model/DescribeMonitorAccountsRequest.cc + src/model/DescribeMonitorAccountsResult.cc src/model/DescribeNoticeConfigRequest.cc src/model/DescribeNoticeConfigResult.cc src/model/DescribeNsasSuspEventTypeRequest.cc @@ -1444,6 +1494,8 @@ set(sas_src src/model/DescribeSecureSuggestionResult.cc src/model/DescribeSecurityCheckScheduleConfigRequest.cc src/model/DescribeSecurityCheckScheduleConfigResult.cc + src/model/DescribeSecurityEventMarkMissListRequest.cc + src/model/DescribeSecurityEventMarkMissListResult.cc src/model/DescribeSecurityEventOperationStatusRequest.cc src/model/DescribeSecurityEventOperationStatusResult.cc src/model/DescribeSecurityEventOperationsRequest.cc @@ -1596,6 +1648,8 @@ set(sas_src src/model/FixCheckWarningsResult.cc src/model/GenerateOnceTaskRequest.cc src/model/GenerateOnceTaskResult.cc + src/model/GetAgentlessTaskCountRequest.cc + src/model/GetAgentlessTaskCountResult.cc src/model/GetAlarmMachineCountRequest.cc src/model/GetAlarmMachineCountResult.cc src/model/GetAppNetworkRequest.cc @@ -1620,6 +1674,8 @@ set(sas_src src/model/GetCheckRiskStatisticsResult.cc src/model/GetCheckSummaryRequest.cc src/model/GetCheckSummaryResult.cc + src/model/GetClientRatioStatisticRequest.cc + src/model/GetClientRatioStatisticResult.cc src/model/GetClientUserDefineRuleRequest.cc src/model/GetClientUserDefineRuleResult.cc src/model/GetCloudAssetCriteriaRequest.cc @@ -1662,6 +1718,8 @@ set(sas_src src/model/GetPropertyScheduleConfigResult.cc src/model/GetRulesCountRequest.cc src/model/GetRulesCountResult.cc + src/model/GetServiceTrailRequest.cc + src/model/GetServiceTrailResult.cc src/model/GetSuspiciousStatisticsRequest.cc src/model/GetSuspiciousStatisticsResult.cc src/model/GetVulStatisticsRequest.cc @@ -1686,6 +1744,16 @@ set(sas_src src/model/InstallUniBackupAgentResult.cc src/model/JoinWebLockProcessWhiteListRequest.cc src/model/JoinWebLockProcessWhiteListResult.cc + src/model/ListAgentlessRegionRequest.cc + src/model/ListAgentlessRegionResult.cc + src/model/ListAgentlessRelateMaliciousRequest.cc + src/model/ListAgentlessRelateMaliciousResult.cc + src/model/ListAgentlessRiskUuidRequest.cc + src/model/ListAgentlessRiskUuidResult.cc + src/model/ListAgentlessTaskRequest.cc + src/model/ListAgentlessTaskResult.cc + src/model/ListAssetRefreshTaskConfigRequest.cc + src/model/ListAssetRefreshTaskConfigResult.cc src/model/ListAssetSelectionSelectedTargetRequest.cc src/model/ListAssetSelectionSelectedTargetResult.cc src/model/ListAssetSelectionTargetRequest.cc diff --git a/sas/include/alibabacloud/sas/SasClient.h b/sas/include/alibabacloud/sas/SasClient.h index 6c17178d4..31d1db7d5 100644 --- a/sas/include/alibabacloud/sas/SasClient.h +++ b/sas/include/alibabacloud/sas/SasClient.h @@ -30,6 +30,8 @@ #include "model/AddCheckResultWhiteListResult.h" #include "model/AddClientUserDefineRuleRequest.h" #include "model/AddClientUserDefineRuleResult.h" +#include "model/AddImageVulWhiteListRequest.h" +#include "model/AddImageVulWhiteListResult.h" #include "model/AddInstallCodeRequest.h" #include "model/AddInstallCodeResult.h" #include "model/AddPrivateRegistryRequest.h" @@ -48,6 +50,8 @@ #include "model/BindAuthToMachineResult.h" #include "model/CancelOnceTaskRequest.h" #include "model/CancelOnceTaskResult.h" +#include "model/ChangeAssetRefreshTaskConfigRequest.h" +#include "model/ChangeAssetRefreshTaskConfigResult.h" #include "model/ChangeCheckConfigRequest.h" #include "model/ChangeCheckConfigResult.h" #include "model/ChangeCheckCustomConfigRequest.h" @@ -60,6 +64,8 @@ #include "model/CheckUserHasEcsResult.h" #include "model/ConfirmVirusEventsRequest.h" #include "model/ConfirmVirusEventsResult.h" +#include "model/CreateAgentlessScanTaskRequest.h" +#include "model/CreateAgentlessScanTaskResult.h" #include "model/CreateAntiBruteForceRuleRequest.h" #include "model/CreateAntiBruteForceRuleResult.h" #include "model/CreateAssetSelectionConfigRequest.h" @@ -98,6 +104,8 @@ #include "model/CreateRestoreJobResult.h" #include "model/CreateServiceLinkedRoleRequest.h" #include "model/CreateServiceLinkedRoleResult.h" +#include "model/CreateServiceTrailRequest.h" +#include "model/CreateServiceTrailResult.h" #include "model/CreateSimilarSecurityEventsQueryTaskRequest.h" #include "model/CreateSimilarSecurityEventsQueryTaskResult.h" #include "model/CreateSuspEventNoteRequest.h" @@ -114,6 +122,8 @@ #include "model/DeleteBackupPolicyResult.h" #include "model/DeleteBackupPolicyMachineRequest.h" #include "model/DeleteBackupPolicyMachineResult.h" +#include "model/DeleteBinarySecurityPolicyRequest.h" +#include "model/DeleteBinarySecurityPolicyResult.h" #include "model/DeleteClientUserDefineRuleRequest.h" #include "model/DeleteClientUserDefineRuleResult.h" #include "model/DeleteCustomBlockRecordRequest.h" @@ -142,6 +152,8 @@ #include "model/DeletePrivateRegistryResult.h" #include "model/DeleteSecurityEventMarkMissListRequest.h" #include "model/DeleteSecurityEventMarkMissListResult.h" +#include "model/DeleteServiceTrailRequest.h" +#include "model/DeleteServiceTrailResult.h" #include "model/DeleteStrategyRequest.h" #include "model/DeleteStrategyResult.h" #include "model/DeleteSuspEventNodeRequest.h" @@ -364,6 +376,8 @@ #include "model/DescribeImageStatisticsResult.h" #include "model/DescribeImageVulListRequest.h" #include "model/DescribeImageVulListResult.h" +#include "model/DescribeImageVulWhiteListRequest.h" +#include "model/DescribeImageVulWhiteListResult.h" #include "model/DescribeInstallCaptchaRequest.h" #include "model/DescribeInstallCaptchaResult.h" #include "model/DescribeInstallCodeRequest.h" @@ -394,6 +408,8 @@ #include "model/DescribeMachineCanRebootResult.h" #include "model/DescribeModuleConfigRequest.h" #include "model/DescribeModuleConfigResult.h" +#include "model/DescribeMonitorAccountsRequest.h" +#include "model/DescribeMonitorAccountsResult.h" #include "model/DescribeNoticeConfigRequest.h" #include "model/DescribeNoticeConfigResult.h" #include "model/DescribeNsasSuspEventTypeRequest.h" @@ -468,6 +484,8 @@ #include "model/DescribeSecureSuggestionResult.h" #include "model/DescribeSecurityCheckScheduleConfigRequest.h" #include "model/DescribeSecurityCheckScheduleConfigResult.h" +#include "model/DescribeSecurityEventMarkMissListRequest.h" +#include "model/DescribeSecurityEventMarkMissListResult.h" #include "model/DescribeSecurityEventOperationStatusRequest.h" #include "model/DescribeSecurityEventOperationStatusResult.h" #include "model/DescribeSecurityEventOperationsRequest.h" @@ -620,6 +638,8 @@ #include "model/FixCheckWarningsResult.h" #include "model/GenerateOnceTaskRequest.h" #include "model/GenerateOnceTaskResult.h" +#include "model/GetAgentlessTaskCountRequest.h" +#include "model/GetAgentlessTaskCountResult.h" #include "model/GetAlarmMachineCountRequest.h" #include "model/GetAlarmMachineCountResult.h" #include "model/GetAppNetworkRequest.h" @@ -644,6 +664,8 @@ #include "model/GetCheckRiskStatisticsResult.h" #include "model/GetCheckSummaryRequest.h" #include "model/GetCheckSummaryResult.h" +#include "model/GetClientRatioStatisticRequest.h" +#include "model/GetClientRatioStatisticResult.h" #include "model/GetClientUserDefineRuleRequest.h" #include "model/GetClientUserDefineRuleResult.h" #include "model/GetCloudAssetCriteriaRequest.h" @@ -686,6 +708,8 @@ #include "model/GetPropertyScheduleConfigResult.h" #include "model/GetRulesCountRequest.h" #include "model/GetRulesCountResult.h" +#include "model/GetServiceTrailRequest.h" +#include "model/GetServiceTrailResult.h" #include "model/GetSuspiciousStatisticsRequest.h" #include "model/GetSuspiciousStatisticsResult.h" #include "model/GetVulStatisticsRequest.h" @@ -710,6 +734,16 @@ #include "model/InstallUniBackupAgentResult.h" #include "model/JoinWebLockProcessWhiteListRequest.h" #include "model/JoinWebLockProcessWhiteListResult.h" +#include "model/ListAgentlessRegionRequest.h" +#include "model/ListAgentlessRegionResult.h" +#include "model/ListAgentlessRelateMaliciousRequest.h" +#include "model/ListAgentlessRelateMaliciousResult.h" +#include "model/ListAgentlessRiskUuidRequest.h" +#include "model/ListAgentlessRiskUuidResult.h" +#include "model/ListAgentlessTaskRequest.h" +#include "model/ListAgentlessTaskResult.h" +#include "model/ListAssetRefreshTaskConfigRequest.h" +#include "model/ListAssetRefreshTaskConfigResult.h" #include "model/ListAssetSelectionSelectedTargetRequest.h" #include "model/ListAssetSelectionSelectedTargetResult.h" #include "model/ListAssetSelectionTargetRequest.h" @@ -1017,6 +1051,9 @@ namespace AlibabaCloud typedef Outcome AddClientUserDefineRuleOutcome; typedef std::future AddClientUserDefineRuleOutcomeCallable; typedef std::function&)> AddClientUserDefineRuleAsyncHandler; + typedef Outcome AddImageVulWhiteListOutcome; + typedef std::future AddImageVulWhiteListOutcomeCallable; + typedef std::function&)> AddImageVulWhiteListAsyncHandler; typedef Outcome AddInstallCodeOutcome; typedef std::future AddInstallCodeOutcomeCallable; typedef std::function&)> AddInstallCodeAsyncHandler; @@ -1044,6 +1081,9 @@ namespace AlibabaCloud typedef Outcome CancelOnceTaskOutcome; typedef std::future CancelOnceTaskOutcomeCallable; typedef std::function&)> CancelOnceTaskAsyncHandler; + typedef Outcome ChangeAssetRefreshTaskConfigOutcome; + typedef std::future ChangeAssetRefreshTaskConfigOutcomeCallable; + typedef std::function&)> ChangeAssetRefreshTaskConfigAsyncHandler; typedef Outcome ChangeCheckConfigOutcome; typedef std::future ChangeCheckConfigOutcomeCallable; typedef std::function&)> ChangeCheckConfigAsyncHandler; @@ -1062,6 +1102,9 @@ namespace AlibabaCloud typedef Outcome ConfirmVirusEventsOutcome; typedef std::future ConfirmVirusEventsOutcomeCallable; typedef std::function&)> ConfirmVirusEventsAsyncHandler; + typedef Outcome CreateAgentlessScanTaskOutcome; + typedef std::future CreateAgentlessScanTaskOutcomeCallable; + typedef std::function&)> CreateAgentlessScanTaskAsyncHandler; typedef Outcome CreateAntiBruteForceRuleOutcome; typedef std::future CreateAntiBruteForceRuleOutcomeCallable; typedef std::function&)> CreateAntiBruteForceRuleAsyncHandler; @@ -1119,6 +1162,9 @@ namespace AlibabaCloud typedef Outcome CreateServiceLinkedRoleOutcome; typedef std::future CreateServiceLinkedRoleOutcomeCallable; typedef std::function&)> CreateServiceLinkedRoleAsyncHandler; + typedef Outcome CreateServiceTrailOutcome; + typedef std::future CreateServiceTrailOutcomeCallable; + typedef std::function&)> CreateServiceTrailAsyncHandler; typedef Outcome CreateSimilarSecurityEventsQueryTaskOutcome; typedef std::future CreateSimilarSecurityEventsQueryTaskOutcomeCallable; typedef std::function&)> CreateSimilarSecurityEventsQueryTaskAsyncHandler; @@ -1143,6 +1189,9 @@ namespace AlibabaCloud typedef Outcome DeleteBackupPolicyMachineOutcome; typedef std::future DeleteBackupPolicyMachineOutcomeCallable; typedef std::function&)> DeleteBackupPolicyMachineAsyncHandler; + typedef Outcome DeleteBinarySecurityPolicyOutcome; + typedef std::future DeleteBinarySecurityPolicyOutcomeCallable; + typedef std::function&)> DeleteBinarySecurityPolicyAsyncHandler; typedef Outcome DeleteClientUserDefineRuleOutcome; typedef std::future DeleteClientUserDefineRuleOutcomeCallable; typedef std::function&)> DeleteClientUserDefineRuleAsyncHandler; @@ -1185,6 +1234,9 @@ namespace AlibabaCloud typedef Outcome DeleteSecurityEventMarkMissListOutcome; typedef std::future DeleteSecurityEventMarkMissListOutcomeCallable; typedef std::function&)> DeleteSecurityEventMarkMissListAsyncHandler; + typedef Outcome DeleteServiceTrailOutcome; + typedef std::future DeleteServiceTrailOutcomeCallable; + typedef std::function&)> DeleteServiceTrailAsyncHandler; typedef Outcome DeleteStrategyOutcome; typedef std::future DeleteStrategyOutcomeCallable; typedef std::function&)> DeleteStrategyAsyncHandler; @@ -1518,6 +1570,9 @@ namespace AlibabaCloud typedef Outcome DescribeImageVulListOutcome; typedef std::future DescribeImageVulListOutcomeCallable; typedef std::function&)> DescribeImageVulListAsyncHandler; + typedef Outcome DescribeImageVulWhiteListOutcome; + typedef std::future DescribeImageVulWhiteListOutcomeCallable; + typedef std::function&)> DescribeImageVulWhiteListAsyncHandler; typedef Outcome DescribeInstallCaptchaOutcome; typedef std::future DescribeInstallCaptchaOutcomeCallable; typedef std::function&)> DescribeInstallCaptchaAsyncHandler; @@ -1563,6 +1618,9 @@ namespace AlibabaCloud typedef Outcome DescribeModuleConfigOutcome; typedef std::future DescribeModuleConfigOutcomeCallable; typedef std::function&)> DescribeModuleConfigAsyncHandler; + typedef Outcome DescribeMonitorAccountsOutcome; + typedef std::future DescribeMonitorAccountsOutcomeCallable; + typedef std::function&)> DescribeMonitorAccountsAsyncHandler; typedef Outcome DescribeNoticeConfigOutcome; typedef std::future DescribeNoticeConfigOutcomeCallable; typedef std::function&)> DescribeNoticeConfigAsyncHandler; @@ -1674,6 +1732,9 @@ namespace AlibabaCloud typedef Outcome DescribeSecurityCheckScheduleConfigOutcome; typedef std::future DescribeSecurityCheckScheduleConfigOutcomeCallable; typedef std::function&)> DescribeSecurityCheckScheduleConfigAsyncHandler; + typedef Outcome DescribeSecurityEventMarkMissListOutcome; + typedef std::future DescribeSecurityEventMarkMissListOutcomeCallable; + typedef std::function&)> DescribeSecurityEventMarkMissListAsyncHandler; typedef Outcome DescribeSecurityEventOperationStatusOutcome; typedef std::future DescribeSecurityEventOperationStatusOutcomeCallable; typedef std::function&)> DescribeSecurityEventOperationStatusAsyncHandler; @@ -1902,6 +1963,9 @@ namespace AlibabaCloud typedef Outcome GenerateOnceTaskOutcome; typedef std::future GenerateOnceTaskOutcomeCallable; typedef std::function&)> GenerateOnceTaskAsyncHandler; + typedef Outcome GetAgentlessTaskCountOutcome; + typedef std::future GetAgentlessTaskCountOutcomeCallable; + typedef std::function&)> GetAgentlessTaskCountAsyncHandler; typedef Outcome GetAlarmMachineCountOutcome; typedef std::future GetAlarmMachineCountOutcomeCallable; typedef std::function&)> GetAlarmMachineCountAsyncHandler; @@ -1938,6 +2002,9 @@ namespace AlibabaCloud typedef Outcome GetCheckSummaryOutcome; typedef std::future GetCheckSummaryOutcomeCallable; typedef std::function&)> GetCheckSummaryAsyncHandler; + typedef Outcome GetClientRatioStatisticOutcome; + typedef std::future GetClientRatioStatisticOutcomeCallable; + typedef std::function&)> GetClientRatioStatisticAsyncHandler; typedef Outcome GetClientUserDefineRuleOutcome; typedef std::future GetClientUserDefineRuleOutcomeCallable; typedef std::function&)> GetClientUserDefineRuleAsyncHandler; @@ -2001,6 +2068,9 @@ namespace AlibabaCloud typedef Outcome GetRulesCountOutcome; typedef std::future GetRulesCountOutcomeCallable; typedef std::function&)> GetRulesCountAsyncHandler; + typedef Outcome GetServiceTrailOutcome; + typedef std::future GetServiceTrailOutcomeCallable; + typedef std::function&)> GetServiceTrailAsyncHandler; typedef Outcome GetSuspiciousStatisticsOutcome; typedef std::future GetSuspiciousStatisticsOutcomeCallable; typedef std::function&)> GetSuspiciousStatisticsAsyncHandler; @@ -2037,6 +2107,21 @@ namespace AlibabaCloud typedef Outcome JoinWebLockProcessWhiteListOutcome; typedef std::future JoinWebLockProcessWhiteListOutcomeCallable; typedef std::function&)> JoinWebLockProcessWhiteListAsyncHandler; + typedef Outcome ListAgentlessRegionOutcome; + typedef std::future ListAgentlessRegionOutcomeCallable; + typedef std::function&)> ListAgentlessRegionAsyncHandler; + typedef Outcome ListAgentlessRelateMaliciousOutcome; + typedef std::future ListAgentlessRelateMaliciousOutcomeCallable; + typedef std::function&)> ListAgentlessRelateMaliciousAsyncHandler; + typedef Outcome ListAgentlessRiskUuidOutcome; + typedef std::future ListAgentlessRiskUuidOutcomeCallable; + typedef std::function&)> ListAgentlessRiskUuidAsyncHandler; + typedef Outcome ListAgentlessTaskOutcome; + typedef std::future ListAgentlessTaskOutcomeCallable; + typedef std::function&)> ListAgentlessTaskAsyncHandler; + typedef Outcome ListAssetRefreshTaskConfigOutcome; + typedef std::future ListAssetRefreshTaskConfigOutcomeCallable; + typedef std::function&)> ListAssetRefreshTaskConfigAsyncHandler; typedef Outcome ListAssetSelectionSelectedTargetOutcome; typedef std::future ListAssetSelectionSelectedTargetOutcomeCallable; typedef std::function&)> ListAssetSelectionSelectedTargetAsyncHandler; @@ -2483,6 +2568,9 @@ namespace AlibabaCloud AddClientUserDefineRuleOutcome addClientUserDefineRule(const Model::AddClientUserDefineRuleRequest &request)const; void addClientUserDefineRuleAsync(const Model::AddClientUserDefineRuleRequest& request, const AddClientUserDefineRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddClientUserDefineRuleOutcomeCallable addClientUserDefineRuleCallable(const Model::AddClientUserDefineRuleRequest& request) const; + AddImageVulWhiteListOutcome addImageVulWhiteList(const Model::AddImageVulWhiteListRequest &request)const; + void addImageVulWhiteListAsync(const Model::AddImageVulWhiteListRequest& request, const AddImageVulWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddImageVulWhiteListOutcomeCallable addImageVulWhiteListCallable(const Model::AddImageVulWhiteListRequest& request) const; AddInstallCodeOutcome addInstallCode(const Model::AddInstallCodeRequest &request)const; void addInstallCodeAsync(const Model::AddInstallCodeRequest& request, const AddInstallCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddInstallCodeOutcomeCallable addInstallCodeCallable(const Model::AddInstallCodeRequest& request) const; @@ -2510,6 +2598,9 @@ namespace AlibabaCloud CancelOnceTaskOutcome cancelOnceTask(const Model::CancelOnceTaskRequest &request)const; void cancelOnceTaskAsync(const Model::CancelOnceTaskRequest& request, const CancelOnceTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelOnceTaskOutcomeCallable cancelOnceTaskCallable(const Model::CancelOnceTaskRequest& request) const; + ChangeAssetRefreshTaskConfigOutcome changeAssetRefreshTaskConfig(const Model::ChangeAssetRefreshTaskConfigRequest &request)const; + void changeAssetRefreshTaskConfigAsync(const Model::ChangeAssetRefreshTaskConfigRequest& request, const ChangeAssetRefreshTaskConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeAssetRefreshTaskConfigOutcomeCallable changeAssetRefreshTaskConfigCallable(const Model::ChangeAssetRefreshTaskConfigRequest& request) const; ChangeCheckConfigOutcome changeCheckConfig(const Model::ChangeCheckConfigRequest &request)const; void changeCheckConfigAsync(const Model::ChangeCheckConfigRequest& request, const ChangeCheckConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ChangeCheckConfigOutcomeCallable changeCheckConfigCallable(const Model::ChangeCheckConfigRequest& request) const; @@ -2528,6 +2619,9 @@ namespace AlibabaCloud ConfirmVirusEventsOutcome confirmVirusEvents(const Model::ConfirmVirusEventsRequest &request)const; void confirmVirusEventsAsync(const Model::ConfirmVirusEventsRequest& request, const ConfirmVirusEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConfirmVirusEventsOutcomeCallable confirmVirusEventsCallable(const Model::ConfirmVirusEventsRequest& request) const; + CreateAgentlessScanTaskOutcome createAgentlessScanTask(const Model::CreateAgentlessScanTaskRequest &request)const; + void createAgentlessScanTaskAsync(const Model::CreateAgentlessScanTaskRequest& request, const CreateAgentlessScanTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAgentlessScanTaskOutcomeCallable createAgentlessScanTaskCallable(const Model::CreateAgentlessScanTaskRequest& request) const; CreateAntiBruteForceRuleOutcome createAntiBruteForceRule(const Model::CreateAntiBruteForceRuleRequest &request)const; void createAntiBruteForceRuleAsync(const Model::CreateAntiBruteForceRuleRequest& request, const CreateAntiBruteForceRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAntiBruteForceRuleOutcomeCallable createAntiBruteForceRuleCallable(const Model::CreateAntiBruteForceRuleRequest& request) const; @@ -2585,6 +2679,9 @@ namespace AlibabaCloud CreateServiceLinkedRoleOutcome createServiceLinkedRole(const Model::CreateServiceLinkedRoleRequest &request)const; void createServiceLinkedRoleAsync(const Model::CreateServiceLinkedRoleRequest& request, const CreateServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateServiceLinkedRoleOutcomeCallable createServiceLinkedRoleCallable(const Model::CreateServiceLinkedRoleRequest& request) const; + CreateServiceTrailOutcome createServiceTrail(const Model::CreateServiceTrailRequest &request)const; + void createServiceTrailAsync(const Model::CreateServiceTrailRequest& request, const CreateServiceTrailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceTrailOutcomeCallable createServiceTrailCallable(const Model::CreateServiceTrailRequest& request) const; CreateSimilarSecurityEventsQueryTaskOutcome createSimilarSecurityEventsQueryTask(const Model::CreateSimilarSecurityEventsQueryTaskRequest &request)const; void createSimilarSecurityEventsQueryTaskAsync(const Model::CreateSimilarSecurityEventsQueryTaskRequest& request, const CreateSimilarSecurityEventsQueryTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSimilarSecurityEventsQueryTaskOutcomeCallable createSimilarSecurityEventsQueryTaskCallable(const Model::CreateSimilarSecurityEventsQueryTaskRequest& request) const; @@ -2609,6 +2706,9 @@ namespace AlibabaCloud DeleteBackupPolicyMachineOutcome deleteBackupPolicyMachine(const Model::DeleteBackupPolicyMachineRequest &request)const; void deleteBackupPolicyMachineAsync(const Model::DeleteBackupPolicyMachineRequest& request, const DeleteBackupPolicyMachineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBackupPolicyMachineOutcomeCallable deleteBackupPolicyMachineCallable(const Model::DeleteBackupPolicyMachineRequest& request) const; + DeleteBinarySecurityPolicyOutcome deleteBinarySecurityPolicy(const Model::DeleteBinarySecurityPolicyRequest &request)const; + void deleteBinarySecurityPolicyAsync(const Model::DeleteBinarySecurityPolicyRequest& request, const DeleteBinarySecurityPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBinarySecurityPolicyOutcomeCallable deleteBinarySecurityPolicyCallable(const Model::DeleteBinarySecurityPolicyRequest& request) const; DeleteClientUserDefineRuleOutcome deleteClientUserDefineRule(const Model::DeleteClientUserDefineRuleRequest &request)const; void deleteClientUserDefineRuleAsync(const Model::DeleteClientUserDefineRuleRequest& request, const DeleteClientUserDefineRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteClientUserDefineRuleOutcomeCallable deleteClientUserDefineRuleCallable(const Model::DeleteClientUserDefineRuleRequest& request) const; @@ -2651,6 +2751,9 @@ namespace AlibabaCloud DeleteSecurityEventMarkMissListOutcome deleteSecurityEventMarkMissList(const Model::DeleteSecurityEventMarkMissListRequest &request)const; void deleteSecurityEventMarkMissListAsync(const Model::DeleteSecurityEventMarkMissListRequest& request, const DeleteSecurityEventMarkMissListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSecurityEventMarkMissListOutcomeCallable deleteSecurityEventMarkMissListCallable(const Model::DeleteSecurityEventMarkMissListRequest& request) const; + DeleteServiceTrailOutcome deleteServiceTrail(const Model::DeleteServiceTrailRequest &request)const; + void deleteServiceTrailAsync(const Model::DeleteServiceTrailRequest& request, const DeleteServiceTrailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceTrailOutcomeCallable deleteServiceTrailCallable(const Model::DeleteServiceTrailRequest& request) const; DeleteStrategyOutcome deleteStrategy(const Model::DeleteStrategyRequest &request)const; void deleteStrategyAsync(const Model::DeleteStrategyRequest& request, const DeleteStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteStrategyOutcomeCallable deleteStrategyCallable(const Model::DeleteStrategyRequest& request) const; @@ -2984,6 +3087,9 @@ namespace AlibabaCloud DescribeImageVulListOutcome describeImageVulList(const Model::DescribeImageVulListRequest &request)const; void describeImageVulListAsync(const Model::DescribeImageVulListRequest& request, const DescribeImageVulListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeImageVulListOutcomeCallable describeImageVulListCallable(const Model::DescribeImageVulListRequest& request) const; + DescribeImageVulWhiteListOutcome describeImageVulWhiteList(const Model::DescribeImageVulWhiteListRequest &request)const; + void describeImageVulWhiteListAsync(const Model::DescribeImageVulWhiteListRequest& request, const DescribeImageVulWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImageVulWhiteListOutcomeCallable describeImageVulWhiteListCallable(const Model::DescribeImageVulWhiteListRequest& request) const; DescribeInstallCaptchaOutcome describeInstallCaptcha(const Model::DescribeInstallCaptchaRequest &request)const; void describeInstallCaptchaAsync(const Model::DescribeInstallCaptchaRequest& request, const DescribeInstallCaptchaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstallCaptchaOutcomeCallable describeInstallCaptchaCallable(const Model::DescribeInstallCaptchaRequest& request) const; @@ -3029,6 +3135,9 @@ namespace AlibabaCloud DescribeModuleConfigOutcome describeModuleConfig(const Model::DescribeModuleConfigRequest &request)const; void describeModuleConfigAsync(const Model::DescribeModuleConfigRequest& request, const DescribeModuleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeModuleConfigOutcomeCallable describeModuleConfigCallable(const Model::DescribeModuleConfigRequest& request) const; + DescribeMonitorAccountsOutcome describeMonitorAccounts(const Model::DescribeMonitorAccountsRequest &request)const; + void describeMonitorAccountsAsync(const Model::DescribeMonitorAccountsRequest& request, const DescribeMonitorAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitorAccountsOutcomeCallable describeMonitorAccountsCallable(const Model::DescribeMonitorAccountsRequest& request) const; DescribeNoticeConfigOutcome describeNoticeConfig(const Model::DescribeNoticeConfigRequest &request)const; void describeNoticeConfigAsync(const Model::DescribeNoticeConfigRequest& request, const DescribeNoticeConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNoticeConfigOutcomeCallable describeNoticeConfigCallable(const Model::DescribeNoticeConfigRequest& request) const; @@ -3140,6 +3249,9 @@ namespace AlibabaCloud DescribeSecurityCheckScheduleConfigOutcome describeSecurityCheckScheduleConfig(const Model::DescribeSecurityCheckScheduleConfigRequest &request)const; void describeSecurityCheckScheduleConfigAsync(const Model::DescribeSecurityCheckScheduleConfigRequest& request, const DescribeSecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecurityCheckScheduleConfigOutcomeCallable describeSecurityCheckScheduleConfigCallable(const Model::DescribeSecurityCheckScheduleConfigRequest& request) const; + DescribeSecurityEventMarkMissListOutcome describeSecurityEventMarkMissList(const Model::DescribeSecurityEventMarkMissListRequest &request)const; + void describeSecurityEventMarkMissListAsync(const Model::DescribeSecurityEventMarkMissListRequest& request, const DescribeSecurityEventMarkMissListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityEventMarkMissListOutcomeCallable describeSecurityEventMarkMissListCallable(const Model::DescribeSecurityEventMarkMissListRequest& request) const; DescribeSecurityEventOperationStatusOutcome describeSecurityEventOperationStatus(const Model::DescribeSecurityEventOperationStatusRequest &request)const; void describeSecurityEventOperationStatusAsync(const Model::DescribeSecurityEventOperationStatusRequest& request, const DescribeSecurityEventOperationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecurityEventOperationStatusOutcomeCallable describeSecurityEventOperationStatusCallable(const Model::DescribeSecurityEventOperationStatusRequest& request) const; @@ -3368,6 +3480,9 @@ namespace AlibabaCloud GenerateOnceTaskOutcome generateOnceTask(const Model::GenerateOnceTaskRequest &request)const; void generateOnceTaskAsync(const Model::GenerateOnceTaskRequest& request, const GenerateOnceTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GenerateOnceTaskOutcomeCallable generateOnceTaskCallable(const Model::GenerateOnceTaskRequest& request) const; + GetAgentlessTaskCountOutcome getAgentlessTaskCount(const Model::GetAgentlessTaskCountRequest &request)const; + void getAgentlessTaskCountAsync(const Model::GetAgentlessTaskCountRequest& request, const GetAgentlessTaskCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAgentlessTaskCountOutcomeCallable getAgentlessTaskCountCallable(const Model::GetAgentlessTaskCountRequest& request) const; GetAlarmMachineCountOutcome getAlarmMachineCount(const Model::GetAlarmMachineCountRequest &request)const; void getAlarmMachineCountAsync(const Model::GetAlarmMachineCountRequest& request, const GetAlarmMachineCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAlarmMachineCountOutcomeCallable getAlarmMachineCountCallable(const Model::GetAlarmMachineCountRequest& request) const; @@ -3404,6 +3519,9 @@ namespace AlibabaCloud GetCheckSummaryOutcome getCheckSummary(const Model::GetCheckSummaryRequest &request)const; void getCheckSummaryAsync(const Model::GetCheckSummaryRequest& request, const GetCheckSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCheckSummaryOutcomeCallable getCheckSummaryCallable(const Model::GetCheckSummaryRequest& request) const; + GetClientRatioStatisticOutcome getClientRatioStatistic(const Model::GetClientRatioStatisticRequest &request)const; + void getClientRatioStatisticAsync(const Model::GetClientRatioStatisticRequest& request, const GetClientRatioStatisticAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetClientRatioStatisticOutcomeCallable getClientRatioStatisticCallable(const Model::GetClientRatioStatisticRequest& request) const; GetClientUserDefineRuleOutcome getClientUserDefineRule(const Model::GetClientUserDefineRuleRequest &request)const; void getClientUserDefineRuleAsync(const Model::GetClientUserDefineRuleRequest& request, const GetClientUserDefineRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetClientUserDefineRuleOutcomeCallable getClientUserDefineRuleCallable(const Model::GetClientUserDefineRuleRequest& request) const; @@ -3467,6 +3585,9 @@ namespace AlibabaCloud GetRulesCountOutcome getRulesCount(const Model::GetRulesCountRequest &request)const; void getRulesCountAsync(const Model::GetRulesCountRequest& request, const GetRulesCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRulesCountOutcomeCallable getRulesCountCallable(const Model::GetRulesCountRequest& request) const; + GetServiceTrailOutcome getServiceTrail(const Model::GetServiceTrailRequest &request)const; + void getServiceTrailAsync(const Model::GetServiceTrailRequest& request, const GetServiceTrailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetServiceTrailOutcomeCallable getServiceTrailCallable(const Model::GetServiceTrailRequest& request) const; GetSuspiciousStatisticsOutcome getSuspiciousStatistics(const Model::GetSuspiciousStatisticsRequest &request)const; void getSuspiciousStatisticsAsync(const Model::GetSuspiciousStatisticsRequest& request, const GetSuspiciousStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSuspiciousStatisticsOutcomeCallable getSuspiciousStatisticsCallable(const Model::GetSuspiciousStatisticsRequest& request) const; @@ -3503,6 +3624,21 @@ namespace AlibabaCloud JoinWebLockProcessWhiteListOutcome joinWebLockProcessWhiteList(const Model::JoinWebLockProcessWhiteListRequest &request)const; void joinWebLockProcessWhiteListAsync(const Model::JoinWebLockProcessWhiteListRequest& request, const JoinWebLockProcessWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; JoinWebLockProcessWhiteListOutcomeCallable joinWebLockProcessWhiteListCallable(const Model::JoinWebLockProcessWhiteListRequest& request) const; + ListAgentlessRegionOutcome listAgentlessRegion(const Model::ListAgentlessRegionRequest &request)const; + void listAgentlessRegionAsync(const Model::ListAgentlessRegionRequest& request, const ListAgentlessRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentlessRegionOutcomeCallable listAgentlessRegionCallable(const Model::ListAgentlessRegionRequest& request) const; + ListAgentlessRelateMaliciousOutcome listAgentlessRelateMalicious(const Model::ListAgentlessRelateMaliciousRequest &request)const; + void listAgentlessRelateMaliciousAsync(const Model::ListAgentlessRelateMaliciousRequest& request, const ListAgentlessRelateMaliciousAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentlessRelateMaliciousOutcomeCallable listAgentlessRelateMaliciousCallable(const Model::ListAgentlessRelateMaliciousRequest& request) const; + ListAgentlessRiskUuidOutcome listAgentlessRiskUuid(const Model::ListAgentlessRiskUuidRequest &request)const; + void listAgentlessRiskUuidAsync(const Model::ListAgentlessRiskUuidRequest& request, const ListAgentlessRiskUuidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentlessRiskUuidOutcomeCallable listAgentlessRiskUuidCallable(const Model::ListAgentlessRiskUuidRequest& request) const; + ListAgentlessTaskOutcome listAgentlessTask(const Model::ListAgentlessTaskRequest &request)const; + void listAgentlessTaskAsync(const Model::ListAgentlessTaskRequest& request, const ListAgentlessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAgentlessTaskOutcomeCallable listAgentlessTaskCallable(const Model::ListAgentlessTaskRequest& request) const; + ListAssetRefreshTaskConfigOutcome listAssetRefreshTaskConfig(const Model::ListAssetRefreshTaskConfigRequest &request)const; + void listAssetRefreshTaskConfigAsync(const Model::ListAssetRefreshTaskConfigRequest& request, const ListAssetRefreshTaskConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAssetRefreshTaskConfigOutcomeCallable listAssetRefreshTaskConfigCallable(const Model::ListAssetRefreshTaskConfigRequest& request) const; ListAssetSelectionSelectedTargetOutcome listAssetSelectionSelectedTarget(const Model::ListAssetSelectionSelectedTargetRequest &request)const; void listAssetSelectionSelectedTargetAsync(const Model::ListAssetSelectionSelectedTargetRequest& request, const ListAssetSelectionSelectedTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAssetSelectionSelectedTargetOutcomeCallable listAssetSelectionSelectedTargetCallable(const Model::ListAssetSelectionSelectedTargetRequest& request) const; diff --git a/sas/include/alibabacloud/sas/model/AddImageVulWhiteListRequest.h b/sas/include/alibabacloud/sas/model/AddImageVulWhiteListRequest.h new file mode 100644 index 000000000..21c4cf59d --- /dev/null +++ b/sas/include/alibabacloud/sas/model/AddImageVulWhiteListRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_ADDIMAGEVULWHITELISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_ADDIMAGEVULWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT AddImageVulWhiteListRequest : public RpcServiceRequest { +public: + AddImageVulWhiteListRequest(); + ~AddImageVulWhiteListRequest(); + std::string getReason() const; + void setReason(const std::string &reason); + std::string getType() const; + void setType(const std::string &type); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getWhitelist() const; + void setWhitelist(const std::string &whitelist); + std::string getTarget() const; + void setTarget(const std::string &target); + +private: + std::string reason_; + std::string type_; + std::string lang_; + std::string whitelist_; + std::string target_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_ADDIMAGEVULWHITELISTREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/AddImageVulWhiteListResult.h b/sas/include/alibabacloud/sas/model/AddImageVulWhiteListResult.h new file mode 100644 index 000000000..30fad309d --- /dev/null +++ b/sas/include/alibabacloud/sas/model/AddImageVulWhiteListResult.h @@ -0,0 +1,59 @@ +/* + * 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_ADDIMAGEVULWHITELISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_ADDIMAGEVULWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT AddImageVulWhiteListResult : public ServiceResult + { + public: + + + AddImageVulWhiteListResult(); + explicit AddImageVulWhiteListResult(const std::string &payload); + ~AddImageVulWhiteListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + bool getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + bool data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_ADDIMAGEVULWHITELISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigRequest.h b/sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigRequest.h new file mode 100644 index 000000000..4799bbb8b --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigRequest.h @@ -0,0 +1,53 @@ +/* + * 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_CHANGEASSETREFRESHTASKCONFIGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_CHANGEASSETREFRESHTASKCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ChangeAssetRefreshTaskConfigRequest : public RpcServiceRequest { +public: + struct AssetRefreshConfigs { + int vendor; + int schedulePeriod; + int status; + }; + ChangeAssetRefreshTaskConfigRequest(); + ~ChangeAssetRefreshTaskConfigRequest(); + std::vector getAssetRefreshConfigs() const; + void setAssetRefreshConfigs(const std::vector &assetRefreshConfigs); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::vector assetRefreshConfigs_; + std::string sourceIp_; + std::string regionId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_CHANGEASSETREFRESHTASKCONFIGREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigResult.h b/sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigResult.h new file mode 100644 index 000000000..43451562b --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ChangeAssetRefreshTaskConfigResult.h @@ -0,0 +1,53 @@ +/* + * 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_CHANGEASSETREFRESHTASKCONFIGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_CHANGEASSETREFRESHTASKCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ChangeAssetRefreshTaskConfigResult : public ServiceResult + { + public: + + + ChangeAssetRefreshTaskConfigResult(); + explicit ChangeAssetRefreshTaskConfigResult(const std::string &payload); + ~ChangeAssetRefreshTaskConfigResult(); + std::string getMessage()const; + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_CHANGEASSETREFRESHTASKCONFIGRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ChangeCheckConfigRequest.h b/sas/include/alibabacloud/sas/model/ChangeCheckConfigRequest.h index a25199a41..641b2d8ea 100644 --- a/sas/include/alibabacloud/sas/model/ChangeCheckConfigRequest.h +++ b/sas/include/alibabacloud/sas/model/ChangeCheckConfigRequest.h @@ -28,6 +28,14 @@ namespace Sas { namespace Model { class ALIBABACLOUD_SAS_EXPORT ChangeCheckConfigRequest : public RpcServiceRequest { public: + struct RemovedCheck { + long sectionId; + long checkId; + }; + struct AddedCheck { + long sectionId; + long checkId; + }; ChangeCheckConfigRequest(); ~ChangeCheckConfigRequest(); std::vector getStandardIds() const; @@ -40,8 +48,16 @@ public: void setSourceIp(const std::string &sourceIp); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::vector getRemovedCheck() const; + void setRemovedCheck(const std::vector &removedCheck); + bool getEnableAddCheck() const; + void setEnableAddCheck(bool enableAddCheck); + bool getEnableAutoCheck() const; + void setEnableAutoCheck(bool enableAutoCheck); int getEndTime() const; void setEndTime(int endTime); + std::vector getAddedCheck() const; + void setAddedCheck(const std::vector &addedCheck); private: std::vector standardIds_; @@ -49,7 +65,11 @@ private: int startTime_; std::string sourceIp_; std::string regionId_; + std::vector removedCheck_; + bool enableAddCheck_; + bool enableAutoCheck_; int endTime_; + std::vector addedCheck_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskRequest.h b/sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskRequest.h new file mode 100644 index 000000000..5e79dccaa --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_CREATEAGENTLESSSCANTASKREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATEAGENTLESSSCANTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT CreateAgentlessScanTaskRequest : public RpcServiceRequest { +public: + CreateAgentlessScanTaskRequest(); + ~CreateAgentlessScanTaskRequest(); + int getTargetType() const; + void setTargetType(int targetType); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::vector getUuidList() const; + void setUuidList(const std::vector &uuidList); + bool getScanDataDisk() const; + void setScanDataDisk(bool scanDataDisk); + bool getReleaseAfterScan() const; + void setReleaseAfterScan(bool releaseAfterScan); + int getAutoDeleteDays() const; + void setAutoDeleteDays(int autoDeleteDays); + +private: + int targetType_; + std::string sourceIp_; + std::vector uuidList_; + bool scanDataDisk_; + bool releaseAfterScan_; + int autoDeleteDays_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_CREATEAGENTLESSSCANTASKREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskResult.h b/sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskResult.h new file mode 100644 index 000000000..da906180c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateAgentlessScanTaskResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_CREATEAGENTLESSSCANTASKRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATEAGENTLESSSCANTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT CreateAgentlessScanTaskResult : public ServiceResult + { + public: + + + CreateAgentlessScanTaskResult(); + explicit CreateAgentlessScanTaskResult(const std::string &payload); + ~CreateAgentlessScanTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_CREATEAGENTLESSSCANTASKRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/CreateServiceTrailRequest.h b/sas/include/alibabacloud/sas/model/CreateServiceTrailRequest.h new file mode 100644 index 000000000..6ed946b8b --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateServiceTrailRequest.h @@ -0,0 +1,45 @@ +/* + * 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_CREATESERVICETRAILREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATESERVICETRAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT CreateServiceTrailRequest : public RpcServiceRequest { +public: + CreateServiceTrailRequest(); + ~CreateServiceTrailRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string sourceIp_; + std::string regionId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_CREATESERVICETRAILREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/CreateServiceTrailResult.h b/sas/include/alibabacloud/sas/model/CreateServiceTrailResult.h new file mode 100644 index 000000000..f076ae1cc --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateServiceTrailResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_CREATESERVICETRAILRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATESERVICETRAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT CreateServiceTrailResult : public ServiceResult + { + public: + + + CreateServiceTrailResult(); + explicit CreateServiceTrailResult(const std::string &payload); + ~CreateServiceTrailResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_CREATESERVICETRAILRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyRequest.h b/sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyRequest.h new file mode 100644 index 000000000..76af1b38e --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyRequest.h @@ -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_DELETEBINARYSECURITYPOLICYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DELETEBINARYSECURITYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DeleteBinarySecurityPolicyRequest : public RpcServiceRequest { +public: + DeleteBinarySecurityPolicyRequest(); + ~DeleteBinarySecurityPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string sourceIp_; + std::string name_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DELETEBINARYSECURITYPOLICYREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyResult.h b/sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyResult.h new file mode 100644 index 000000000..91f3d80ed --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DeleteBinarySecurityPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DELETEBINARYSECURITYPOLICYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DELETEBINARYSECURITYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DeleteBinarySecurityPolicyResult : public ServiceResult + { + public: + + + DeleteBinarySecurityPolicyResult(); + explicit DeleteBinarySecurityPolicyResult(const std::string &payload); + ~DeleteBinarySecurityPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DELETEBINARYSECURITYPOLICYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DeleteServiceTrailRequest.h b/sas/include/alibabacloud/sas/model/DeleteServiceTrailRequest.h new file mode 100644 index 000000000..ba71b1b9b --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DeleteServiceTrailRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DELETESERVICETRAILREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DELETESERVICETRAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DeleteServiceTrailRequest : public RpcServiceRequest { +public: + DeleteServiceTrailRequest(); + ~DeleteServiceTrailRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string sourceIp_; + std::string regionId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DELETESERVICETRAILREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DeleteServiceTrailResult.h b/sas/include/alibabacloud/sas/model/DeleteServiceTrailResult.h new file mode 100644 index 000000000..29a52120d --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DeleteServiceTrailResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DELETESERVICETRAILRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DELETESERVICETRAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DeleteServiceTrailResult : public ServiceResult + { + public: + + + DeleteServiceTrailResult(); + explicit DeleteServiceTrailResult(const std::string &payload); + ~DeleteServiceTrailResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DELETESERVICETRAILRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAccessKeyLeakDetailResult.h b/sas/include/alibabacloud/sas/model/DescribeAccessKeyLeakDetailResult.h index 591a10e8f..2ff0bdac8 100644 --- a/sas/include/alibabacloud/sas/model/DescribeAccessKeyLeakDetailResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeAccessKeyLeakDetailResult.h @@ -46,10 +46,12 @@ namespace AlibabaCloud std::string getCode()const; std::string getSource()const; std::string getRemark()const; + long getWhitelistTime()const; std::string getType()const; std::string getGithubUserPicUrl()const; std::string getGithubFileUpdateTime()const; std::string getGmtCreate()const; + int getTokenValid()const; std::string getAccesskeyId()const; std::string getGithubFileUrl()const; std::string getGithubFileType()const; @@ -69,10 +71,12 @@ namespace AlibabaCloud std::string code_; std::string source_; std::string remark_; + long whitelistTime_; std::string type_; std::string githubUserPicUrl_; std::string githubFileUpdateTime_; std::string gmtCreate_; + int tokenValid_; std::string accesskeyId_; std::string githubFileUrl_; std::string githubFileType_; diff --git a/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h b/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h index 56c6a08d2..9598e7b74 100644 --- a/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeAlarmEventStackInfoRequest.h @@ -38,6 +38,8 @@ public: void setSourceIp(const std::string &sourceIp); std::string getLang() const; void setLang(const std::string &lang); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); std::string getUniqueInfo() const; void setUniqueInfo(const std::string &uniqueInfo); @@ -46,6 +48,7 @@ private: std::string eventName_; std::string sourceIp_; std::string lang_; + long resourceDirectoryAccountId_; std::string uniqueInfo_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesResult.h b/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesResult.h index fd8bf9b80..9a5122619 100644 --- a/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesResult.h @@ -50,6 +50,7 @@ namespace AlibabaCloud int machineCount; long id; int span; + long createTimestamp; std::string name; }; diff --git a/sas/include/alibabacloud/sas/model/DescribeAssetDetailByUuidsRequest.h b/sas/include/alibabacloud/sas/model/DescribeAssetDetailByUuidsRequest.h index f97450a1e..d488176f7 100644 --- a/sas/include/alibabacloud/sas/model/DescribeAssetDetailByUuidsRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeAssetDetailByUuidsRequest.h @@ -34,12 +34,15 @@ public: void setSourceIp(const std::string &sourceIp); std::string getLang() const; void setLang(const std::string &lang); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); std::string getUuids() const; void setUuids(const std::string &uuids); private: std::string sourceIp_; std::string lang_; + long resourceDirectoryAccountId_; std::string uuids_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesRequest.h b/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesRequest.h index d48b57f82..fe7f2843e 100644 --- a/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesRequest.h @@ -40,14 +40,18 @@ public: void setRegionId(const std::string ®ionId); bool getNoPage() const; void setNoPage(bool noPage); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); int getPageSize() const; void setPageSize(int pageSize); std::string getLogicalExp() const; void setLogicalExp(const std::string &logicalExp); std::string getLang() const; void setLang(const std::string &lang); - std::string getResourceDirectoryAccountId() const; - void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); + bool getUseNextToken() const; + void setUseNextToken(bool useNextToken); int getCurrentPage() const; void setCurrentPage(int currentPage); std::string getMachineTypes() const; @@ -61,10 +65,12 @@ private: std::string sourceIp_; std::string regionId_; bool noPage_; + std::string nextToken_; int pageSize_; std::string logicalExp_; std::string lang_; - std::string resourceDirectoryAccountId_; + long resourceDirectoryAccountId_; + bool useNextToken_; int currentPage_; std::string machineTypes_; bool noGroupTrace_; diff --git a/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesResult.h b/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesResult.h index 9f261db6b..c71a1fc1b 100644 --- a/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeCloudCenterInstancesResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { int totalCount; int pageSize; + std::string nextToken; int currentPage; int count; }; diff --git a/sas/include/alibabacloud/sas/model/DescribeContainerInstancesResult.h b/sas/include/alibabacloud/sas/model/DescribeContainerInstancesResult.h index c7c4eee46..8aa2effe4 100644 --- a/sas/include/alibabacloud/sas/model/DescribeContainerInstancesResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeContainerInstancesResult.h @@ -63,6 +63,7 @@ namespace AlibabaCloud std::string riskStatus; int vulCount; std::string imageRepoName; + int exposed; std::string nodeInfo; std::string podIp; std::string alarmStatus; @@ -70,6 +71,7 @@ namespace AlibabaCloud std::string imageRepoTag; std::string hcStatus; std::string updateMark; + std::string exposedDetail; }; diff --git a/sas/include/alibabacloud/sas/model/DescribeFieldStatisticsRequest.h b/sas/include/alibabacloud/sas/model/DescribeFieldStatisticsRequest.h index dd560cd2a..f38ac3f7b 100644 --- a/sas/include/alibabacloud/sas/model/DescribeFieldStatisticsRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeFieldStatisticsRequest.h @@ -30,17 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT DescribeFieldStatisticsRequest : public RpcService public: DescribeFieldStatisticsRequest(); ~DescribeFieldStatisticsRequest(); - std::string getMachineTypes() const; - void setMachineTypes(const std::string &machineTypes); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); + std::string getMachineTypes() const; + void setMachineTypes(const std::string &machineTypes); private: - std::string machineTypes_; std::string sourceIp_; std::string regionId_; + long resourceDirectoryAccountId_; + std::string machineTypes_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeGroupedInstancesResult.h b/sas/include/alibabacloud/sas/model/DescribeGroupedInstancesResult.h index 1da686b03..560dd0f27 100644 --- a/sas/include/alibabacloud/sas/model/DescribeGroupedInstancesResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeGroupedInstancesResult.h @@ -44,6 +44,7 @@ namespace AlibabaCloud std::string fieldAliasName; std::string instanceCount; long asapVulInstanceCount; + std::string os; int authVersionCheckCount; std::string unProtectedInstanceCount; long fieldId; diff --git a/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h b/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h index b0f161fcf..8f1526373 100644 --- a/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h @@ -78,6 +78,8 @@ public: void setLang(const std::string &lang); long getLastTsStart() const; void setLastTsStart(long lastTsStart); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); std::string getAssetType() const; void setAssetType(const std::string &assetType); std::string getDirection() const; @@ -116,6 +118,7 @@ private: int pageSize_; std::string lang_; long lastTsStart_; + long resourceDirectoryAccountId_; std::string assetType_; std::string direction_; std::string dealed_; diff --git a/sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListRequest.h b/sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListRequest.h new file mode 100644 index 000000000..bc6d2649c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGEVULWHITELISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGEVULWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DescribeImageVulWhiteListRequest : public RpcServiceRequest { +public: + DescribeImageVulWhiteListRequest(); + ~DescribeImageVulWhiteListRequest(); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getAliasName() const; + void setAliasName(const std::string &aliasName); + +private: + int pageSize_; + std::string lang_; + int currentPage_; + std::string aliasName_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGEVULWHITELISTREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListResult.h b/sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListResult.h new file mode 100644 index 000000000..6d3fdde8a --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeImageVulWhiteListResult.h @@ -0,0 +1,79 @@ +/* + * 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_DESCRIBEIMAGEVULWHITELISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGEVULWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeImageVulWhiteListResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct VulList + { + std::string target; + std::string type; + std::string aliasName; + long id; + std::string reason; + std::string name; + }; + + + DescribeImageVulWhiteListResult(); + explicit DescribeImageVulWhiteListResult(const std::string &payload); + ~DescribeImageVulWhiteListResult(); + PageInfo getPageInfo()const; + std::string getMessage()const; + int getHttpStatusCode()const; + long getTimeCost()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getImageVulWhitelist()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::string message_; + int httpStatusCode_; + long timeCost_; + std::string code_; + bool success_; + std::vector imageVulWhitelist_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEIMAGEVULWHITELISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeMonitorAccountsRequest.h b/sas/include/alibabacloud/sas/model/DescribeMonitorAccountsRequest.h new file mode 100644 index 000000000..523ca5f02 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeMonitorAccountsRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DESCRIBEMONITORACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEMONITORACCOUNTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DescribeMonitorAccountsRequest : public RpcServiceRequest { +public: + DescribeMonitorAccountsRequest(); + ~DescribeMonitorAccountsRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getAccountIds() const; + void setAccountIds(const std::string &accountIds); + +private: + std::string sourceIp_; + std::string accountIds_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEMONITORACCOUNTSREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DescribeMonitorAccountsResult.h b/sas/include/alibabacloud/sas/model/DescribeMonitorAccountsResult.h new file mode 100644 index 000000000..d9f57a3fd --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeMonitorAccountsResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEMONITORACCOUNTSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEMONITORACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeMonitorAccountsResult : public ServiceResult + { + public: + + + DescribeMonitorAccountsResult(); + explicit DescribeMonitorAccountsResult(const std::string &payload); + ~DescribeMonitorAccountsResult(); + std::vector getAccountIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accountIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEMONITORACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListRequest.h b/sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListRequest.h new file mode 100644 index 000000000..950ba35cd --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYEVENTMARKMISSLISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYEVENTMARKMISSLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DescribeSecurityEventMarkMissListRequest : public RpcServiceRequest { +public: + DescribeSecurityEventMarkMissListRequest(); + ~DescribeSecurityEventMarkMissListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRemark() const; + void setRemark(const std::string &remark); + std::string getEventName() const; + void setEventName(const std::string &eventName); + 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_; + std::string remark_; + std::string eventName_; + std::string sourceIp_; + int pageSize_; + int currentPage_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYEVENTMARKMISSLISTREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListResult.h b/sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListResult.h new file mode 100644 index 000000000..35d505f37 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSecurityEventMarkMissListResult.h @@ -0,0 +1,78 @@ +/* + * 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_DESCRIBESECURITYEVENTMARKMISSLISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYEVENTMARKMISSLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeSecurityEventMarkMissListResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct SecurityEventMarkMissReponse + { + std::string instanceId; + std::string eventType; + std::string eventName; + std::string operate; + std::string eventNameOriginal; + std::string intranetIp; + std::string instanceName; + std::string field; + std::string uuid; + std::string internetIp; + std::string eventTypeOriginal; + std::string fieldValue; + long id; + long aliUid; + std::string filedAliasName; + }; + + + DescribeSecurityEventMarkMissListResult(); + explicit DescribeSecurityEventMarkMissListResult(const std::string &payload); + ~DescribeSecurityEventMarkMissListResult(); + PageInfo getPageInfo()const; + std::vector getList()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::vector list_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYEVENTMARKMISSLISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h index 086dd921c..3d49c307c 100644 --- a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h @@ -36,6 +36,8 @@ public: void setFrom(const std::string &from); std::string getLang() const; void setLang(const std::string &lang); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); int getSuspiciousEventId() const; void setSuspiciousEventId(int suspiciousEventId); @@ -43,6 +45,7 @@ private: std::string sourceIp_; std::string from_; std::string lang_; + long resourceDirectoryAccountId_; int suspiciousEventId_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.h index aa3ce7099..f6779dc1b 100644 --- a/sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.h @@ -72,6 +72,8 @@ public: void setPageSize(const std::string &pageSize); std::string getLang() const; void setLang(const std::string &lang); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); std::string getDealed() const; void setDealed(const std::string &dealed); std::string getCurrentPage() const; @@ -115,6 +117,7 @@ private: std::string containerFieldValue_; std::string pageSize_; std::string lang_; + long resourceDirectoryAccountId_; std::string dealed_; std::string currentPage_; std::string clusterId_; diff --git a/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h b/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h index 7d31438f3..1a4e1a352 100644 --- a/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h @@ -47,11 +47,13 @@ namespace AlibabaCloud explicit DescribeUuidsByVulNamesResult(const std::string &payload); ~DescribeUuidsByVulNamesResult(); std::vector getMachineInfoStatistics()const; + int getVulCount()const; protected: void parse(const std::string &payload); private: std::vector machineInfoStatistics_; + int vulCount_; }; } diff --git a/sas/include/alibabacloud/sas/model/DescribeVersionConfigResult.h b/sas/include/alibabacloud/sas/model/DescribeVersionConfigResult.h index 4c7db6315..d65e295ac 100644 --- a/sas/include/alibabacloud/sas/model/DescribeVersionConfigResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeVersionConfigResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud long getImageScanCapacity()const; long getAppWhiteListAuthCount()const; int getLogTime()const; + long getRaspCapacity()const; int getSasLog()const; long getOpenTime()const; int getVersion()const; @@ -52,16 +53,19 @@ namespace AlibabaCloud long getSlsCapacity()const; int getUserDefinedAlarms()const; int getAllowPartialBuy()const; + long getAgentlessCapacity()const; int getWebLock()const; long getThreatAnalysisCapacity()const; bool getIsOverBalance()const; int getVmCores()const; long getHoneypotCapacity()const; + long getVulFixCapacity()const; int getAssetLevel()const; std::string getInstanceId()const; long getLastInstanceReleaseTime()const; long getCreateTime()const; int getSasScreen()const; + long getCspmCapacity()const; bool getIsSasOpening()const; int getLogCapacity()const; int getFlag()const; @@ -81,6 +85,7 @@ namespace AlibabaCloud long imageScanCapacity_; long appWhiteListAuthCount_; int logTime_; + long raspCapacity_; int sasLog_; long openTime_; int version_; @@ -91,16 +96,19 @@ namespace AlibabaCloud long slsCapacity_; int userDefinedAlarms_; int allowPartialBuy_; + long agentlessCapacity_; int webLock_; long threatAnalysisCapacity_; bool isOverBalance_; int vmCores_; long honeypotCapacity_; + long vulFixCapacity_; int assetLevel_; std::string instanceId_; long lastInstanceReleaseTime_; long createTime_; int sasScreen_; + long cspmCapacity_; bool isSasOpening_; int logCapacity_; int flag_; diff --git a/sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h b/sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h index 4298c6c4f..ce1eb5fde 100644 --- a/sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h @@ -36,6 +36,8 @@ public: void setSourceIp(const std::string &sourceIp); std::string getLang() const; void setLang(const std::string &lang); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); std::string getAliasName() const; void setAliasName(const std::string &aliasName); std::string getName() const; @@ -45,6 +47,7 @@ private: std::string type_; std::string sourceIp_; std::string lang_; + long resourceDirectoryAccountId_; std::string aliasName_; std::string name_; }; diff --git a/sas/include/alibabacloud/sas/model/DescribeVulListRequest.h b/sas/include/alibabacloud/sas/model/DescribeVulListRequest.h index 9d80bc664..809887fff 100644 --- a/sas/include/alibabacloud/sas/model/DescribeVulListRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeVulListRequest.h @@ -86,6 +86,8 @@ public: void setModifyTsStart(long modifyTsStart); std::string getLang() const; void setLang(const std::string &lang); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); std::string getAssetType() const; void setAssetType(const std::string &assetType); std::string getDealed() const; @@ -126,6 +128,7 @@ private: int pageSize_; long modifyTsStart_; std::string lang_; + long resourceDirectoryAccountId_; std::string assetType_; std::string dealed_; int currentPage_; diff --git a/sas/include/alibabacloud/sas/model/GetAgentlessTaskCountRequest.h b/sas/include/alibabacloud/sas/model/GetAgentlessTaskCountRequest.h new file mode 100644 index 000000000..40b3890b5 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetAgentlessTaskCountRequest.h @@ -0,0 +1,42 @@ +/* + * 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_GETAGENTLESSTASKCOUNTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETAGENTLESSTASKCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT GetAgentlessTaskCountRequest : public RpcServiceRequest { +public: + GetAgentlessTaskCountRequest(); + ~GetAgentlessTaskCountRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string sourceIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_GETAGENTLESSTASKCOUNTREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/GetAgentlessTaskCountResult.h b/sas/include/alibabacloud/sas/model/GetAgentlessTaskCountResult.h new file mode 100644 index 000000000..9a5e1c5ff --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetAgentlessTaskCountResult.h @@ -0,0 +1,65 @@ +/* + * 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_GETAGENTLESSTASKCOUNTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_GETAGENTLESSTASKCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT GetAgentlessTaskCountResult : public ServiceResult + { + public: + + + GetAgentlessTaskCountResult(); + explicit GetAgentlessTaskCountResult(const std::string &payload); + ~GetAgentlessTaskCountResult(); + int getBaselineCheckCount()const; + int getMaliciousFile()const; + long getLastTaskTime()const; + int getCveVulCount()const; + int getVulnerability()const; + int getScaVulCount()const; + int getRiskMachine()const; + int getScanMachine()const; + + protected: + void parse(const std::string &payload); + private: + int baselineCheckCount_; + int maliciousFile_; + long lastTaskTime_; + int cveVulCount_; + int vulnerability_; + int scaVulCount_; + int riskMachine_; + int scanMachine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_GETAGENTLESSTASKCOUNTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetCheckConfigResult.h b/sas/include/alibabacloud/sas/model/GetCheckConfigResult.h index dadaa5cad..72594d82e 100644 --- a/sas/include/alibabacloud/sas/model/GetCheckConfigResult.h +++ b/sas/include/alibabacloud/sas/model/GetCheckConfigResult.h @@ -32,32 +32,43 @@ namespace AlibabaCloud class ALIBABACLOUD_SAS_EXPORT GetCheckConfigResult : public ServiceResult { public: - struct StandardsItem + struct Standard { std::string status; std::string type; long id; std::string showName; }; + struct SelectedCheck + { + long checkId; + long sectionId; + }; GetCheckConfigResult(); explicit GetCheckConfigResult(const std::string &payload); ~GetCheckConfigResult(); + std::vector getSelectedChecks()const; int getEndTime()const; + bool getEnableAutoCheck()const; std::vector getCycleDays()const; + bool getEnableAddCheck()const; int getStartTime()const; std::string getData()const; - std::vector getStandards()const; + std::vector getStandards()const; protected: void parse(const std::string &payload); private: + std::vector selectedChecks_; int endTime_; + bool enableAutoCheck_; std::vector cycleDays_; + bool enableAddCheck_; int startTime_; std::string data_; - std::vector standards_; + std::vector standards_; }; } diff --git a/sas/include/alibabacloud/sas/model/GetClientRatioStatisticRequest.h b/sas/include/alibabacloud/sas/model/GetClientRatioStatisticRequest.h new file mode 100644 index 000000000..3b2ad897a --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetClientRatioStatisticRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_GETCLIENTRATIOSTATISTICREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETCLIENTRATIOSTATISTICREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT GetClientRatioStatisticRequest : public RpcServiceRequest { +public: + GetClientRatioStatisticRequest(); + ~GetClientRatioStatisticRequest(); + long getTimeEnd() const; + void setTimeEnd(long timeEnd); + long getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(long resourceDirectoryAccountId); + std::vector getStatisticTypes() const; + void setStatisticTypes(const std::vector &statisticTypes); + long getTimeStart() const; + void setTimeStart(long timeStart); + +private: + long timeEnd_; + long resourceDirectoryAccountId_; + std::vector statisticTypes_; + long timeStart_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_GETCLIENTRATIOSTATISTICREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/GetClientRatioStatisticResult.h b/sas/include/alibabacloud/sas/model/GetClientRatioStatisticResult.h new file mode 100644 index 000000000..e48955b33 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetClientRatioStatisticResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_GETCLIENTRATIOSTATISTICRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_GETCLIENTRATIOSTATISTICRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT GetClientRatioStatisticResult : public ServiceResult + { + public: + struct ClientInstallRatio + { + struct HistoryItemsItem + { + struct HistoryItem + { + int installedAssetCount; + long calculateTime; + double installRatio; + int assetTotalCount; + }; + std::vector items; + long vendor; + }; + struct CurrentItemsItem + { + struct ItemsItem + { + int installedAssetCount; + long calculateTime; + double installRatio; + int assetTotalCount; + }; + std::vector items1; + long vendor; + }; + std::vector currentItems; + std::vector historyItems; + }; + struct ClientOnlineRatio + { + struct HistoryItemsItem4 + { + struct HistoryItem6 + { + int onlineAssetCount; + long calculateTime; + int assetInstallCount; + double onlineRatio; + }; + std::vector items5; + long vendor; + }; + struct CurrentItemsItem7 + { + struct ItemsItem9 + { + int onlineAssetCount; + long calculateTime; + int assetInstallCount; + double onlineRatio; + }; + std::vector items8; + long vendor; + }; + std::vector currentItems3; + std::vector historyItems2; + }; + + + GetClientRatioStatisticResult(); + explicit GetClientRatioStatisticResult(const std::string &payload); + ~GetClientRatioStatisticResult(); + ClientOnlineRatio getClientOnlineRatio()const; + std::vector getDates()const; + ClientInstallRatio getClientInstallRatio()const; + + protected: + void parse(const std::string &payload); + private: + ClientOnlineRatio clientOnlineRatio_; + std::vector dates_; + ClientInstallRatio clientInstallRatio_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_GETCLIENTRATIOSTATISTICRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetServiceTrailRequest.h b/sas/include/alibabacloud/sas/model/GetServiceTrailRequest.h new file mode 100644 index 000000000..98b57bb3f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetServiceTrailRequest.h @@ -0,0 +1,45 @@ +/* + * 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_GETSERVICETRAILREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETSERVICETRAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT GetServiceTrailRequest : public RpcServiceRequest { +public: + GetServiceTrailRequest(); + ~GetServiceTrailRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string sourceIp_; + std::string regionId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_GETSERVICETRAILREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/GetServiceTrailResult.h b/sas/include/alibabacloud/sas/model/GetServiceTrailResult.h new file mode 100644 index 000000000..854a20222 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetServiceTrailResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_GETSERVICETRAILRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_GETSERVICETRAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT GetServiceTrailResult : public ServiceResult + { + public: + struct ServiceTrail + { + std::string config; + long createTime; + long updateTime; + }; + + + GetServiceTrailResult(); + explicit GetServiceTrailResult(const std::string &payload); + ~GetServiceTrailResult(); + ServiceTrail getServiceTrail()const; + + protected: + void parse(const std::string &payload); + private: + ServiceTrail serviceTrail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_GETSERVICETRAILRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/HandleSecurityEventsRequest.h b/sas/include/alibabacloud/sas/model/HandleSecurityEventsRequest.h index 56811e8c8..6975a7280 100644 --- a/sas/include/alibabacloud/sas/model/HandleSecurityEventsRequest.h +++ b/sas/include/alibabacloud/sas/model/HandleSecurityEventsRequest.h @@ -36,6 +36,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::vector getSecurityEventIds() const; void setSecurityEventIds(const std::vector &securityEventIds); + std::string getRemark() const; + void setRemark(const std::string &remark); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getOperationCode() const; @@ -49,6 +51,7 @@ private: std::string markMissParam_; long resourceOwnerId_; std::vector securityEventIds_; + std::string remark_; std::string sourceIp_; std::string operationCode_; std::string operationParams_; diff --git a/sas/include/alibabacloud/sas/model/HandleSimilarSecurityEventsRequest.h b/sas/include/alibabacloud/sas/model/HandleSimilarSecurityEventsRequest.h index a45e035a7..5c450f393 100644 --- a/sas/include/alibabacloud/sas/model/HandleSimilarSecurityEventsRequest.h +++ b/sas/include/alibabacloud/sas/model/HandleSimilarSecurityEventsRequest.h @@ -34,6 +34,8 @@ public: void setMarkMissParam(const std::string &markMissParam); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getRemark() const; + void setRemark(const std::string &remark); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getOperationCode() const; @@ -46,6 +48,7 @@ public: private: std::string markMissParam_; long resourceOwnerId_; + std::string remark_; std::string sourceIp_; std::string operationCode_; long taskId_; diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessRegionRequest.h b/sas/include/alibabacloud/sas/model/ListAgentlessRegionRequest.h new file mode 100644 index 000000000..0b7bebad4 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessRegionRequest.h @@ -0,0 +1,42 @@ +/* + * 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_LISTAGENTLESSREGIONREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListAgentlessRegionRequest : public RpcServiceRequest { +public: + ListAgentlessRegionRequest(); + ~ListAgentlessRegionRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string sourceIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSREGIONREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessRegionResult.h b/sas/include/alibabacloud/sas/model/ListAgentlessRegionResult.h new file mode 100644 index 000000000..543922132 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessRegionResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSREGIONRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListAgentlessRegionResult : public ServiceResult + { + public: + + + ListAgentlessRegionResult(); + explicit ListAgentlessRegionResult(const std::string &payload); + ~ListAgentlessRegionResult(); + std::vector getRegionList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regionList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSREGIONRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousRequest.h b/sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousRequest.h new file mode 100644 index 000000000..2ab8495d0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRELATEMALICIOUSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRELATEMALICIOUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListAgentlessRelateMaliciousRequest : public RpcServiceRequest { +public: + ListAgentlessRelateMaliciousRequest(); + ~ListAgentlessRelateMaliciousRequest(); + long getEventId() const; + void setEventId(long eventId); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + +private: + long eventId_; + std::string sourceIp_; + std::string pageSize_; + int currentPage_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRELATEMALICIOUSREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousResult.h b/sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousResult.h new file mode 100644 index 000000000..a3447c86c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessRelateMaliciousResult.h @@ -0,0 +1,70 @@ +/* + * 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_LISTAGENTLESSRELATEMALICIOUSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRELATEMALICIOUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListAgentlessRelateMaliciousResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct ListItem + { + std::string instanceName; + std::string filePath; + long latestScanTimestamp; + std::string uuid; + std::string internetIp; + std::string intranetIp; + long firstScanTimestamp; + }; + + + ListAgentlessRelateMaliciousResult(); + explicit ListAgentlessRelateMaliciousResult(const std::string &payload); + ~ListAgentlessRelateMaliciousResult(); + PageInfo getPageInfo()const; + std::vector getList()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::vector list_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRELATEMALICIOUSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidRequest.h b/sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidRequest.h new file mode 100644 index 000000000..a7332874c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRISKUUIDREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRISKUUIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListAgentlessRiskUuidRequest : public RpcServiceRequest { +public: + ListAgentlessRiskUuidRequest(); + ~ListAgentlessRiskUuidRequest(); + std::string getInternetIp() const; + void setInternetIp(const std::string &internetIp); + std::string getTargetName() const; + void setTargetName(const std::string &targetName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMachineName() const; + void setMachineName(const std::string &machineName); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + bool getRisk() const; + void setRisk(bool risk); + std::string getIntranetIp() const; + void setIntranetIp(const std::string &intranetIp); + +private: + std::string internetIp_; + std::string targetName_; + std::string sourceIp_; + int pageSize_; + std::string machineName_; + int currentPage_; + bool risk_; + std::string intranetIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRISKUUIDREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidResult.h b/sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidResult.h new file mode 100644 index 000000000..addc15f67 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessRiskUuidResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRISKUUIDRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRISKUUIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListAgentlessRiskUuidResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + }; + struct ListItem + { + std::string instanceName; + std::string uuid; + std::string internetIp; + int maliciousCount; + int baselineCount; + std::string targetName; + long scanTime; + std::string intranetIp; + std::string targetId; + int vulCount; + }; + + + ListAgentlessRiskUuidResult(); + explicit ListAgentlessRiskUuidResult(const std::string &payload); + ~ListAgentlessRiskUuidResult(); + PageInfo getPageInfo()const; + std::vector getList()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::vector list_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSRISKUUIDRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessTaskRequest.h b/sas/include/alibabacloud/sas/model/ListAgentlessTaskRequest.h new file mode 100644 index 000000000..0608d35a4 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessTaskRequest.h @@ -0,0 +1,87 @@ +/* + * 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_LISTAGENTLESSTASKREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListAgentlessTaskRequest : public RpcServiceRequest { +public: + ListAgentlessTaskRequest(); + ~ListAgentlessTaskRequest(); + std::string getInternetIp() const; + void setInternetIp(const std::string &internetIp); + int getTargetType() const; + void setTargetType(int targetType); + long getStartTime() const; + void setStartTime(long startTime); + std::string getUuid() const; + void setUuid(const std::string &uuid); + std::string getTargetName() const; + void setTargetName(const std::string &targetName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRootTaskId() const; + void setRootTaskId(const std::string &rootTaskId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMachineName() const; + void setMachineName(const std::string &machineName); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + long getEndTime() const; + void setEndTime(long endTime); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + bool getRootTask() const; + void setRootTask(bool rootTask); + int getStatus() const; + void setStatus(int status); + std::string getIntranetIp() const; + void setIntranetIp(const std::string &intranetIp); + +private: + std::string internetIp_; + int targetType_; + long startTime_; + std::string uuid_; + std::string targetName_; + std::string sourceIp_; + std::string rootTaskId_; + int pageSize_; + std::string machineName_; + std::string lang_; + std::string taskId_; + long endTime_; + int currentPage_; + bool rootTask_; + int status_; + std::string intranetIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSTASKREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListAgentlessTaskResult.h b/sas/include/alibabacloud/sas/model/ListAgentlessTaskResult.h new file mode 100644 index 000000000..459862954 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAgentlessTaskResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSTASKRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListAgentlessTaskResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + }; + struct ListItem + { + int status; + int progress; + std::string taskId; + long endTime; + long startTime; + std::string targetName; + std::string intranetIp; + std::string result; + std::string instanceName; + std::string uuid; + std::string internetIp; + std::string taskName; + int targetType; + }; + + + ListAgentlessTaskResult(); + explicit ListAgentlessTaskResult(const std::string &payload); + ~ListAgentlessTaskResult(); + PageInfo getPageInfo()const; + std::vector getList()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::vector list_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTAGENTLESSTASKRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigRequest.h b/sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigRequest.h new file mode 100644 index 000000000..d2ac9e193 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigRequest.h @@ -0,0 +1,42 @@ +/* + * 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_LISTASSETREFRESHTASKCONFIGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTASSETREFRESHTASKCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListAssetRefreshTaskConfigRequest : public RpcServiceRequest { +public: + ListAssetRefreshTaskConfigRequest(); + ~ListAssetRefreshTaskConfigRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTASSETREFRESHTASKCONFIGREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigResult.h b/sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigResult.h new file mode 100644 index 000000000..281b1764a --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListAssetRefreshTaskConfigResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTASSETREFRESHTASKCONFIGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTASSETREFRESHTASKCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListAssetRefreshTaskConfigResult : public ServiceResult + { + public: + struct AssetRefreshConfigItem + { + int status; + int schedulePeriod; + int vendor; + }; + + + ListAssetRefreshTaskConfigResult(); + explicit ListAssetRefreshTaskConfigResult(const std::string &payload); + ~ListAssetRefreshTaskConfigResult(); + std::vector getAssetRefreshConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::vector assetRefreshConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTASSETREFRESHTASKCONFIGRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListCheckInstanceResultResult.h b/sas/include/alibabacloud/sas/model/ListCheckInstanceResultResult.h index 004cbee98..42cda07ba 100644 --- a/sas/include/alibabacloud/sas/model/ListCheckInstanceResultResult.h +++ b/sas/include/alibabacloud/sas/model/ListCheckInstanceResultResult.h @@ -48,6 +48,7 @@ namespace AlibabaCloud std::string instanceId; long id; std::string regionId; + std::string statusMessage; }; struct ColumnsItem { diff --git a/sas/include/alibabacloud/sas/model/ListCheckResultRequest.h b/sas/include/alibabacloud/sas/model/ListCheckResultRequest.h index c99a110b9..7e88e9f81 100644 --- a/sas/include/alibabacloud/sas/model/ListCheckResultRequest.h +++ b/sas/include/alibabacloud/sas/model/ListCheckResultRequest.h @@ -38,6 +38,8 @@ public: void setRiskLevels(const std::vector &riskLevels); std::vector getInstanceTypes() const; void setInstanceTypes(const std::vector &instanceTypes); + bool getCustomParam() const; + void setCustomParam(bool customParam); std::string getCheckKey() const; void setCheckKey(const std::string &checkKey); std::string getSourceIp() const; @@ -68,6 +70,7 @@ private: std::vector standardIds_; std::vector riskLevels_; std::vector instanceTypes_; + bool customParam_; std::string checkKey_; std::string sourceIp_; std::string regionId_; diff --git a/sas/include/alibabacloud/sas/model/ListCheckResultResult.h b/sas/include/alibabacloud/sas/model/ListCheckResultResult.h index 951c9cd9f..0f0ae3b76 100644 --- a/sas/include/alibabacloud/sas/model/ListCheckResultResult.h +++ b/sas/include/alibabacloud/sas/model/ListCheckResultResult.h @@ -52,15 +52,16 @@ namespace AlibabaCloud long sectionId; std::string sectionShowName; }; - std::string instanceSubType; std::string status; - long lastCheckTime; std::string taskId; - long checkId; std::string vendorShowName; std::string checkShowName; bool trialPermission; std::string vendor; + std::string statusMessage; + std::string instanceSubType; + long lastCheckTime; + long checkId; std::vector checkPolicies; std::string instanceType; std::string riskLevel; diff --git a/sas/include/alibabacloud/sas/model/OperationCancelIgnoreSuspEventRequest.h b/sas/include/alibabacloud/sas/model/OperationCancelIgnoreSuspEventRequest.h index a390810b2..c456b15a1 100644 --- a/sas/include/alibabacloud/sas/model/OperationCancelIgnoreSuspEventRequest.h +++ b/sas/include/alibabacloud/sas/model/OperationCancelIgnoreSuspEventRequest.h @@ -32,9 +32,12 @@ public: ~OperationCancelIgnoreSuspEventRequest(); std::vector getSecurityEventIds() const; void setSecurityEventIds(const std::vector &securityEventIds); + std::string getRemark() const; + void setRemark(const std::string &remark); private: std::vector securityEventIds_; + std::string remark_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/SubmitCheckRequest.h b/sas/include/alibabacloud/sas/model/SubmitCheckRequest.h index 436741d49..8ab72c9ad 100644 --- a/sas/include/alibabacloud/sas/model/SubmitCheckRequest.h +++ b/sas/include/alibabacloud/sas/model/SubmitCheckRequest.h @@ -32,9 +32,12 @@ public: ~SubmitCheckRequest(); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); + std::string getScanRange() const; + void setScanRange(const std::string &scanRange); private: std::string sourceIp_; + std::string scanRange_; }; } // namespace Model } // namespace Sas diff --git a/sas/src/SasClient.cc b/sas/src/SasClient.cc index 9d0f5f066..3762bfbc6 100644 --- a/sas/src/SasClient.cc +++ b/sas/src/SasClient.cc @@ -195,6 +195,42 @@ SasClient::AddClientUserDefineRuleOutcomeCallable SasClient::addClientUserDefine return task->get_future(); } +SasClient::AddImageVulWhiteListOutcome SasClient::addImageVulWhiteList(const AddImageVulWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddImageVulWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddImageVulWhiteListOutcome(AddImageVulWhiteListResult(outcome.result())); + else + return AddImageVulWhiteListOutcome(outcome.error()); +} + +void SasClient::addImageVulWhiteListAsync(const AddImageVulWhiteListRequest& request, const AddImageVulWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addImageVulWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::AddImageVulWhiteListOutcomeCallable SasClient::addImageVulWhiteListCallable(const AddImageVulWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addImageVulWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::AddInstallCodeOutcome SasClient::addInstallCode(const AddInstallCodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +555,42 @@ SasClient::CancelOnceTaskOutcomeCallable SasClient::cancelOnceTaskCallable(const return task->get_future(); } +SasClient::ChangeAssetRefreshTaskConfigOutcome SasClient::changeAssetRefreshTaskConfig(const ChangeAssetRefreshTaskConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeAssetRefreshTaskConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeAssetRefreshTaskConfigOutcome(ChangeAssetRefreshTaskConfigResult(outcome.result())); + else + return ChangeAssetRefreshTaskConfigOutcome(outcome.error()); +} + +void SasClient::changeAssetRefreshTaskConfigAsync(const ChangeAssetRefreshTaskConfigRequest& request, const ChangeAssetRefreshTaskConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeAssetRefreshTaskConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ChangeAssetRefreshTaskConfigOutcomeCallable SasClient::changeAssetRefreshTaskConfigCallable(const ChangeAssetRefreshTaskConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeAssetRefreshTaskConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ChangeCheckConfigOutcome SasClient::changeCheckConfig(const ChangeCheckConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +807,42 @@ SasClient::ConfirmVirusEventsOutcomeCallable SasClient::confirmVirusEventsCallab return task->get_future(); } +SasClient::CreateAgentlessScanTaskOutcome SasClient::createAgentlessScanTask(const CreateAgentlessScanTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAgentlessScanTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAgentlessScanTaskOutcome(CreateAgentlessScanTaskResult(outcome.result())); + else + return CreateAgentlessScanTaskOutcome(outcome.error()); +} + +void SasClient::createAgentlessScanTaskAsync(const CreateAgentlessScanTaskRequest& request, const CreateAgentlessScanTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAgentlessScanTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::CreateAgentlessScanTaskOutcomeCallable SasClient::createAgentlessScanTaskCallable(const CreateAgentlessScanTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAgentlessScanTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::CreateAntiBruteForceRuleOutcome SasClient::createAntiBruteForceRule(const CreateAntiBruteForceRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1527,42 @@ SasClient::CreateServiceLinkedRoleOutcomeCallable SasClient::createServiceLinked return task->get_future(); } +SasClient::CreateServiceTrailOutcome SasClient::createServiceTrail(const CreateServiceTrailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceTrailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceTrailOutcome(CreateServiceTrailResult(outcome.result())); + else + return CreateServiceTrailOutcome(outcome.error()); +} + +void SasClient::createServiceTrailAsync(const CreateServiceTrailRequest& request, const CreateServiceTrailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceTrail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::CreateServiceTrailOutcomeCallable SasClient::createServiceTrailCallable(const CreateServiceTrailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceTrail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::CreateSimilarSecurityEventsQueryTaskOutcome SasClient::createSimilarSecurityEventsQueryTask(const CreateSimilarSecurityEventsQueryTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1851,42 @@ SasClient::DeleteBackupPolicyMachineOutcomeCallable SasClient::deleteBackupPolic return task->get_future(); } +SasClient::DeleteBinarySecurityPolicyOutcome SasClient::deleteBinarySecurityPolicy(const DeleteBinarySecurityPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBinarySecurityPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBinarySecurityPolicyOutcome(DeleteBinarySecurityPolicyResult(outcome.result())); + else + return DeleteBinarySecurityPolicyOutcome(outcome.error()); +} + +void SasClient::deleteBinarySecurityPolicyAsync(const DeleteBinarySecurityPolicyRequest& request, const DeleteBinarySecurityPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBinarySecurityPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DeleteBinarySecurityPolicyOutcomeCallable SasClient::deleteBinarySecurityPolicyCallable(const DeleteBinarySecurityPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBinarySecurityPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DeleteClientUserDefineRuleOutcome SasClient::deleteClientUserDefineRule(const DeleteClientUserDefineRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2211,6 +2391,42 @@ SasClient::DeleteSecurityEventMarkMissListOutcomeCallable SasClient::deleteSecur return task->get_future(); } +SasClient::DeleteServiceTrailOutcome SasClient::deleteServiceTrail(const DeleteServiceTrailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceTrailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceTrailOutcome(DeleteServiceTrailResult(outcome.result())); + else + return DeleteServiceTrailOutcome(outcome.error()); +} + +void SasClient::deleteServiceTrailAsync(const DeleteServiceTrailRequest& request, const DeleteServiceTrailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteServiceTrail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DeleteServiceTrailOutcomeCallable SasClient::deleteServiceTrailCallable(const DeleteServiceTrailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteServiceTrail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DeleteStrategyOutcome SasClient::deleteStrategy(const DeleteStrategyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6207,6 +6423,42 @@ SasClient::DescribeImageVulListOutcomeCallable SasClient::describeImageVulListCa return task->get_future(); } +SasClient::DescribeImageVulWhiteListOutcome SasClient::describeImageVulWhiteList(const DescribeImageVulWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImageVulWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImageVulWhiteListOutcome(DescribeImageVulWhiteListResult(outcome.result())); + else + return DescribeImageVulWhiteListOutcome(outcome.error()); +} + +void SasClient::describeImageVulWhiteListAsync(const DescribeImageVulWhiteListRequest& request, const DescribeImageVulWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImageVulWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeImageVulWhiteListOutcomeCallable SasClient::describeImageVulWhiteListCallable(const DescribeImageVulWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImageVulWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeInstallCaptchaOutcome SasClient::describeInstallCaptcha(const DescribeInstallCaptchaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6747,6 +6999,42 @@ SasClient::DescribeModuleConfigOutcomeCallable SasClient::describeModuleConfigCa return task->get_future(); } +SasClient::DescribeMonitorAccountsOutcome SasClient::describeMonitorAccounts(const DescribeMonitorAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitorAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitorAccountsOutcome(DescribeMonitorAccountsResult(outcome.result())); + else + return DescribeMonitorAccountsOutcome(outcome.error()); +} + +void SasClient::describeMonitorAccountsAsync(const DescribeMonitorAccountsRequest& request, const DescribeMonitorAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitorAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeMonitorAccountsOutcomeCallable SasClient::describeMonitorAccountsCallable(const DescribeMonitorAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitorAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeNoticeConfigOutcome SasClient::describeNoticeConfig(const DescribeNoticeConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8079,6 +8367,42 @@ SasClient::DescribeSecurityCheckScheduleConfigOutcomeCallable SasClient::describ return task->get_future(); } +SasClient::DescribeSecurityEventMarkMissListOutcome SasClient::describeSecurityEventMarkMissList(const DescribeSecurityEventMarkMissListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityEventMarkMissListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityEventMarkMissListOutcome(DescribeSecurityEventMarkMissListResult(outcome.result())); + else + return DescribeSecurityEventMarkMissListOutcome(outcome.error()); +} + +void SasClient::describeSecurityEventMarkMissListAsync(const DescribeSecurityEventMarkMissListRequest& request, const DescribeSecurityEventMarkMissListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityEventMarkMissList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeSecurityEventMarkMissListOutcomeCallable SasClient::describeSecurityEventMarkMissListCallable(const DescribeSecurityEventMarkMissListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityEventMarkMissList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeSecurityEventOperationStatusOutcome SasClient::describeSecurityEventOperationStatus(const DescribeSecurityEventOperationStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10815,6 +11139,42 @@ SasClient::GenerateOnceTaskOutcomeCallable SasClient::generateOnceTaskCallable(c return task->get_future(); } +SasClient::GetAgentlessTaskCountOutcome SasClient::getAgentlessTaskCount(const GetAgentlessTaskCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAgentlessTaskCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAgentlessTaskCountOutcome(GetAgentlessTaskCountResult(outcome.result())); + else + return GetAgentlessTaskCountOutcome(outcome.error()); +} + +void SasClient::getAgentlessTaskCountAsync(const GetAgentlessTaskCountRequest& request, const GetAgentlessTaskCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAgentlessTaskCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::GetAgentlessTaskCountOutcomeCallable SasClient::getAgentlessTaskCountCallable(const GetAgentlessTaskCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAgentlessTaskCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetAlarmMachineCountOutcome SasClient::getAlarmMachineCount(const GetAlarmMachineCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11247,6 +11607,42 @@ SasClient::GetCheckSummaryOutcomeCallable SasClient::getCheckSummaryCallable(con return task->get_future(); } +SasClient::GetClientRatioStatisticOutcome SasClient::getClientRatioStatistic(const GetClientRatioStatisticRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetClientRatioStatisticOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetClientRatioStatisticOutcome(GetClientRatioStatisticResult(outcome.result())); + else + return GetClientRatioStatisticOutcome(outcome.error()); +} + +void SasClient::getClientRatioStatisticAsync(const GetClientRatioStatisticRequest& request, const GetClientRatioStatisticAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getClientRatioStatistic(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::GetClientRatioStatisticOutcomeCallable SasClient::getClientRatioStatisticCallable(const GetClientRatioStatisticRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getClientRatioStatistic(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetClientUserDefineRuleOutcome SasClient::getClientUserDefineRule(const GetClientUserDefineRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12003,6 +12399,42 @@ SasClient::GetRulesCountOutcomeCallable SasClient::getRulesCountCallable(const G return task->get_future(); } +SasClient::GetServiceTrailOutcome SasClient::getServiceTrail(const GetServiceTrailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetServiceTrailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetServiceTrailOutcome(GetServiceTrailResult(outcome.result())); + else + return GetServiceTrailOutcome(outcome.error()); +} + +void SasClient::getServiceTrailAsync(const GetServiceTrailRequest& request, const GetServiceTrailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getServiceTrail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::GetServiceTrailOutcomeCallable SasClient::getServiceTrailCallable(const GetServiceTrailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getServiceTrail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetSuspiciousStatisticsOutcome SasClient::getSuspiciousStatistics(const GetSuspiciousStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12435,6 +12867,186 @@ SasClient::JoinWebLockProcessWhiteListOutcomeCallable SasClient::joinWebLockProc return task->get_future(); } +SasClient::ListAgentlessRegionOutcome SasClient::listAgentlessRegion(const ListAgentlessRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentlessRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentlessRegionOutcome(ListAgentlessRegionResult(outcome.result())); + else + return ListAgentlessRegionOutcome(outcome.error()); +} + +void SasClient::listAgentlessRegionAsync(const ListAgentlessRegionRequest& request, const ListAgentlessRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentlessRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListAgentlessRegionOutcomeCallable SasClient::listAgentlessRegionCallable(const ListAgentlessRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentlessRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ListAgentlessRelateMaliciousOutcome SasClient::listAgentlessRelateMalicious(const ListAgentlessRelateMaliciousRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentlessRelateMaliciousOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentlessRelateMaliciousOutcome(ListAgentlessRelateMaliciousResult(outcome.result())); + else + return ListAgentlessRelateMaliciousOutcome(outcome.error()); +} + +void SasClient::listAgentlessRelateMaliciousAsync(const ListAgentlessRelateMaliciousRequest& request, const ListAgentlessRelateMaliciousAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentlessRelateMalicious(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListAgentlessRelateMaliciousOutcomeCallable SasClient::listAgentlessRelateMaliciousCallable(const ListAgentlessRelateMaliciousRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentlessRelateMalicious(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ListAgentlessRiskUuidOutcome SasClient::listAgentlessRiskUuid(const ListAgentlessRiskUuidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentlessRiskUuidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentlessRiskUuidOutcome(ListAgentlessRiskUuidResult(outcome.result())); + else + return ListAgentlessRiskUuidOutcome(outcome.error()); +} + +void SasClient::listAgentlessRiskUuidAsync(const ListAgentlessRiskUuidRequest& request, const ListAgentlessRiskUuidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentlessRiskUuid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListAgentlessRiskUuidOutcomeCallable SasClient::listAgentlessRiskUuidCallable(const ListAgentlessRiskUuidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentlessRiskUuid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ListAgentlessTaskOutcome SasClient::listAgentlessTask(const ListAgentlessTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAgentlessTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAgentlessTaskOutcome(ListAgentlessTaskResult(outcome.result())); + else + return ListAgentlessTaskOutcome(outcome.error()); +} + +void SasClient::listAgentlessTaskAsync(const ListAgentlessTaskRequest& request, const ListAgentlessTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAgentlessTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListAgentlessTaskOutcomeCallable SasClient::listAgentlessTaskCallable(const ListAgentlessTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAgentlessTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ListAssetRefreshTaskConfigOutcome SasClient::listAssetRefreshTaskConfig(const ListAssetRefreshTaskConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAssetRefreshTaskConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAssetRefreshTaskConfigOutcome(ListAssetRefreshTaskConfigResult(outcome.result())); + else + return ListAssetRefreshTaskConfigOutcome(outcome.error()); +} + +void SasClient::listAssetRefreshTaskConfigAsync(const ListAssetRefreshTaskConfigRequest& request, const ListAssetRefreshTaskConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAssetRefreshTaskConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListAssetRefreshTaskConfigOutcomeCallable SasClient::listAssetRefreshTaskConfigCallable(const ListAssetRefreshTaskConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAssetRefreshTaskConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ListAssetSelectionSelectedTargetOutcome SasClient::listAssetSelectionSelectedTarget(const ListAssetSelectionSelectedTargetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/sas/src/model/AddImageVulWhiteListRequest.cc b/sas/src/model/AddImageVulWhiteListRequest.cc new file mode 100644 index 000000000..6bcd27361 --- /dev/null +++ b/sas/src/model/AddImageVulWhiteListRequest.cc @@ -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 + +using AlibabaCloud::Sas::Model::AddImageVulWhiteListRequest; + +AddImageVulWhiteListRequest::AddImageVulWhiteListRequest() + : RpcServiceRequest("sas", "2018-12-03", "AddImageVulWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +AddImageVulWhiteListRequest::~AddImageVulWhiteListRequest() {} + +std::string AddImageVulWhiteListRequest::getReason() const { + return reason_; +} + +void AddImageVulWhiteListRequest::setReason(const std::string &reason) { + reason_ = reason; + setParameter(std::string("Reason"), reason); +} + +std::string AddImageVulWhiteListRequest::getType() const { + return type_; +} + +void AddImageVulWhiteListRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string AddImageVulWhiteListRequest::getLang() const { + return lang_; +} + +void AddImageVulWhiteListRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string AddImageVulWhiteListRequest::getWhitelist() const { + return whitelist_; +} + +void AddImageVulWhiteListRequest::setWhitelist(const std::string &whitelist) { + whitelist_ = whitelist; + setParameter(std::string("Whitelist"), whitelist); +} + +std::string AddImageVulWhiteListRequest::getTarget() const { + return target_; +} + +void AddImageVulWhiteListRequest::setTarget(const std::string &target) { + target_ = target; + setParameter(std::string("Target"), target); +} + diff --git a/sas/src/model/AddImageVulWhiteListResult.cc b/sas/src/model/AddImageVulWhiteListResult.cc new file mode 100644 index 000000000..fcaaf0426 --- /dev/null +++ b/sas/src/model/AddImageVulWhiteListResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +AddImageVulWhiteListResult::AddImageVulWhiteListResult() : + ServiceResult() +{} + +AddImageVulWhiteListResult::AddImageVulWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddImageVulWhiteListResult::~AddImageVulWhiteListResult() +{} + +void AddImageVulWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string AddImageVulWhiteListResult::getMessage()const +{ + return message_; +} + +int AddImageVulWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool AddImageVulWhiteListResult::getData()const +{ + return data_; +} + +std::string AddImageVulWhiteListResult::getCode()const +{ + return code_; +} + +bool AddImageVulWhiteListResult::getSuccess()const +{ + return success_; +} + diff --git a/sas/src/model/ChangeAssetRefreshTaskConfigRequest.cc b/sas/src/model/ChangeAssetRefreshTaskConfigRequest.cc new file mode 100644 index 000000000..783e4cbb1 --- /dev/null +++ b/sas/src/model/ChangeAssetRefreshTaskConfigRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ChangeAssetRefreshTaskConfigRequest; + +ChangeAssetRefreshTaskConfigRequest::ChangeAssetRefreshTaskConfigRequest() + : RpcServiceRequest("sas", "2018-12-03", "ChangeAssetRefreshTaskConfig") { + setMethod(HttpRequest::Method::Post); +} + +ChangeAssetRefreshTaskConfigRequest::~ChangeAssetRefreshTaskConfigRequest() {} + +std::vector ChangeAssetRefreshTaskConfigRequest::getAssetRefreshConfigs() const { + return assetRefreshConfigs_; +} + +void ChangeAssetRefreshTaskConfigRequest::setAssetRefreshConfigs(const std::vector &assetRefreshConfigs) { + assetRefreshConfigs_ = assetRefreshConfigs; + for(int dep1 = 0; dep1 != assetRefreshConfigs.size(); dep1++) { + auto assetRefreshConfigsObj = assetRefreshConfigs.at(dep1); + std::string assetRefreshConfigsObjStr = std::string("AssetRefreshConfigs") + "." + std::to_string(dep1 + 1); + setParameter(assetRefreshConfigsObjStr + ".Vendor", std::to_string(assetRefreshConfigsObj.vendor)); + setParameter(assetRefreshConfigsObjStr + ".SchedulePeriod", std::to_string(assetRefreshConfigsObj.schedulePeriod)); + setParameter(assetRefreshConfigsObjStr + ".Status", std::to_string(assetRefreshConfigsObj.status)); + } +} + +std::string ChangeAssetRefreshTaskConfigRequest::getSourceIp() const { + return sourceIp_; +} + +void ChangeAssetRefreshTaskConfigRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ChangeAssetRefreshTaskConfigRequest::getRegionId() const { + return regionId_; +} + +void ChangeAssetRefreshTaskConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/sas/src/model/ChangeAssetRefreshTaskConfigResult.cc b/sas/src/model/ChangeAssetRefreshTaskConfigResult.cc new file mode 100644 index 000000000..f25064dd7 --- /dev/null +++ b/sas/src/model/ChangeAssetRefreshTaskConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ChangeAssetRefreshTaskConfigResult::ChangeAssetRefreshTaskConfigResult() : + ServiceResult() +{} + +ChangeAssetRefreshTaskConfigResult::ChangeAssetRefreshTaskConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeAssetRefreshTaskConfigResult::~ChangeAssetRefreshTaskConfigResult() +{} + +void ChangeAssetRefreshTaskConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ChangeAssetRefreshTaskConfigResult::getMessage()const +{ + return message_; +} + +bool ChangeAssetRefreshTaskConfigResult::getData()const +{ + return data_; +} + diff --git a/sas/src/model/ChangeCheckConfigRequest.cc b/sas/src/model/ChangeCheckConfigRequest.cc index 02df5bd2c..6fda00497 100644 --- a/sas/src/model/ChangeCheckConfigRequest.cc +++ b/sas/src/model/ChangeCheckConfigRequest.cc @@ -68,6 +68,36 @@ void ChangeCheckConfigRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::vector ChangeCheckConfigRequest::getRemovedCheck() const { + return removedCheck_; +} + +void ChangeCheckConfigRequest::setRemovedCheck(const std::vector &removedCheck) { + removedCheck_ = removedCheck; + for(int dep1 = 0; dep1 != removedCheck.size(); dep1++) { + setParameter(std::string("RemovedCheck") + "." + std::to_string(dep1 + 1) + ".SectionId", std::to_string(removedCheck[dep1].sectionId)); + setParameter(std::string("RemovedCheck") + "." + std::to_string(dep1 + 1) + ".CheckId", std::to_string(removedCheck[dep1].checkId)); + } +} + +bool ChangeCheckConfigRequest::getEnableAddCheck() const { + return enableAddCheck_; +} + +void ChangeCheckConfigRequest::setEnableAddCheck(bool enableAddCheck) { + enableAddCheck_ = enableAddCheck; + setParameter(std::string("EnableAddCheck"), enableAddCheck ? "true" : "false"); +} + +bool ChangeCheckConfigRequest::getEnableAutoCheck() const { + return enableAutoCheck_; +} + +void ChangeCheckConfigRequest::setEnableAutoCheck(bool enableAutoCheck) { + enableAutoCheck_ = enableAutoCheck; + setParameter(std::string("EnableAutoCheck"), enableAutoCheck ? "true" : "false"); +} + int ChangeCheckConfigRequest::getEndTime() const { return endTime_; } @@ -77,3 +107,15 @@ void ChangeCheckConfigRequest::setEndTime(int endTime) { setParameter(std::string("EndTime"), std::to_string(endTime)); } +std::vector ChangeCheckConfigRequest::getAddedCheck() const { + return addedCheck_; +} + +void ChangeCheckConfigRequest::setAddedCheck(const std::vector &addedCheck) { + addedCheck_ = addedCheck; + for(int dep1 = 0; dep1 != addedCheck.size(); dep1++) { + setParameter(std::string("AddedCheck") + "." + std::to_string(dep1 + 1) + ".SectionId", std::to_string(addedCheck[dep1].sectionId)); + setParameter(std::string("AddedCheck") + "." + std::to_string(dep1 + 1) + ".CheckId", std::to_string(addedCheck[dep1].checkId)); + } +} + diff --git a/sas/src/model/CreateAgentlessScanTaskRequest.cc b/sas/src/model/CreateAgentlessScanTaskRequest.cc new file mode 100644 index 000000000..d0cac1421 --- /dev/null +++ b/sas/src/model/CreateAgentlessScanTaskRequest.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::CreateAgentlessScanTaskRequest; + +CreateAgentlessScanTaskRequest::CreateAgentlessScanTaskRequest() + : RpcServiceRequest("sas", "2018-12-03", "CreateAgentlessScanTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateAgentlessScanTaskRequest::~CreateAgentlessScanTaskRequest() {} + +int CreateAgentlessScanTaskRequest::getTargetType() const { + return targetType_; +} + +void CreateAgentlessScanTaskRequest::setTargetType(int targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), std::to_string(targetType)); +} + +std::string CreateAgentlessScanTaskRequest::getSourceIp() const { + return sourceIp_; +} + +void CreateAgentlessScanTaskRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::vector CreateAgentlessScanTaskRequest::getUuidList() const { + return uuidList_; +} + +void CreateAgentlessScanTaskRequest::setUuidList(const std::vector &uuidList) { + uuidList_ = uuidList; +} + +bool CreateAgentlessScanTaskRequest::getScanDataDisk() const { + return scanDataDisk_; +} + +void CreateAgentlessScanTaskRequest::setScanDataDisk(bool scanDataDisk) { + scanDataDisk_ = scanDataDisk; + setParameter(std::string("ScanDataDisk"), scanDataDisk ? "true" : "false"); +} + +bool CreateAgentlessScanTaskRequest::getReleaseAfterScan() const { + return releaseAfterScan_; +} + +void CreateAgentlessScanTaskRequest::setReleaseAfterScan(bool releaseAfterScan) { + releaseAfterScan_ = releaseAfterScan; + setParameter(std::string("ReleaseAfterScan"), releaseAfterScan ? "true" : "false"); +} + +int CreateAgentlessScanTaskRequest::getAutoDeleteDays() const { + return autoDeleteDays_; +} + +void CreateAgentlessScanTaskRequest::setAutoDeleteDays(int autoDeleteDays) { + autoDeleteDays_ = autoDeleteDays; + setParameter(std::string("AutoDeleteDays"), std::to_string(autoDeleteDays)); +} + diff --git a/sas/src/model/CreateAgentlessScanTaskResult.cc b/sas/src/model/CreateAgentlessScanTaskResult.cc new file mode 100644 index 000000000..ef7868f4c --- /dev/null +++ b/sas/src/model/CreateAgentlessScanTaskResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +CreateAgentlessScanTaskResult::CreateAgentlessScanTaskResult() : + ServiceResult() +{} + +CreateAgentlessScanTaskResult::CreateAgentlessScanTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAgentlessScanTaskResult::~CreateAgentlessScanTaskResult() +{} + +void CreateAgentlessScanTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sas/src/model/CreateServiceTrailRequest.cc b/sas/src/model/CreateServiceTrailRequest.cc new file mode 100644 index 000000000..91b32d785 --- /dev/null +++ b/sas/src/model/CreateServiceTrailRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::CreateServiceTrailRequest; + +CreateServiceTrailRequest::CreateServiceTrailRequest() + : RpcServiceRequest("sas", "2018-12-03", "CreateServiceTrail") { + setMethod(HttpRequest::Method::Post); +} + +CreateServiceTrailRequest::~CreateServiceTrailRequest() {} + +std::string CreateServiceTrailRequest::getSourceIp() const { + return sourceIp_; +} + +void CreateServiceTrailRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string CreateServiceTrailRequest::getRegionId() const { + return regionId_; +} + +void CreateServiceTrailRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/sas/src/model/CreateServiceTrailResult.cc b/sas/src/model/CreateServiceTrailResult.cc new file mode 100644 index 000000000..b39acf171 --- /dev/null +++ b/sas/src/model/CreateServiceTrailResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +CreateServiceTrailResult::CreateServiceTrailResult() : + ServiceResult() +{} + +CreateServiceTrailResult::CreateServiceTrailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceTrailResult::~CreateServiceTrailResult() +{} + +void CreateServiceTrailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sas/src/model/DeleteBinarySecurityPolicyRequest.cc b/sas/src/model/DeleteBinarySecurityPolicyRequest.cc new file mode 100644 index 000000000..35fd0b5c3 --- /dev/null +++ b/sas/src/model/DeleteBinarySecurityPolicyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sas::Model::DeleteBinarySecurityPolicyRequest; + +DeleteBinarySecurityPolicyRequest::DeleteBinarySecurityPolicyRequest() + : RpcServiceRequest("sas", "2018-12-03", "DeleteBinarySecurityPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DeleteBinarySecurityPolicyRequest::~DeleteBinarySecurityPolicyRequest() {} + +long DeleteBinarySecurityPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteBinarySecurityPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteBinarySecurityPolicyRequest::getSourceIp() const { + return sourceIp_; +} + +void DeleteBinarySecurityPolicyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DeleteBinarySecurityPolicyRequest::getName() const { + return name_; +} + +void DeleteBinarySecurityPolicyRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/sas/src/model/DeleteBinarySecurityPolicyResult.cc b/sas/src/model/DeleteBinarySecurityPolicyResult.cc new file mode 100644 index 000000000..9958201cf --- /dev/null +++ b/sas/src/model/DeleteBinarySecurityPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DeleteBinarySecurityPolicyResult::DeleteBinarySecurityPolicyResult() : + ServiceResult() +{} + +DeleteBinarySecurityPolicyResult::DeleteBinarySecurityPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBinarySecurityPolicyResult::~DeleteBinarySecurityPolicyResult() +{} + +void DeleteBinarySecurityPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sas/src/model/DeleteServiceTrailRequest.cc b/sas/src/model/DeleteServiceTrailRequest.cc new file mode 100644 index 000000000..858833cb8 --- /dev/null +++ b/sas/src/model/DeleteServiceTrailRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DeleteServiceTrailRequest; + +DeleteServiceTrailRequest::DeleteServiceTrailRequest() + : RpcServiceRequest("sas", "2018-12-03", "DeleteServiceTrail") { + setMethod(HttpRequest::Method::Post); +} + +DeleteServiceTrailRequest::~DeleteServiceTrailRequest() {} + +std::string DeleteServiceTrailRequest::getSourceIp() const { + return sourceIp_; +} + +void DeleteServiceTrailRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DeleteServiceTrailRequest::getRegionId() const { + return regionId_; +} + +void DeleteServiceTrailRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/sas/src/model/DeleteServiceTrailResult.cc b/sas/src/model/DeleteServiceTrailResult.cc new file mode 100644 index 000000000..576991dbd --- /dev/null +++ b/sas/src/model/DeleteServiceTrailResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DeleteServiceTrailResult::DeleteServiceTrailResult() : + ServiceResult() +{} + +DeleteServiceTrailResult::DeleteServiceTrailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceTrailResult::~DeleteServiceTrailResult() +{} + +void DeleteServiceTrailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/sas/src/model/DescribeAccessKeyLeakDetailResult.cc b/sas/src/model/DescribeAccessKeyLeakDetailResult.cc index ade417d07..bce7ef7c6 100644 --- a/sas/src/model/DescribeAccessKeyLeakDetailResult.cc +++ b/sas/src/model/DescribeAccessKeyLeakDetailResult.cc @@ -77,6 +77,10 @@ void DescribeAccessKeyLeakDetailResult::parse(const std::string &payload) gmtCreate_ = value["GmtCreate"].asString(); if(!value["GithubRepoUrl"].isNull()) githubRepoUrl_ = value["GithubRepoUrl"].asString(); + if(!value["TokenValid"].isNull()) + tokenValid_ = std::stoi(value["TokenValid"].asString()); + if(!value["WhitelistTime"].isNull()) + whitelistTime_ = std::stol(value["WhitelistTime"].asString()); } @@ -125,6 +129,11 @@ std::string DescribeAccessKeyLeakDetailResult::getRemark()const return remark_; } +long DescribeAccessKeyLeakDetailResult::getWhitelistTime()const +{ + return whitelistTime_; +} + std::string DescribeAccessKeyLeakDetailResult::getType()const { return type_; @@ -145,6 +154,11 @@ std::string DescribeAccessKeyLeakDetailResult::getGmtCreate()const return gmtCreate_; } +int DescribeAccessKeyLeakDetailResult::getTokenValid()const +{ + return tokenValid_; +} + std::string DescribeAccessKeyLeakDetailResult::getAccesskeyId()const { return accesskeyId_; diff --git a/sas/src/model/DescribeAlarmEventStackInfoRequest.cc b/sas/src/model/DescribeAlarmEventStackInfoRequest.cc index b7bdc82af..bde200c41 100644 --- a/sas/src/model/DescribeAlarmEventStackInfoRequest.cc +++ b/sas/src/model/DescribeAlarmEventStackInfoRequest.cc @@ -61,6 +61,15 @@ void DescribeAlarmEventStackInfoRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } +long DescribeAlarmEventStackInfoRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeAlarmEventStackInfoRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + std::string DescribeAlarmEventStackInfoRequest::getUniqueInfo() const { return uniqueInfo_; } diff --git a/sas/src/model/DescribeAntiBruteForceRulesResult.cc b/sas/src/model/DescribeAntiBruteForceRulesResult.cc index aff84e5af..9acd9df61 100644 --- a/sas/src/model/DescribeAntiBruteForceRulesResult.cc +++ b/sas/src/model/DescribeAntiBruteForceRulesResult.cc @@ -61,6 +61,8 @@ void DescribeAntiBruteForceRulesResult::parse(const std::string &payload) rulesObject.id = std::stol(valueRulesAntiBruteForceRule["Id"].asString()); if(!valueRulesAntiBruteForceRule["CreateTime"].isNull()) rulesObject.createTime = valueRulesAntiBruteForceRule["CreateTime"].asString(); + if(!valueRulesAntiBruteForceRule["CreateTimestamp"].isNull()) + rulesObject.createTimestamp = std::stol(valueRulesAntiBruteForceRule["CreateTimestamp"].asString()); auto allUuidList = value["UuidList"]["uuid"]; for (auto value : allUuidList) rulesObject.uuidList.push_back(value.asString()); diff --git a/sas/src/model/DescribeAssetDetailByUuidsRequest.cc b/sas/src/model/DescribeAssetDetailByUuidsRequest.cc index c9658bd19..2e85959b8 100644 --- a/sas/src/model/DescribeAssetDetailByUuidsRequest.cc +++ b/sas/src/model/DescribeAssetDetailByUuidsRequest.cc @@ -43,6 +43,15 @@ void DescribeAssetDetailByUuidsRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } +long DescribeAssetDetailByUuidsRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeAssetDetailByUuidsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + std::string DescribeAssetDetailByUuidsRequest::getUuids() const { return uuids_; } diff --git a/sas/src/model/DescribeCloudCenterInstancesRequest.cc b/sas/src/model/DescribeCloudCenterInstancesRequest.cc index 794654d44..b95f739af 100644 --- a/sas/src/model/DescribeCloudCenterInstancesRequest.cc +++ b/sas/src/model/DescribeCloudCenterInstancesRequest.cc @@ -70,6 +70,15 @@ void DescribeCloudCenterInstancesRequest::setNoPage(bool noPage) { setParameter(std::string("NoPage"), noPage ? "true" : "false"); } +std::string DescribeCloudCenterInstancesRequest::getNextToken() const { + return nextToken_; +} + +void DescribeCloudCenterInstancesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + int DescribeCloudCenterInstancesRequest::getPageSize() const { return pageSize_; } @@ -97,13 +106,22 @@ void DescribeCloudCenterInstancesRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } -std::string DescribeCloudCenterInstancesRequest::getResourceDirectoryAccountId() const { +long DescribeCloudCenterInstancesRequest::getResourceDirectoryAccountId() const { return resourceDirectoryAccountId_; } -void DescribeCloudCenterInstancesRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { +void DescribeCloudCenterInstancesRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { resourceDirectoryAccountId_ = resourceDirectoryAccountId; - setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + +bool DescribeCloudCenterInstancesRequest::getUseNextToken() const { + return useNextToken_; +} + +void DescribeCloudCenterInstancesRequest::setUseNextToken(bool useNextToken) { + useNextToken_ = useNextToken; + setParameter(std::string("UseNextToken"), useNextToken ? "true" : "false"); } int DescribeCloudCenterInstancesRequest::getCurrentPage() const { diff --git a/sas/src/model/DescribeCloudCenterInstancesResult.cc b/sas/src/model/DescribeCloudCenterInstancesResult.cc index 0578950fa..9adaa14c5 100644 --- a/sas/src/model/DescribeCloudCenterInstancesResult.cc +++ b/sas/src/model/DescribeCloudCenterInstancesResult.cc @@ -148,6 +148,8 @@ void DescribeCloudCenterInstancesResult::parse(const std::string &payload) pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); if(!pageInfoNode["Count"].isNull()) pageInfo_.count = std::stoi(pageInfoNode["Count"].asString()); + if(!pageInfoNode["NextToken"].isNull()) + pageInfo_.nextToken = pageInfoNode["NextToken"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/sas/src/model/DescribeContainerInstancesResult.cc b/sas/src/model/DescribeContainerInstancesResult.cc index ff5eae77b..aa6c87d91 100644 --- a/sas/src/model/DescribeContainerInstancesResult.cc +++ b/sas/src/model/DescribeContainerInstancesResult.cc @@ -101,6 +101,10 @@ void DescribeContainerInstancesResult::parse(const std::string &payload) containerInstanceListObject.alarmCount = std::stoi(valueContainerInstanceListContainerInstance["AlarmCount"].asString()); if(!valueContainerInstanceListContainerInstance["CreateTimestamp"].isNull()) containerInstanceListObject.createTimestamp = std::stol(valueContainerInstanceListContainerInstance["CreateTimestamp"].asString()); + if(!valueContainerInstanceListContainerInstance["Exposed"].isNull()) + containerInstanceListObject.exposed = std::stoi(valueContainerInstanceListContainerInstance["Exposed"].asString()); + if(!valueContainerInstanceListContainerInstance["ExposedDetail"].isNull()) + containerInstanceListObject.exposedDetail = valueContainerInstanceListContainerInstance["ExposedDetail"].asString(); containerInstanceList_.push_back(containerInstanceListObject); } auto pageInfoNode = value["PageInfo"]; diff --git a/sas/src/model/DescribeFieldStatisticsRequest.cc b/sas/src/model/DescribeFieldStatisticsRequest.cc index bea51c70e..dfeb05712 100644 --- a/sas/src/model/DescribeFieldStatisticsRequest.cc +++ b/sas/src/model/DescribeFieldStatisticsRequest.cc @@ -25,15 +25,6 @@ DescribeFieldStatisticsRequest::DescribeFieldStatisticsRequest() DescribeFieldStatisticsRequest::~DescribeFieldStatisticsRequest() {} -std::string DescribeFieldStatisticsRequest::getMachineTypes() const { - return machineTypes_; -} - -void DescribeFieldStatisticsRequest::setMachineTypes(const std::string &machineTypes) { - machineTypes_ = machineTypes; - setParameter(std::string("MachineTypes"), machineTypes); -} - std::string DescribeFieldStatisticsRequest::getSourceIp() const { return sourceIp_; } @@ -52,3 +43,21 @@ void DescribeFieldStatisticsRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +long DescribeFieldStatisticsRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeFieldStatisticsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + +std::string DescribeFieldStatisticsRequest::getMachineTypes() const { + return machineTypes_; +} + +void DescribeFieldStatisticsRequest::setMachineTypes(const std::string &machineTypes) { + machineTypes_ = machineTypes; + setParameter(std::string("MachineTypes"), machineTypes); +} + diff --git a/sas/src/model/DescribeGroupedInstancesResult.cc b/sas/src/model/DescribeGroupedInstancesResult.cc index 178551aa8..2bd3924ef 100644 --- a/sas/src/model/DescribeGroupedInstancesResult.cc +++ b/sas/src/model/DescribeGroupedInstancesResult.cc @@ -59,6 +59,8 @@ void DescribeGroupedInstancesResult::parse(const std::string &payload) instancesObject.groupFlag = std::stoi(valueInstancesInstance["GroupFlag"].asString()); if(!valueInstancesInstance["AuthVersionCheckCount"].isNull()) instancesObject.authVersionCheckCount = std::stoi(valueInstancesInstance["AuthVersionCheckCount"].asString()); + if(!valueInstancesInstance["Os"].isNull()) + instancesObject.os = valueInstancesInstance["Os"].asString(); auto allGroupPath = value["GroupPath"]["groupPath"]; for (auto value : allGroupPath) instancesObject.groupPath.push_back(value.asString()); diff --git a/sas/src/model/DescribeGroupedVulRequest.cc b/sas/src/model/DescribeGroupedVulRequest.cc index ef30f84c8..dc890641e 100644 --- a/sas/src/model/DescribeGroupedVulRequest.cc +++ b/sas/src/model/DescribeGroupedVulRequest.cc @@ -241,6 +241,15 @@ void DescribeGroupedVulRequest::setLastTsStart(long lastTsStart) { setParameter(std::string("LastTsStart"), std::to_string(lastTsStart)); } +long DescribeGroupedVulRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeGroupedVulRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + std::string DescribeGroupedVulRequest::getAssetType() const { return assetType_; } diff --git a/sas/src/model/DescribeImageVulWhiteListRequest.cc b/sas/src/model/DescribeImageVulWhiteListRequest.cc new file mode 100644 index 000000000..af668666b --- /dev/null +++ b/sas/src/model/DescribeImageVulWhiteListRequest.cc @@ -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 + +using AlibabaCloud::Sas::Model::DescribeImageVulWhiteListRequest; + +DescribeImageVulWhiteListRequest::DescribeImageVulWhiteListRequest() + : RpcServiceRequest("sas", "2018-12-03", "DescribeImageVulWhiteList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeImageVulWhiteListRequest::~DescribeImageVulWhiteListRequest() {} + +int DescribeImageVulWhiteListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeImageVulWhiteListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeImageVulWhiteListRequest::getLang() const { + return lang_; +} + +void DescribeImageVulWhiteListRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +int DescribeImageVulWhiteListRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeImageVulWhiteListRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string DescribeImageVulWhiteListRequest::getAliasName() const { + return aliasName_; +} + +void DescribeImageVulWhiteListRequest::setAliasName(const std::string &aliasName) { + aliasName_ = aliasName; + setParameter(std::string("AliasName"), aliasName); +} + diff --git a/sas/src/model/DescribeImageVulWhiteListResult.cc b/sas/src/model/DescribeImageVulWhiteListResult.cc new file mode 100644 index 000000000..603a3aae6 --- /dev/null +++ b/sas/src/model/DescribeImageVulWhiteListResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeImageVulWhiteListResult::DescribeImageVulWhiteListResult() : + ServiceResult() +{} + +DescribeImageVulWhiteListResult::DescribeImageVulWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageVulWhiteListResult::~DescribeImageVulWhiteListResult() +{} + +void DescribeImageVulWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImageVulWhitelistNode = value["ImageVulWhitelist"]["VulList"]; + for (auto valueImageVulWhitelistVulList : allImageVulWhitelistNode) + { + VulList imageVulWhitelistObject; + if(!valueImageVulWhitelistVulList["Name"].isNull()) + imageVulWhitelistObject.name = valueImageVulWhitelistVulList["Name"].asString(); + if(!valueImageVulWhitelistVulList["AliasName"].isNull()) + imageVulWhitelistObject.aliasName = valueImageVulWhitelistVulList["AliasName"].asString(); + if(!valueImageVulWhitelistVulList["Target"].isNull()) + imageVulWhitelistObject.target = valueImageVulWhitelistVulList["Target"].asString(); + if(!valueImageVulWhitelistVulList["Reason"].isNull()) + imageVulWhitelistObject.reason = valueImageVulWhitelistVulList["Reason"].asString(); + if(!valueImageVulWhitelistVulList["Type"].isNull()) + imageVulWhitelistObject.type = valueImageVulWhitelistVulList["Type"].asString(); + if(!valueImageVulWhitelistVulList["Id"].isNull()) + imageVulWhitelistObject.id = std::stol(valueImageVulWhitelistVulList["Id"].asString()); + imageVulWhitelist_.push_back(imageVulWhitelistObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); + if(!pageInfoNode["Count"].isNull()) + pageInfo_.count = std::stoi(pageInfoNode["Count"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["TimeCost"].isNull()) + timeCost_ = std::stol(value["TimeCost"].asString()); + +} + +DescribeImageVulWhiteListResult::PageInfo DescribeImageVulWhiteListResult::getPageInfo()const +{ + return pageInfo_; +} + +std::string DescribeImageVulWhiteListResult::getMessage()const +{ + return message_; +} + +int DescribeImageVulWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +long DescribeImageVulWhiteListResult::getTimeCost()const +{ + return timeCost_; +} + +std::string DescribeImageVulWhiteListResult::getCode()const +{ + return code_; +} + +bool DescribeImageVulWhiteListResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeImageVulWhiteListResult::getImageVulWhitelist()const +{ + return imageVulWhitelist_; +} + diff --git a/sas/src/model/DescribeMonitorAccountsRequest.cc b/sas/src/model/DescribeMonitorAccountsRequest.cc new file mode 100644 index 000000000..f6003cba6 --- /dev/null +++ b/sas/src/model/DescribeMonitorAccountsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeMonitorAccountsRequest; + +DescribeMonitorAccountsRequest::DescribeMonitorAccountsRequest() + : RpcServiceRequest("sas", "2018-12-03", "DescribeMonitorAccounts") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorAccountsRequest::~DescribeMonitorAccountsRequest() {} + +std::string DescribeMonitorAccountsRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeMonitorAccountsRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DescribeMonitorAccountsRequest::getAccountIds() const { + return accountIds_; +} + +void DescribeMonitorAccountsRequest::setAccountIds(const std::string &accountIds) { + accountIds_ = accountIds; + setParameter(std::string("AccountIds"), accountIds); +} + diff --git a/sas/src/model/DescribeMonitorAccountsResult.cc b/sas/src/model/DescribeMonitorAccountsResult.cc new file mode 100644 index 000000000..30d84b434 --- /dev/null +++ b/sas/src/model/DescribeMonitorAccountsResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeMonitorAccountsResult::DescribeMonitorAccountsResult() : + ServiceResult() +{} + +DescribeMonitorAccountsResult::DescribeMonitorAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMonitorAccountsResult::~DescribeMonitorAccountsResult() +{} + +void DescribeMonitorAccountsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccountIds = value["AccountIds"]["AccountId"]; + for (const auto &item : allAccountIds) + accountIds_.push_back(item.asString()); + +} + +std::vector DescribeMonitorAccountsResult::getAccountIds()const +{ + return accountIds_; +} + diff --git a/sas/src/model/DescribeSecurityEventMarkMissListRequest.cc b/sas/src/model/DescribeSecurityEventMarkMissListRequest.cc new file mode 100644 index 000000000..52c3d478f --- /dev/null +++ b/sas/src/model/DescribeSecurityEventMarkMissListRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeSecurityEventMarkMissListRequest; + +DescribeSecurityEventMarkMissListRequest::DescribeSecurityEventMarkMissListRequest() + : RpcServiceRequest("sas", "2018-12-03", "DescribeSecurityEventMarkMissList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSecurityEventMarkMissListRequest::~DescribeSecurityEventMarkMissListRequest() {} + +long DescribeSecurityEventMarkMissListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeSecurityEventMarkMissListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeSecurityEventMarkMissListRequest::getRemark() const { + return remark_; +} + +void DescribeSecurityEventMarkMissListRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + +std::string DescribeSecurityEventMarkMissListRequest::getEventName() const { + return eventName_; +} + +void DescribeSecurityEventMarkMissListRequest::setEventName(const std::string &eventName) { + eventName_ = eventName; + setParameter(std::string("EventName"), eventName); +} + +std::string DescribeSecurityEventMarkMissListRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeSecurityEventMarkMissListRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +int DescribeSecurityEventMarkMissListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSecurityEventMarkMissListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int DescribeSecurityEventMarkMissListRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeSecurityEventMarkMissListRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + diff --git a/sas/src/model/DescribeSecurityEventMarkMissListResult.cc b/sas/src/model/DescribeSecurityEventMarkMissListResult.cc new file mode 100644 index 000000000..24225c69a --- /dev/null +++ b/sas/src/model/DescribeSecurityEventMarkMissListResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeSecurityEventMarkMissListResult::DescribeSecurityEventMarkMissListResult() : + ServiceResult() +{} + +DescribeSecurityEventMarkMissListResult::DescribeSecurityEventMarkMissListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityEventMarkMissListResult::~DescribeSecurityEventMarkMissListResult() +{} + +void DescribeSecurityEventMarkMissListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListNode = value["List"]["SecurityEventMarkMissReponse"]; + for (auto valueListSecurityEventMarkMissReponse : allListNode) + { + SecurityEventMarkMissReponse listObject; + if(!valueListSecurityEventMarkMissReponse["EventName"].isNull()) + listObject.eventName = valueListSecurityEventMarkMissReponse["EventName"].asString(); + if(!valueListSecurityEventMarkMissReponse["InternetIp"].isNull()) + listObject.internetIp = valueListSecurityEventMarkMissReponse["InternetIp"].asString(); + if(!valueListSecurityEventMarkMissReponse["EventNameOriginal"].isNull()) + listObject.eventNameOriginal = valueListSecurityEventMarkMissReponse["EventNameOriginal"].asString(); + if(!valueListSecurityEventMarkMissReponse["AliUid"].isNull()) + listObject.aliUid = std::stol(valueListSecurityEventMarkMissReponse["AliUid"].asString()); + if(!valueListSecurityEventMarkMissReponse["FieldValue"].isNull()) + listObject.fieldValue = valueListSecurityEventMarkMissReponse["FieldValue"].asString(); + if(!valueListSecurityEventMarkMissReponse["InstanceId"].isNull()) + listObject.instanceId = valueListSecurityEventMarkMissReponse["InstanceId"].asString(); + if(!valueListSecurityEventMarkMissReponse["Field"].isNull()) + listObject.field = valueListSecurityEventMarkMissReponse["Field"].asString(); + if(!valueListSecurityEventMarkMissReponse["IntranetIp"].isNull()) + listObject.intranetIp = valueListSecurityEventMarkMissReponse["IntranetIp"].asString(); + if(!valueListSecurityEventMarkMissReponse["FiledAliasName"].isNull()) + listObject.filedAliasName = valueListSecurityEventMarkMissReponse["FiledAliasName"].asString(); + if(!valueListSecurityEventMarkMissReponse["Uuid"].isNull()) + listObject.uuid = valueListSecurityEventMarkMissReponse["Uuid"].asString(); + if(!valueListSecurityEventMarkMissReponse["Operate"].isNull()) + listObject.operate = valueListSecurityEventMarkMissReponse["Operate"].asString(); + if(!valueListSecurityEventMarkMissReponse["EventTypeOriginal"].isNull()) + listObject.eventTypeOriginal = valueListSecurityEventMarkMissReponse["EventTypeOriginal"].asString(); + if(!valueListSecurityEventMarkMissReponse["EventType"].isNull()) + listObject.eventType = valueListSecurityEventMarkMissReponse["EventType"].asString(); + if(!valueListSecurityEventMarkMissReponse["InstanceName"].isNull()) + listObject.instanceName = valueListSecurityEventMarkMissReponse["InstanceName"].asString(); + if(!valueListSecurityEventMarkMissReponse["Id"].isNull()) + listObject.id = std::stol(valueListSecurityEventMarkMissReponse["Id"].asString()); + list_.push_back(listObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); + if(!pageInfoNode["Count"].isNull()) + pageInfo_.count = std::stoi(pageInfoNode["Count"].asString()); + +} + +DescribeSecurityEventMarkMissListResult::PageInfo DescribeSecurityEventMarkMissListResult::getPageInfo()const +{ + return pageInfo_; +} + +std::vector DescribeSecurityEventMarkMissListResult::getList()const +{ + return list_; +} + diff --git a/sas/src/model/DescribeSuspEventDetailRequest.cc b/sas/src/model/DescribeSuspEventDetailRequest.cc index abed9d84e..1068dfa8a 100644 --- a/sas/src/model/DescribeSuspEventDetailRequest.cc +++ b/sas/src/model/DescribeSuspEventDetailRequest.cc @@ -52,6 +52,15 @@ void DescribeSuspEventDetailRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } +long DescribeSuspEventDetailRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeSuspEventDetailRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + int DescribeSuspEventDetailRequest::getSuspiciousEventId() const { return suspiciousEventId_; } diff --git a/sas/src/model/DescribeSuspEventsRequest.cc b/sas/src/model/DescribeSuspEventsRequest.cc index fbc86df91..dff93210f 100644 --- a/sas/src/model/DescribeSuspEventsRequest.cc +++ b/sas/src/model/DescribeSuspEventsRequest.cc @@ -214,6 +214,15 @@ void DescribeSuspEventsRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } +long DescribeSuspEventsRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeSuspEventsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + std::string DescribeSuspEventsRequest::getDealed() const { return dealed_; } diff --git a/sas/src/model/DescribeUuidsByVulNamesResult.cc b/sas/src/model/DescribeUuidsByVulNamesResult.cc index 14e0d176f..c0e563334 100644 --- a/sas/src/model/DescribeUuidsByVulNamesResult.cc +++ b/sas/src/model/DescribeUuidsByVulNamesResult.cc @@ -57,6 +57,8 @@ void DescribeUuidsByVulNamesResult::parse(const std::string &payload) machineInfoStatisticsObject.regionId = valueMachineInfoStatisticsMachineInfoStatistic["RegionId"].asString(); machineInfoStatistics_.push_back(machineInfoStatisticsObject); } + if(!value["VulCount"].isNull()) + vulCount_ = std::stoi(value["VulCount"].asString()); } @@ -65,3 +67,8 @@ std::vector DescribeUuidsBy return machineInfoStatistics_; } +int DescribeUuidsByVulNamesResult::getVulCount()const +{ + return vulCount_; +} + diff --git a/sas/src/model/DescribeVersionConfigResult.cc b/sas/src/model/DescribeVersionConfigResult.cc index b99bff035..2aa39e630 100644 --- a/sas/src/model/DescribeVersionConfigResult.cc +++ b/sas/src/model/DescribeVersionConfigResult.cc @@ -109,6 +109,14 @@ void DescribeVersionConfigResult::parse(const std::string &payload) isNewMultiVersion_ = value["IsNewMultiVersion"].asString() == "true"; if(!value["ThreatAnalysisCapacity"].isNull()) threatAnalysisCapacity_ = std::stol(value["ThreatAnalysisCapacity"].asString()); + if(!value["CspmCapacity"].isNull()) + cspmCapacity_ = std::stol(value["CspmCapacity"].asString()); + if(!value["VulFixCapacity"].isNull()) + vulFixCapacity_ = std::stol(value["VulFixCapacity"].asString()); + if(!value["RaspCapacity"].isNull()) + raspCapacity_ = std::stol(value["RaspCapacity"].asString()); + if(!value["AgentlessCapacity"].isNull()) + agentlessCapacity_ = std::stol(value["AgentlessCapacity"].asString()); } @@ -137,6 +145,11 @@ int DescribeVersionConfigResult::getLogTime()const return logTime_; } +long DescribeVersionConfigResult::getRaspCapacity()const +{ + return raspCapacity_; +} + int DescribeVersionConfigResult::getSasLog()const { return sasLog_; @@ -187,6 +200,11 @@ int DescribeVersionConfigResult::getAllowPartialBuy()const return allowPartialBuy_; } +long DescribeVersionConfigResult::getAgentlessCapacity()const +{ + return agentlessCapacity_; +} + int DescribeVersionConfigResult::getWebLock()const { return webLock_; @@ -212,6 +230,11 @@ long DescribeVersionConfigResult::getHoneypotCapacity()const return honeypotCapacity_; } +long DescribeVersionConfigResult::getVulFixCapacity()const +{ + return vulFixCapacity_; +} + int DescribeVersionConfigResult::getAssetLevel()const { return assetLevel_; @@ -237,6 +260,11 @@ int DescribeVersionConfigResult::getSasScreen()const return sasScreen_; } +long DescribeVersionConfigResult::getCspmCapacity()const +{ + return cspmCapacity_; +} + bool DescribeVersionConfigResult::getIsSasOpening()const { return isSasOpening_; diff --git a/sas/src/model/DescribeVulDetailsRequest.cc b/sas/src/model/DescribeVulDetailsRequest.cc index 3c20a2cc0..2fbbdfc0d 100644 --- a/sas/src/model/DescribeVulDetailsRequest.cc +++ b/sas/src/model/DescribeVulDetailsRequest.cc @@ -52,6 +52,15 @@ void DescribeVulDetailsRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } +long DescribeVulDetailsRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeVulDetailsRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + std::string DescribeVulDetailsRequest::getAliasName() const { return aliasName_; } diff --git a/sas/src/model/DescribeVulListRequest.cc b/sas/src/model/DescribeVulListRequest.cc index 0bcb0a748..28e06122e 100644 --- a/sas/src/model/DescribeVulListRequest.cc +++ b/sas/src/model/DescribeVulListRequest.cc @@ -277,6 +277,15 @@ void DescribeVulListRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } +long DescribeVulListRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeVulListRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + std::string DescribeVulListRequest::getAssetType() const { return assetType_; } diff --git a/sas/src/model/GetAgentlessTaskCountRequest.cc b/sas/src/model/GetAgentlessTaskCountRequest.cc new file mode 100644 index 000000000..eee8662e2 --- /dev/null +++ b/sas/src/model/GetAgentlessTaskCountRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::GetAgentlessTaskCountRequest; + +GetAgentlessTaskCountRequest::GetAgentlessTaskCountRequest() + : RpcServiceRequest("sas", "2018-12-03", "GetAgentlessTaskCount") { + setMethod(HttpRequest::Method::Post); +} + +GetAgentlessTaskCountRequest::~GetAgentlessTaskCountRequest() {} + +std::string GetAgentlessTaskCountRequest::getSourceIp() const { + return sourceIp_; +} + +void GetAgentlessTaskCountRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/sas/src/model/GetAgentlessTaskCountResult.cc b/sas/src/model/GetAgentlessTaskCountResult.cc new file mode 100644 index 000000000..08cf17adb --- /dev/null +++ b/sas/src/model/GetAgentlessTaskCountResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +GetAgentlessTaskCountResult::GetAgentlessTaskCountResult() : + ServiceResult() +{} + +GetAgentlessTaskCountResult::GetAgentlessTaskCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAgentlessTaskCountResult::~GetAgentlessTaskCountResult() +{} + +void GetAgentlessTaskCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RiskMachine"].isNull()) + riskMachine_ = std::stoi(value["RiskMachine"].asString()); + if(!value["ScanMachine"].isNull()) + scanMachine_ = std::stoi(value["ScanMachine"].asString()); + if(!value["MaliciousFile"].isNull()) + maliciousFile_ = std::stoi(value["MaliciousFile"].asString()); + if(!value["Vulnerability"].isNull()) + vulnerability_ = std::stoi(value["Vulnerability"].asString()); + if(!value["LastTaskTime"].isNull()) + lastTaskTime_ = std::stol(value["LastTaskTime"].asString()); + if(!value["BaselineCheckCount"].isNull()) + baselineCheckCount_ = std::stoi(value["BaselineCheckCount"].asString()); + if(!value["ScaVulCount"].isNull()) + scaVulCount_ = std::stoi(value["ScaVulCount"].asString()); + if(!value["CveVulCount"].isNull()) + cveVulCount_ = std::stoi(value["CveVulCount"].asString()); + +} + +int GetAgentlessTaskCountResult::getBaselineCheckCount()const +{ + return baselineCheckCount_; +} + +int GetAgentlessTaskCountResult::getMaliciousFile()const +{ + return maliciousFile_; +} + +long GetAgentlessTaskCountResult::getLastTaskTime()const +{ + return lastTaskTime_; +} + +int GetAgentlessTaskCountResult::getCveVulCount()const +{ + return cveVulCount_; +} + +int GetAgentlessTaskCountResult::getVulnerability()const +{ + return vulnerability_; +} + +int GetAgentlessTaskCountResult::getScaVulCount()const +{ + return scaVulCount_; +} + +int GetAgentlessTaskCountResult::getRiskMachine()const +{ + return riskMachine_; +} + +int GetAgentlessTaskCountResult::getScanMachine()const +{ + return scanMachine_; +} + diff --git a/sas/src/model/GetCheckConfigResult.cc b/sas/src/model/GetCheckConfigResult.cc index fabd570d2..fd3f57345 100644 --- a/sas/src/model/GetCheckConfigResult.cc +++ b/sas/src/model/GetCheckConfigResult.cc @@ -39,21 +39,31 @@ void GetCheckConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allStandardsNode = value["Standards"]["StandardsItem"]; - for (auto valueStandardsStandardsItem : allStandardsNode) + auto allStandardsNode = value["Standards"]["Standard"]; + for (auto valueStandardsStandard : allStandardsNode) { - StandardsItem standardsObject; - if(!valueStandardsStandardsItem["Id"].isNull()) - standardsObject.id = std::stol(valueStandardsStandardsItem["Id"].asString()); - if(!valueStandardsStandardsItem["ShowName"].isNull()) - standardsObject.showName = valueStandardsStandardsItem["ShowName"].asString(); - if(!valueStandardsStandardsItem["Type"].isNull()) - standardsObject.type = valueStandardsStandardsItem["Type"].asString(); - if(!valueStandardsStandardsItem["Status"].isNull()) - standardsObject.status = valueStandardsStandardsItem["Status"].asString(); + Standard standardsObject; + if(!valueStandardsStandard["Id"].isNull()) + standardsObject.id = std::stol(valueStandardsStandard["Id"].asString()); + if(!valueStandardsStandard["ShowName"].isNull()) + standardsObject.showName = valueStandardsStandard["ShowName"].asString(); + if(!valueStandardsStandard["Type"].isNull()) + standardsObject.type = valueStandardsStandard["Type"].asString(); + if(!valueStandardsStandard["Status"].isNull()) + standardsObject.status = valueStandardsStandard["Status"].asString(); standards_.push_back(standardsObject); } - auto allCycleDays = value["CycleDays"]["CycleDays"]; + auto allSelectedChecksNode = value["SelectedChecks"]["SelectedCheck"]; + for (auto valueSelectedChecksSelectedCheck : allSelectedChecksNode) + { + SelectedCheck selectedChecksObject; + if(!valueSelectedChecksSelectedCheck["CheckId"].isNull()) + selectedChecksObject.checkId = std::stol(valueSelectedChecksSelectedCheck["CheckId"].asString()); + if(!valueSelectedChecksSelectedCheck["SectionId"].isNull()) + selectedChecksObject.sectionId = std::stol(valueSelectedChecksSelectedCheck["SectionId"].asString()); + selectedChecks_.push_back(selectedChecksObject); + } + auto allCycleDays = value["CycleDays"]["CycleDay"]; for (const auto &item : allCycleDays) cycleDays_.push_back(item.asString()); if(!value["StartTime"].isNull()) @@ -62,19 +72,38 @@ void GetCheckConfigResult::parse(const std::string &payload) endTime_ = std::stoi(value["EndTime"].asString()); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["EnableAutoCheck"].isNull()) + enableAutoCheck_ = value["EnableAutoCheck"].asString() == "true"; + if(!value["EnableAddCheck"].isNull()) + enableAddCheck_ = value["EnableAddCheck"].asString() == "true"; } +std::vector GetCheckConfigResult::getSelectedChecks()const +{ + return selectedChecks_; +} + int GetCheckConfigResult::getEndTime()const { return endTime_; } +bool GetCheckConfigResult::getEnableAutoCheck()const +{ + return enableAutoCheck_; +} + std::vector GetCheckConfigResult::getCycleDays()const { return cycleDays_; } +bool GetCheckConfigResult::getEnableAddCheck()const +{ + return enableAddCheck_; +} + int GetCheckConfigResult::getStartTime()const { return startTime_; @@ -85,7 +114,7 @@ std::string GetCheckConfigResult::getData()const return data_; } -std::vector GetCheckConfigResult::getStandards()const +std::vector GetCheckConfigResult::getStandards()const { return standards_; } diff --git a/sas/src/model/GetClientRatioStatisticRequest.cc b/sas/src/model/GetClientRatioStatisticRequest.cc new file mode 100644 index 000000000..3af7bd916 --- /dev/null +++ b/sas/src/model/GetClientRatioStatisticRequest.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::GetClientRatioStatisticRequest; + +GetClientRatioStatisticRequest::GetClientRatioStatisticRequest() + : RpcServiceRequest("sas", "2018-12-03", "GetClientRatioStatistic") { + setMethod(HttpRequest::Method::Post); +} + +GetClientRatioStatisticRequest::~GetClientRatioStatisticRequest() {} + +long GetClientRatioStatisticRequest::getTimeEnd() const { + return timeEnd_; +} + +void GetClientRatioStatisticRequest::setTimeEnd(long timeEnd) { + timeEnd_ = timeEnd; + setParameter(std::string("TimeEnd"), std::to_string(timeEnd)); +} + +long GetClientRatioStatisticRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void GetClientRatioStatisticRequest::setResourceDirectoryAccountId(long resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), std::to_string(resourceDirectoryAccountId)); +} + +std::vector GetClientRatioStatisticRequest::getStatisticTypes() const { + return statisticTypes_; +} + +void GetClientRatioStatisticRequest::setStatisticTypes(const std::vector &statisticTypes) { + statisticTypes_ = statisticTypes; + for(int dep1 = 0; dep1 != statisticTypes.size(); dep1++) { + setParameter(std::string("StatisticTypes") + "." + std::to_string(dep1 + 1), statisticTypes[dep1]); + } +} + +long GetClientRatioStatisticRequest::getTimeStart() const { + return timeStart_; +} + +void GetClientRatioStatisticRequest::setTimeStart(long timeStart) { + timeStart_ = timeStart; + setParameter(std::string("TimeStart"), std::to_string(timeStart)); +} + diff --git a/sas/src/model/GetClientRatioStatisticResult.cc b/sas/src/model/GetClientRatioStatisticResult.cc new file mode 100644 index 000000000..2524f9ebc --- /dev/null +++ b/sas/src/model/GetClientRatioStatisticResult.cc @@ -0,0 +1,152 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +GetClientRatioStatisticResult::GetClientRatioStatisticResult() : + ServiceResult() +{} + +GetClientRatioStatisticResult::GetClientRatioStatisticResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetClientRatioStatisticResult::~GetClientRatioStatisticResult() +{} + +void GetClientRatioStatisticResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto clientInstallRatioNode = value["ClientInstallRatio"]; + auto allHistoryItemsNode = clientInstallRatioNode["HistoryItems"]["historyItemsItem"]; + for (auto clientInstallRatioNodeHistoryItemshistoryItemsItem : allHistoryItemsNode) + { + ClientInstallRatio::HistoryItemsItem historyItemsItemObject; + if(!clientInstallRatioNodeHistoryItemshistoryItemsItem["Vendor"].isNull()) + historyItemsItemObject.vendor = std::stol(clientInstallRatioNodeHistoryItemshistoryItemsItem["Vendor"].asString()); + auto allItemsNode = clientInstallRatioNodeHistoryItemshistoryItemsItem["Items"]["historyItem"]; + for (auto clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem : allItemsNode) + { + ClientInstallRatio::HistoryItemsItem::HistoryItem itemsObject; + if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].isNull()) + itemsObject.calculateTime = std::stol(clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].asString()); + if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetTotalCount"].isNull()) + itemsObject.assetTotalCount = std::stoi(clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetTotalCount"].asString()); + if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstallRatio"].isNull()) + itemsObject.installRatio = clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstallRatio"].asString(); + if(!clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstalledAssetCount"].isNull()) + itemsObject.installedAssetCount = std::stoi(clientInstallRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["InstalledAssetCount"].asString()); + historyItemsItemObject.items.push_back(itemsObject); + } + clientInstallRatio_.historyItems.push_back(historyItemsItemObject); + } + auto allCurrentItemsNode = clientInstallRatioNode["CurrentItems"]["currentItemsItem"]; + for (auto clientInstallRatioNodeCurrentItemscurrentItemsItem : allCurrentItemsNode) + { + ClientInstallRatio::CurrentItemsItem currentItemsItemObject; + if(!clientInstallRatioNodeCurrentItemscurrentItemsItem["Vendor"].isNull()) + currentItemsItemObject.vendor = std::stol(clientInstallRatioNodeCurrentItemscurrentItemsItem["Vendor"].asString()); + auto allItems1Node = clientInstallRatioNodeCurrentItemscurrentItemsItem["Items"]["itemsItem"]; + for (auto clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem : allItems1Node) + { + ClientInstallRatio::CurrentItemsItem::ItemsItem items1Object; + if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].isNull()) + items1Object.calculateTime = std::stol(clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].asString()); + if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetTotalCount"].isNull()) + items1Object.assetTotalCount = std::stoi(clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetTotalCount"].asString()); + if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstallRatio"].isNull()) + items1Object.installRatio = clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstallRatio"].asString(); + if(!clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstalledAssetCount"].isNull()) + items1Object.installedAssetCount = std::stoi(clientInstallRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["InstalledAssetCount"].asString()); + currentItemsItemObject.items1.push_back(items1Object); + } + clientInstallRatio_.currentItems.push_back(currentItemsItemObject); + } + auto clientOnlineRatioNode = value["ClientOnlineRatio"]; + auto allHistoryItems2Node = clientOnlineRatioNode["HistoryItems"]["historyItemsItem"]; + for (auto clientOnlineRatioNodeHistoryItemshistoryItemsItem : allHistoryItems2Node) + { + ClientOnlineRatio::HistoryItemsItem4 historyItemsItem4Object; + if(!clientOnlineRatioNodeHistoryItemshistoryItemsItem["Vendor"].isNull()) + historyItemsItem4Object.vendor = std::stol(clientOnlineRatioNodeHistoryItemshistoryItemsItem["Vendor"].asString()); + auto allItems5Node = clientOnlineRatioNodeHistoryItemshistoryItemsItem["Items"]["historyItem"]; + for (auto clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem : allItems5Node) + { + ClientOnlineRatio::HistoryItemsItem4::HistoryItem6 items5Object; + if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].isNull()) + items5Object.calculateTime = std::stol(clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["CalculateTime"].asString()); + if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetInstallCount"].isNull()) + items5Object.assetInstallCount = std::stoi(clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["AssetInstallCount"].asString()); + if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineRatio"].isNull()) + items5Object.onlineRatio = clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineRatio"].asString(); + if(!clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineAssetCount"].isNull()) + items5Object.onlineAssetCount = std::stoi(clientOnlineRatioNodeHistoryItemshistoryItemsItemItemshistoryItem["OnlineAssetCount"].asString()); + historyItemsItem4Object.items5.push_back(items5Object); + } + clientOnlineRatio_.historyItems2.push_back(historyItemsItem4Object); + } + auto allCurrentItems3Node = clientOnlineRatioNode["CurrentItems"]["currentItemsItem"]; + for (auto clientOnlineRatioNodeCurrentItemscurrentItemsItem : allCurrentItems3Node) + { + ClientOnlineRatio::CurrentItemsItem7 currentItemsItem7Object; + if(!clientOnlineRatioNodeCurrentItemscurrentItemsItem["Vendor"].isNull()) + currentItemsItem7Object.vendor = std::stol(clientOnlineRatioNodeCurrentItemscurrentItemsItem["Vendor"].asString()); + auto allItems8Node = clientOnlineRatioNodeCurrentItemscurrentItemsItem["Items"]["itemsItem"]; + for (auto clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem : allItems8Node) + { + ClientOnlineRatio::CurrentItemsItem7::ItemsItem9 items8Object; + if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].isNull()) + items8Object.calculateTime = std::stol(clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["CalculateTime"].asString()); + if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetInstallCount"].isNull()) + items8Object.assetInstallCount = std::stoi(clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["AssetInstallCount"].asString()); + if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineRatio"].isNull()) + items8Object.onlineRatio = clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineRatio"].asString(); + if(!clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineAssetCount"].isNull()) + items8Object.onlineAssetCount = std::stoi(clientOnlineRatioNodeCurrentItemscurrentItemsItemItemsitemsItem["OnlineAssetCount"].asString()); + currentItemsItem7Object.items8.push_back(items8Object); + } + clientOnlineRatio_.currentItems3.push_back(currentItemsItem7Object); + } + auto allDates = value["Dates"]["dates"]; + for (const auto &item : allDates) + dates_.push_back(item.asString()); + +} + +GetClientRatioStatisticResult::ClientOnlineRatio GetClientRatioStatisticResult::getClientOnlineRatio()const +{ + return clientOnlineRatio_; +} + +std::vector GetClientRatioStatisticResult::getDates()const +{ + return dates_; +} + +GetClientRatioStatisticResult::ClientInstallRatio GetClientRatioStatisticResult::getClientInstallRatio()const +{ + return clientInstallRatio_; +} + diff --git a/sas/src/model/GetServiceTrailRequest.cc b/sas/src/model/GetServiceTrailRequest.cc new file mode 100644 index 000000000..7969135a2 --- /dev/null +++ b/sas/src/model/GetServiceTrailRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::GetServiceTrailRequest; + +GetServiceTrailRequest::GetServiceTrailRequest() + : RpcServiceRequest("sas", "2018-12-03", "GetServiceTrail") { + setMethod(HttpRequest::Method::Post); +} + +GetServiceTrailRequest::~GetServiceTrailRequest() {} + +std::string GetServiceTrailRequest::getSourceIp() const { + return sourceIp_; +} + +void GetServiceTrailRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string GetServiceTrailRequest::getRegionId() const { + return regionId_; +} + +void GetServiceTrailRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/sas/src/model/GetServiceTrailResult.cc b/sas/src/model/GetServiceTrailResult.cc new file mode 100644 index 000000000..8a2c6424d --- /dev/null +++ b/sas/src/model/GetServiceTrailResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +GetServiceTrailResult::GetServiceTrailResult() : + ServiceResult() +{} + +GetServiceTrailResult::GetServiceTrailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetServiceTrailResult::~GetServiceTrailResult() +{} + +void GetServiceTrailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto serviceTrailNode = value["ServiceTrail"]; + if(!serviceTrailNode["Config"].isNull()) + serviceTrail_.config = serviceTrailNode["Config"].asString(); + if(!serviceTrailNode["CreateTime"].isNull()) + serviceTrail_.createTime = std::stol(serviceTrailNode["CreateTime"].asString()); + if(!serviceTrailNode["UpdateTime"].isNull()) + serviceTrail_.updateTime = std::stol(serviceTrailNode["UpdateTime"].asString()); + +} + +GetServiceTrailResult::ServiceTrail GetServiceTrailResult::getServiceTrail()const +{ + return serviceTrail_; +} + diff --git a/sas/src/model/HandleSecurityEventsRequest.cc b/sas/src/model/HandleSecurityEventsRequest.cc index 1d33d28ba..916a237e9 100644 --- a/sas/src/model/HandleSecurityEventsRequest.cc +++ b/sas/src/model/HandleSecurityEventsRequest.cc @@ -51,6 +51,15 @@ void HandleSecurityEventsRequest::setSecurityEventIds(const std::vector + +using AlibabaCloud::Sas::Model::ListAgentlessRegionRequest; + +ListAgentlessRegionRequest::ListAgentlessRegionRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListAgentlessRegion") { + setMethod(HttpRequest::Method::Post); +} + +ListAgentlessRegionRequest::~ListAgentlessRegionRequest() {} + +std::string ListAgentlessRegionRequest::getSourceIp() const { + return sourceIp_; +} + +void ListAgentlessRegionRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/sas/src/model/ListAgentlessRegionResult.cc b/sas/src/model/ListAgentlessRegionResult.cc new file mode 100644 index 000000000..d194dff99 --- /dev/null +++ b/sas/src/model/ListAgentlessRegionResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListAgentlessRegionResult::ListAgentlessRegionResult() : + ServiceResult() +{} + +ListAgentlessRegionResult::ListAgentlessRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentlessRegionResult::~ListAgentlessRegionResult() +{} + +void ListAgentlessRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionList = value["RegionList"]["RegionList"]; + for (const auto &item : allRegionList) + regionList_.push_back(item.asString()); + +} + +std::vector ListAgentlessRegionResult::getRegionList()const +{ + return regionList_; +} + diff --git a/sas/src/model/ListAgentlessRelateMaliciousRequest.cc b/sas/src/model/ListAgentlessRelateMaliciousRequest.cc new file mode 100644 index 000000000..6c673655a --- /dev/null +++ b/sas/src/model/ListAgentlessRelateMaliciousRequest.cc @@ -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 + +using AlibabaCloud::Sas::Model::ListAgentlessRelateMaliciousRequest; + +ListAgentlessRelateMaliciousRequest::ListAgentlessRelateMaliciousRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListAgentlessRelateMalicious") { + setMethod(HttpRequest::Method::Post); +} + +ListAgentlessRelateMaliciousRequest::~ListAgentlessRelateMaliciousRequest() {} + +long ListAgentlessRelateMaliciousRequest::getEventId() const { + return eventId_; +} + +void ListAgentlessRelateMaliciousRequest::setEventId(long eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), std::to_string(eventId)); +} + +std::string ListAgentlessRelateMaliciousRequest::getSourceIp() const { + return sourceIp_; +} + +void ListAgentlessRelateMaliciousRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListAgentlessRelateMaliciousRequest::getPageSize() const { + return pageSize_; +} + +void ListAgentlessRelateMaliciousRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +int ListAgentlessRelateMaliciousRequest::getCurrentPage() const { + return currentPage_; +} + +void ListAgentlessRelateMaliciousRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + diff --git a/sas/src/model/ListAgentlessRelateMaliciousResult.cc b/sas/src/model/ListAgentlessRelateMaliciousResult.cc new file mode 100644 index 000000000..75cc7f277 --- /dev/null +++ b/sas/src/model/ListAgentlessRelateMaliciousResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListAgentlessRelateMaliciousResult::ListAgentlessRelateMaliciousResult() : + ServiceResult() +{} + +ListAgentlessRelateMaliciousResult::ListAgentlessRelateMaliciousResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentlessRelateMaliciousResult::~ListAgentlessRelateMaliciousResult() +{} + +void ListAgentlessRelateMaliciousResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListNode = value["List"]["ListItem"]; + for (auto valueListListItem : allListNode) + { + ListItem listObject; + if(!valueListListItem["InstanceName"].isNull()) + listObject.instanceName = valueListListItem["InstanceName"].asString(); + if(!valueListListItem["InternetIp"].isNull()) + listObject.internetIp = valueListListItem["InternetIp"].asString(); + if(!valueListListItem["IntranetIp"].isNull()) + listObject.intranetIp = valueListListItem["IntranetIp"].asString(); + if(!valueListListItem["Uuid"].isNull()) + listObject.uuid = valueListListItem["Uuid"].asString(); + if(!valueListListItem["FirstScanTimestamp"].isNull()) + listObject.firstScanTimestamp = std::stol(valueListListItem["FirstScanTimestamp"].asString()); + if(!valueListListItem["LatestScanTimestamp"].isNull()) + listObject.latestScanTimestamp = std::stol(valueListListItem["LatestScanTimestamp"].asString()); + if(!valueListListItem["FilePath"].isNull()) + listObject.filePath = valueListListItem["FilePath"].asString(); + list_.push_back(listObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); + if(!pageInfoNode["Count"].isNull()) + pageInfo_.count = std::stoi(pageInfoNode["Count"].asString()); + +} + +ListAgentlessRelateMaliciousResult::PageInfo ListAgentlessRelateMaliciousResult::getPageInfo()const +{ + return pageInfo_; +} + +std::vector ListAgentlessRelateMaliciousResult::getList()const +{ + return list_; +} + diff --git a/sas/src/model/ListAgentlessRiskUuidRequest.cc b/sas/src/model/ListAgentlessRiskUuidRequest.cc new file mode 100644 index 000000000..a42d3fdfe --- /dev/null +++ b/sas/src/model/ListAgentlessRiskUuidRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ListAgentlessRiskUuidRequest; + +ListAgentlessRiskUuidRequest::ListAgentlessRiskUuidRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListAgentlessRiskUuid") { + setMethod(HttpRequest::Method::Post); +} + +ListAgentlessRiskUuidRequest::~ListAgentlessRiskUuidRequest() {} + +std::string ListAgentlessRiskUuidRequest::getInternetIp() const { + return internetIp_; +} + +void ListAgentlessRiskUuidRequest::setInternetIp(const std::string &internetIp) { + internetIp_ = internetIp; + setParameter(std::string("InternetIp"), internetIp); +} + +std::string ListAgentlessRiskUuidRequest::getTargetName() const { + return targetName_; +} + +void ListAgentlessRiskUuidRequest::setTargetName(const std::string &targetName) { + targetName_ = targetName; + setParameter(std::string("TargetName"), targetName); +} + +std::string ListAgentlessRiskUuidRequest::getSourceIp() const { + return sourceIp_; +} + +void ListAgentlessRiskUuidRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +int ListAgentlessRiskUuidRequest::getPageSize() const { + return pageSize_; +} + +void ListAgentlessRiskUuidRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAgentlessRiskUuidRequest::getMachineName() const { + return machineName_; +} + +void ListAgentlessRiskUuidRequest::setMachineName(const std::string &machineName) { + machineName_ = machineName; + setParameter(std::string("MachineName"), machineName); +} + +int ListAgentlessRiskUuidRequest::getCurrentPage() const { + return currentPage_; +} + +void ListAgentlessRiskUuidRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +bool ListAgentlessRiskUuidRequest::getRisk() const { + return risk_; +} + +void ListAgentlessRiskUuidRequest::setRisk(bool risk) { + risk_ = risk; + setParameter(std::string("Risk"), risk ? "true" : "false"); +} + +std::string ListAgentlessRiskUuidRequest::getIntranetIp() const { + return intranetIp_; +} + +void ListAgentlessRiskUuidRequest::setIntranetIp(const std::string &intranetIp) { + intranetIp_ = intranetIp; + setParameter(std::string("IntranetIp"), intranetIp); +} + diff --git a/sas/src/model/ListAgentlessRiskUuidResult.cc b/sas/src/model/ListAgentlessRiskUuidResult.cc new file mode 100644 index 000000000..cbb880502 --- /dev/null +++ b/sas/src/model/ListAgentlessRiskUuidResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListAgentlessRiskUuidResult::ListAgentlessRiskUuidResult() : + ServiceResult() +{} + +ListAgentlessRiskUuidResult::ListAgentlessRiskUuidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentlessRiskUuidResult::~ListAgentlessRiskUuidResult() +{} + +void ListAgentlessRiskUuidResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListNode = value["List"]["ListItem"]; + for (auto valueListListItem : allListNode) + { + ListItem listObject; + if(!valueListListItem["Uuid"].isNull()) + listObject.uuid = valueListListItem["Uuid"].asString(); + if(!valueListListItem["InstanceName"].isNull()) + listObject.instanceName = valueListListItem["InstanceName"].asString(); + if(!valueListListItem["InternetIp"].isNull()) + listObject.internetIp = valueListListItem["InternetIp"].asString(); + if(!valueListListItem["IntranetIp"].isNull()) + listObject.intranetIp = valueListListItem["IntranetIp"].asString(); + if(!valueListListItem["VulCount"].isNull()) + listObject.vulCount = std::stoi(valueListListItem["VulCount"].asString()); + if(!valueListListItem["MaliciousCount"].isNull()) + listObject.maliciousCount = std::stoi(valueListListItem["MaliciousCount"].asString()); + if(!valueListListItem["BaselineCount"].isNull()) + listObject.baselineCount = std::stoi(valueListListItem["BaselineCount"].asString()); + if(!valueListListItem["TargetId"].isNull()) + listObject.targetId = valueListListItem["TargetId"].asString(); + if(!valueListListItem["TargetName"].isNull()) + listObject.targetName = valueListListItem["TargetName"].asString(); + if(!valueListListItem["ScanTime"].isNull()) + listObject.scanTime = std::stol(valueListListItem["ScanTime"].asString()); + list_.push_back(listObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); + +} + +ListAgentlessRiskUuidResult::PageInfo ListAgentlessRiskUuidResult::getPageInfo()const +{ + return pageInfo_; +} + +std::vector ListAgentlessRiskUuidResult::getList()const +{ + return list_; +} + diff --git a/sas/src/model/ListAgentlessTaskRequest.cc b/sas/src/model/ListAgentlessTaskRequest.cc new file mode 100644 index 000000000..e4e5da588 --- /dev/null +++ b/sas/src/model/ListAgentlessTaskRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ListAgentlessTaskRequest; + +ListAgentlessTaskRequest::ListAgentlessTaskRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListAgentlessTask") { + setMethod(HttpRequest::Method::Post); +} + +ListAgentlessTaskRequest::~ListAgentlessTaskRequest() {} + +std::string ListAgentlessTaskRequest::getInternetIp() const { + return internetIp_; +} + +void ListAgentlessTaskRequest::setInternetIp(const std::string &internetIp) { + internetIp_ = internetIp; + setParameter(std::string("InternetIp"), internetIp); +} + +int ListAgentlessTaskRequest::getTargetType() const { + return targetType_; +} + +void ListAgentlessTaskRequest::setTargetType(int targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), std::to_string(targetType)); +} + +long ListAgentlessTaskRequest::getStartTime() const { + return startTime_; +} + +void ListAgentlessTaskRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string ListAgentlessTaskRequest::getUuid() const { + return uuid_; +} + +void ListAgentlessTaskRequest::setUuid(const std::string &uuid) { + uuid_ = uuid; + setParameter(std::string("Uuid"), uuid); +} + +std::string ListAgentlessTaskRequest::getTargetName() const { + return targetName_; +} + +void ListAgentlessTaskRequest::setTargetName(const std::string &targetName) { + targetName_ = targetName; + setParameter(std::string("TargetName"), targetName); +} + +std::string ListAgentlessTaskRequest::getSourceIp() const { + return sourceIp_; +} + +void ListAgentlessTaskRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListAgentlessTaskRequest::getRootTaskId() const { + return rootTaskId_; +} + +void ListAgentlessTaskRequest::setRootTaskId(const std::string &rootTaskId) { + rootTaskId_ = rootTaskId; + setParameter(std::string("RootTaskId"), rootTaskId); +} + +int ListAgentlessTaskRequest::getPageSize() const { + return pageSize_; +} + +void ListAgentlessTaskRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAgentlessTaskRequest::getMachineName() const { + return machineName_; +} + +void ListAgentlessTaskRequest::setMachineName(const std::string &machineName) { + machineName_ = machineName; + setParameter(std::string("MachineName"), machineName); +} + +std::string ListAgentlessTaskRequest::getLang() const { + return lang_; +} + +void ListAgentlessTaskRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string ListAgentlessTaskRequest::getTaskId() const { + return taskId_; +} + +void ListAgentlessTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +long ListAgentlessTaskRequest::getEndTime() const { + return endTime_; +} + +void ListAgentlessTaskRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +int ListAgentlessTaskRequest::getCurrentPage() const { + return currentPage_; +} + +void ListAgentlessTaskRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +bool ListAgentlessTaskRequest::getRootTask() const { + return rootTask_; +} + +void ListAgentlessTaskRequest::setRootTask(bool rootTask) { + rootTask_ = rootTask; + setParameter(std::string("RootTask"), rootTask ? "true" : "false"); +} + +int ListAgentlessTaskRequest::getStatus() const { + return status_; +} + +void ListAgentlessTaskRequest::setStatus(int status) { + status_ = status; + setParameter(std::string("Status"), std::to_string(status)); +} + +std::string ListAgentlessTaskRequest::getIntranetIp() const { + return intranetIp_; +} + +void ListAgentlessTaskRequest::setIntranetIp(const std::string &intranetIp) { + intranetIp_ = intranetIp; + setParameter(std::string("IntranetIp"), intranetIp); +} + diff --git a/sas/src/model/ListAgentlessTaskResult.cc b/sas/src/model/ListAgentlessTaskResult.cc new file mode 100644 index 000000000..da6508880 --- /dev/null +++ b/sas/src/model/ListAgentlessTaskResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListAgentlessTaskResult::ListAgentlessTaskResult() : + ServiceResult() +{} + +ListAgentlessTaskResult::ListAgentlessTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAgentlessTaskResult::~ListAgentlessTaskResult() +{} + +void ListAgentlessTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListNode = value["List"]["ListItem"]; + for (auto valueListListItem : allListNode) + { + ListItem listObject; + if(!valueListListItem["TaskId"].isNull()) + listObject.taskId = valueListListItem["TaskId"].asString(); + if(!valueListListItem["TaskName"].isNull()) + listObject.taskName = valueListListItem["TaskName"].asString(); + if(!valueListListItem["TargetType"].isNull()) + listObject.targetType = std::stoi(valueListListItem["TargetType"].asString()); + if(!valueListListItem["Status"].isNull()) + listObject.status = std::stoi(valueListListItem["Status"].asString()); + if(!valueListListItem["Progress"].isNull()) + listObject.progress = std::stoi(valueListListItem["Progress"].asString()); + if(!valueListListItem["StartTime"].isNull()) + listObject.startTime = std::stol(valueListListItem["StartTime"].asString()); + if(!valueListListItem["EndTime"].isNull()) + listObject.endTime = std::stol(valueListListItem["EndTime"].asString()); + if(!valueListListItem["Result"].isNull()) + listObject.result = valueListListItem["Result"].asString(); + if(!valueListListItem["Uuid"].isNull()) + listObject.uuid = valueListListItem["Uuid"].asString(); + if(!valueListListItem["InternetIp"].isNull()) + listObject.internetIp = valueListListItem["InternetIp"].asString(); + if(!valueListListItem["IntranetIp"].isNull()) + listObject.intranetIp = valueListListItem["IntranetIp"].asString(); + if(!valueListListItem["InstanceName"].isNull()) + listObject.instanceName = valueListListItem["InstanceName"].asString(); + if(!valueListListItem["TargetName"].isNull()) + listObject.targetName = valueListListItem["TargetName"].asString(); + list_.push_back(listObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["TotalCount"].isNull()) + pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); + +} + +ListAgentlessTaskResult::PageInfo ListAgentlessTaskResult::getPageInfo()const +{ + return pageInfo_; +} + +std::vector ListAgentlessTaskResult::getList()const +{ + return list_; +} + diff --git a/sas/src/model/ListAssetRefreshTaskConfigRequest.cc b/sas/src/model/ListAssetRefreshTaskConfigRequest.cc new file mode 100644 index 000000000..827fe544a --- /dev/null +++ b/sas/src/model/ListAssetRefreshTaskConfigRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ListAssetRefreshTaskConfigRequest; + +ListAssetRefreshTaskConfigRequest::ListAssetRefreshTaskConfigRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListAssetRefreshTaskConfig") { + setMethod(HttpRequest::Method::Post); +} + +ListAssetRefreshTaskConfigRequest::~ListAssetRefreshTaskConfigRequest() {} + +std::string ListAssetRefreshTaskConfigRequest::getRegionId() const { + return regionId_; +} + +void ListAssetRefreshTaskConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/sas/src/model/ListAssetRefreshTaskConfigResult.cc b/sas/src/model/ListAssetRefreshTaskConfigResult.cc new file mode 100644 index 000000000..e8de9e857 --- /dev/null +++ b/sas/src/model/ListAssetRefreshTaskConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListAssetRefreshTaskConfigResult::ListAssetRefreshTaskConfigResult() : + ServiceResult() +{} + +ListAssetRefreshTaskConfigResult::ListAssetRefreshTaskConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAssetRefreshTaskConfigResult::~ListAssetRefreshTaskConfigResult() +{} + +void ListAssetRefreshTaskConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAssetRefreshConfigNode = value["AssetRefreshConfig"]["AssetRefreshConfigItem"]; + for (auto valueAssetRefreshConfigAssetRefreshConfigItem : allAssetRefreshConfigNode) + { + AssetRefreshConfigItem assetRefreshConfigObject; + if(!valueAssetRefreshConfigAssetRefreshConfigItem["Vendor"].isNull()) + assetRefreshConfigObject.vendor = std::stoi(valueAssetRefreshConfigAssetRefreshConfigItem["Vendor"].asString()); + if(!valueAssetRefreshConfigAssetRefreshConfigItem["SchedulePeriod"].isNull()) + assetRefreshConfigObject.schedulePeriod = std::stoi(valueAssetRefreshConfigAssetRefreshConfigItem["SchedulePeriod"].asString()); + if(!valueAssetRefreshConfigAssetRefreshConfigItem["Status"].isNull()) + assetRefreshConfigObject.status = std::stoi(valueAssetRefreshConfigAssetRefreshConfigItem["Status"].asString()); + assetRefreshConfig_.push_back(assetRefreshConfigObject); + } + +} + +std::vector ListAssetRefreshTaskConfigResult::getAssetRefreshConfig()const +{ + return assetRefreshConfig_; +} + diff --git a/sas/src/model/ListCheckInstanceResultResult.cc b/sas/src/model/ListCheckInstanceResultResult.cc index 61fefaeee..8532eb05f 100644 --- a/sas/src/model/ListCheckInstanceResultResult.cc +++ b/sas/src/model/ListCheckInstanceResultResult.cc @@ -53,6 +53,8 @@ void ListCheckInstanceResultResult::parse(const std::string &payload) basicDataObject.instanceId = valueBasicDataBasicDataItem["InstanceId"].asString(); if(!valueBasicDataBasicDataItem["InstanceName"].isNull()) basicDataObject.instanceName = valueBasicDataBasicDataItem["InstanceName"].asString(); + if(!valueBasicDataBasicDataItem["StatusMessage"].isNull()) + basicDataObject.statusMessage = valueBasicDataBasicDataItem["StatusMessage"].asString(); basicData_.push_back(basicDataObject); } auto allColumnsNode = value["Columns"]["ColumnsItem"]; diff --git a/sas/src/model/ListCheckResultRequest.cc b/sas/src/model/ListCheckResultRequest.cc index ba7a410f5..c3047ebd3 100644 --- a/sas/src/model/ListCheckResultRequest.cc +++ b/sas/src/model/ListCheckResultRequest.cc @@ -57,6 +57,15 @@ void ListCheckResultRequest::setInstanceTypes(const std::vector &in instanceTypes_ = instanceTypes; } +bool ListCheckResultRequest::getCustomParam() const { + return customParam_; +} + +void ListCheckResultRequest::setCustomParam(bool customParam) { + customParam_ = customParam; + setParameter(std::string("CustomParam"), customParam ? "true" : "false"); +} + std::string ListCheckResultRequest::getCheckKey() const { return checkKey_; } diff --git a/sas/src/model/ListCheckResultResult.cc b/sas/src/model/ListCheckResultResult.cc index 75fb7f50c..d5a2b6b55 100644 --- a/sas/src/model/ListCheckResultResult.cc +++ b/sas/src/model/ListCheckResultResult.cc @@ -65,6 +65,8 @@ void ListCheckResultResult::parse(const std::string &payload) checksObject.lastCheckTime = std::stol(valueChecksChecksItem["LastCheckTime"].asString()); if(!valueChecksChecksItem["TrialPermission"].isNull()) checksObject.trialPermission = valueChecksChecksItem["TrialPermission"].asString() == "true"; + if(!valueChecksChecksItem["StatusMessage"].isNull()) + checksObject.statusMessage = valueChecksChecksItem["StatusMessage"].asString(); auto allCheckPoliciesNode = valueChecksChecksItem["CheckPolicies"]["CheckPolicie"]; for (auto valueChecksChecksItemCheckPoliciesCheckPolicie : allCheckPoliciesNode) { diff --git a/sas/src/model/OperationCancelIgnoreSuspEventRequest.cc b/sas/src/model/OperationCancelIgnoreSuspEventRequest.cc index 0d50ab25a..c64612f8b 100644 --- a/sas/src/model/OperationCancelIgnoreSuspEventRequest.cc +++ b/sas/src/model/OperationCancelIgnoreSuspEventRequest.cc @@ -33,3 +33,12 @@ void OperationCancelIgnoreSuspEventRequest::setSecurityEventIds(const std::vecto securityEventIds_ = securityEventIds; } +std::string OperationCancelIgnoreSuspEventRequest::getRemark() const { + return remark_; +} + +void OperationCancelIgnoreSuspEventRequest::setRemark(const std::string &remark) { + remark_ = remark; + setParameter(std::string("Remark"), remark); +} + diff --git a/sas/src/model/SubmitCheckRequest.cc b/sas/src/model/SubmitCheckRequest.cc index 0031bd731..f8ce72f11 100644 --- a/sas/src/model/SubmitCheckRequest.cc +++ b/sas/src/model/SubmitCheckRequest.cc @@ -34,3 +34,12 @@ void SubmitCheckRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } +std::string SubmitCheckRequest::getScanRange() const { + return scanRange_; +} + +void SubmitCheckRequest::setScanRange(const std::string &scanRange) { + scanRange_ = scanRange; + setParameter(std::string("ScanRange"), scanRange); +} +