From f798fffbdbed111f38ce9e4d0eb0b4e4716f7c6f Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 10 Feb 2023 08:43:12 +0000 Subject: [PATCH] Change DescribeLogstoreStorage Response. --- VERSION | 2 +- sas/CMakeLists.txt | 100 ++ sas/include/alibabacloud/sas/SasClient.h | 200 ++++ .../AddCheckInstanceResultWhiteListRequest.h | 6 +- .../sas/model/AddInstallCodeRequest.h | 21 +- .../sas/model/AddPrivateRegistryRequest.h | 78 ++ .../sas/model/AddPrivateRegistryResult.h | 68 ++ .../sas/model/ChangeCheckConfigRequest.h | 6 +- .../model/CreateContainerScanTaskRequest.h | 6 +- .../sas/model/CreateInterceptionRuleRequest.h | 69 ++ .../sas/model/CreateInterceptionRuleResult.h | 49 + .../model/CreateInterceptionTargetRequest.h | 66 ++ .../model/CreateInterceptionTargetResult.h | 51 + .../model/DeleteBackupPolicyMachineRequest.h | 6 +- .../sas/model/DeleteBackupPolicyRequest.h | 6 +- .../sas/model/DeletePrivateRegistryRequest.h | 45 + .../sas/model/DeletePrivateRegistryResult.h | 51 + .../DescribeAntiBruteForceRulesRequest.h | 6 + ...escribeAssetsSecurityEventSummaryRequest.h | 54 ++ ...DescribeAssetsSecurityEventSummaryResult.h | 57 ++ .../model/DescribeBackUpExportInfoRequest.h | 12 +- .../DescribeBackupMachineStatusRequest.h | 6 +- .../model/DescribeCheckFixDetailsRequest.h | 6 +- .../DescribeCheckWarningMachinesRequest.h | 6 +- .../model/DescribeClientConfSetupRequest.h | 6 +- .../model/DescribeClientConfStrategyRequest.h | 6 +- .../sas/model/DescribeContainerTagsRequest.h | 63 ++ .../sas/model/DescribeContainerTagsResult.h | 51 + .../model/DescribeExcludeSystemPathRequest.h | 6 +- .../sas/model/DescribeGroupStructRequest.h | 45 + .../sas/model/DescribeGroupStructResult.h | 65 ++ .../sas/model/DescribeGroupedVulRequest.h | 72 +- .../sas/model/DescribeImageFixTaskRequest.h | 12 +- .../sas/model/DescribeInstallCodesResult.h | 1 + .../model/DescribeInstanceStatisticsResult.h | 1 + .../sas/model/DescribeRestoreJobsRequest.h | 6 +- .../sas/model/DescribeRestorePlansRequest.h | 12 +- .../sas/model/DescribeRisksRequest.h | 6 +- .../model/DescribeStrategyExecDetailRequest.h | 6 +- .../sas/model/DescribeStrategyRequest.h | 12 +- .../sas/model/DescribeStrategyTargetRequest.h | 6 +- .../model/DescribeSuspEventDetailRequest.h | 6 +- .../sas/model/DescribeTargetRequest.h | 6 +- .../DescribeVulCheckTaskStatusDetailRequest.h | 6 +- .../sas/model/DescribeVulListPageRequest.h | 12 +- .../sas/model/GetAppNetworkRequest.h | 48 + .../sas/model/GetAppNetworkResult.h | 80 ++ .../sas/model/GetCheckConfigRequest.h | 12 +- .../sas/model/GetCheckRiskStatisticsRequest.h | 6 +- .../sas/model/GetCloudAssetCriteriaRequest.h | 52 + .../sas/model/GetCloudAssetCriteriaResult.h | 58 ++ .../sas/model/GetClusterRuleSummaryRequest.h | 45 + .../sas/model/GetClusterRuleSummaryResult.h | 61 ++ .../model/GetInterceptionRuleDetailRequest.h | 48 + .../model/GetInterceptionRuleDetailResult.h | 85 ++ .../sas/model/GetModuleConfigRequest.h | 6 +- .../sas/model/IgnoreCheckItemsRequest.h | 6 +- .../sas/model/InstallBackupClientRequest.h | 6 +- .../sas/model/InstallPmAgentRequest.h | 51 + .../sas/model/InstallPmAgentResult.h | 49 + .../sas/model/ListCheckStandardRequest.h | 6 +- .../model/ListCloudAssetInstancesRequest.h | 64 ++ .../sas/model/ListCloudAssetInstancesResult.h | 78 ++ .../model/ListImageRegistryRegionRequest.h | 42 + .../sas/model/ListImageRegistryRegionResult.h | 56 ++ .../sas/model/ListImageRiskRequest.h | 57 ++ .../sas/model/ListImageRiskResult.h | 86 ++ .../sas/model/ListInstanceCatalogRequest.h | 45 + .../sas/model/ListInstanceCatalogResult.h | 65 ++ .../model/ListInterceptionHistoryRequest.h | 63 ++ .../sas/model/ListInterceptionHistoryResult.h | 95 ++ .../model/ListInterceptionTargetPageRequest.h | 66 ++ .../model/ListInterceptionTargetPageResult.h | 72 ++ .../sas/model/ListPodRiskRequest.h | 57 ++ .../sas/model/ListPodRiskResult.h | 74 ++ .../sas/model/ListRuleTargetAllRequest.h | 45 + .../sas/model/ListRuleTargetAllResult.h | 57 ++ .../model/ListVulAutoRepairConfigRequest.h | 12 +- .../model/ModifyBackupPolicyStatusRequest.h | 6 +- .../sas/model/ModifyClientConfSetupRequest.h | 6 +- ...odifyClusterCnnfStatusUserConfirmRequest.h | 45 + ...ModifyClusterCnnfStatusUserConfirmResult.h | 49 + .../model/ModifyCreateVulWhitelistRequest.h | 6 +- .../sas/model/ModifyInterceptionRuleRequest.h | 66 ++ .../sas/model/ModifyInterceptionRuleResult.h | 49 + .../ModifyInterceptionRuleSwitchRequest.h | 51 + .../ModifyInterceptionRuleSwitchResult.h | 49 + .../model/ModifyInterceptionTargetRequest.h | 63 ++ .../model/ModifyInterceptionTargetResult.h | 51 + .../sas/model/ModifyOperateVulRequest.h | 6 +- ...SecurityEventMarkMissIndividuallyRequest.h | 6 +- .../sas/model/ModifyStrategyTargetRequest.h | 12 +- .../sas/model/ModifyVulConfigRequest.h | 6 +- .../sas/model/ModifyVulTargetRequest.h | 12 +- .../model/ModifyVulWhitelistTargetRequest.h | 6 +- .../sas/model/OpenSensitiveFileScanRequest.h | 12 +- .../model/OperateAgentClientInstallRequest.h | 6 +- .../sas/model/PageImageRegistryRequest.h | 12 +- .../model/RemoveCheckResultWhiteListRequest.h | 6 +- .../SetClusterInterceptionConfigRequest.h | 51 + .../SetClusterInterceptionConfigResult.h | 51 + sas/src/SasClient.cc | 900 ++++++++++++++++++ .../AddCheckInstanceResultWhiteListRequest.cc | 18 +- sas/src/model/AddInstallCodeRequest.cc | 63 +- sas/src/model/AddPrivateRegistryRequest.cc | 144 +++ sas/src/model/AddPrivateRegistryResult.cc | 78 ++ sas/src/model/ChangeCheckConfigRequest.cc | 18 +- .../model/CreateContainerScanTaskRequest.cc | 18 +- .../model/CreateInterceptionRuleRequest.cc | 117 +++ sas/src/model/CreateInterceptionRuleResult.cc | 44 + .../model/CreateInterceptionTargetRequest.cc | 106 +++ .../model/CreateInterceptionTargetResult.cc | 51 + .../model/DeleteBackupPolicyMachineRequest.cc | 18 +- sas/src/model/DeleteBackupPolicyRequest.cc | 18 +- sas/src/model/DeletePrivateRegistryRequest.cc | 45 + sas/src/model/DeletePrivateRegistryResult.cc | 51 + .../DescribeAntiBruteForceRulesRequest.cc | 18 + ...scribeAssetsSecurityEventSummaryRequest.cc | 72 ++ ...escribeAssetsSecurityEventSummaryResult.cc | 61 ++ .../model/DescribeBackUpExportInfoRequest.cc | 36 +- .../DescribeBackupMachineStatusRequest.cc | 18 +- .../model/DescribeCheckFixDetailsRequest.cc | 18 +- .../DescribeCheckWarningMachinesRequest.cc | 18 +- .../model/DescribeClientConfSetupRequest.cc | 18 +- .../DescribeClientConfStrategyRequest.cc | 18 +- sas/src/model/DescribeContainerTagsRequest.cc | 99 ++ sas/src/model/DescribeContainerTagsResult.cc | 52 + .../model/DescribeExcludeSystemPathRequest.cc | 18 +- sas/src/model/DescribeGroupStructRequest.cc | 45 + sas/src/model/DescribeGroupStructResult.cc | 101 ++ sas/src/model/DescribeGroupedVulRequest.cc | 216 ++--- sas/src/model/DescribeImageFixTaskRequest.cc | 36 +- sas/src/model/DescribeInstallCodesResult.cc | 2 + .../model/DescribeInstanceStatisticsResult.cc | 2 + sas/src/model/DescribeRestoreJobsRequest.cc | 18 +- sas/src/model/DescribeRestorePlansRequest.cc | 36 +- sas/src/model/DescribeRisksRequest.cc | 18 +- .../DescribeStrategyExecDetailRequest.cc | 18 +- sas/src/model/DescribeStrategyRequest.cc | 36 +- .../model/DescribeStrategyTargetRequest.cc | 18 +- .../model/DescribeSuspEventDetailRequest.cc | 18 +- sas/src/model/DescribeTargetRequest.cc | 18 +- ...DescribeVulCheckTaskStatusDetailRequest.cc | 16 +- sas/src/model/DescribeVulListPageRequest.cc | 36 +- sas/src/model/GetAppNetworkRequest.cc | 54 ++ sas/src/model/GetAppNetworkResult.cc | 97 ++ sas/src/model/GetCheckConfigRequest.cc | 36 +- .../model/GetCheckRiskStatisticsRequest.cc | 18 +- sas/src/model/GetCloudAssetCriteriaRequest.cc | 59 ++ sas/src/model/GetCloudAssetCriteriaResult.cc | 63 ++ sas/src/model/GetClusterRuleSummaryRequest.cc | 45 + sas/src/model/GetClusterRuleSummaryResult.cc | 64 ++ .../model/GetInterceptionRuleDetailRequest.cc | 54 ++ .../model/GetInterceptionRuleDetailResult.cc | 103 ++ sas/src/model/GetModuleConfigRequest.cc | 18 +- sas/src/model/IgnoreCheckItemsRequest.cc | 28 +- sas/src/model/InstallBackupClientRequest.cc | 18 +- sas/src/model/InstallPmAgentRequest.cc | 63 ++ sas/src/model/InstallPmAgentResult.cc | 44 + sas/src/model/ListCheckStandardRequest.cc | 16 +- .../model/ListCloudAssetInstancesRequest.cc | 95 ++ .../model/ListCloudAssetInstancesResult.cc | 102 ++ .../model/ListImageRegistryRegionRequest.cc | 36 + .../model/ListImageRegistryRegionResult.cc | 59 ++ sas/src/model/ListImageRiskRequest.cc | 81 ++ sas/src/model/ListImageRiskResult.cc | 114 +++ sas/src/model/ListInstanceCatalogRequest.cc | 45 + sas/src/model/ListInstanceCatalogResult.cc | 73 ++ .../model/ListInterceptionHistoryRequest.cc | 98 ++ .../model/ListInterceptionHistoryResult.cc | 133 +++ .../ListInterceptionTargetPageRequest.cc | 106 +++ .../model/ListInterceptionTargetPageResult.cc | 89 ++ sas/src/model/ListPodRiskRequest.cc | 81 ++ sas/src/model/ListPodRiskResult.cc | 91 ++ sas/src/model/ListRuleTargetAllRequest.cc | 45 + sas/src/model/ListRuleTargetAllResult.cc | 61 ++ .../model/ListVulAutoRepairConfigRequest.cc | 36 +- .../model/ModifyBackupPolicyStatusRequest.cc | 18 +- sas/src/model/ModifyClientConfSetupRequest.cc | 18 +- ...difyClusterCnnfStatusUserConfirmRequest.cc | 44 + ...odifyClusterCnnfStatusUserConfirmResult.cc | 44 + .../model/ModifyCreateVulWhitelistRequest.cc | 18 +- .../model/ModifyInterceptionRuleRequest.cc | 108 +++ sas/src/model/ModifyInterceptionRuleResult.cc | 44 + .../ModifyInterceptionRuleSwitchRequest.cc | 63 ++ .../ModifyInterceptionRuleSwitchResult.cc | 44 + .../model/ModifyInterceptionTargetRequest.cc | 97 ++ .../model/ModifyInterceptionTargetResult.cc | 51 + sas/src/model/ModifyOperateVulRequest.cc | 18 +- ...ecurityEventMarkMissIndividuallyRequest.cc | 18 +- sas/src/model/ModifyStrategyTargetRequest.cc | 36 +- sas/src/model/ModifyVulConfigRequest.cc | 18 +- sas/src/model/ModifyVulTargetRequest.cc | 36 +- .../model/ModifyVulWhitelistTargetRequest.cc | 18 +- sas/src/model/OpenSensitiveFileScanRequest.cc | 36 +- .../model/OperateAgentClientInstallRequest.cc | 18 +- sas/src/model/PageImageRegistryRequest.cc | 36 +- .../RemoveCheckResultWhiteListRequest.cc | 16 +- .../SetClusterInterceptionConfigRequest.cc | 63 ++ .../SetClusterInterceptionConfigResult.cc | 51 + 200 files changed, 8639 insertions(+), 831 deletions(-) create mode 100644 sas/include/alibabacloud/sas/model/AddPrivateRegistryRequest.h create mode 100644 sas/include/alibabacloud/sas/model/AddPrivateRegistryResult.h create mode 100644 sas/include/alibabacloud/sas/model/CreateInterceptionRuleRequest.h create mode 100644 sas/include/alibabacloud/sas/model/CreateInterceptionRuleResult.h create mode 100644 sas/include/alibabacloud/sas/model/CreateInterceptionTargetRequest.h create mode 100644 sas/include/alibabacloud/sas/model/CreateInterceptionTargetResult.h create mode 100644 sas/include/alibabacloud/sas/model/DeletePrivateRegistryRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DeletePrivateRegistryResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeContainerTagsRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeContainerTagsResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeGroupStructRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeGroupStructResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetAppNetworkRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetAppNetworkResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetClusterRuleSummaryRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetClusterRuleSummaryResult.h create mode 100644 sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailRequest.h create mode 100644 sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailResult.h create mode 100644 sas/include/alibabacloud/sas/model/InstallPmAgentRequest.h create mode 100644 sas/include/alibabacloud/sas/model/InstallPmAgentResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListCloudAssetInstancesRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListCloudAssetInstancesResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListImageRegistryRegionRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListImageRegistryRegionResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListImageRiskRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListImageRiskResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListInstanceCatalogRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListInstanceCatalogResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListInterceptionHistoryRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListInterceptionHistoryResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListInterceptionTargetPageRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListInterceptionTargetPageResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListPodRiskRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListPodRiskResult.h create mode 100644 sas/include/alibabacloud/sas/model/ListRuleTargetAllRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ListRuleTargetAllResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyInterceptionRuleRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyInterceptionRuleResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyInterceptionTargetRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyInterceptionTargetResult.h create mode 100644 sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigRequest.h create mode 100644 sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigResult.h create mode 100644 sas/src/model/AddPrivateRegistryRequest.cc create mode 100644 sas/src/model/AddPrivateRegistryResult.cc create mode 100644 sas/src/model/CreateInterceptionRuleRequest.cc create mode 100644 sas/src/model/CreateInterceptionRuleResult.cc create mode 100644 sas/src/model/CreateInterceptionTargetRequest.cc create mode 100644 sas/src/model/CreateInterceptionTargetResult.cc create mode 100644 sas/src/model/DeletePrivateRegistryRequest.cc create mode 100644 sas/src/model/DeletePrivateRegistryResult.cc create mode 100644 sas/src/model/DescribeAssetsSecurityEventSummaryRequest.cc create mode 100644 sas/src/model/DescribeAssetsSecurityEventSummaryResult.cc create mode 100644 sas/src/model/DescribeContainerTagsRequest.cc create mode 100644 sas/src/model/DescribeContainerTagsResult.cc create mode 100644 sas/src/model/DescribeGroupStructRequest.cc create mode 100644 sas/src/model/DescribeGroupStructResult.cc create mode 100644 sas/src/model/GetAppNetworkRequest.cc create mode 100644 sas/src/model/GetAppNetworkResult.cc create mode 100644 sas/src/model/GetCloudAssetCriteriaRequest.cc create mode 100644 sas/src/model/GetCloudAssetCriteriaResult.cc create mode 100644 sas/src/model/GetClusterRuleSummaryRequest.cc create mode 100644 sas/src/model/GetClusterRuleSummaryResult.cc create mode 100644 sas/src/model/GetInterceptionRuleDetailRequest.cc create mode 100644 sas/src/model/GetInterceptionRuleDetailResult.cc create mode 100644 sas/src/model/InstallPmAgentRequest.cc create mode 100644 sas/src/model/InstallPmAgentResult.cc create mode 100644 sas/src/model/ListCloudAssetInstancesRequest.cc create mode 100644 sas/src/model/ListCloudAssetInstancesResult.cc create mode 100644 sas/src/model/ListImageRegistryRegionRequest.cc create mode 100644 sas/src/model/ListImageRegistryRegionResult.cc create mode 100644 sas/src/model/ListImageRiskRequest.cc create mode 100644 sas/src/model/ListImageRiskResult.cc create mode 100644 sas/src/model/ListInstanceCatalogRequest.cc create mode 100644 sas/src/model/ListInstanceCatalogResult.cc create mode 100644 sas/src/model/ListInterceptionHistoryRequest.cc create mode 100644 sas/src/model/ListInterceptionHistoryResult.cc create mode 100644 sas/src/model/ListInterceptionTargetPageRequest.cc create mode 100644 sas/src/model/ListInterceptionTargetPageResult.cc create mode 100644 sas/src/model/ListPodRiskRequest.cc create mode 100644 sas/src/model/ListPodRiskResult.cc create mode 100644 sas/src/model/ListRuleTargetAllRequest.cc create mode 100644 sas/src/model/ListRuleTargetAllResult.cc create mode 100644 sas/src/model/ModifyClusterCnnfStatusUserConfirmRequest.cc create mode 100644 sas/src/model/ModifyClusterCnnfStatusUserConfirmResult.cc create mode 100644 sas/src/model/ModifyInterceptionRuleRequest.cc create mode 100644 sas/src/model/ModifyInterceptionRuleResult.cc create mode 100644 sas/src/model/ModifyInterceptionRuleSwitchRequest.cc create mode 100644 sas/src/model/ModifyInterceptionRuleSwitchResult.cc create mode 100644 sas/src/model/ModifyInterceptionTargetRequest.cc create mode 100644 sas/src/model/ModifyInterceptionTargetResult.cc create mode 100644 sas/src/model/SetClusterInterceptionConfigRequest.cc create mode 100644 sas/src/model/SetClusterInterceptionConfigResult.cc diff --git a/VERSION b/VERSION index 4733b4150..6c1252e38 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1445 \ No newline at end of file +1.36.1446 \ No newline at end of file diff --git a/sas/CMakeLists.txt b/sas/CMakeLists.txt index df3e4e98e..d8a533dbb 100644 --- a/sas/CMakeLists.txt +++ b/sas/CMakeLists.txt @@ -29,6 +29,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/AddClientUserDefineRuleResult.h include/alibabacloud/sas/model/AddInstallCodeRequest.h include/alibabacloud/sas/model/AddInstallCodeResult.h + include/alibabacloud/sas/model/AddPrivateRegistryRequest.h + include/alibabacloud/sas/model/AddPrivateRegistryResult.h include/alibabacloud/sas/model/AddTagWithUuidRequest.h include/alibabacloud/sas/model/AddTagWithUuidResult.h include/alibabacloud/sas/model/AddUninstallClientsByUuidsRequest.h @@ -75,6 +77,10 @@ set(sas_public_header_model include/alibabacloud/sas/model/CreateHoneypotPresetResult.h include/alibabacloud/sas/model/CreateHoneypotProbeRequest.h include/alibabacloud/sas/model/CreateHoneypotProbeResult.h + include/alibabacloud/sas/model/CreateInterceptionRuleRequest.h + include/alibabacloud/sas/model/CreateInterceptionRuleResult.h + include/alibabacloud/sas/model/CreateInterceptionTargetRequest.h + include/alibabacloud/sas/model/CreateInterceptionTargetResult.h include/alibabacloud/sas/model/CreateJenkinsImageRegistryRequest.h include/alibabacloud/sas/model/CreateJenkinsImageRegistryResult.h include/alibabacloud/sas/model/CreateOrUpdateAssetGroupRequest.h @@ -123,6 +129,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DeleteInterceptionTargetResult.h include/alibabacloud/sas/model/DeleteLoginBaseConfigRequest.h include/alibabacloud/sas/model/DeleteLoginBaseConfigResult.h + include/alibabacloud/sas/model/DeletePrivateRegistryRequest.h + include/alibabacloud/sas/model/DeletePrivateRegistryResult.h include/alibabacloud/sas/model/DeleteSecurityEventMarkMissListRequest.h include/alibabacloud/sas/model/DeleteSecurityEventMarkMissListResult.h include/alibabacloud/sas/model/DeleteStrategyRequest.h @@ -169,6 +177,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DescribeAssetDetailByUuidsResult.h include/alibabacloud/sas/model/DescribeAssetSummaryRequest.h include/alibabacloud/sas/model/DescribeAssetSummaryResult.h + include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryRequest.h + include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryResult.h include/alibabacloud/sas/model/DescribeAttackAnalysisDataRequest.h include/alibabacloud/sas/model/DescribeAttackAnalysisDataResult.h include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h @@ -235,6 +245,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DescribeContainerInstancesResult.h include/alibabacloud/sas/model/DescribeContainerStatisticsRequest.h include/alibabacloud/sas/model/DescribeContainerStatisticsResult.h + include/alibabacloud/sas/model/DescribeContainerTagsRequest.h + include/alibabacloud/sas/model/DescribeContainerTagsResult.h include/alibabacloud/sas/model/DescribeCountNotScannedImageRequest.h include/alibabacloud/sas/model/DescribeCountNotScannedImageResult.h include/alibabacloud/sas/model/DescribeCountScannedImageRequest.h @@ -281,6 +293,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/DescribeFieldStatisticsResult.h include/alibabacloud/sas/model/DescribeFrontVulPatchListRequest.h include/alibabacloud/sas/model/DescribeFrontVulPatchListResult.h + include/alibabacloud/sas/model/DescribeGroupStructRequest.h + include/alibabacloud/sas/model/DescribeGroupStructResult.h include/alibabacloud/sas/model/DescribeGroupedContainerInstancesRequest.h include/alibabacloud/sas/model/DescribeGroupedContainerInstancesResult.h include/alibabacloud/sas/model/DescribeGroupedInstancesRequest.h @@ -601,6 +615,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/GenerateOnceTaskResult.h include/alibabacloud/sas/model/GetAlarmMachineCountRequest.h include/alibabacloud/sas/model/GetAlarmMachineCountResult.h + include/alibabacloud/sas/model/GetAppNetworkRequest.h + include/alibabacloud/sas/model/GetAppNetworkResult.h include/alibabacloud/sas/model/GetAssetsPropertyDetailRequest.h include/alibabacloud/sas/model/GetAssetsPropertyDetailResult.h include/alibabacloud/sas/model/GetAssetsPropertyItemRequest.h @@ -619,12 +635,16 @@ set(sas_public_header_model include/alibabacloud/sas/model/GetCheckSummaryResult.h include/alibabacloud/sas/model/GetClientUserDefineRuleRequest.h include/alibabacloud/sas/model/GetClientUserDefineRuleResult.h + include/alibabacloud/sas/model/GetCloudAssetCriteriaRequest.h + include/alibabacloud/sas/model/GetCloudAssetCriteriaResult.h include/alibabacloud/sas/model/GetCloudAssetDetailRequest.h include/alibabacloud/sas/model/GetCloudAssetDetailResult.h include/alibabacloud/sas/model/GetCloudAssetSummaryRequest.h include/alibabacloud/sas/model/GetCloudAssetSummaryResult.h include/alibabacloud/sas/model/GetClusterCheckItemWarningStatisticsRequest.h include/alibabacloud/sas/model/GetClusterCheckItemWarningStatisticsResult.h + include/alibabacloud/sas/model/GetClusterRuleSummaryRequest.h + include/alibabacloud/sas/model/GetClusterRuleSummaryResult.h include/alibabacloud/sas/model/GetClusterSuspEventStatisticsRequest.h include/alibabacloud/sas/model/GetClusterSuspEventStatisticsResult.h include/alibabacloud/sas/model/GetFileDetectApiInvokeInfoRequest.h @@ -639,6 +659,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/GetHoneypotProbeResult.h include/alibabacloud/sas/model/GetImageScanNumInPeriodRequest.h include/alibabacloud/sas/model/GetImageScanNumInPeriodResult.h + include/alibabacloud/sas/model/GetInterceptionRuleDetailRequest.h + include/alibabacloud/sas/model/GetInterceptionRuleDetailResult.h include/alibabacloud/sas/model/GetInterceptionSummaryRequest.h include/alibabacloud/sas/model/GetInterceptionSummaryResult.h include/alibabacloud/sas/model/GetInterceptionTargetDetailRequest.h @@ -671,6 +693,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/InstallBackupClientResult.h include/alibabacloud/sas/model/InstallCloudMonitorRequest.h include/alibabacloud/sas/model/InstallCloudMonitorResult.h + include/alibabacloud/sas/model/InstallPmAgentRequest.h + include/alibabacloud/sas/model/InstallPmAgentResult.h include/alibabacloud/sas/model/InstallUniBackupAgentRequest.h include/alibabacloud/sas/model/InstallUniBackupAgentResult.h include/alibabacloud/sas/model/JoinWebLockProcessWhiteListRequest.h @@ -691,6 +715,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/ListClientUserDefineRuleTypesResult.h include/alibabacloud/sas/model/ListClientUserDefineRulesRequest.h include/alibabacloud/sas/model/ListClientUserDefineRulesResult.h + include/alibabacloud/sas/model/ListCloudAssetInstancesRequest.h + include/alibabacloud/sas/model/ListCloudAssetInstancesResult.h include/alibabacloud/sas/model/ListClusterCnnfStatusDetailRequest.h include/alibabacloud/sas/model/ListClusterCnnfStatusDetailResult.h include/alibabacloud/sas/model/ListClusterInterceptionConfigRequest.h @@ -705,16 +731,30 @@ set(sas_public_header_model include/alibabacloud/sas/model/ListHoneypotPresetResult.h include/alibabacloud/sas/model/ListHoneypotProbeRequest.h include/alibabacloud/sas/model/ListHoneypotProbeResult.h + include/alibabacloud/sas/model/ListImageRegistryRegionRequest.h + include/alibabacloud/sas/model/ListImageRegistryRegionResult.h + include/alibabacloud/sas/model/ListImageRiskRequest.h + include/alibabacloud/sas/model/ListImageRiskResult.h + include/alibabacloud/sas/model/ListInstanceCatalogRequest.h + include/alibabacloud/sas/model/ListInstanceCatalogResult.h + include/alibabacloud/sas/model/ListInterceptionHistoryRequest.h + include/alibabacloud/sas/model/ListInterceptionHistoryResult.h include/alibabacloud/sas/model/ListInterceptionImageRequest.h include/alibabacloud/sas/model/ListInterceptionImageResult.h include/alibabacloud/sas/model/ListInterceptionRulePageRequest.h include/alibabacloud/sas/model/ListInterceptionRulePageResult.h + include/alibabacloud/sas/model/ListInterceptionTargetPageRequest.h + include/alibabacloud/sas/model/ListInterceptionTargetPageResult.h include/alibabacloud/sas/model/ListPluginForUuidRequest.h include/alibabacloud/sas/model/ListPluginForUuidResult.h + include/alibabacloud/sas/model/ListPodRiskRequest.h + include/alibabacloud/sas/model/ListPodRiskResult.h include/alibabacloud/sas/model/ListPrivateRegistryListRequest.h include/alibabacloud/sas/model/ListPrivateRegistryListResult.h include/alibabacloud/sas/model/ListPrivateRegistryTypeRequest.h include/alibabacloud/sas/model/ListPrivateRegistryTypeResult.h + include/alibabacloud/sas/model/ListRuleTargetAllRequest.h + include/alibabacloud/sas/model/ListRuleTargetAllResult.h include/alibabacloud/sas/model/ListSystemAggregationRulesRequest.h include/alibabacloud/sas/model/ListSystemAggregationRulesResult.h include/alibabacloud/sas/model/ListSystemClientRuleTypesRequest.h @@ -753,6 +793,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/ModifyClientConfStrategyResult.h include/alibabacloud/sas/model/ModifyClientUserDefineRuleRequest.h include/alibabacloud/sas/model/ModifyClientUserDefineRuleResult.h + include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmRequest.h + include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmResult.h include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h include/alibabacloud/sas/model/ModifyConcernNecessityResult.h include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h @@ -767,6 +809,12 @@ set(sas_public_header_model include/alibabacloud/sas/model/ModifyGroupPropertyResult.h include/alibabacloud/sas/model/ModifyInstanceAntiBruteForceRuleRequest.h include/alibabacloud/sas/model/ModifyInstanceAntiBruteForceRuleResult.h + include/alibabacloud/sas/model/ModifyInterceptionRuleRequest.h + include/alibabacloud/sas/model/ModifyInterceptionRuleResult.h + include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchRequest.h + include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchResult.h + include/alibabacloud/sas/model/ModifyInterceptionTargetRequest.h + include/alibabacloud/sas/model/ModifyInterceptionTargetResult.h include/alibabacloud/sas/model/ModifyLogMetaStatusRequest.h include/alibabacloud/sas/model/ModifyLogMetaStatusResult.h include/alibabacloud/sas/model/ModifyLoginBaseConfigRequest.h @@ -891,6 +939,8 @@ set(sas_public_header_model include/alibabacloud/sas/model/SaveImageBaselineStrategyResult.h include/alibabacloud/sas/model/SaveSuspEventUserSettingRequest.h include/alibabacloud/sas/model/SaveSuspEventUserSettingResult.h + include/alibabacloud/sas/model/SetClusterInterceptionConfigRequest.h + include/alibabacloud/sas/model/SetClusterInterceptionConfigResult.h include/alibabacloud/sas/model/SetRegistryScanDayNumRequest.h include/alibabacloud/sas/model/SetRegistryScanDayNumResult.h include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h @@ -940,6 +990,8 @@ set(sas_src src/model/AddClientUserDefineRuleResult.cc src/model/AddInstallCodeRequest.cc src/model/AddInstallCodeResult.cc + src/model/AddPrivateRegistryRequest.cc + src/model/AddPrivateRegistryResult.cc src/model/AddTagWithUuidRequest.cc src/model/AddTagWithUuidResult.cc src/model/AddUninstallClientsByUuidsRequest.cc @@ -986,6 +1038,10 @@ set(sas_src src/model/CreateHoneypotPresetResult.cc src/model/CreateHoneypotProbeRequest.cc src/model/CreateHoneypotProbeResult.cc + src/model/CreateInterceptionRuleRequest.cc + src/model/CreateInterceptionRuleResult.cc + src/model/CreateInterceptionTargetRequest.cc + src/model/CreateInterceptionTargetResult.cc src/model/CreateJenkinsImageRegistryRequest.cc src/model/CreateJenkinsImageRegistryResult.cc src/model/CreateOrUpdateAssetGroupRequest.cc @@ -1034,6 +1090,8 @@ set(sas_src src/model/DeleteInterceptionTargetResult.cc src/model/DeleteLoginBaseConfigRequest.cc src/model/DeleteLoginBaseConfigResult.cc + src/model/DeletePrivateRegistryRequest.cc + src/model/DeletePrivateRegistryResult.cc src/model/DeleteSecurityEventMarkMissListRequest.cc src/model/DeleteSecurityEventMarkMissListResult.cc src/model/DeleteStrategyRequest.cc @@ -1080,6 +1138,8 @@ set(sas_src src/model/DescribeAssetDetailByUuidsResult.cc src/model/DescribeAssetSummaryRequest.cc src/model/DescribeAssetSummaryResult.cc + src/model/DescribeAssetsSecurityEventSummaryRequest.cc + src/model/DescribeAssetsSecurityEventSummaryResult.cc src/model/DescribeAttackAnalysisDataRequest.cc src/model/DescribeAttackAnalysisDataResult.cc src/model/DescribeAutoDelConfigRequest.cc @@ -1146,6 +1206,8 @@ set(sas_src src/model/DescribeContainerInstancesResult.cc src/model/DescribeContainerStatisticsRequest.cc src/model/DescribeContainerStatisticsResult.cc + src/model/DescribeContainerTagsRequest.cc + src/model/DescribeContainerTagsResult.cc src/model/DescribeCountNotScannedImageRequest.cc src/model/DescribeCountNotScannedImageResult.cc src/model/DescribeCountScannedImageRequest.cc @@ -1192,6 +1254,8 @@ set(sas_src src/model/DescribeFieldStatisticsResult.cc src/model/DescribeFrontVulPatchListRequest.cc src/model/DescribeFrontVulPatchListResult.cc + src/model/DescribeGroupStructRequest.cc + src/model/DescribeGroupStructResult.cc src/model/DescribeGroupedContainerInstancesRequest.cc src/model/DescribeGroupedContainerInstancesResult.cc src/model/DescribeGroupedInstancesRequest.cc @@ -1512,6 +1576,8 @@ set(sas_src src/model/GenerateOnceTaskResult.cc src/model/GetAlarmMachineCountRequest.cc src/model/GetAlarmMachineCountResult.cc + src/model/GetAppNetworkRequest.cc + src/model/GetAppNetworkResult.cc src/model/GetAssetsPropertyDetailRequest.cc src/model/GetAssetsPropertyDetailResult.cc src/model/GetAssetsPropertyItemRequest.cc @@ -1530,12 +1596,16 @@ set(sas_src src/model/GetCheckSummaryResult.cc src/model/GetClientUserDefineRuleRequest.cc src/model/GetClientUserDefineRuleResult.cc + src/model/GetCloudAssetCriteriaRequest.cc + src/model/GetCloudAssetCriteriaResult.cc src/model/GetCloudAssetDetailRequest.cc src/model/GetCloudAssetDetailResult.cc src/model/GetCloudAssetSummaryRequest.cc src/model/GetCloudAssetSummaryResult.cc src/model/GetClusterCheckItemWarningStatisticsRequest.cc src/model/GetClusterCheckItemWarningStatisticsResult.cc + src/model/GetClusterRuleSummaryRequest.cc + src/model/GetClusterRuleSummaryResult.cc src/model/GetClusterSuspEventStatisticsRequest.cc src/model/GetClusterSuspEventStatisticsResult.cc src/model/GetFileDetectApiInvokeInfoRequest.cc @@ -1550,6 +1620,8 @@ set(sas_src src/model/GetHoneypotProbeResult.cc src/model/GetImageScanNumInPeriodRequest.cc src/model/GetImageScanNumInPeriodResult.cc + src/model/GetInterceptionRuleDetailRequest.cc + src/model/GetInterceptionRuleDetailResult.cc src/model/GetInterceptionSummaryRequest.cc src/model/GetInterceptionSummaryResult.cc src/model/GetInterceptionTargetDetailRequest.cc @@ -1582,6 +1654,8 @@ set(sas_src src/model/InstallBackupClientResult.cc src/model/InstallCloudMonitorRequest.cc src/model/InstallCloudMonitorResult.cc + src/model/InstallPmAgentRequest.cc + src/model/InstallPmAgentResult.cc src/model/InstallUniBackupAgentRequest.cc src/model/InstallUniBackupAgentResult.cc src/model/JoinWebLockProcessWhiteListRequest.cc @@ -1602,6 +1676,8 @@ set(sas_src src/model/ListClientUserDefineRuleTypesResult.cc src/model/ListClientUserDefineRulesRequest.cc src/model/ListClientUserDefineRulesResult.cc + src/model/ListCloudAssetInstancesRequest.cc + src/model/ListCloudAssetInstancesResult.cc src/model/ListClusterCnnfStatusDetailRequest.cc src/model/ListClusterCnnfStatusDetailResult.cc src/model/ListClusterInterceptionConfigRequest.cc @@ -1616,16 +1692,30 @@ set(sas_src src/model/ListHoneypotPresetResult.cc src/model/ListHoneypotProbeRequest.cc src/model/ListHoneypotProbeResult.cc + src/model/ListImageRegistryRegionRequest.cc + src/model/ListImageRegistryRegionResult.cc + src/model/ListImageRiskRequest.cc + src/model/ListImageRiskResult.cc + src/model/ListInstanceCatalogRequest.cc + src/model/ListInstanceCatalogResult.cc + src/model/ListInterceptionHistoryRequest.cc + src/model/ListInterceptionHistoryResult.cc src/model/ListInterceptionImageRequest.cc src/model/ListInterceptionImageResult.cc src/model/ListInterceptionRulePageRequest.cc src/model/ListInterceptionRulePageResult.cc + src/model/ListInterceptionTargetPageRequest.cc + src/model/ListInterceptionTargetPageResult.cc src/model/ListPluginForUuidRequest.cc src/model/ListPluginForUuidResult.cc + src/model/ListPodRiskRequest.cc + src/model/ListPodRiskResult.cc src/model/ListPrivateRegistryListRequest.cc src/model/ListPrivateRegistryListResult.cc src/model/ListPrivateRegistryTypeRequest.cc src/model/ListPrivateRegistryTypeResult.cc + src/model/ListRuleTargetAllRequest.cc + src/model/ListRuleTargetAllResult.cc src/model/ListSystemAggregationRulesRequest.cc src/model/ListSystemAggregationRulesResult.cc src/model/ListSystemClientRuleTypesRequest.cc @@ -1664,6 +1754,8 @@ set(sas_src src/model/ModifyClientConfStrategyResult.cc src/model/ModifyClientUserDefineRuleRequest.cc src/model/ModifyClientUserDefineRuleResult.cc + src/model/ModifyClusterCnnfStatusUserConfirmRequest.cc + src/model/ModifyClusterCnnfStatusUserConfirmResult.cc src/model/ModifyConcernNecessityRequest.cc src/model/ModifyConcernNecessityResult.cc src/model/ModifyCreateVulWhitelistRequest.cc @@ -1678,6 +1770,12 @@ set(sas_src src/model/ModifyGroupPropertyResult.cc src/model/ModifyInstanceAntiBruteForceRuleRequest.cc src/model/ModifyInstanceAntiBruteForceRuleResult.cc + src/model/ModifyInterceptionRuleRequest.cc + src/model/ModifyInterceptionRuleResult.cc + src/model/ModifyInterceptionRuleSwitchRequest.cc + src/model/ModifyInterceptionRuleSwitchResult.cc + src/model/ModifyInterceptionTargetRequest.cc + src/model/ModifyInterceptionTargetResult.cc src/model/ModifyLogMetaStatusRequest.cc src/model/ModifyLogMetaStatusResult.cc src/model/ModifyLoginBaseConfigRequest.cc @@ -1802,6 +1900,8 @@ set(sas_src src/model/SaveImageBaselineStrategyResult.cc src/model/SaveSuspEventUserSettingRequest.cc src/model/SaveSuspEventUserSettingResult.cc + src/model/SetClusterInterceptionConfigRequest.cc + src/model/SetClusterInterceptionConfigResult.cc src/model/SetRegistryScanDayNumRequest.cc src/model/SetRegistryScanDayNumResult.cc src/model/StartBaselineSecurityCheckRequest.cc diff --git a/sas/include/alibabacloud/sas/SasClient.h b/sas/include/alibabacloud/sas/SasClient.h index 631558987..a7e3f2eda 100644 --- a/sas/include/alibabacloud/sas/SasClient.h +++ b/sas/include/alibabacloud/sas/SasClient.h @@ -30,6 +30,8 @@ #include "model/AddClientUserDefineRuleResult.h" #include "model/AddInstallCodeRequest.h" #include "model/AddInstallCodeResult.h" +#include "model/AddPrivateRegistryRequest.h" +#include "model/AddPrivateRegistryResult.h" #include "model/AddTagWithUuidRequest.h" #include "model/AddTagWithUuidResult.h" #include "model/AddUninstallClientsByUuidsRequest.h" @@ -76,6 +78,10 @@ #include "model/CreateHoneypotPresetResult.h" #include "model/CreateHoneypotProbeRequest.h" #include "model/CreateHoneypotProbeResult.h" +#include "model/CreateInterceptionRuleRequest.h" +#include "model/CreateInterceptionRuleResult.h" +#include "model/CreateInterceptionTargetRequest.h" +#include "model/CreateInterceptionTargetResult.h" #include "model/CreateJenkinsImageRegistryRequest.h" #include "model/CreateJenkinsImageRegistryResult.h" #include "model/CreateOrUpdateAssetGroupRequest.h" @@ -124,6 +130,8 @@ #include "model/DeleteInterceptionTargetResult.h" #include "model/DeleteLoginBaseConfigRequest.h" #include "model/DeleteLoginBaseConfigResult.h" +#include "model/DeletePrivateRegistryRequest.h" +#include "model/DeletePrivateRegistryResult.h" #include "model/DeleteSecurityEventMarkMissListRequest.h" #include "model/DeleteSecurityEventMarkMissListResult.h" #include "model/DeleteStrategyRequest.h" @@ -170,6 +178,8 @@ #include "model/DescribeAssetDetailByUuidsResult.h" #include "model/DescribeAssetSummaryRequest.h" #include "model/DescribeAssetSummaryResult.h" +#include "model/DescribeAssetsSecurityEventSummaryRequest.h" +#include "model/DescribeAssetsSecurityEventSummaryResult.h" #include "model/DescribeAttackAnalysisDataRequest.h" #include "model/DescribeAttackAnalysisDataResult.h" #include "model/DescribeAutoDelConfigRequest.h" @@ -236,6 +246,8 @@ #include "model/DescribeContainerInstancesResult.h" #include "model/DescribeContainerStatisticsRequest.h" #include "model/DescribeContainerStatisticsResult.h" +#include "model/DescribeContainerTagsRequest.h" +#include "model/DescribeContainerTagsResult.h" #include "model/DescribeCountNotScannedImageRequest.h" #include "model/DescribeCountNotScannedImageResult.h" #include "model/DescribeCountScannedImageRequest.h" @@ -282,6 +294,8 @@ #include "model/DescribeFieldStatisticsResult.h" #include "model/DescribeFrontVulPatchListRequest.h" #include "model/DescribeFrontVulPatchListResult.h" +#include "model/DescribeGroupStructRequest.h" +#include "model/DescribeGroupStructResult.h" #include "model/DescribeGroupedContainerInstancesRequest.h" #include "model/DescribeGroupedContainerInstancesResult.h" #include "model/DescribeGroupedInstancesRequest.h" @@ -602,6 +616,8 @@ #include "model/GenerateOnceTaskResult.h" #include "model/GetAlarmMachineCountRequest.h" #include "model/GetAlarmMachineCountResult.h" +#include "model/GetAppNetworkRequest.h" +#include "model/GetAppNetworkResult.h" #include "model/GetAssetsPropertyDetailRequest.h" #include "model/GetAssetsPropertyDetailResult.h" #include "model/GetAssetsPropertyItemRequest.h" @@ -620,12 +636,16 @@ #include "model/GetCheckSummaryResult.h" #include "model/GetClientUserDefineRuleRequest.h" #include "model/GetClientUserDefineRuleResult.h" +#include "model/GetCloudAssetCriteriaRequest.h" +#include "model/GetCloudAssetCriteriaResult.h" #include "model/GetCloudAssetDetailRequest.h" #include "model/GetCloudAssetDetailResult.h" #include "model/GetCloudAssetSummaryRequest.h" #include "model/GetCloudAssetSummaryResult.h" #include "model/GetClusterCheckItemWarningStatisticsRequest.h" #include "model/GetClusterCheckItemWarningStatisticsResult.h" +#include "model/GetClusterRuleSummaryRequest.h" +#include "model/GetClusterRuleSummaryResult.h" #include "model/GetClusterSuspEventStatisticsRequest.h" #include "model/GetClusterSuspEventStatisticsResult.h" #include "model/GetFileDetectApiInvokeInfoRequest.h" @@ -640,6 +660,8 @@ #include "model/GetHoneypotProbeResult.h" #include "model/GetImageScanNumInPeriodRequest.h" #include "model/GetImageScanNumInPeriodResult.h" +#include "model/GetInterceptionRuleDetailRequest.h" +#include "model/GetInterceptionRuleDetailResult.h" #include "model/GetInterceptionSummaryRequest.h" #include "model/GetInterceptionSummaryResult.h" #include "model/GetInterceptionTargetDetailRequest.h" @@ -672,6 +694,8 @@ #include "model/InstallBackupClientResult.h" #include "model/InstallCloudMonitorRequest.h" #include "model/InstallCloudMonitorResult.h" +#include "model/InstallPmAgentRequest.h" +#include "model/InstallPmAgentResult.h" #include "model/InstallUniBackupAgentRequest.h" #include "model/InstallUniBackupAgentResult.h" #include "model/JoinWebLockProcessWhiteListRequest.h" @@ -692,6 +716,8 @@ #include "model/ListClientUserDefineRuleTypesResult.h" #include "model/ListClientUserDefineRulesRequest.h" #include "model/ListClientUserDefineRulesResult.h" +#include "model/ListCloudAssetInstancesRequest.h" +#include "model/ListCloudAssetInstancesResult.h" #include "model/ListClusterCnnfStatusDetailRequest.h" #include "model/ListClusterCnnfStatusDetailResult.h" #include "model/ListClusterInterceptionConfigRequest.h" @@ -706,16 +732,30 @@ #include "model/ListHoneypotPresetResult.h" #include "model/ListHoneypotProbeRequest.h" #include "model/ListHoneypotProbeResult.h" +#include "model/ListImageRegistryRegionRequest.h" +#include "model/ListImageRegistryRegionResult.h" +#include "model/ListImageRiskRequest.h" +#include "model/ListImageRiskResult.h" +#include "model/ListInstanceCatalogRequest.h" +#include "model/ListInstanceCatalogResult.h" +#include "model/ListInterceptionHistoryRequest.h" +#include "model/ListInterceptionHistoryResult.h" #include "model/ListInterceptionImageRequest.h" #include "model/ListInterceptionImageResult.h" #include "model/ListInterceptionRulePageRequest.h" #include "model/ListInterceptionRulePageResult.h" +#include "model/ListInterceptionTargetPageRequest.h" +#include "model/ListInterceptionTargetPageResult.h" #include "model/ListPluginForUuidRequest.h" #include "model/ListPluginForUuidResult.h" +#include "model/ListPodRiskRequest.h" +#include "model/ListPodRiskResult.h" #include "model/ListPrivateRegistryListRequest.h" #include "model/ListPrivateRegistryListResult.h" #include "model/ListPrivateRegistryTypeRequest.h" #include "model/ListPrivateRegistryTypeResult.h" +#include "model/ListRuleTargetAllRequest.h" +#include "model/ListRuleTargetAllResult.h" #include "model/ListSystemAggregationRulesRequest.h" #include "model/ListSystemAggregationRulesResult.h" #include "model/ListSystemClientRuleTypesRequest.h" @@ -754,6 +794,8 @@ #include "model/ModifyClientConfStrategyResult.h" #include "model/ModifyClientUserDefineRuleRequest.h" #include "model/ModifyClientUserDefineRuleResult.h" +#include "model/ModifyClusterCnnfStatusUserConfirmRequest.h" +#include "model/ModifyClusterCnnfStatusUserConfirmResult.h" #include "model/ModifyConcernNecessityRequest.h" #include "model/ModifyConcernNecessityResult.h" #include "model/ModifyCreateVulWhitelistRequest.h" @@ -768,6 +810,12 @@ #include "model/ModifyGroupPropertyResult.h" #include "model/ModifyInstanceAntiBruteForceRuleRequest.h" #include "model/ModifyInstanceAntiBruteForceRuleResult.h" +#include "model/ModifyInterceptionRuleRequest.h" +#include "model/ModifyInterceptionRuleResult.h" +#include "model/ModifyInterceptionRuleSwitchRequest.h" +#include "model/ModifyInterceptionRuleSwitchResult.h" +#include "model/ModifyInterceptionTargetRequest.h" +#include "model/ModifyInterceptionTargetResult.h" #include "model/ModifyLogMetaStatusRequest.h" #include "model/ModifyLogMetaStatusResult.h" #include "model/ModifyLoginBaseConfigRequest.h" @@ -892,6 +940,8 @@ #include "model/SaveImageBaselineStrategyResult.h" #include "model/SaveSuspEventUserSettingRequest.h" #include "model/SaveSuspEventUserSettingResult.h" +#include "model/SetClusterInterceptionConfigRequest.h" +#include "model/SetClusterInterceptionConfigResult.h" #include "model/SetRegistryScanDayNumRequest.h" #include "model/SetRegistryScanDayNumResult.h" #include "model/StartBaselineSecurityCheckRequest.h" @@ -951,6 +1001,9 @@ namespace AlibabaCloud typedef Outcome AddInstallCodeOutcome; typedef std::future AddInstallCodeOutcomeCallable; typedef std::function&)> AddInstallCodeAsyncHandler; + typedef Outcome AddPrivateRegistryOutcome; + typedef std::future AddPrivateRegistryOutcomeCallable; + typedef std::function&)> AddPrivateRegistryAsyncHandler; typedef Outcome AddTagWithUuidOutcome; typedef std::future AddTagWithUuidOutcomeCallable; typedef std::function&)> AddTagWithUuidAsyncHandler; @@ -1020,6 +1073,12 @@ namespace AlibabaCloud typedef Outcome CreateHoneypotProbeOutcome; typedef std::future CreateHoneypotProbeOutcomeCallable; typedef std::function&)> CreateHoneypotProbeAsyncHandler; + typedef Outcome CreateInterceptionRuleOutcome; + typedef std::future CreateInterceptionRuleOutcomeCallable; + typedef std::function&)> CreateInterceptionRuleAsyncHandler; + typedef Outcome CreateInterceptionTargetOutcome; + typedef std::future CreateInterceptionTargetOutcomeCallable; + typedef std::function&)> CreateInterceptionTargetAsyncHandler; typedef Outcome CreateJenkinsImageRegistryOutcome; typedef std::future CreateJenkinsImageRegistryOutcomeCallable; typedef std::function&)> CreateJenkinsImageRegistryAsyncHandler; @@ -1092,6 +1151,9 @@ namespace AlibabaCloud typedef Outcome DeleteLoginBaseConfigOutcome; typedef std::future DeleteLoginBaseConfigOutcomeCallable; typedef std::function&)> DeleteLoginBaseConfigAsyncHandler; + typedef Outcome DeletePrivateRegistryOutcome; + typedef std::future DeletePrivateRegistryOutcomeCallable; + typedef std::function&)> DeletePrivateRegistryAsyncHandler; typedef Outcome DeleteSecurityEventMarkMissListOutcome; typedef std::future DeleteSecurityEventMarkMissListOutcomeCallable; typedef std::function&)> DeleteSecurityEventMarkMissListAsyncHandler; @@ -1161,6 +1223,9 @@ namespace AlibabaCloud typedef Outcome DescribeAssetSummaryOutcome; typedef std::future DescribeAssetSummaryOutcomeCallable; typedef std::function&)> DescribeAssetSummaryAsyncHandler; + typedef Outcome DescribeAssetsSecurityEventSummaryOutcome; + typedef std::future DescribeAssetsSecurityEventSummaryOutcomeCallable; + typedef std::function&)> DescribeAssetsSecurityEventSummaryAsyncHandler; typedef Outcome DescribeAttackAnalysisDataOutcome; typedef std::future DescribeAttackAnalysisDataOutcomeCallable; typedef std::function&)> DescribeAttackAnalysisDataAsyncHandler; @@ -1260,6 +1325,9 @@ namespace AlibabaCloud typedef Outcome DescribeContainerStatisticsOutcome; typedef std::future DescribeContainerStatisticsOutcomeCallable; typedef std::function&)> DescribeContainerStatisticsAsyncHandler; + typedef Outcome DescribeContainerTagsOutcome; + typedef std::future DescribeContainerTagsOutcomeCallable; + typedef std::function&)> DescribeContainerTagsAsyncHandler; typedef Outcome DescribeCountNotScannedImageOutcome; typedef std::future DescribeCountNotScannedImageOutcomeCallable; typedef std::function&)> DescribeCountNotScannedImageAsyncHandler; @@ -1329,6 +1397,9 @@ namespace AlibabaCloud typedef Outcome DescribeFrontVulPatchListOutcome; typedef std::future DescribeFrontVulPatchListOutcomeCallable; typedef std::function&)> DescribeFrontVulPatchListAsyncHandler; + typedef Outcome DescribeGroupStructOutcome; + typedef std::future DescribeGroupStructOutcomeCallable; + typedef std::function&)> DescribeGroupStructAsyncHandler; typedef Outcome DescribeGroupedContainerInstancesOutcome; typedef std::future DescribeGroupedContainerInstancesOutcomeCallable; typedef std::function&)> DescribeGroupedContainerInstancesAsyncHandler; @@ -1809,6 +1880,9 @@ namespace AlibabaCloud typedef Outcome GetAlarmMachineCountOutcome; typedef std::future GetAlarmMachineCountOutcomeCallable; typedef std::function&)> GetAlarmMachineCountAsyncHandler; + typedef Outcome GetAppNetworkOutcome; + typedef std::future GetAppNetworkOutcomeCallable; + typedef std::function&)> GetAppNetworkAsyncHandler; typedef Outcome GetAssetsPropertyDetailOutcome; typedef std::future GetAssetsPropertyDetailOutcomeCallable; typedef std::function&)> GetAssetsPropertyDetailAsyncHandler; @@ -1836,6 +1910,9 @@ namespace AlibabaCloud typedef Outcome GetClientUserDefineRuleOutcome; typedef std::future GetClientUserDefineRuleOutcomeCallable; typedef std::function&)> GetClientUserDefineRuleAsyncHandler; + typedef Outcome GetCloudAssetCriteriaOutcome; + typedef std::future GetCloudAssetCriteriaOutcomeCallable; + typedef std::function&)> GetCloudAssetCriteriaAsyncHandler; typedef Outcome GetCloudAssetDetailOutcome; typedef std::future GetCloudAssetDetailOutcomeCallable; typedef std::function&)> GetCloudAssetDetailAsyncHandler; @@ -1845,6 +1922,9 @@ namespace AlibabaCloud typedef Outcome GetClusterCheckItemWarningStatisticsOutcome; typedef std::future GetClusterCheckItemWarningStatisticsOutcomeCallable; typedef std::function&)> GetClusterCheckItemWarningStatisticsAsyncHandler; + typedef Outcome GetClusterRuleSummaryOutcome; + typedef std::future GetClusterRuleSummaryOutcomeCallable; + typedef std::function&)> GetClusterRuleSummaryAsyncHandler; typedef Outcome GetClusterSuspEventStatisticsOutcome; typedef std::future GetClusterSuspEventStatisticsOutcomeCallable; typedef std::function&)> GetClusterSuspEventStatisticsAsyncHandler; @@ -1866,6 +1946,9 @@ namespace AlibabaCloud typedef Outcome GetImageScanNumInPeriodOutcome; typedef std::future GetImageScanNumInPeriodOutcomeCallable; typedef std::function&)> GetImageScanNumInPeriodAsyncHandler; + typedef Outcome GetInterceptionRuleDetailOutcome; + typedef std::future GetInterceptionRuleDetailOutcomeCallable; + typedef std::function&)> GetInterceptionRuleDetailAsyncHandler; typedef Outcome GetInterceptionSummaryOutcome; typedef std::future GetInterceptionSummaryOutcomeCallable; typedef std::function&)> GetInterceptionSummaryAsyncHandler; @@ -1914,6 +1997,9 @@ namespace AlibabaCloud typedef Outcome InstallCloudMonitorOutcome; typedef std::future InstallCloudMonitorOutcomeCallable; typedef std::function&)> InstallCloudMonitorAsyncHandler; + typedef Outcome InstallPmAgentOutcome; + typedef std::future InstallPmAgentOutcomeCallable; + typedef std::function&)> InstallPmAgentAsyncHandler; typedef Outcome InstallUniBackupAgentOutcome; typedef std::future InstallUniBackupAgentOutcomeCallable; typedef std::function&)> InstallUniBackupAgentAsyncHandler; @@ -1944,6 +2030,9 @@ namespace AlibabaCloud typedef Outcome ListClientUserDefineRulesOutcome; typedef std::future ListClientUserDefineRulesOutcomeCallable; typedef std::function&)> ListClientUserDefineRulesAsyncHandler; + typedef Outcome ListCloudAssetInstancesOutcome; + typedef std::future ListCloudAssetInstancesOutcomeCallable; + typedef std::function&)> ListCloudAssetInstancesAsyncHandler; typedef Outcome ListClusterCnnfStatusDetailOutcome; typedef std::future ListClusterCnnfStatusDetailOutcomeCallable; typedef std::function&)> ListClusterCnnfStatusDetailAsyncHandler; @@ -1965,21 +2054,42 @@ namespace AlibabaCloud typedef Outcome ListHoneypotProbeOutcome; typedef std::future ListHoneypotProbeOutcomeCallable; typedef std::function&)> ListHoneypotProbeAsyncHandler; + typedef Outcome ListImageRegistryRegionOutcome; + typedef std::future ListImageRegistryRegionOutcomeCallable; + typedef std::function&)> ListImageRegistryRegionAsyncHandler; + typedef Outcome ListImageRiskOutcome; + typedef std::future ListImageRiskOutcomeCallable; + typedef std::function&)> ListImageRiskAsyncHandler; + typedef Outcome ListInstanceCatalogOutcome; + typedef std::future ListInstanceCatalogOutcomeCallable; + typedef std::function&)> ListInstanceCatalogAsyncHandler; + typedef Outcome ListInterceptionHistoryOutcome; + typedef std::future ListInterceptionHistoryOutcomeCallable; + typedef std::function&)> ListInterceptionHistoryAsyncHandler; typedef Outcome ListInterceptionImageOutcome; typedef std::future ListInterceptionImageOutcomeCallable; typedef std::function&)> ListInterceptionImageAsyncHandler; typedef Outcome ListInterceptionRulePageOutcome; typedef std::future ListInterceptionRulePageOutcomeCallable; typedef std::function&)> ListInterceptionRulePageAsyncHandler; + typedef Outcome ListInterceptionTargetPageOutcome; + typedef std::future ListInterceptionTargetPageOutcomeCallable; + typedef std::function&)> ListInterceptionTargetPageAsyncHandler; typedef Outcome ListPluginForUuidOutcome; typedef std::future ListPluginForUuidOutcomeCallable; typedef std::function&)> ListPluginForUuidAsyncHandler; + typedef Outcome ListPodRiskOutcome; + typedef std::future ListPodRiskOutcomeCallable; + typedef std::function&)> ListPodRiskAsyncHandler; typedef Outcome ListPrivateRegistryListOutcome; typedef std::future ListPrivateRegistryListOutcomeCallable; typedef std::function&)> ListPrivateRegistryListAsyncHandler; typedef Outcome ListPrivateRegistryTypeOutcome; typedef std::future ListPrivateRegistryTypeOutcomeCallable; typedef std::function&)> ListPrivateRegistryTypeAsyncHandler; + typedef Outcome ListRuleTargetAllOutcome; + typedef std::future ListRuleTargetAllOutcomeCallable; + typedef std::function&)> ListRuleTargetAllAsyncHandler; typedef Outcome ListSystemAggregationRulesOutcome; typedef std::future ListSystemAggregationRulesOutcomeCallable; typedef std::function&)> ListSystemAggregationRulesAsyncHandler; @@ -2037,6 +2147,9 @@ namespace AlibabaCloud typedef Outcome ModifyClientUserDefineRuleOutcome; typedef std::future ModifyClientUserDefineRuleOutcomeCallable; typedef std::function&)> ModifyClientUserDefineRuleAsyncHandler; + typedef Outcome ModifyClusterCnnfStatusUserConfirmOutcome; + typedef std::future ModifyClusterCnnfStatusUserConfirmOutcomeCallable; + typedef std::function&)> ModifyClusterCnnfStatusUserConfirmAsyncHandler; typedef Outcome ModifyConcernNecessityOutcome; typedef std::future ModifyConcernNecessityOutcomeCallable; typedef std::function&)> ModifyConcernNecessityAsyncHandler; @@ -2058,6 +2171,15 @@ namespace AlibabaCloud typedef Outcome ModifyInstanceAntiBruteForceRuleOutcome; typedef std::future ModifyInstanceAntiBruteForceRuleOutcomeCallable; typedef std::function&)> ModifyInstanceAntiBruteForceRuleAsyncHandler; + typedef Outcome ModifyInterceptionRuleOutcome; + typedef std::future ModifyInterceptionRuleOutcomeCallable; + typedef std::function&)> ModifyInterceptionRuleAsyncHandler; + typedef Outcome ModifyInterceptionRuleSwitchOutcome; + typedef std::future ModifyInterceptionRuleSwitchOutcomeCallable; + typedef std::function&)> ModifyInterceptionRuleSwitchAsyncHandler; + typedef Outcome ModifyInterceptionTargetOutcome; + typedef std::future ModifyInterceptionTargetOutcomeCallable; + typedef std::function&)> ModifyInterceptionTargetAsyncHandler; typedef Outcome ModifyLogMetaStatusOutcome; typedef std::future ModifyLogMetaStatusOutcomeCallable; typedef std::function&)> ModifyLogMetaStatusAsyncHandler; @@ -2244,6 +2366,9 @@ namespace AlibabaCloud typedef Outcome SaveSuspEventUserSettingOutcome; typedef std::future SaveSuspEventUserSettingOutcomeCallable; typedef std::function&)> SaveSuspEventUserSettingAsyncHandler; + typedef Outcome SetClusterInterceptionConfigOutcome; + typedef std::future SetClusterInterceptionConfigOutcomeCallable; + typedef std::function&)> SetClusterInterceptionConfigAsyncHandler; typedef Outcome SetRegistryScanDayNumOutcome; typedef std::future SetRegistryScanDayNumOutcomeCallable; typedef std::function&)> SetRegistryScanDayNumAsyncHandler; @@ -2318,6 +2443,9 @@ namespace AlibabaCloud 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; + AddPrivateRegistryOutcome addPrivateRegistry(const Model::AddPrivateRegistryRequest &request)const; + void addPrivateRegistryAsync(const Model::AddPrivateRegistryRequest& request, const AddPrivateRegistryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPrivateRegistryOutcomeCallable addPrivateRegistryCallable(const Model::AddPrivateRegistryRequest& request) const; AddTagWithUuidOutcome addTagWithUuid(const Model::AddTagWithUuidRequest &request)const; void addTagWithUuidAsync(const Model::AddTagWithUuidRequest& request, const AddTagWithUuidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTagWithUuidOutcomeCallable addTagWithUuidCallable(const Model::AddTagWithUuidRequest& request) const; @@ -2387,6 +2515,12 @@ namespace AlibabaCloud CreateHoneypotProbeOutcome createHoneypotProbe(const Model::CreateHoneypotProbeRequest &request)const; void createHoneypotProbeAsync(const Model::CreateHoneypotProbeRequest& request, const CreateHoneypotProbeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateHoneypotProbeOutcomeCallable createHoneypotProbeCallable(const Model::CreateHoneypotProbeRequest& request) const; + CreateInterceptionRuleOutcome createInterceptionRule(const Model::CreateInterceptionRuleRequest &request)const; + void createInterceptionRuleAsync(const Model::CreateInterceptionRuleRequest& request, const CreateInterceptionRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInterceptionRuleOutcomeCallable createInterceptionRuleCallable(const Model::CreateInterceptionRuleRequest& request) const; + CreateInterceptionTargetOutcome createInterceptionTarget(const Model::CreateInterceptionTargetRequest &request)const; + void createInterceptionTargetAsync(const Model::CreateInterceptionTargetRequest& request, const CreateInterceptionTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInterceptionTargetOutcomeCallable createInterceptionTargetCallable(const Model::CreateInterceptionTargetRequest& request) const; CreateJenkinsImageRegistryOutcome createJenkinsImageRegistry(const Model::CreateJenkinsImageRegistryRequest &request)const; void createJenkinsImageRegistryAsync(const Model::CreateJenkinsImageRegistryRequest& request, const CreateJenkinsImageRegistryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateJenkinsImageRegistryOutcomeCallable createJenkinsImageRegistryCallable(const Model::CreateJenkinsImageRegistryRequest& request) const; @@ -2459,6 +2593,9 @@ namespace AlibabaCloud DeleteLoginBaseConfigOutcome deleteLoginBaseConfig(const Model::DeleteLoginBaseConfigRequest &request)const; void deleteLoginBaseConfigAsync(const Model::DeleteLoginBaseConfigRequest& request, const DeleteLoginBaseConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLoginBaseConfigOutcomeCallable deleteLoginBaseConfigCallable(const Model::DeleteLoginBaseConfigRequest& request) const; + DeletePrivateRegistryOutcome deletePrivateRegistry(const Model::DeletePrivateRegistryRequest &request)const; + void deletePrivateRegistryAsync(const Model::DeletePrivateRegistryRequest& request, const DeletePrivateRegistryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePrivateRegistryOutcomeCallable deletePrivateRegistryCallable(const Model::DeletePrivateRegistryRequest& request) const; 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; @@ -2528,6 +2665,9 @@ namespace AlibabaCloud DescribeAssetSummaryOutcome describeAssetSummary(const Model::DescribeAssetSummaryRequest &request)const; void describeAssetSummaryAsync(const Model::DescribeAssetSummaryRequest& request, const DescribeAssetSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAssetSummaryOutcomeCallable describeAssetSummaryCallable(const Model::DescribeAssetSummaryRequest& request) const; + DescribeAssetsSecurityEventSummaryOutcome describeAssetsSecurityEventSummary(const Model::DescribeAssetsSecurityEventSummaryRequest &request)const; + void describeAssetsSecurityEventSummaryAsync(const Model::DescribeAssetsSecurityEventSummaryRequest& request, const DescribeAssetsSecurityEventSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAssetsSecurityEventSummaryOutcomeCallable describeAssetsSecurityEventSummaryCallable(const Model::DescribeAssetsSecurityEventSummaryRequest& request) const; DescribeAttackAnalysisDataOutcome describeAttackAnalysisData(const Model::DescribeAttackAnalysisDataRequest &request)const; void describeAttackAnalysisDataAsync(const Model::DescribeAttackAnalysisDataRequest& request, const DescribeAttackAnalysisDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAttackAnalysisDataOutcomeCallable describeAttackAnalysisDataCallable(const Model::DescribeAttackAnalysisDataRequest& request) const; @@ -2627,6 +2767,9 @@ namespace AlibabaCloud DescribeContainerStatisticsOutcome describeContainerStatistics(const Model::DescribeContainerStatisticsRequest &request)const; void describeContainerStatisticsAsync(const Model::DescribeContainerStatisticsRequest& request, const DescribeContainerStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeContainerStatisticsOutcomeCallable describeContainerStatisticsCallable(const Model::DescribeContainerStatisticsRequest& request) const; + DescribeContainerTagsOutcome describeContainerTags(const Model::DescribeContainerTagsRequest &request)const; + void describeContainerTagsAsync(const Model::DescribeContainerTagsRequest& request, const DescribeContainerTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeContainerTagsOutcomeCallable describeContainerTagsCallable(const Model::DescribeContainerTagsRequest& request) const; DescribeCountNotScannedImageOutcome describeCountNotScannedImage(const Model::DescribeCountNotScannedImageRequest &request)const; void describeCountNotScannedImageAsync(const Model::DescribeCountNotScannedImageRequest& request, const DescribeCountNotScannedImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCountNotScannedImageOutcomeCallable describeCountNotScannedImageCallable(const Model::DescribeCountNotScannedImageRequest& request) const; @@ -2696,6 +2839,9 @@ namespace AlibabaCloud DescribeFrontVulPatchListOutcome describeFrontVulPatchList(const Model::DescribeFrontVulPatchListRequest &request)const; void describeFrontVulPatchListAsync(const Model::DescribeFrontVulPatchListRequest& request, const DescribeFrontVulPatchListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFrontVulPatchListOutcomeCallable describeFrontVulPatchListCallable(const Model::DescribeFrontVulPatchListRequest& request) const; + DescribeGroupStructOutcome describeGroupStruct(const Model::DescribeGroupStructRequest &request)const; + void describeGroupStructAsync(const Model::DescribeGroupStructRequest& request, const DescribeGroupStructAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGroupStructOutcomeCallable describeGroupStructCallable(const Model::DescribeGroupStructRequest& request) const; DescribeGroupedContainerInstancesOutcome describeGroupedContainerInstances(const Model::DescribeGroupedContainerInstancesRequest &request)const; void describeGroupedContainerInstancesAsync(const Model::DescribeGroupedContainerInstancesRequest& request, const DescribeGroupedContainerInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGroupedContainerInstancesOutcomeCallable describeGroupedContainerInstancesCallable(const Model::DescribeGroupedContainerInstancesRequest& request) const; @@ -3176,6 +3322,9 @@ namespace AlibabaCloud 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; + GetAppNetworkOutcome getAppNetwork(const Model::GetAppNetworkRequest &request)const; + void getAppNetworkAsync(const Model::GetAppNetworkRequest& request, const GetAppNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAppNetworkOutcomeCallable getAppNetworkCallable(const Model::GetAppNetworkRequest& request) const; GetAssetsPropertyDetailOutcome getAssetsPropertyDetail(const Model::GetAssetsPropertyDetailRequest &request)const; void getAssetsPropertyDetailAsync(const Model::GetAssetsPropertyDetailRequest& request, const GetAssetsPropertyDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAssetsPropertyDetailOutcomeCallable getAssetsPropertyDetailCallable(const Model::GetAssetsPropertyDetailRequest& request) const; @@ -3203,6 +3352,9 @@ namespace AlibabaCloud 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; + GetCloudAssetCriteriaOutcome getCloudAssetCriteria(const Model::GetCloudAssetCriteriaRequest &request)const; + void getCloudAssetCriteriaAsync(const Model::GetCloudAssetCriteriaRequest& request, const GetCloudAssetCriteriaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCloudAssetCriteriaOutcomeCallable getCloudAssetCriteriaCallable(const Model::GetCloudAssetCriteriaRequest& request) const; GetCloudAssetDetailOutcome getCloudAssetDetail(const Model::GetCloudAssetDetailRequest &request)const; void getCloudAssetDetailAsync(const Model::GetCloudAssetDetailRequest& request, const GetCloudAssetDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetCloudAssetDetailOutcomeCallable getCloudAssetDetailCallable(const Model::GetCloudAssetDetailRequest& request) const; @@ -3212,6 +3364,9 @@ namespace AlibabaCloud GetClusterCheckItemWarningStatisticsOutcome getClusterCheckItemWarningStatistics(const Model::GetClusterCheckItemWarningStatisticsRequest &request)const; void getClusterCheckItemWarningStatisticsAsync(const Model::GetClusterCheckItemWarningStatisticsRequest& request, const GetClusterCheckItemWarningStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetClusterCheckItemWarningStatisticsOutcomeCallable getClusterCheckItemWarningStatisticsCallable(const Model::GetClusterCheckItemWarningStatisticsRequest& request) const; + GetClusterRuleSummaryOutcome getClusterRuleSummary(const Model::GetClusterRuleSummaryRequest &request)const; + void getClusterRuleSummaryAsync(const Model::GetClusterRuleSummaryRequest& request, const GetClusterRuleSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetClusterRuleSummaryOutcomeCallable getClusterRuleSummaryCallable(const Model::GetClusterRuleSummaryRequest& request) const; GetClusterSuspEventStatisticsOutcome getClusterSuspEventStatistics(const Model::GetClusterSuspEventStatisticsRequest &request)const; void getClusterSuspEventStatisticsAsync(const Model::GetClusterSuspEventStatisticsRequest& request, const GetClusterSuspEventStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetClusterSuspEventStatisticsOutcomeCallable getClusterSuspEventStatisticsCallable(const Model::GetClusterSuspEventStatisticsRequest& request) const; @@ -3233,6 +3388,9 @@ namespace AlibabaCloud GetImageScanNumInPeriodOutcome getImageScanNumInPeriod(const Model::GetImageScanNumInPeriodRequest &request)const; void getImageScanNumInPeriodAsync(const Model::GetImageScanNumInPeriodRequest& request, const GetImageScanNumInPeriodAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetImageScanNumInPeriodOutcomeCallable getImageScanNumInPeriodCallable(const Model::GetImageScanNumInPeriodRequest& request) const; + GetInterceptionRuleDetailOutcome getInterceptionRuleDetail(const Model::GetInterceptionRuleDetailRequest &request)const; + void getInterceptionRuleDetailAsync(const Model::GetInterceptionRuleDetailRequest& request, const GetInterceptionRuleDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetInterceptionRuleDetailOutcomeCallable getInterceptionRuleDetailCallable(const Model::GetInterceptionRuleDetailRequest& request) const; GetInterceptionSummaryOutcome getInterceptionSummary(const Model::GetInterceptionSummaryRequest &request)const; void getInterceptionSummaryAsync(const Model::GetInterceptionSummaryRequest& request, const GetInterceptionSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetInterceptionSummaryOutcomeCallable getInterceptionSummaryCallable(const Model::GetInterceptionSummaryRequest& request) const; @@ -3281,6 +3439,9 @@ namespace AlibabaCloud InstallCloudMonitorOutcome installCloudMonitor(const Model::InstallCloudMonitorRequest &request)const; void installCloudMonitorAsync(const Model::InstallCloudMonitorRequest& request, const InstallCloudMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InstallCloudMonitorOutcomeCallable installCloudMonitorCallable(const Model::InstallCloudMonitorRequest& request) const; + InstallPmAgentOutcome installPmAgent(const Model::InstallPmAgentRequest &request)const; + void installPmAgentAsync(const Model::InstallPmAgentRequest& request, const InstallPmAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InstallPmAgentOutcomeCallable installPmAgentCallable(const Model::InstallPmAgentRequest& request) const; InstallUniBackupAgentOutcome installUniBackupAgent(const Model::InstallUniBackupAgentRequest &request)const; void installUniBackupAgentAsync(const Model::InstallUniBackupAgentRequest& request, const InstallUniBackupAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InstallUniBackupAgentOutcomeCallable installUniBackupAgentCallable(const Model::InstallUniBackupAgentRequest& request) const; @@ -3311,6 +3472,9 @@ namespace AlibabaCloud ListClientUserDefineRulesOutcome listClientUserDefineRules(const Model::ListClientUserDefineRulesRequest &request)const; void listClientUserDefineRulesAsync(const Model::ListClientUserDefineRulesRequest& request, const ListClientUserDefineRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClientUserDefineRulesOutcomeCallable listClientUserDefineRulesCallable(const Model::ListClientUserDefineRulesRequest& request) const; + ListCloudAssetInstancesOutcome listCloudAssetInstances(const Model::ListCloudAssetInstancesRequest &request)const; + void listCloudAssetInstancesAsync(const Model::ListCloudAssetInstancesRequest& request, const ListCloudAssetInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCloudAssetInstancesOutcomeCallable listCloudAssetInstancesCallable(const Model::ListCloudAssetInstancesRequest& request) const; ListClusterCnnfStatusDetailOutcome listClusterCnnfStatusDetail(const Model::ListClusterCnnfStatusDetailRequest &request)const; void listClusterCnnfStatusDetailAsync(const Model::ListClusterCnnfStatusDetailRequest& request, const ListClusterCnnfStatusDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterCnnfStatusDetailOutcomeCallable listClusterCnnfStatusDetailCallable(const Model::ListClusterCnnfStatusDetailRequest& request) const; @@ -3332,21 +3496,42 @@ namespace AlibabaCloud ListHoneypotProbeOutcome listHoneypotProbe(const Model::ListHoneypotProbeRequest &request)const; void listHoneypotProbeAsync(const Model::ListHoneypotProbeRequest& request, const ListHoneypotProbeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListHoneypotProbeOutcomeCallable listHoneypotProbeCallable(const Model::ListHoneypotProbeRequest& request) const; + ListImageRegistryRegionOutcome listImageRegistryRegion(const Model::ListImageRegistryRegionRequest &request)const; + void listImageRegistryRegionAsync(const Model::ListImageRegistryRegionRequest& request, const ListImageRegistryRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImageRegistryRegionOutcomeCallable listImageRegistryRegionCallable(const Model::ListImageRegistryRegionRequest& request) const; + ListImageRiskOutcome listImageRisk(const Model::ListImageRiskRequest &request)const; + void listImageRiskAsync(const Model::ListImageRiskRequest& request, const ListImageRiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImageRiskOutcomeCallable listImageRiskCallable(const Model::ListImageRiskRequest& request) const; + ListInstanceCatalogOutcome listInstanceCatalog(const Model::ListInstanceCatalogRequest &request)const; + void listInstanceCatalogAsync(const Model::ListInstanceCatalogRequest& request, const ListInstanceCatalogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstanceCatalogOutcomeCallable listInstanceCatalogCallable(const Model::ListInstanceCatalogRequest& request) const; + ListInterceptionHistoryOutcome listInterceptionHistory(const Model::ListInterceptionHistoryRequest &request)const; + void listInterceptionHistoryAsync(const Model::ListInterceptionHistoryRequest& request, const ListInterceptionHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInterceptionHistoryOutcomeCallable listInterceptionHistoryCallable(const Model::ListInterceptionHistoryRequest& request) const; ListInterceptionImageOutcome listInterceptionImage(const Model::ListInterceptionImageRequest &request)const; void listInterceptionImageAsync(const Model::ListInterceptionImageRequest& request, const ListInterceptionImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInterceptionImageOutcomeCallable listInterceptionImageCallable(const Model::ListInterceptionImageRequest& request) const; ListInterceptionRulePageOutcome listInterceptionRulePage(const Model::ListInterceptionRulePageRequest &request)const; void listInterceptionRulePageAsync(const Model::ListInterceptionRulePageRequest& request, const ListInterceptionRulePageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInterceptionRulePageOutcomeCallable listInterceptionRulePageCallable(const Model::ListInterceptionRulePageRequest& request) const; + ListInterceptionTargetPageOutcome listInterceptionTargetPage(const Model::ListInterceptionTargetPageRequest &request)const; + void listInterceptionTargetPageAsync(const Model::ListInterceptionTargetPageRequest& request, const ListInterceptionTargetPageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInterceptionTargetPageOutcomeCallable listInterceptionTargetPageCallable(const Model::ListInterceptionTargetPageRequest& request) const; ListPluginForUuidOutcome listPluginForUuid(const Model::ListPluginForUuidRequest &request)const; void listPluginForUuidAsync(const Model::ListPluginForUuidRequest& request, const ListPluginForUuidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPluginForUuidOutcomeCallable listPluginForUuidCallable(const Model::ListPluginForUuidRequest& request) const; + ListPodRiskOutcome listPodRisk(const Model::ListPodRiskRequest &request)const; + void listPodRiskAsync(const Model::ListPodRiskRequest& request, const ListPodRiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPodRiskOutcomeCallable listPodRiskCallable(const Model::ListPodRiskRequest& request) const; ListPrivateRegistryListOutcome listPrivateRegistryList(const Model::ListPrivateRegistryListRequest &request)const; void listPrivateRegistryListAsync(const Model::ListPrivateRegistryListRequest& request, const ListPrivateRegistryListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPrivateRegistryListOutcomeCallable listPrivateRegistryListCallable(const Model::ListPrivateRegistryListRequest& request) const; ListPrivateRegistryTypeOutcome listPrivateRegistryType(const Model::ListPrivateRegistryTypeRequest &request)const; void listPrivateRegistryTypeAsync(const Model::ListPrivateRegistryTypeRequest& request, const ListPrivateRegistryTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPrivateRegistryTypeOutcomeCallable listPrivateRegistryTypeCallable(const Model::ListPrivateRegistryTypeRequest& request) const; + ListRuleTargetAllOutcome listRuleTargetAll(const Model::ListRuleTargetAllRequest &request)const; + void listRuleTargetAllAsync(const Model::ListRuleTargetAllRequest& request, const ListRuleTargetAllAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRuleTargetAllOutcomeCallable listRuleTargetAllCallable(const Model::ListRuleTargetAllRequest& request) const; ListSystemAggregationRulesOutcome listSystemAggregationRules(const Model::ListSystemAggregationRulesRequest &request)const; void listSystemAggregationRulesAsync(const Model::ListSystemAggregationRulesRequest& request, const ListSystemAggregationRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSystemAggregationRulesOutcomeCallable listSystemAggregationRulesCallable(const Model::ListSystemAggregationRulesRequest& request) const; @@ -3404,6 +3589,9 @@ namespace AlibabaCloud ModifyClientUserDefineRuleOutcome modifyClientUserDefineRule(const Model::ModifyClientUserDefineRuleRequest &request)const; void modifyClientUserDefineRuleAsync(const Model::ModifyClientUserDefineRuleRequest& request, const ModifyClientUserDefineRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyClientUserDefineRuleOutcomeCallable modifyClientUserDefineRuleCallable(const Model::ModifyClientUserDefineRuleRequest& request) const; + ModifyClusterCnnfStatusUserConfirmOutcome modifyClusterCnnfStatusUserConfirm(const Model::ModifyClusterCnnfStatusUserConfirmRequest &request)const; + void modifyClusterCnnfStatusUserConfirmAsync(const Model::ModifyClusterCnnfStatusUserConfirmRequest& request, const ModifyClusterCnnfStatusUserConfirmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyClusterCnnfStatusUserConfirmOutcomeCallable modifyClusterCnnfStatusUserConfirmCallable(const Model::ModifyClusterCnnfStatusUserConfirmRequest& request) const; ModifyConcernNecessityOutcome modifyConcernNecessity(const Model::ModifyConcernNecessityRequest &request)const; void modifyConcernNecessityAsync(const Model::ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyConcernNecessityOutcomeCallable modifyConcernNecessityCallable(const Model::ModifyConcernNecessityRequest& request) const; @@ -3425,6 +3613,15 @@ namespace AlibabaCloud ModifyInstanceAntiBruteForceRuleOutcome modifyInstanceAntiBruteForceRule(const Model::ModifyInstanceAntiBruteForceRuleRequest &request)const; void modifyInstanceAntiBruteForceRuleAsync(const Model::ModifyInstanceAntiBruteForceRuleRequest& request, const ModifyInstanceAntiBruteForceRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceAntiBruteForceRuleOutcomeCallable modifyInstanceAntiBruteForceRuleCallable(const Model::ModifyInstanceAntiBruteForceRuleRequest& request) const; + ModifyInterceptionRuleOutcome modifyInterceptionRule(const Model::ModifyInterceptionRuleRequest &request)const; + void modifyInterceptionRuleAsync(const Model::ModifyInterceptionRuleRequest& request, const ModifyInterceptionRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInterceptionRuleOutcomeCallable modifyInterceptionRuleCallable(const Model::ModifyInterceptionRuleRequest& request) const; + ModifyInterceptionRuleSwitchOutcome modifyInterceptionRuleSwitch(const Model::ModifyInterceptionRuleSwitchRequest &request)const; + void modifyInterceptionRuleSwitchAsync(const Model::ModifyInterceptionRuleSwitchRequest& request, const ModifyInterceptionRuleSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInterceptionRuleSwitchOutcomeCallable modifyInterceptionRuleSwitchCallable(const Model::ModifyInterceptionRuleSwitchRequest& request) const; + ModifyInterceptionTargetOutcome modifyInterceptionTarget(const Model::ModifyInterceptionTargetRequest &request)const; + void modifyInterceptionTargetAsync(const Model::ModifyInterceptionTargetRequest& request, const ModifyInterceptionTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInterceptionTargetOutcomeCallable modifyInterceptionTargetCallable(const Model::ModifyInterceptionTargetRequest& request) const; ModifyLogMetaStatusOutcome modifyLogMetaStatus(const Model::ModifyLogMetaStatusRequest &request)const; void modifyLogMetaStatusAsync(const Model::ModifyLogMetaStatusRequest& request, const ModifyLogMetaStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyLogMetaStatusOutcomeCallable modifyLogMetaStatusCallable(const Model::ModifyLogMetaStatusRequest& request) const; @@ -3611,6 +3808,9 @@ namespace AlibabaCloud SaveSuspEventUserSettingOutcome saveSuspEventUserSetting(const Model::SaveSuspEventUserSettingRequest &request)const; void saveSuspEventUserSettingAsync(const Model::SaveSuspEventUserSettingRequest& request, const SaveSuspEventUserSettingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveSuspEventUserSettingOutcomeCallable saveSuspEventUserSettingCallable(const Model::SaveSuspEventUserSettingRequest& request) const; + SetClusterInterceptionConfigOutcome setClusterInterceptionConfig(const Model::SetClusterInterceptionConfigRequest &request)const; + void setClusterInterceptionConfigAsync(const Model::SetClusterInterceptionConfigRequest& request, const SetClusterInterceptionConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetClusterInterceptionConfigOutcomeCallable setClusterInterceptionConfigCallable(const Model::SetClusterInterceptionConfigRequest& request) const; SetRegistryScanDayNumOutcome setRegistryScanDayNum(const Model::SetRegistryScanDayNumRequest &request)const; void setRegistryScanDayNumAsync(const Model::SetRegistryScanDayNumRequest& request, const SetRegistryScanDayNumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetRegistryScanDayNumOutcomeCallable setRegistryScanDayNumCallable(const Model::SetRegistryScanDayNumRequest& request) const; diff --git a/sas/include/alibabacloud/sas/model/AddCheckInstanceResultWhiteListRequest.h b/sas/include/alibabacloud/sas/model/AddCheckInstanceResultWhiteListRequest.h index c435c24ef..8dde9c944 100644 --- a/sas/include/alibabacloud/sas/model/AddCheckInstanceResultWhiteListRequest.h +++ b/sas/include/alibabacloud/sas/model/AddCheckInstanceResultWhiteListRequest.h @@ -32,18 +32,18 @@ public: ~AddCheckInstanceResultWhiteListRequest(); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - long getCheckId() const; - void setCheckId(long checkId); std::string getCheckGroupId() const; void setCheckGroupId(const std::string &checkGroupId); std::vector getInstanceIds() const; void setInstanceIds(const std::vector &instanceIds); + long getCheckId() const; + void setCheckId(long checkId); private: std::string sourceIp_; - long checkId_; std::string checkGroupId_; std::vector instanceIds_; + long checkId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/AddInstallCodeRequest.h b/sas/include/alibabacloud/sas/model/AddInstallCodeRequest.h index 455ba80fb..515bb10f7 100644 --- a/sas/include/alibabacloud/sas/model/AddInstallCodeRequest.h +++ b/sas/include/alibabacloud/sas/model/AddInstallCodeRequest.h @@ -30,25 +30,28 @@ class ALIBABACLOUD_SAS_EXPORT AddInstallCodeRequest : public RpcServiceRequest { public: AddInstallCodeRequest(); ~AddInstallCodeRequest(); - std::string getOs() const; - void setOs(const std::string &os); - long getGroupId() const; - void setGroupId(long groupId); - bool getOnlyImage() const; - void setOnlyImage(bool onlyImage); long getExpiredDate() const; void setExpiredDate(long expiredDate); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); + std::string getOs() const; + void setOs(const std::string &os); + long getGroupId() const; + void setGroupId(long groupId); + std::string getProxyCluster() const; + void setProxyCluster(const std::string &proxyCluster); + bool getOnlyImage() const; + void setOnlyImage(bool onlyImage); std::string getVendorName() const; void setVendorName(const std::string &vendorName); private: - std::string os_; - long groupId_; - bool onlyImage_; long expiredDate_; std::string sourceIp_; + std::string os_; + long groupId_; + std::string proxyCluster_; + bool onlyImage_; std::string vendorName_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/AddPrivateRegistryRequest.h b/sas/include/alibabacloud/sas/model/AddPrivateRegistryRequest.h new file mode 100644 index 000000000..6614c74e3 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/AddPrivateRegistryRequest.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_ADDPRIVATEREGISTRYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_ADDPRIVATEREGISTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT AddPrivateRegistryRequest : public RpcServiceRequest { +public: + AddPrivateRegistryRequest(); + ~AddPrivateRegistryRequest(); + std::string getExtraParam() const; + void setExtraParam(const std::string &extraParam); + std::string getRegistryVersion() const; + void setRegistryVersion(const std::string ®istryVersion); + std::string getRegistryHostIp() const; + void setRegistryHostIp(const std::string ®istryHostIp); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRegistryRegionId() const; + void setRegistryRegionId(const std::string ®istryRegionId); + int getTransPerHour() const; + void setTransPerHour(int transPerHour); + std::string getRegistryType() const; + void setRegistryType(const std::string ®istryType); + std::string getDomainName() const; + void setDomainName(const std::string &domainName); + long getNetType() const; + void setNetType(long netType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + long getProtocolType() const; + void setProtocolType(long protocolType); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string extraParam_; + std::string registryVersion_; + std::string registryHostIp_; + std::string password_; + std::string sourceIp_; + std::string registryRegionId_; + int transPerHour_; + std::string registryType_; + std::string domainName_; + long netType_; + std::string vpcId_; + long protocolType_; + std::string userName_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_ADDPRIVATEREGISTRYREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/AddPrivateRegistryResult.h b/sas/include/alibabacloud/sas/model/AddPrivateRegistryResult.h new file mode 100644 index 000000000..7f2b7f997 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/AddPrivateRegistryResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_ADDPRIVATEREGISTRYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_ADDPRIVATEREGISTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT AddPrivateRegistryResult : public ServiceResult + { + public: + struct Data + { + int transPerHour; + std::string userName; + std::string registryType; + std::string domainName; + std::string registryHostIp; + std::string token; + std::string registryVersion; + std::string vpcId; + long protocolType; + std::string regionId; + long id; + long netType; + long aliUid; + std::string password; + }; + + + AddPrivateRegistryResult(); + explicit AddPrivateRegistryResult(const std::string &payload); + ~AddPrivateRegistryResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_ADDPRIVATEREGISTRYRESULT_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..1310d46b1 100644 --- a/sas/include/alibabacloud/sas/model/ChangeCheckConfigRequest.h +++ b/sas/include/alibabacloud/sas/model/ChangeCheckConfigRequest.h @@ -32,6 +32,8 @@ public: ~ChangeCheckConfigRequest(); std::vector getStandardIds() const; void setStandardIds(const std::vector &standardIds); + int getEndTime() const; + void setEndTime(int endTime); std::vector getCycleDays() const; void setCycleDays(const std::vector &cycleDays); int getStartTime() const; @@ -40,16 +42,14 @@ public: void setSourceIp(const std::string &sourceIp); std::string getRegionId() const; void setRegionId(const std::string ®ionId); - int getEndTime() const; - void setEndTime(int endTime); private: std::vector standardIds_; + int endTime_; std::vector cycleDays_; int startTime_; std::string sourceIp_; std::string regionId_; - int endTime_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/CreateContainerScanTaskRequest.h b/sas/include/alibabacloud/sas/model/CreateContainerScanTaskRequest.h index fbd1203f6..919e604c3 100644 --- a/sas/include/alibabacloud/sas/model/CreateContainerScanTaskRequest.h +++ b/sas/include/alibabacloud/sas/model/CreateContainerScanTaskRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_SAS_EXPORT CreateContainerScanTaskRequest : public RpcService public: CreateContainerScanTaskRequest(); ~CreateContainerScanTaskRequest(); - std::string getLang() const; - void setLang(const std::string &lang); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getContainerIds() const; void setContainerIds(const std::string &containerIds); + std::string getLang() const; + void setLang(const std::string &lang); private: - std::string lang_; std::string clusterId_; std::string containerIds_; + std::string lang_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/CreateInterceptionRuleRequest.h b/sas/include/alibabacloud/sas/model/CreateInterceptionRuleRequest.h new file mode 100644 index 000000000..1513db2ae --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateInterceptionRuleRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONRULEREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT CreateInterceptionRuleRequest : public RpcServiceRequest { +public: + CreateInterceptionRuleRequest(); + ~CreateInterceptionRuleRequest(); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getDstTargetList() const; + void setDstTargetList(const std::string &dstTargetList); + long getOrderIndex() const; + void setOrderIndex(long orderIndex); + std::string getRuleType() const; + void setRuleType(const std::string &ruleType); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + long getInterceptType() const; + void setInterceptType(long interceptType); + int getRuleSwitch() const; + void setRuleSwitch(int ruleSwitch); + std::string getSrcTarget() const; + void setSrcTarget(const std::string &srcTarget); + +private: + std::string clusterName_; + std::string ruleName_; + std::string sourceIp_; + std::string dstTargetList_; + long orderIndex_; + std::string ruleType_; + std::string clusterId_; + long interceptType_; + int ruleSwitch_; + std::string srcTarget_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONRULEREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/CreateInterceptionRuleResult.h b/sas/include/alibabacloud/sas/model/CreateInterceptionRuleResult.h new file mode 100644 index 000000000..08b4ecd31 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateInterceptionRuleResult.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_CREATEINTERCEPTIONRULERESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT CreateInterceptionRuleResult : public ServiceResult + { + public: + + + CreateInterceptionRuleResult(); + explicit CreateInterceptionRuleResult(const std::string &payload); + ~CreateInterceptionRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONRULERESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/CreateInterceptionTargetRequest.h b/sas/include/alibabacloud/sas/model/CreateInterceptionTargetRequest.h new file mode 100644 index 000000000..7c0b42cb0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateInterceptionTargetRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONTARGETREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONTARGETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT CreateInterceptionTargetRequest : public RpcServiceRequest { +public: + CreateInterceptionTargetRequest(); + ~CreateInterceptionTargetRequest(); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getClusterName() const; + void setClusterName(const std::string &clusterName); + std::vector getImageList() const; + void setImageList(const std::vector &imageList); + std::vector getTagList() const; + void setTagList(const std::vector &tagList); + std::string getTargetName() const; + void setTargetName(const std::string &targetName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string targetType_; + std::string clusterName_; + std::vector imageList_; + std::vector tagList_; + std::string targetName_; + std::string sourceIp_; + std::string appName_; + std::string clusterId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONTARGETREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/CreateInterceptionTargetResult.h b/sas/include/alibabacloud/sas/model/CreateInterceptionTargetResult.h new file mode 100644 index 000000000..f3e7b6bd8 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/CreateInterceptionTargetResult.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_CREATEINTERCEPTIONTARGETRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT CreateInterceptionTargetResult : public ServiceResult + { + public: + + + CreateInterceptionTargetResult(); + explicit CreateInterceptionTargetResult(const std::string &payload); + ~CreateInterceptionTargetResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_CREATEINTERCEPTIONTARGETRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DeleteBackupPolicyMachineRequest.h b/sas/include/alibabacloud/sas/model/DeleteBackupPolicyMachineRequest.h index b7e250666..fac3257d9 100644 --- a/sas/include/alibabacloud/sas/model/DeleteBackupPolicyMachineRequest.h +++ b/sas/include/alibabacloud/sas/model/DeleteBackupPolicyMachineRequest.h @@ -32,6 +32,8 @@ public: ~DeleteBackupPolicyMachineRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getPolicyVersion() const; + void setPolicyVersion(const std::string &policyVersion); std::string getUuid() const; void setUuid(const std::string &uuid); std::string getSourceIp() const; @@ -40,16 +42,14 @@ public: void setPolicyId(long policyId); std::vector getUuidList() const; void setUuidList(const std::vector &uuidList); - std::string getPolicyVersion() const; - void setPolicyVersion(const std::string &policyVersion); private: long resourceOwnerId_; + std::string policyVersion_; std::string uuid_; std::string sourceIp_; long policyId_; std::vector uuidList_; - std::string policyVersion_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DeleteBackupPolicyRequest.h b/sas/include/alibabacloud/sas/model/DeleteBackupPolicyRequest.h index 2f2077612..7b0071227 100644 --- a/sas/include/alibabacloud/sas/model/DeleteBackupPolicyRequest.h +++ b/sas/include/alibabacloud/sas/model/DeleteBackupPolicyRequest.h @@ -32,18 +32,18 @@ public: ~DeleteBackupPolicyRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getPolicyVersion() const; + void setPolicyVersion(const std::string &policyVersion); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); long getId() const; void setId(long id); - std::string getPolicyVersion() const; - void setPolicyVersion(const std::string &policyVersion); private: long resourceOwnerId_; + std::string policyVersion_; std::string sourceIp_; long id_; - std::string policyVersion_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DeletePrivateRegistryRequest.h b/sas/include/alibabacloud/sas/model/DeletePrivateRegistryRequest.h new file mode 100644 index 000000000..29d81b2ba --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DeletePrivateRegistryRequest.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_DELETEPRIVATEREGISTRYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DELETEPRIVATEREGISTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DeletePrivateRegistryRequest : public RpcServiceRequest { +public: + DeletePrivateRegistryRequest(); + ~DeletePrivateRegistryRequest(); + long getRegistryId() const; + void setRegistryId(long registryId); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + long registryId_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DELETEPRIVATEREGISTRYREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DeletePrivateRegistryResult.h b/sas/include/alibabacloud/sas/model/DeletePrivateRegistryResult.h new file mode 100644 index 000000000..557a899b4 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DeletePrivateRegistryResult.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_DELETEPRIVATEREGISTRYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DELETEPRIVATEREGISTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DeletePrivateRegistryResult : public ServiceResult + { + public: + + + DeletePrivateRegistryResult(); + explicit DeletePrivateRegistryResult(const std::string &payload); + ~DeletePrivateRegistryResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DELETEPRIVATEREGISTRYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesRequest.h b/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesRequest.h index 08883942b..bf468c86a 100644 --- a/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeAntiBruteForceRulesRequest.h @@ -32,14 +32,20 @@ public: ~DescribeAntiBruteForceRulesRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); long getId() const; void setId(long id); private: long resourceOwnerId_; + int currentPage_; std::string sourceIp_; + std::string pageSize_; long id_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryRequest.h b/sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryRequest.h new file mode 100644 index 000000000..0801540ee --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryRequest.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_DESCRIBEASSETSSECURITYEVENTSUMMARYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEASSETSSECURITYEVENTSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DescribeAssetsSecurityEventSummaryRequest : public RpcServiceRequest { +public: + DescribeAssetsSecurityEventSummaryRequest(); + ~DescribeAssetsSecurityEventSummaryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getContainerFieldName() const; + void setContainerFieldName(const std::string &containerFieldName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getContainerFieldValue() const; + void setContainerFieldValue(const std::string &containerFieldValue); + +private: + long resourceOwnerId_; + std::string clusterId_; + std::string containerFieldName_; + std::string sourceIp_; + std::string containerFieldValue_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEASSETSSECURITYEVENTSUMMARYREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryResult.h b/sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryResult.h new file mode 100644 index 000000000..064fb2b73 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAssetsSecurityEventSummaryResult.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_DESCRIBEASSETSSECURITYEVENTSUMMARYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEASSETSSECURITYEVENTSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeAssetsSecurityEventSummaryResult : public ServiceResult + { + public: + struct RiskAssetCount + { + long totalCount; + std::string assetType; + long riskCount; + }; + + + DescribeAssetsSecurityEventSummaryResult(); + explicit DescribeAssetsSecurityEventSummaryResult(const std::string &payload); + ~DescribeAssetsSecurityEventSummaryResult(); + std::vector getAssets()const; + + protected: + void parse(const std::string &payload); + private: + std::vector assets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEASSETSSECURITYEVENTSUMMARYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeBackUpExportInfoRequest.h b/sas/include/alibabacloud/sas/model/DescribeBackUpExportInfoRequest.h index 6a43800d4..16c32626d 100644 --- a/sas/include/alibabacloud/sas/model/DescribeBackUpExportInfoRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeBackUpExportInfoRequest.h @@ -30,23 +30,23 @@ class ALIBABACLOUD_SAS_EXPORT DescribeBackUpExportInfoRequest : public RpcServic public: DescribeBackUpExportInfoRequest(); ~DescribeBackUpExportInfoRequest(); + std::string getExportType() const; + void setExportType(const std::string &exportType); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); int getPageSize() const; void setPageSize(int pageSize); std::string getLang() const; void setLang(const std::string &lang); - std::string getExportType() const; - void setExportType(const std::string &exportType); - int getCurrentPage() const; - void setCurrentPage(int currentPage); private: + std::string exportType_; + int currentPage_; std::string sourceIp_; int pageSize_; std::string lang_; - std::string exportType_; - int currentPage_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeBackupMachineStatusRequest.h b/sas/include/alibabacloud/sas/model/DescribeBackupMachineStatusRequest.h index eeb7a0e35..672b2c648 100644 --- a/sas/include/alibabacloud/sas/model/DescribeBackupMachineStatusRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeBackupMachineStatusRequest.h @@ -32,21 +32,21 @@ public: ~DescribeBackupMachineStatusRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getPolicyVersion() const; + void setPolicyVersion(const std::string &policyVersion); std::string getUuid() const; void setUuid(const std::string &uuid); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); long getPolicyId() const; void setPolicyId(long policyId); - std::string getPolicyVersion() const; - void setPolicyVersion(const std::string &policyVersion); private: long resourceOwnerId_; + std::string policyVersion_; std::string uuid_; std::string sourceIp_; long policyId_; - std::string policyVersion_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeCheckFixDetailsRequest.h b/sas/include/alibabacloud/sas/model/DescribeCheckFixDetailsRequest.h index e111f9577..77508aec4 100644 --- a/sas/include/alibabacloud/sas/model/DescribeCheckFixDetailsRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeCheckFixDetailsRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_SAS_EXPORT DescribeCheckFixDetailsRequest : public RpcService public: DescribeCheckFixDetailsRequest(); ~DescribeCheckFixDetailsRequest(); - std::string getLang() const; - void setLang(const std::string &lang); std::string getCheckIds() const; void setCheckIds(const std::string &checkIds); long getRiskId() const; void setRiskId(long riskId); + std::string getLang() const; + void setLang(const std::string &lang); private: - std::string lang_; std::string checkIds_; long riskId_; + std::string lang_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeCheckWarningMachinesRequest.h b/sas/include/alibabacloud/sas/model/DescribeCheckWarningMachinesRequest.h index 530034cd3..0703c8949 100644 --- a/sas/include/alibabacloud/sas/model/DescribeCheckWarningMachinesRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeCheckWarningMachinesRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_SAS_EXPORT DescribeCheckWarningMachinesRequest : public RpcSe public: DescribeCheckWarningMachinesRequest(); ~DescribeCheckWarningMachinesRequest(); + long getRiskId() const; + void setRiskId(long riskId); std::string getLang() const; void setLang(const std::string &lang); long getCheckId() const; void setCheckId(long checkId); - long getRiskId() const; - void setRiskId(long riskId); int getStatus() const; void setStatus(int status); private: + long riskId_; std::string lang_; long checkId_; - long riskId_; int status_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeClientConfSetupRequest.h b/sas/include/alibabacloud/sas/model/DescribeClientConfSetupRequest.h index 34f949947..f64e13891 100644 --- a/sas/include/alibabacloud/sas/model/DescribeClientConfSetupRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeClientConfSetupRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT DescribeClientConfSetupRequest : public RpcService public: DescribeClientConfSetupRequest(); ~DescribeClientConfSetupRequest(); + std::string getStrategyTagValue() const; + void setStrategyTagValue(const std::string &strategyTagValue); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getStrategyTag() const; void setStrategyTag(const std::string &strategyTag); std::string getResourceDirectoryAccountId() const; void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); - std::string getStrategyTagValue() const; - void setStrategyTagValue(const std::string &strategyTagValue); private: + std::string strategyTagValue_; std::string sourceIp_; std::string strategyTag_; std::string resourceDirectoryAccountId_; - std::string strategyTagValue_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeClientConfStrategyRequest.h b/sas/include/alibabacloud/sas/model/DescribeClientConfStrategyRequest.h index fe95579e5..bc35c3779 100644 --- a/sas/include/alibabacloud/sas/model/DescribeClientConfStrategyRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeClientConfStrategyRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT DescribeClientConfStrategyRequest : public RpcServ public: DescribeClientConfStrategyRequest(); ~DescribeClientConfStrategyRequest(); + std::string getTagValue() const; + void setTagValue(const std::string &tagValue); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getTag() const; void setTag(const std::string &tag); std::string getResourceDirectoryAccountId() const; void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); - std::string getTagValue() const; - void setTagValue(const std::string &tagValue); private: + std::string tagValue_; std::string sourceIp_; std::string tag_; std::string resourceDirectoryAccountId_; - std::string tagValue_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeContainerTagsRequest.h b/sas/include/alibabacloud/sas/model/DescribeContainerTagsRequest.h new file mode 100644 index 000000000..c61644d04 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeContainerTagsRequest.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_DESCRIBECONTAINERTAGSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBECONTAINERTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DescribeContainerTagsRequest : public RpcServiceRequest { +public: + DescribeContainerTagsRequest(); + ~DescribeContainerTagsRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getFieldValue() const; + void setFieldValue(const std::string &fieldValue); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getFieldName() const; + void setFieldName(const std::string &fieldName); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string sourceIp_; + std::string appName_; + int pageSize_; + std::string fieldValue_; + int currentPage_; + std::string clusterId_; + std::string fieldName_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECONTAINERTAGSREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DescribeContainerTagsResult.h b/sas/include/alibabacloud/sas/model/DescribeContainerTagsResult.h new file mode 100644 index 000000000..17cdbf417 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeContainerTagsResult.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_DESCRIBECONTAINERTAGSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBECONTAINERTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeContainerTagsResult : public ServiceResult + { + public: + + + DescribeContainerTagsResult(); + explicit DescribeContainerTagsResult(const std::string &payload); + ~DescribeContainerTagsResult(); + std::vector getTagValues()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tagValues_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECONTAINERTAGSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeExcludeSystemPathRequest.h b/sas/include/alibabacloud/sas/model/DescribeExcludeSystemPathRequest.h index f8f49ec7a..b0cc0f081 100644 --- a/sas/include/alibabacloud/sas/model/DescribeExcludeSystemPathRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeExcludeSystemPathRequest.h @@ -32,18 +32,18 @@ public: ~DescribeExcludeSystemPathRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); int getPageSize() const; void setPageSize(int pageSize); - int getCurrentPage() const; - void setCurrentPage(int currentPage); private: long resourceOwnerId_; + int currentPage_; std::string sourceIp_; int pageSize_; - int currentPage_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeGroupStructRequest.h b/sas/include/alibabacloud/sas/model/DescribeGroupStructRequest.h new file mode 100644 index 000000000..681299755 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeGroupStructRequest.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_DESCRIBEGROUPSTRUCTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPSTRUCTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT DescribeGroupStructRequest : public RpcServiceRequest { +public: + DescribeGroupStructRequest(); + ~DescribeGroupStructRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string sourceIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPSTRUCTREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/DescribeGroupStructResult.h b/sas/include/alibabacloud/sas/model/DescribeGroupStructResult.h new file mode 100644 index 000000000..45fdaa14a --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeGroupStructResult.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_DESCRIBEGROUPSTRUCTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPSTRUCTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeGroupStructResult : public ServiceResult + { + public: + + + DescribeGroupStructResult(); + explicit DescribeGroupStructResult(const std::string &payload); + ~DescribeGroupStructResult(); + std::string getGroupName()const; + int getMachineNum()const; + int getGroupLevel()const; + std::vector getGroups()const; + int getGroupIndex()const; + int getGroupFather()const; + int getGroupFlag()const; + long getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + int machineNum_; + int groupLevel_; + std::vector groups_; + int groupIndex_; + int groupFather_; + int groupFlag_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPSTRUCTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h b/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h index b0f161fcf..4f7edf1d2 100644 --- a/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h @@ -30,8 +30,14 @@ class ALIBABACLOUD_SAS_EXPORT DescribeGroupedVulRequest : public RpcServiceReque public: DescribeGroupedVulRequest(); ~DescribeGroupedVulRequest(); + std::string getStatusList() const; + void setStatusList(const std::string &statusList); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); int getMinScore() const; void setMinScore(int minScore); + std::string getCveId() const; + void setCveId(const std::string &cveId); std::string getAttachTypes() const; void setAttachTypes(const std::string &attachTypes); std::string getType() const; @@ -46,30 +52,6 @@ public: void setContainerFieldName(const std::string &containerFieldName); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::string getLevel() const; - void setLevel(const std::string &level); - std::string getGroupId() const; - void setGroupId(const std::string &groupId); - std::string getOrderBy() const; - void setOrderBy(const std::string &orderBy); - long getPatchId() const; - void setPatchId(long patchId); - std::string getAliasName() const; - void setAliasName(const std::string &aliasName); - std::string getName() const; - void setName(const std::string &name); - long getCreateTsEnd() const; - void setCreateTsEnd(long createTsEnd); - std::string getNecessity() const; - void setNecessity(const std::string &necessity); - std::string getUuids() const; - void setUuids(const std::string &uuids); - std::string getStatusList() const; - void setStatusList(const std::string &statusList); - std::string getTargetType() const; - void setTargetType(const std::string &targetType); - std::string getCveId() const; - void setCveId(const std::string &cveId); std::string getContainerFieldValue() const; void setContainerFieldValue(const std::string &containerFieldValue); int getPageSize() const; @@ -82,17 +64,38 @@ public: void setAssetType(const std::string &assetType); std::string getDirection() const; void setDirection(const std::string &direction); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); std::string getDealed() const; void setDealed(const std::string &dealed); int getCurrentPage() const; void setCurrentPage(int currentPage); std::string getClusterId() const; void setClusterId(const std::string &clusterId); + long getPatchId() const; + void setPatchId(long patchId); + std::string getAliasName() const; + void setAliasName(const std::string &aliasName); std::string getSearchTags() const; void setSearchTags(const std::string &searchTags); + std::string getName() const; + void setName(const std::string &name); + long getCreateTsEnd() const; + void setCreateTsEnd(long createTsEnd); + std::string getNecessity() const; + void setNecessity(const std::string &necessity); + std::string getUuids() const; + void setUuids(const std::string &uuids); private: + std::string statusList_; + std::string targetType_; int minScore_; + std::string cveId_; std::string attachTypes_; std::string type_; std::string vpcInstanceIds_; @@ -100,28 +103,25 @@ private: long createTsStart_; std::string containerFieldName_; std::string sourceIp_; - std::string level_; - std::string groupId_; - std::string orderBy_; - long patchId_; - std::string aliasName_; - std::string name_; - long createTsEnd_; - std::string necessity_; - std::string uuids_; - std::string statusList_; - std::string targetType_; - std::string cveId_; std::string containerFieldValue_; int pageSize_; std::string lang_; long lastTsStart_; std::string assetType_; std::string direction_; + std::string level_; + std::string groupId_; + std::string orderBy_; std::string dealed_; int currentPage_; std::string clusterId_; + long patchId_; + std::string aliasName_; std::string searchTags_; + std::string name_; + long createTsEnd_; + std::string necessity_; + std::string uuids_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeImageFixTaskRequest.h b/sas/include/alibabacloud/sas/model/DescribeImageFixTaskRequest.h index 8b1d814ed..c9984bc96 100644 --- a/sas/include/alibabacloud/sas/model/DescribeImageFixTaskRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeImageFixTaskRequest.h @@ -30,25 +30,25 @@ class ALIBABACLOUD_SAS_EXPORT DescribeImageFixTaskRequest : public RpcServiceReq public: DescribeImageFixTaskRequest(); ~DescribeImageFixTaskRequest(); + long getEndTime() const; + void setEndTime(long endTime); + int getCurrentPage() const; + void setCurrentPage(int currentPage); long getStartTime() const; void setStartTime(long startTime); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); int getPageSize() const; void setPageSize(int pageSize); - long getEndTime() const; - void setEndTime(long endTime); - int getCurrentPage() const; - void setCurrentPage(int currentPage); std::string getStatus() const; void setStatus(const std::string &status); private: + long endTime_; + int currentPage_; long startTime_; std::string sourceIp_; int pageSize_; - long endTime_; - int currentPage_; std::string status_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeInstallCodesResult.h b/sas/include/alibabacloud/sas/model/DescribeInstallCodesResult.h index 1e4a72c8a..0fd0fe756 100644 --- a/sas/include/alibabacloud/sas/model/DescribeInstallCodesResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeInstallCodesResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud std::string groupName; std::string vendorName; std::string os; + std::string proxyCluster; std::string captchaCode; std::string tag; int vendor; diff --git a/sas/include/alibabacloud/sas/model/DescribeInstanceStatisticsResult.h b/sas/include/alibabacloud/sas/model/DescribeInstanceStatisticsResult.h index bae1d714b..767a1ab95 100644 --- a/sas/include/alibabacloud/sas/model/DescribeInstanceStatisticsResult.h +++ b/sas/include/alibabacloud/sas/model/DescribeInstanceStatisticsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct DataItem { int account; + int cspmNum; int health; int emgNum; int appNum; diff --git a/sas/include/alibabacloud/sas/model/DescribeRestoreJobsRequest.h b/sas/include/alibabacloud/sas/model/DescribeRestoreJobsRequest.h index 6e04d19b0..5b267d459 100644 --- a/sas/include/alibabacloud/sas/model/DescribeRestoreJobsRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeRestoreJobsRequest.h @@ -32,23 +32,23 @@ public: ~DescribeRestoreJobsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getMachineRemark() const; void setMachineRemark(const std::string &machineRemark); int getPageSize() const; void setPageSize(int pageSize); - int getCurrentPage() const; - void setCurrentPage(int currentPage); std::string getStatus() const; void setStatus(const std::string &status); private: long resourceOwnerId_; + int currentPage_; std::string sourceIp_; std::string machineRemark_; int pageSize_; - int currentPage_; std::string status_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeRestorePlansRequest.h b/sas/include/alibabacloud/sas/model/DescribeRestorePlansRequest.h index c01a10de4..e60e65c90 100644 --- a/sas/include/alibabacloud/sas/model/DescribeRestorePlansRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeRestorePlansRequest.h @@ -32,23 +32,23 @@ public: ~DescribeRestorePlansRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - int getPageSize() const; - void setPageSize(int pageSize); int getCurrentPage() const; void setCurrentPage(int currentPage); std::string getInstanceName() const; void setInstanceName(const std::string &instanceName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + int getPageSize() const; + void setPageSize(int pageSize); std::string getStatus() const; void setStatus(const std::string &status); private: long resourceOwnerId_; - std::string sourceIp_; - int pageSize_; int currentPage_; std::string instanceName_; + std::string sourceIp_; + int pageSize_; std::string status_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeRisksRequest.h b/sas/include/alibabacloud/sas/model/DescribeRisksRequest.h index 5f547292c..0551cbfa1 100644 --- a/sas/include/alibabacloud/sas/model/DescribeRisksRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeRisksRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT DescribeRisksRequest : public RpcServiceRequest { public: DescribeRisksRequest(); ~DescribeRisksRequest(); + long getRiskId() const; + void setRiskId(long riskId); std::string getRiskName() const; void setRiskName(const std::string &riskName); int getLimit() const; void setLimit(int limit); std::string getLang() const; void setLang(const std::string &lang); - long getRiskId() const; - void setRiskId(long riskId); private: + long riskId_; std::string riskName_; int limit_; std::string lang_; - long riskId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeStrategyExecDetailRequest.h b/sas/include/alibabacloud/sas/model/DescribeStrategyExecDetailRequest.h index b7615f9d2..be02a721a 100644 --- a/sas/include/alibabacloud/sas/model/DescribeStrategyExecDetailRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeStrategyExecDetailRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_SAS_EXPORT DescribeStrategyExecDetailRequest : public RpcServ public: DescribeStrategyExecDetailRequest(); ~DescribeStrategyExecDetailRequest(); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); int getPageSize() const; void setPageSize(int pageSize); - int getCurrentPage() const; - void setCurrentPage(int currentPage); int getStrategyId() const; void setStrategyId(int strategyId); private: + int currentPage_; std::string sourceIp_; int pageSize_; - int currentPage_; int strategyId_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/DescribeStrategyRequest.h b/sas/include/alibabacloud/sas/model/DescribeStrategyRequest.h index 2df51118e..ac6343c11 100644 --- a/sas/include/alibabacloud/sas/model/DescribeStrategyRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeStrategyRequest.h @@ -30,23 +30,23 @@ class ALIBABACLOUD_SAS_EXPORT DescribeStrategyRequest : public RpcServiceRequest public: DescribeStrategyRequest(); ~DescribeStrategyRequest(); + std::string getCustomType() const; + void setCustomType(const std::string &customType); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); + std::string getStrategyIds() const; + void setStrategyIds(const std::string &strategyIds); std::string getLang() const; void setLang(const std::string &lang); std::string getResourceDirectoryAccountId() const; void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); - std::string getCustomType() const; - void setCustomType(const std::string &customType); - std::string getStrategyIds() const; - void setStrategyIds(const std::string &strategyIds); private: + std::string customType_; std::string sourceIp_; + std::string strategyIds_; std::string lang_; std::string resourceDirectoryAccountId_; - std::string customType_; - std::string strategyIds_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeStrategyTargetRequest.h b/sas/include/alibabacloud/sas/model/DescribeStrategyTargetRequest.h index b3095a1c4..56f719ada 100644 --- a/sas/include/alibabacloud/sas/model/DescribeStrategyTargetRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeStrategyTargetRequest.h @@ -34,16 +34,16 @@ public: void setType(const std::string &type); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::string getResourceDirectoryAccountId() const; - void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); std::string getConfig() const; void setConfig(const std::string &config); + std::string getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); private: std::string type_; std::string sourceIp_; - std::string resourceDirectoryAccountId_; std::string config_; + std::string resourceDirectoryAccountId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h index 086dd921c..085453c2a 100644 --- a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT DescribeSuspEventDetailRequest : public RpcService public: DescribeSuspEventDetailRequest(); ~DescribeSuspEventDetailRequest(); + int getSuspiciousEventId() const; + void setSuspiciousEventId(int suspiciousEventId); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getFrom() const; void setFrom(const std::string &from); std::string getLang() const; void setLang(const std::string &lang); - int getSuspiciousEventId() const; - void setSuspiciousEventId(int suspiciousEventId); private: + int suspiciousEventId_; std::string sourceIp_; std::string from_; std::string lang_; - int suspiciousEventId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeTargetRequest.h b/sas/include/alibabacloud/sas/model/DescribeTargetRequest.h index 6a8ec32ee..4d6febb34 100644 --- a/sas/include/alibabacloud/sas/model/DescribeTargetRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeTargetRequest.h @@ -34,16 +34,16 @@ public: void setType(const std::string &type); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::string getResourceDirectoryAccountId() const; - void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); std::string getConfig() const; void setConfig(const std::string &config); + std::string getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); private: std::string type_; std::string sourceIp_; - std::string resourceDirectoryAccountId_; std::string config_; + std::string resourceDirectoryAccountId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeVulCheckTaskStatusDetailRequest.h b/sas/include/alibabacloud/sas/model/DescribeVulCheckTaskStatusDetailRequest.h index 9e9f30eb2..bb9567f48 100644 --- a/sas/include/alibabacloud/sas/model/DescribeVulCheckTaskStatusDetailRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeVulCheckTaskStatusDetailRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT DescribeVulCheckTaskStatusDetailRequest : public R public: DescribeVulCheckTaskStatusDetailRequest(); ~DescribeVulCheckTaskStatusDetailRequest(); + std::vector getTypes() const; + void setTypes(const std::vector &types); std::vector getTaskIds() const; void setTaskIds(const std::vector &taskIds); std::string getUuid() const; void setUuid(const std::string &uuid); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::vector getTypes() const; - void setTypes(const std::vector &types); private: + std::vector types_; std::vector taskIds_; std::string uuid_; std::string sourceIp_; - std::vector types_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/DescribeVulListPageRequest.h b/sas/include/alibabacloud/sas/model/DescribeVulListPageRequest.h index 4fdbb7aef..f87459aef 100644 --- a/sas/include/alibabacloud/sas/model/DescribeVulListPageRequest.h +++ b/sas/include/alibabacloud/sas/model/DescribeVulListPageRequest.h @@ -32,21 +32,21 @@ public: ~DescribeVulListPageRequest(); std::string getCveId() const; void setCveId(const std::string &cveId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - int getPageSize() const; - void setPageSize(int pageSize); int getCurrentPage() const; void setCurrentPage(int currentPage); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); std::string getVulNameLike() const; void setVulNameLike(const std::string &vulNameLike); + int getPageSize() const; + void setPageSize(int pageSize); private: std::string cveId_; - std::string sourceIp_; - int pageSize_; int currentPage_; + std::string sourceIp_; std::string vulNameLike_; + int pageSize_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/GetAppNetworkRequest.h b/sas/include/alibabacloud/sas/model/GetAppNetworkRequest.h new file mode 100644 index 000000000..e0dd02787 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetAppNetworkRequest.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_GETAPPNETWORKREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETAPPNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT GetAppNetworkRequest : public RpcServiceRequest { +public: + GetAppNetworkRequest(); + ~GetAppNetworkRequest(); + long getStartTime() const; + void setStartTime(long startTime); + long getEndTime() const; + void setEndTime(long endTime); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + long startTime_; + long endTime_; + std::string clusterId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_GETAPPNETWORKREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/GetAppNetworkResult.h b/sas/include/alibabacloud/sas/model/GetAppNetworkResult.h new file mode 100644 index 000000000..4874c410f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetAppNetworkResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_GETAPPNETWORKRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_GETAPPNETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT GetAppNetworkResult : public ServiceResult + { + public: + struct AppNetwork + { + struct AppNode + { + std::string type; + std::vector containerIds; + std::string id; + std::string namespaceId; + std::string riskLevel; + std::string name; + }; + struct BasicEdge + { + std::string srcNodeId; + std::string port; + std::string id; + std::string dstNodeType; + std::string srcNodeType; + std::string dstNodeId; + }; + struct NamespaceItem + { + std::string id; + std::string name; + }; + std::vector node; + std::vector _namespace; + std::vector edge; + }; + + + GetAppNetworkResult(); + explicit GetAppNetworkResult(const std::string &payload); + ~GetAppNetworkResult(); + AppNetwork getAppNetwork()const; + + protected: + void parse(const std::string &payload); + private: + AppNetwork appNetwork_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_GETAPPNETWORKRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetCheckConfigRequest.h b/sas/include/alibabacloud/sas/model/GetCheckConfigRequest.h index 885dc4cad..b1e28389e 100644 --- a/sas/include/alibabacloud/sas/model/GetCheckConfigRequest.h +++ b/sas/include/alibabacloud/sas/model/GetCheckConfigRequest.h @@ -30,26 +30,26 @@ class ALIBABACLOUD_SAS_EXPORT GetCheckConfigRequest : public RpcServiceRequest { public: GetCheckConfigRequest(); ~GetCheckConfigRequest(); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); + std::string getCheckGroupId() const; + void setCheckGroupId(const std::string &checkGroupId); int getPageSize() const; void setPageSize(int pageSize); std::string getFrom() const; void setFrom(const std::string &from); std::string getLang() const; void setLang(const std::string &lang); - int getCurrentPage() const; - void setCurrentPage(int currentPage); - std::string getCheckGroupId() const; - void setCheckGroupId(const std::string &checkGroupId); private: + int currentPage_; std::string sourceIp_; + std::string checkGroupId_; int pageSize_; std::string from_; std::string lang_; - int currentPage_; - std::string checkGroupId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/GetCheckRiskStatisticsRequest.h b/sas/include/alibabacloud/sas/model/GetCheckRiskStatisticsRequest.h index 17bd1ea45..98a65a66b 100644 --- a/sas/include/alibabacloud/sas/model/GetCheckRiskStatisticsRequest.h +++ b/sas/include/alibabacloud/sas/model/GetCheckRiskStatisticsRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_SAS_EXPORT GetCheckRiskStatisticsRequest : public RpcServiceR public: GetCheckRiskStatisticsRequest(); ~GetCheckRiskStatisticsRequest(); + int getCurrentPage() const; + void setCurrentPage(int currentPage); int getPageSize() const; void setPageSize(int pageSize); std::string getLang() const; void setLang(const std::string &lang); - int getCurrentPage() const; - void setCurrentPage(int currentPage); private: + int currentPage_; int pageSize_; std::string lang_; - int currentPage_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaRequest.h b/sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaRequest.h new file mode 100644 index 000000000..41c05370d --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_GETCLOUDASSETCRITERIAREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETCLOUDASSETCRITERIAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT GetCloudAssetCriteriaRequest : public RpcServiceRequest { +public: + struct CloudAssetTypes { + int assetSubType; + int assetType; + }; + GetCloudAssetCriteriaRequest(); + ~GetCloudAssetCriteriaRequest(); + std::vector getCloudAssetTypes() const; + void setCloudAssetTypes(const std::vector &cloudAssetTypes); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getValue() const; + void setValue(const std::string &value); + +private: + std::vector cloudAssetTypes_; + std::string sourceIp_; + std::string value_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_GETCLOUDASSETCRITERIAREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaResult.h b/sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaResult.h new file mode 100644 index 000000000..10aa71859 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetCloudAssetCriteriaResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_GETCLOUDASSETCRITERIARESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_GETCLOUDASSETCRITERIARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT GetCloudAssetCriteriaResult : public ServiceResult + { + public: + struct Criteria + { + std::string multiValues; + std::string type; + std::string values; + std::string name; + }; + + + GetCloudAssetCriteriaResult(); + explicit GetCloudAssetCriteriaResult(const std::string &payload); + ~GetCloudAssetCriteriaResult(); + std::vector getCriteriaList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector criteriaList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_GETCLOUDASSETCRITERIARESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetClusterRuleSummaryRequest.h b/sas/include/alibabacloud/sas/model/GetClusterRuleSummaryRequest.h new file mode 100644 index 000000000..4ebe2a348 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetClusterRuleSummaryRequest.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_GETCLUSTERRULESUMMARYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETCLUSTERRULESUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT GetClusterRuleSummaryRequest : public RpcServiceRequest { +public: + GetClusterRuleSummaryRequest(); + ~GetClusterRuleSummaryRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string clusterId_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_GETCLUSTERRULESUMMARYREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/GetClusterRuleSummaryResult.h b/sas/include/alibabacloud/sas/model/GetClusterRuleSummaryResult.h new file mode 100644 index 000000000..3d66b7ab0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetClusterRuleSummaryResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_GETCLUSTERRULESUMMARYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_GETCLUSTERRULESUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT GetClusterRuleSummaryResult : public ServiceResult + { + public: + struct ClusterRuleSummary + { + int ruleCount; + long interceptionCount7Day; + int interceptionSwitch; + int closeRuleCount; + int suggestRuleCount; + int openRuleCount; + int interceptionType; + }; + + + GetClusterRuleSummaryResult(); + explicit GetClusterRuleSummaryResult(const std::string &payload); + ~GetClusterRuleSummaryResult(); + ClusterRuleSummary getClusterRuleSummary()const; + + protected: + void parse(const std::string &payload); + private: + ClusterRuleSummary clusterRuleSummary_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_GETCLUSTERRULESUMMARYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailRequest.h b/sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailRequest.h new file mode 100644 index 000000000..e70dac41c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailRequest.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_GETINTERCEPTIONRULEDETAILREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_GETINTERCEPTIONRULEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT GetInterceptionRuleDetailRequest : public RpcServiceRequest { +public: + GetInterceptionRuleDetailRequest(); + ~GetInterceptionRuleDetailRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string clusterId_; + std::string sourceIp_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_GETINTERCEPTIONRULEDETAILREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailResult.h b/sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailResult.h new file mode 100644 index 000000000..0f7fc7e48 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/GetInterceptionRuleDetailResult.h @@ -0,0 +1,85 @@ +/* + * 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_GETINTERCEPTIONRULEDETAILRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_GETINTERCEPTIONRULEDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT GetInterceptionRuleDetailResult : public ServiceResult + { + public: + struct InterceptionRuleDetail + { + struct SrcTarget + { + std::string targetType; + std::vector tagList; + std::string ruleType; + std::string _namespace; + std::string targetName; + int targetId; + std::string appName; + std::vector imageList; + }; + struct DstTarget + { + std::string targetType; + std::vector tagList2; + std::vector ports; + std::string ruleType; + std::string _namespace; + std::vector imageList1; + std::string targetName; + int targetId; + std::string appName; + }; + int ruleSwitch; + long interceptType; + SrcTarget srcTarget; + long ruleId; + std::string ruleType; + long orderIndex; + DstTarget dstTarget; + std::string ruleName; + }; + + + GetInterceptionRuleDetailResult(); + explicit GetInterceptionRuleDetailResult(const std::string &payload); + ~GetInterceptionRuleDetailResult(); + InterceptionRuleDetail getInterceptionRuleDetail()const; + + protected: + void parse(const std::string &payload); + private: + InterceptionRuleDetail interceptionRuleDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_GETINTERCEPTIONRULEDETAILRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/GetModuleConfigRequest.h b/sas/include/alibabacloud/sas/model/GetModuleConfigRequest.h index 4ca5ee280..40cbf551a 100644 --- a/sas/include/alibabacloud/sas/model/GetModuleConfigRequest.h +++ b/sas/include/alibabacloud/sas/model/GetModuleConfigRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT GetModuleConfigRequest : public RpcServiceRequest public: GetModuleConfigRequest(); ~GetModuleConfigRequest(); + std::string getCurrentPage() const; + void setCurrentPage(const std::string ¤tPage); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getPageSize() const; void setPageSize(const std::string &pageSize); std::string getResourceDirectoryAccountId() const; void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); - std::string getCurrentPage() const; - void setCurrentPage(const std::string ¤tPage); private: + std::string currentPage_; std::string sourceIp_; std::string pageSize_; std::string resourceDirectoryAccountId_; - std::string currentPage_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/IgnoreCheckItemsRequest.h b/sas/include/alibabacloud/sas/model/IgnoreCheckItemsRequest.h index 93584b310..e251084a1 100644 --- a/sas/include/alibabacloud/sas/model/IgnoreCheckItemsRequest.h +++ b/sas/include/alibabacloud/sas/model/IgnoreCheckItemsRequest.h @@ -36,21 +36,21 @@ public: ~IgnoreCheckItemsRequest(); std::string getReason() const; void setReason(const std::string &reason); + std::vector getCheckAndRiskTypeList() const; + void setCheckAndRiskTypeList(const std::vector &checkAndRiskTypeList); int getType() const; void setType(int type); std::vector getUuidList() const; void setUuidList(const std::vector &uuidList); std::string getLang() const; void setLang(const std::string &lang); - std::vector getCheckAndRiskTypeList() const; - void setCheckAndRiskTypeList(const std::vector &checkAndRiskTypeList); private: std::string reason_; + std::vector checkAndRiskTypeList_; int type_; std::vector uuidList_; std::string lang_; - std::vector checkAndRiskTypeList_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/InstallBackupClientRequest.h b/sas/include/alibabacloud/sas/model/InstallBackupClientRequest.h index 5a57a51ac..44c0a8437 100644 --- a/sas/include/alibabacloud/sas/model/InstallBackupClientRequest.h +++ b/sas/include/alibabacloud/sas/model/InstallBackupClientRequest.h @@ -32,21 +32,21 @@ public: ~InstallBackupClientRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getPolicyVersion() const; + void setPolicyVersion(const std::string &policyVersion); std::string getUuid() const; void setUuid(const std::string &uuid); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::vector getUuidList() const; void setUuidList(const std::vector &uuidList); - std::string getPolicyVersion() const; - void setPolicyVersion(const std::string &policyVersion); private: long resourceOwnerId_; + std::string policyVersion_; std::string uuid_; std::string sourceIp_; std::vector uuidList_; - std::string policyVersion_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/InstallPmAgentRequest.h b/sas/include/alibabacloud/sas/model/InstallPmAgentRequest.h new file mode 100644 index 000000000..44da4da6e --- /dev/null +++ b/sas/include/alibabacloud/sas/model/InstallPmAgentRequest.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_INSTALLPMAGENTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_INSTALLPMAGENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT InstallPmAgentRequest : public RpcServiceRequest { +public: + InstallPmAgentRequest(); + ~InstallPmAgentRequest(); + std::string getType() const; + void setType(const std::string &type); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getUuids() const; + void setUuids(const std::string &uuids); + +private: + std::string type_; + std::string sourceIp_; + std::string lang_; + std::string uuids_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_INSTALLPMAGENTREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/InstallPmAgentResult.h b/sas/include/alibabacloud/sas/model/InstallPmAgentResult.h new file mode 100644 index 000000000..192b009d1 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/InstallPmAgentResult.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_INSTALLPMAGENTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_INSTALLPMAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT InstallPmAgentResult : public ServiceResult + { + public: + + + InstallPmAgentResult(); + explicit InstallPmAgentResult(const std::string &payload); + ~InstallPmAgentResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_INSTALLPMAGENTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListCheckStandardRequest.h b/sas/include/alibabacloud/sas/model/ListCheckStandardRequest.h index 5b80d42c8..41cde4c9d 100644 --- a/sas/include/alibabacloud/sas/model/ListCheckStandardRequest.h +++ b/sas/include/alibabacloud/sas/model/ListCheckStandardRequest.h @@ -36,20 +36,20 @@ public: void setInstanceTypes(const std::vector &instanceTypes); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); + std::vector getInstanceIds() const; + void setInstanceIds(const std::vector &instanceIds); std::string getLang() const; void setLang(const std::string &lang); std::vector getVendors() const; void setVendors(const std::vector &vendors); - std::vector getInstanceIds() const; - void setInstanceIds(const std::vector &instanceIds); private: std::vector instanceSubTypes_; std::vector instanceTypes_; std::string sourceIp_; + std::vector instanceIds_; std::string lang_; std::vector vendors_; - std::vector instanceIds_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ListCloudAssetInstancesRequest.h b/sas/include/alibabacloud/sas/model/ListCloudAssetInstancesRequest.h new file mode 100644 index 000000000..36cc4c6ba --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListCloudAssetInstancesRequest.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTCLOUDASSETINSTANCESREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTCLOUDASSETINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListCloudAssetInstancesRequest : public RpcServiceRequest { +public: + struct CloudAssetTypes { + int assetSubType; + int assetType; + }; + ListCloudAssetInstancesRequest(); + ~ListCloudAssetInstancesRequest(); + std::string getCriteria() const; + void setCriteria(const std::string &criteria); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLogicalExp() const; + void setLogicalExp(const std::string &logicalExp); + std::vector getCloudAssetTypes() const; + void setCloudAssetTypes(const std::vector &cloudAssetTypes); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + +private: + std::string criteria_; + std::string sourceIp_; + std::string regionId_; + int pageSize_; + std::string logicalExp_; + std::vector cloudAssetTypes_; + int currentPage_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTCLOUDASSETINSTANCESREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListCloudAssetInstancesResult.h b/sas/include/alibabacloud/sas/model/ListCloudAssetInstancesResult.h new file mode 100644 index 000000000..aa5fb6aa7 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListCloudAssetInstancesResult.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_LISTCLOUDASSETINSTANCESRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTCLOUDASSETINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListCloudAssetInstancesResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct InstancesItem + { + long createdTime; + std::string assetTypeName; + std::string instanceId; + std::string assetSubTypeName; + int vendor; + std::string riskStatus; + std::string instanceName; + int assetType; + std::string internetIp; + std::string alarmStatus; + std::string regionId; + std::string assetSubType; + std::string securityInfo; + }; + + + ListCloudAssetInstancesResult(); + explicit ListCloudAssetInstancesResult(const std::string &payload); + ~ListCloudAssetInstancesResult(); + std::vector getInstances()const; + PageInfo getPageInfo()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + PageInfo pageInfo_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTCLOUDASSETINSTANCESRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListImageRegistryRegionRequest.h b/sas/include/alibabacloud/sas/model/ListImageRegistryRegionRequest.h new file mode 100644 index 000000000..f72887398 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListImageRegistryRegionRequest.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_LISTIMAGEREGISTRYREGIONREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTIMAGEREGISTRYREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListImageRegistryRegionRequest : public RpcServiceRequest { +public: + ListImageRegistryRegionRequest(); + ~ListImageRegistryRegionRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string sourceIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTIMAGEREGISTRYREGIONREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListImageRegistryRegionResult.h b/sas/include/alibabacloud/sas/model/ListImageRegistryRegionResult.h new file mode 100644 index 000000000..542424bf6 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListImageRegistryRegionResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTIMAGEREGISTRYREGIONRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTIMAGEREGISTRYREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListImageRegistryRegionResult : public ServiceResult + { + public: + struct Region + { + std::string regionName; + std::string regionId; + }; + + + ListImageRegistryRegionResult(); + explicit ListImageRegistryRegionResult(const std::string &payload); + ~ListImageRegistryRegionResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTIMAGEREGISTRYREGIONRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListImageRiskRequest.h b/sas/include/alibabacloud/sas/model/ListImageRiskRequest.h new file mode 100644 index 000000000..8023837bd --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListImageRiskRequest.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_LISTIMAGERISKREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTIMAGERISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListImageRiskRequest : public RpcServiceRequest { +public: + ListImageRiskRequest(); + ~ListImageRiskRequest(); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getImageName() const; + void setImageName(const std::string &imageName); + int getPageSize() const; + void setPageSize(int pageSize); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string appName_; + std::string imageName_; + int pageSize_; + int currentPage_; + std::string clusterId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTIMAGERISKREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListImageRiskResult.h b/sas/include/alibabacloud/sas/model/ListImageRiskResult.h new file mode 100644 index 000000000..d31e0bc7a --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListImageRiskResult.h @@ -0,0 +1,86 @@ +/* + * 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_LISTIMAGERISKRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTIMAGERISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListImageRiskResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct ImageRiskListItem + { + struct Endpoint + { + std::vector domains; + std::string type; + }; + std::string imageAccessType; + std::string repoNamespace; + std::string registryType; + std::string digest; + std::string repoName; + int tagImmutable; + std::string image; + std::string statistics; + std::string internetURLs; + std::string endpoints; + std::string uuid; + std::string repoType; + std::vector endPointList; + std::string imageId; + std::string tag; + std::string regionId; + std::string repoId; + std::string vpcURLs; + }; + + + ListImageRiskResult(); + explicit ListImageRiskResult(const std::string &payload); + ~ListImageRiskResult(); + std::vector getImageRiskList()const; + PageInfo getPageInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::vector imageRiskList_; + PageInfo pageInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTIMAGERISKRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListInstanceCatalogRequest.h b/sas/include/alibabacloud/sas/model/ListInstanceCatalogRequest.h new file mode 100644 index 000000000..dcb513ecd --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListInstanceCatalogRequest.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_LISTINSTANCECATALOGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTINSTANCECATALOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListInstanceCatalogRequest : public RpcServiceRequest { +public: + ListInstanceCatalogRequest(); + ~ListInstanceCatalogRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string sourceIp_; + std::string lang_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTINSTANCECATALOGREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListInstanceCatalogResult.h b/sas/include/alibabacloud/sas/model/ListInstanceCatalogResult.h new file mode 100644 index 000000000..e5b067416 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListInstanceCatalogResult.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_LISTINSTANCECATALOGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTINSTANCECATALOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListInstanceCatalogResult : public ServiceResult + { + public: + struct VendorsItem + { + struct InstanceTypesItem + { + struct InstanceSubTypesItem + { + std::string name; + }; + std::vector instanceSubTypes; + std::string name; + }; + std::vector instanceTypes; + std::string name; + }; + + + ListInstanceCatalogResult(); + explicit ListInstanceCatalogResult(const std::string &payload); + ~ListInstanceCatalogResult(); + std::vector getVendors()const; + + protected: + void parse(const std::string &payload); + private: + std::vector vendors_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTINSTANCECATALOGRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListInterceptionHistoryRequest.h b/sas/include/alibabacloud/sas/model/ListInterceptionHistoryRequest.h new file mode 100644 index 000000000..d62281c7f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListInterceptionHistoryRequest.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_LISTINTERCEPTIONHISTORYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONHISTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListInterceptionHistoryRequest : public RpcServiceRequest { +public: + ListInterceptionHistoryRequest(); + ~ListInterceptionHistoryRequest(); + long getStartTime() const; + void setStartTime(long startTime); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getHistoryName() const; + void setHistoryName(const std::string &historyName); + std::vector getInterceptionTypes() const; + void setInterceptionTypes(const std::vector &interceptionTypes); + long getEndTime() const; + void setEndTime(long endTime); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + long startTime_; + std::string sourceIp_; + int pageSize_; + std::string historyName_; + std::vector interceptionTypes_; + long endTime_; + int currentPage_; + std::string clusterId_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONHISTORYREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListInterceptionHistoryResult.h b/sas/include/alibabacloud/sas/model/ListInterceptionHistoryResult.h new file mode 100644 index 000000000..d403d2f12 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListInterceptionHistoryResult.h @@ -0,0 +1,95 @@ +/* + * 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_LISTINTERCEPTIONHISTORYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListInterceptionHistoryResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct InterceptionHistory + { + long ruleId; + std::string srcTagList; + long interceptionName; + std::string dstAppName; + std::string realDstAppName; + std::string realDstNamespace; + std::string srcImageList; + std::string clusterName; + std::string dstTagList; + std::string srcNamespace; + std::string realDstPodName; + std::string ruleName; + int interceptionType; + long status; + int realInterceptionType; + std::string realSrcAppName; + long firstTime; + std::string clusterId; + std::string dstRuleTargetName; + std::string srcAppName; + std::string realSrcImageName; + long dstPort; + std::string realSrcPodName; + int tryCount; + std::string realSrcNamespace; + std::string srcRuleTargetName; + std::string realDstImageName; + long id; + long riskLevel; + std::string dstImageList; + std::string dstNamespace; + long lastTime; + }; + + + ListInterceptionHistoryResult(); + explicit ListInterceptionHistoryResult(const std::string &payload); + ~ListInterceptionHistoryResult(); + std::vector getInterceptionHistoryList()const; + PageInfo getPageInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::vector interceptionHistoryList_; + PageInfo pageInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONHISTORYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListInterceptionTargetPageRequest.h b/sas/include/alibabacloud/sas/model/ListInterceptionTargetPageRequest.h new file mode 100644 index 000000000..ef6f7f501 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListInterceptionTargetPageRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONTARGETPAGEREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONTARGETPAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListInterceptionTargetPageRequest : public RpcServiceRequest { +public: + ListInterceptionTargetPageRequest(); + ~ListInterceptionTargetPageRequest(); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::vector getImageList() const; + void setImageList(const std::vector &imageList); + std::vector getTagList() const; + void setTagList(const std::vector &tagList); + std::string getTargetName() const; + void setTargetName(const std::string &targetName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getAppName() const; + void setAppName(const std::string &appName); + int getPageSize() const; + void setPageSize(int pageSize); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string targetType_; + std::vector imageList_; + std::vector tagList_; + std::string targetName_; + std::string sourceIp_; + std::string appName_; + int pageSize_; + int currentPage_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONTARGETPAGEREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListInterceptionTargetPageResult.h b/sas/include/alibabacloud/sas/model/ListInterceptionTargetPageResult.h new file mode 100644 index 000000000..2639c18e7 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListInterceptionTargetPageResult.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_LISTINTERCEPTIONTARGETPAGERESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONTARGETPAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListInterceptionTargetPageResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + }; + struct RuleTarget + { + std::string clusterId; + std::string targetType; + std::string clusterName; + std::vector tagList; + std::string _namespace; + std::string ruleType; + std::string targetName; + long targetId; + std::string appName; + std::vector imageList; + }; + + + ListInterceptionTargetPageResult(); + explicit ListInterceptionTargetPageResult(const std::string &payload); + ~ListInterceptionTargetPageResult(); + PageInfo getPageInfo()const; + std::vector getRuleTargetList()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::vector ruleTargetList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTINTERCEPTIONTARGETPAGERESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListPodRiskRequest.h b/sas/include/alibabacloud/sas/model/ListPodRiskRequest.h new file mode 100644 index 000000000..9a33a36f0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListPodRiskRequest.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_LISTPODRISKREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTPODRISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListPodRiskRequest : public RpcServiceRequest { +public: + ListPodRiskRequest(); + ~ListPodRiskRequest(); + std::string getPodName() const; + void setPodName(const std::string &podName); + std::string getAppName() const; + void setAppName(const std::string &appName); + long getPageSize() const; + void setPageSize(long pageSize); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + std::string podName_; + std::string appName_; + long pageSize_; + long currentPage_; + std::string clusterId_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTPODRISKREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListPodRiskResult.h b/sas/include/alibabacloud/sas/model/ListPodRiskResult.h new file mode 100644 index 000000000..05c445aec --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListPodRiskResult.h @@ -0,0 +1,74 @@ +/* + * 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_LISTPODRISKRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTPODRISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListPodRiskResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct PodRiskListItem + { + int hcCount; + std::string pod; + std::string nodeName; + std::string clusterId; + std::string instanceId; + std::string podIp; + long createTime; + std::string clusterName; + std::string _namespace; + int vulCount; + int alarmCount; + }; + + + ListPodRiskResult(); + explicit ListPodRiskResult(const std::string &payload); + ~ListPodRiskResult(); + PageInfo getPageInfo()const; + std::vector getPodRiskList()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::vector podRiskList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTPODRISKRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListRuleTargetAllRequest.h b/sas/include/alibabacloud/sas/model/ListRuleTargetAllRequest.h new file mode 100644 index 000000000..67077f50e --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListRuleTargetAllRequest.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_LISTRULETARGETALLREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTRULETARGETALLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ListRuleTargetAllRequest : public RpcServiceRequest { +public: + ListRuleTargetAllRequest(); + ~ListRuleTargetAllRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string clusterId_; + std::string sourceIp_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_LISTRULETARGETALLREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ListRuleTargetAllResult.h b/sas/include/alibabacloud/sas/model/ListRuleTargetAllResult.h new file mode 100644 index 000000000..bb45608e7 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ListRuleTargetAllResult.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_LISTRULETARGETALLRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_LISTRULETARGETALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ListRuleTargetAllResult : public ServiceResult + { + public: + struct RuleTarget + { + std::string targetType; + std::string targetName; + long targetId; + }; + + + ListRuleTargetAllResult(); + explicit ListRuleTargetAllResult(const std::string &payload); + ~ListRuleTargetAllResult(); + std::vector getRuleTargetList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ruleTargetList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_LISTRULETARGETALLRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ListVulAutoRepairConfigRequest.h b/sas/include/alibabacloud/sas/model/ListVulAutoRepairConfigRequest.h index cc6653a5e..21e53a5cc 100644 --- a/sas/include/alibabacloud/sas/model/ListVulAutoRepairConfigRequest.h +++ b/sas/include/alibabacloud/sas/model/ListVulAutoRepairConfigRequest.h @@ -30,23 +30,23 @@ class ALIBABACLOUD_SAS_EXPORT ListVulAutoRepairConfigRequest : public RpcService public: ListVulAutoRepairConfigRequest(); ~ListVulAutoRepairConfigRequest(); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::string getType() const; void setType(const std::string &type); + std::string getAliasName() const; + void setAliasName(const std::string &aliasName); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); int getPageSize() const; void setPageSize(int pageSize); - int getCurrentPage() const; - void setCurrentPage(int currentPage); - std::string getAliasName() const; - void setAliasName(const std::string &aliasName); private: + int currentPage_; std::string type_; + std::string aliasName_; std::string sourceIp_; int pageSize_; - int currentPage_; - std::string aliasName_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ModifyBackupPolicyStatusRequest.h b/sas/include/alibabacloud/sas/model/ModifyBackupPolicyStatusRequest.h index a3cfa612d..8471a8388 100644 --- a/sas/include/alibabacloud/sas/model/ModifyBackupPolicyStatusRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyBackupPolicyStatusRequest.h @@ -32,20 +32,20 @@ public: ~ModifyBackupPolicyStatusRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getPolicyVersion() const; + void setPolicyVersion(const std::string &policyVersion); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); long getId() const; void setId(long id); - std::string getPolicyVersion() const; - void setPolicyVersion(const std::string &policyVersion); std::string getStatus() const; void setStatus(const std::string &status); private: long resourceOwnerId_; + std::string policyVersion_; std::string sourceIp_; long id_; - std::string policyVersion_; std::string status_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/ModifyClientConfSetupRequest.h b/sas/include/alibabacloud/sas/model/ModifyClientConfSetupRequest.h index 09a0f906a..3d5bf78c8 100644 --- a/sas/include/alibabacloud/sas/model/ModifyClientConfSetupRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyClientConfSetupRequest.h @@ -32,21 +32,21 @@ public: ~ModifyClientConfSetupRequest(); std::string getStrategyConfig() const; void setStrategyConfig(const std::string &strategyConfig); + std::string getStrategyTagValue() const; + void setStrategyTagValue(const std::string &strategyTagValue); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); std::string getStrategyTag() const; void setStrategyTag(const std::string &strategyTag); std::string getResourceDirectoryAccountId() const; void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); - std::string getStrategyTagValue() const; - void setStrategyTagValue(const std::string &strategyTagValue); private: std::string strategyConfig_; + std::string strategyTagValue_; std::string sourceIp_; std::string strategyTag_; std::string resourceDirectoryAccountId_; - std::string strategyTagValue_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmRequest.h b/sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmRequest.h new file mode 100644 index 000000000..edfb687d1 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmRequest.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_MODIFYCLUSTERCNNFSTATUSUSERCONFIRMREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYCLUSTERCNNFSTATUSUSERCONFIRMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ModifyClusterCnnfStatusUserConfirmRequest : public RpcServiceRequest { +public: + ModifyClusterCnnfStatusUserConfirmRequest(); + ~ModifyClusterCnnfStatusUserConfirmRequest(); + std::vector getClusterIds() const; + void setClusterIds(const std::vector &clusterIds); + bool getUserConfirm() const; + void setUserConfirm(bool userConfirm); + +private: + std::vector clusterIds_; + bool userConfirm_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCLUSTERCNNFSTATUSUSERCONFIRMREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmResult.h b/sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmResult.h new file mode 100644 index 000000000..0a42521c4 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyClusterCnnfStatusUserConfirmResult.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_MODIFYCLUSTERCNNFSTATUSUSERCONFIRMRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYCLUSTERCNNFSTATUSUSERCONFIRMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyClusterCnnfStatusUserConfirmResult : public ServiceResult + { + public: + + + ModifyClusterCnnfStatusUserConfirmResult(); + explicit ModifyClusterCnnfStatusUserConfirmResult(const std::string &payload); + ~ModifyClusterCnnfStatusUserConfirmResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCLUSTERCNNFSTATUSUSERCONFIRMRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h b/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h index b5789c578..b7db57c87 100644 --- a/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h @@ -32,17 +32,17 @@ public: ~ModifyCreateVulWhitelistRequest(); std::string getReason() const; void setReason(const std::string &reason); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); std::string getWhitelist() const; void setWhitelist(const std::string &whitelist); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); std::string getTargetInfo() const; void setTargetInfo(const std::string &targetInfo); private: std::string reason_; - std::string sourceIp_; std::string whitelist_; + std::string sourceIp_; std::string targetInfo_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleRequest.h b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleRequest.h new file mode 100644 index 000000000..f98d038fc --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULEREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ModifyInterceptionRuleRequest : public RpcServiceRequest { +public: + ModifyInterceptionRuleRequest(); + ~ModifyInterceptionRuleRequest(); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + long getOrderIndex() const; + void setOrderIndex(long orderIndex); + std::string getDstTarget() const; + void setDstTarget(const std::string &dstTarget); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getInterceptType() const; + void setInterceptType(int interceptType); + int getRuleSwitch() const; + void setRuleSwitch(int ruleSwitch); + long getRuleId() const; + void setRuleId(long ruleId); + std::string getSrcTarget() const; + void setSrcTarget(const std::string &srcTarget); + +private: + std::string ruleName_; + std::string sourceIp_; + long orderIndex_; + std::string dstTarget_; + std::string clusterId_; + int interceptType_; + int ruleSwitch_; + long ruleId_; + std::string srcTarget_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULEREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleResult.h b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleResult.h new file mode 100644 index 000000000..89527feae --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleResult.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_MODIFYINTERCEPTIONRULERESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyInterceptionRuleResult : public ServiceResult + { + public: + + + ModifyInterceptionRuleResult(); + explicit ModifyInterceptionRuleResult(const std::string &payload); + ~ModifyInterceptionRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULERESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchRequest.h b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchRequest.h new file mode 100644 index 000000000..b3498fd04 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchRequest.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_MODIFYINTERCEPTIONRULESWITCHREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULESWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ModifyInterceptionRuleSwitchRequest : public RpcServiceRequest { +public: + ModifyInterceptionRuleSwitchRequest(); + ~ModifyInterceptionRuleSwitchRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getRuleIds() const; + void setRuleIds(const std::string &ruleIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + int getRuleSwitch() const; + void setRuleSwitch(int ruleSwitch); + +private: + std::string clusterId_; + std::string ruleIds_; + std::string sourceIp_; + int ruleSwitch_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULESWITCHREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchResult.h b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchResult.h new file mode 100644 index 000000000..dbc552a1f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyInterceptionRuleSwitchResult.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_MODIFYINTERCEPTIONRULESWITCHRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULESWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyInterceptionRuleSwitchResult : public ServiceResult + { + public: + + + ModifyInterceptionRuleSwitchResult(); + explicit ModifyInterceptionRuleSwitchResult(const std::string &payload); + ~ModifyInterceptionRuleSwitchResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONRULESWITCHRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyInterceptionTargetRequest.h b/sas/include/alibabacloud/sas/model/ModifyInterceptionTargetRequest.h new file mode 100644 index 000000000..9dd6a6bc6 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyInterceptionTargetRequest.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_MODIFYINTERCEPTIONTARGETREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONTARGETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT ModifyInterceptionTargetRequest : public RpcServiceRequest { +public: + ModifyInterceptionTargetRequest(); + ~ModifyInterceptionTargetRequest(); + long getTargetId() const; + void setTargetId(long targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::vector getImageList() const; + void setImageList(const std::vector &imageList); + std::vector getTagList() const; + void setTagList(const std::vector &tagList); + std::string getTargetName() const; + void setTargetName(const std::string &targetName); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string get_Namespace() const; + void set_Namespace(const std::string &_namespace); + +private: + long targetId_; + std::string targetType_; + std::vector imageList_; + std::vector tagList_; + std::string targetName_; + std::string sourceIp_; + std::string appName_; + std::string _namespace_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONTARGETREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/ModifyInterceptionTargetResult.h b/sas/include/alibabacloud/sas/model/ModifyInterceptionTargetResult.h new file mode 100644 index 000000000..edfd51edf --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyInterceptionTargetResult.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_MODIFYINTERCEPTIONTARGETRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyInterceptionTargetResult : public ServiceResult + { + public: + + + ModifyInterceptionTargetResult(); + explicit ModifyInterceptionTargetResult(const std::string &payload); + ~ModifyInterceptionTargetResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYINTERCEPTIONTARGETRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyOperateVulRequest.h b/sas/include/alibabacloud/sas/model/ModifyOperateVulRequest.h index bbfb971e3..b85d8310b 100644 --- a/sas/include/alibabacloud/sas/model/ModifyOperateVulRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyOperateVulRequest.h @@ -36,17 +36,17 @@ public: void setType(const std::string &type); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::string getInfo() const; - void setInfo(const std::string &info); std::string getOperateType() const; void setOperateType(const std::string &operateType); + std::string getInfo() const; + void setInfo(const std::string &info); private: std::string reason_; std::string type_; std::string sourceIp_; - std::string info_; std::string operateType_; + std::string info_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ModifySecurityEventMarkMissIndividuallyRequest.h b/sas/include/alibabacloud/sas/model/ModifySecurityEventMarkMissIndividuallyRequest.h index 1259fd9c7..c5e0d9e73 100644 --- a/sas/include/alibabacloud/sas/model/ModifySecurityEventMarkMissIndividuallyRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifySecurityEventMarkMissIndividuallyRequest.h @@ -34,19 +34,19 @@ public: void setInsertMarkMissParam(const std::string &insertMarkMissParam); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); + std::string getDeleteMarkMissParam() const; + void setDeleteMarkMissParam(const std::string &deleteMarkMissParam); std::string getFrom() const; void setFrom(const std::string &from); std::string getLang() const; void setLang(const std::string &lang); - std::string getDeleteMarkMissParam() const; - void setDeleteMarkMissParam(const std::string &deleteMarkMissParam); private: std::string insertMarkMissParam_; std::string sourceIp_; + std::string deleteMarkMissParam_; std::string from_; std::string lang_; - std::string deleteMarkMissParam_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ModifyStrategyTargetRequest.h b/sas/include/alibabacloud/sas/model/ModifyStrategyTargetRequest.h index 71b341abd..8a227840e 100644 --- a/sas/include/alibabacloud/sas/model/ModifyStrategyTargetRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyStrategyTargetRequest.h @@ -32,21 +32,21 @@ public: ~ModifyStrategyTargetRequest(); std::string getType() const; void setType(const std::string &type); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getResourceDirectoryAccountId() const; - void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); std::string getTarget() const; void setTarget(const std::string &target); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); std::string getConfig() const; void setConfig(const std::string &config); + std::string getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); private: std::string type_; - std::string sourceIp_; - std::string resourceDirectoryAccountId_; std::string target_; + std::string sourceIp_; std::string config_; + std::string resourceDirectoryAccountId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ModifyVulConfigRequest.h b/sas/include/alibabacloud/sas/model/ModifyVulConfigRequest.h index 3bf69eabc..b125f1bf1 100644 --- a/sas/include/alibabacloud/sas/model/ModifyVulConfigRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyVulConfigRequest.h @@ -34,16 +34,16 @@ public: void setType(const std::string &type); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::string getResourceDirectoryAccountId() const; - void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); std::string getConfig() const; void setConfig(const std::string &config); + std::string getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); private: std::string type_; std::string sourceIp_; - std::string resourceDirectoryAccountId_; std::string config_; + std::string resourceDirectoryAccountId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ModifyVulTargetRequest.h b/sas/include/alibabacloud/sas/model/ModifyVulTargetRequest.h index df0570bea..b4b82d84c 100644 --- a/sas/include/alibabacloud/sas/model/ModifyVulTargetRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyVulTargetRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT ModifyVulTargetRequest : public RpcServiceRequest public: ModifyVulTargetRequest(); ~ModifyVulTargetRequest(); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getResourceDirectoryAccountId() const; - void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); std::string getTarget() const; void setTarget(const std::string &target); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); std::string getConfig() const; void setConfig(const std::string &config); + std::string getResourceDirectoryAccountId() const; + void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId); private: - std::string sourceIp_; - std::string resourceDirectoryAccountId_; std::string target_; + std::string sourceIp_; std::string config_; + std::string resourceDirectoryAccountId_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/ModifyVulWhitelistTargetRequest.h b/sas/include/alibabacloud/sas/model/ModifyVulWhitelistTargetRequest.h index af63033ea..c6e55523a 100644 --- a/sas/include/alibabacloud/sas/model/ModifyVulWhitelistTargetRequest.h +++ b/sas/include/alibabacloud/sas/model/ModifyVulWhitelistTargetRequest.h @@ -34,16 +34,16 @@ public: void setReason(const std::string &reason); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - long getId() const; - void setId(long id); std::string getTargetInfo() const; void setTargetInfo(const std::string &targetInfo); + long getId() const; + void setId(long id); private: std::string reason_; std::string sourceIp_; - long id_; std::string targetInfo_; + long id_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/OpenSensitiveFileScanRequest.h b/sas/include/alibabacloud/sas/model/OpenSensitiveFileScanRequest.h index b3c2cfa30..51d7c9c6d 100644 --- a/sas/include/alibabacloud/sas/model/OpenSensitiveFileScanRequest.h +++ b/sas/include/alibabacloud/sas/model/OpenSensitiveFileScanRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_SAS_EXPORT OpenSensitiveFileScanRequest : public RpcServiceRe public: OpenSensitiveFileScanRequest(); ~OpenSensitiveFileScanRequest(); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getLang() const; - void setLang(const std::string &lang); int getCurrentPage() const; void setCurrentPage(int currentPage); + int getPageSize() const; + void setPageSize(int pageSize); std::string getSwitchOn() const; void setSwitchOn(const std::string &switchOn); + std::string getLang() const; + void setLang(const std::string &lang); private: - int pageSize_; - std::string lang_; int currentPage_; + int pageSize_; std::string switchOn_; + std::string lang_; }; } // namespace Model } // namespace Sas diff --git a/sas/include/alibabacloud/sas/model/OperateAgentClientInstallRequest.h b/sas/include/alibabacloud/sas/model/OperateAgentClientInstallRequest.h index 3966bb3f5..0d7574a1c 100644 --- a/sas/include/alibabacloud/sas/model/OperateAgentClientInstallRequest.h +++ b/sas/include/alibabacloud/sas/model/OperateAgentClientInstallRequest.h @@ -32,17 +32,17 @@ public: ~OperateAgentClientInstallRequest(); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::string getLang() const; - void setLang(const std::string &lang); std::string getInstanceIds() const; void setInstanceIds(const std::string &instanceIds); + std::string getLang() const; + void setLang(const std::string &lang); std::string getUuids() const; void setUuids(const std::string &uuids); private: std::string sourceIp_; - std::string lang_; std::string instanceIds_; + std::string lang_; std::string uuids_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/PageImageRegistryRequest.h b/sas/include/alibabacloud/sas/model/PageImageRegistryRequest.h index ba6d31134..812659cec 100644 --- a/sas/include/alibabacloud/sas/model/PageImageRegistryRequest.h +++ b/sas/include/alibabacloud/sas/model/PageImageRegistryRequest.h @@ -30,25 +30,25 @@ class ALIBABACLOUD_SAS_EXPORT PageImageRegistryRequest : public RpcServiceReques public: PageImageRegistryRequest(); ~PageImageRegistryRequest(); + std::string getRegistryNameLike() const; + void setRegistryNameLike(const std::string ®istryNameLike); + int getCurrentPage() const; + void setCurrentPage(int currentPage); std::vector getRegistryTypeNotInList() const; void setRegistryTypeNotInList(const std::vector ®istryTypeNotInList); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); int getPageSize() const; void setPageSize(int pageSize); - std::string getRegistryNameLike() const; - void setRegistryNameLike(const std::string ®istryNameLike); - int getCurrentPage() const; - void setCurrentPage(int currentPage); std::vector getRegistryTypeInList() const; void setRegistryTypeInList(const std::vector ®istryTypeInList); private: + std::string registryNameLike_; + int currentPage_; std::vector registryTypeNotInList_; std::string sourceIp_; int pageSize_; - std::string registryNameLike_; - int currentPage_; std::vector registryTypeInList_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/RemoveCheckResultWhiteListRequest.h b/sas/include/alibabacloud/sas/model/RemoveCheckResultWhiteListRequest.h index c57da7872..32513309d 100644 --- a/sas/include/alibabacloud/sas/model/RemoveCheckResultWhiteListRequest.h +++ b/sas/include/alibabacloud/sas/model/RemoveCheckResultWhiteListRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_SAS_EXPORT RemoveCheckResultWhiteListRequest : public RpcServ public: RemoveCheckResultWhiteListRequest(); ~RemoveCheckResultWhiteListRequest(); + std::vector getCheckIds() const; + void setCheckIds(const std::vector &checkIds); std::string getType() const; void setType(const std::string &type); std::string getSourceIp() const; void setSourceIp(const std::string &sourceIp); - std::vector getCheckIds() const; - void setCheckIds(const std::vector &checkIds); std::string getCheckGroupId() const; void setCheckGroupId(const std::string &checkGroupId); private: + std::vector checkIds_; std::string type_; std::string sourceIp_; - std::vector checkIds_; std::string checkGroupId_; }; } // namespace Model diff --git a/sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigRequest.h b/sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigRequest.h new file mode 100644 index 000000000..bddda82b1 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigRequest.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_SETCLUSTERINTERCEPTIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_SETCLUSTERINTERCEPTIONCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Sas { +namespace Model { +class ALIBABACLOUD_SAS_EXPORT SetClusterInterceptionConfigRequest : public RpcServiceRequest { +public: + SetClusterInterceptionConfigRequest(); + ~SetClusterInterceptionConfigRequest(); + std::string getClusterIds() const; + void setClusterIds(const std::string &clusterIds); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + int getSwitchType() const; + void setSwitchType(int switchType); + int getSwitchOn() const; + void setSwitchOn(int switchOn); + +private: + std::string clusterIds_; + std::string sourceIp_; + int switchType_; + int switchOn_; +}; +} // namespace Model +} // namespace Sas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SAS_MODEL_SETCLUSTERINTERCEPTIONCONFIGREQUEST_H_ diff --git a/sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigResult.h b/sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigResult.h new file mode 100644 index 000000000..dd99a1731 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/SetClusterInterceptionConfigResult.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_SETCLUSTERINTERCEPTIONCONFIGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_SETCLUSTERINTERCEPTIONCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT SetClusterInterceptionConfigResult : public ServiceResult + { + public: + + + SetClusterInterceptionConfigResult(); + explicit SetClusterInterceptionConfigResult(const std::string &payload); + ~SetClusterInterceptionConfigResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_SETCLUSTERINTERCEPTIONCONFIGRESULT_H_ \ No newline at end of file diff --git a/sas/src/SasClient.cc b/sas/src/SasClient.cc index 5bb1ed900..fc6598da1 100644 --- a/sas/src/SasClient.cc +++ b/sas/src/SasClient.cc @@ -195,6 +195,42 @@ SasClient::AddInstallCodeOutcomeCallable SasClient::addInstallCodeCallable(const return task->get_future(); } +SasClient::AddPrivateRegistryOutcome SasClient::addPrivateRegistry(const AddPrivateRegistryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPrivateRegistryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPrivateRegistryOutcome(AddPrivateRegistryResult(outcome.result())); + else + return AddPrivateRegistryOutcome(outcome.error()); +} + +void SasClient::addPrivateRegistryAsync(const AddPrivateRegistryRequest& request, const AddPrivateRegistryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPrivateRegistry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::AddPrivateRegistryOutcomeCallable SasClient::addPrivateRegistryCallable(const AddPrivateRegistryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPrivateRegistry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::AddTagWithUuidOutcome SasClient::addTagWithUuid(const AddTagWithUuidRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1059,78 @@ SasClient::CreateHoneypotProbeOutcomeCallable SasClient::createHoneypotProbeCall return task->get_future(); } +SasClient::CreateInterceptionRuleOutcome SasClient::createInterceptionRule(const CreateInterceptionRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInterceptionRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInterceptionRuleOutcome(CreateInterceptionRuleResult(outcome.result())); + else + return CreateInterceptionRuleOutcome(outcome.error()); +} + +void SasClient::createInterceptionRuleAsync(const CreateInterceptionRuleRequest& request, const CreateInterceptionRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInterceptionRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::CreateInterceptionRuleOutcomeCallable SasClient::createInterceptionRuleCallable(const CreateInterceptionRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInterceptionRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::CreateInterceptionTargetOutcome SasClient::createInterceptionTarget(const CreateInterceptionTargetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInterceptionTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInterceptionTargetOutcome(CreateInterceptionTargetResult(outcome.result())); + else + return CreateInterceptionTargetOutcome(outcome.error()); +} + +void SasClient::createInterceptionTargetAsync(const CreateInterceptionTargetRequest& request, const CreateInterceptionTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInterceptionTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::CreateInterceptionTargetOutcomeCallable SasClient::createInterceptionTargetCallable(const CreateInterceptionTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInterceptionTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::CreateJenkinsImageRegistryOutcome SasClient::createJenkinsImageRegistry(const CreateJenkinsImageRegistryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +1995,42 @@ SasClient::DeleteLoginBaseConfigOutcomeCallable SasClient::deleteLoginBaseConfig return task->get_future(); } +SasClient::DeletePrivateRegistryOutcome SasClient::deletePrivateRegistry(const DeletePrivateRegistryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePrivateRegistryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePrivateRegistryOutcome(DeletePrivateRegistryResult(outcome.result())); + else + return DeletePrivateRegistryOutcome(outcome.error()); +} + +void SasClient::deletePrivateRegistryAsync(const DeletePrivateRegistryRequest& request, const DeletePrivateRegistryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePrivateRegistry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DeletePrivateRegistryOutcomeCallable SasClient::deletePrivateRegistryCallable(const DeletePrivateRegistryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePrivateRegistry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DeleteSecurityEventMarkMissListOutcome SasClient::deleteSecurityEventMarkMissList(const DeleteSecurityEventMarkMissListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2715,6 +2859,42 @@ SasClient::DescribeAssetSummaryOutcomeCallable SasClient::describeAssetSummaryCa return task->get_future(); } +SasClient::DescribeAssetsSecurityEventSummaryOutcome SasClient::describeAssetsSecurityEventSummary(const DescribeAssetsSecurityEventSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAssetsSecurityEventSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAssetsSecurityEventSummaryOutcome(DescribeAssetsSecurityEventSummaryResult(outcome.result())); + else + return DescribeAssetsSecurityEventSummaryOutcome(outcome.error()); +} + +void SasClient::describeAssetsSecurityEventSummaryAsync(const DescribeAssetsSecurityEventSummaryRequest& request, const DescribeAssetsSecurityEventSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAssetsSecurityEventSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeAssetsSecurityEventSummaryOutcomeCallable SasClient::describeAssetsSecurityEventSummaryCallable(const DescribeAssetsSecurityEventSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAssetsSecurityEventSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeAttackAnalysisDataOutcome SasClient::describeAttackAnalysisData(const DescribeAttackAnalysisDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,6 +4083,42 @@ SasClient::DescribeContainerStatisticsOutcomeCallable SasClient::describeContain return task->get_future(); } +SasClient::DescribeContainerTagsOutcome SasClient::describeContainerTags(const DescribeContainerTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeContainerTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeContainerTagsOutcome(DescribeContainerTagsResult(outcome.result())); + else + return DescribeContainerTagsOutcome(outcome.error()); +} + +void SasClient::describeContainerTagsAsync(const DescribeContainerTagsRequest& request, const DescribeContainerTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeContainerTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeContainerTagsOutcomeCallable SasClient::describeContainerTagsCallable(const DescribeContainerTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeContainerTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeCountNotScannedImageOutcome SasClient::describeCountNotScannedImage(const DescribeCountNotScannedImageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4731,6 +4947,42 @@ SasClient::DescribeFrontVulPatchListOutcomeCallable SasClient::describeFrontVulP return task->get_future(); } +SasClient::DescribeGroupStructOutcome SasClient::describeGroupStruct(const DescribeGroupStructRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupStructOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupStructOutcome(DescribeGroupStructResult(outcome.result())); + else + return DescribeGroupStructOutcome(outcome.error()); +} + +void SasClient::describeGroupStructAsync(const DescribeGroupStructRequest& request, const DescribeGroupStructAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroupStruct(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeGroupStructOutcomeCallable SasClient::describeGroupStructCallable(const DescribeGroupStructRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroupStruct(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::DescribeGroupedContainerInstancesOutcome SasClient::describeGroupedContainerInstances(const DescribeGroupedContainerInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10491,6 +10743,42 @@ SasClient::GetAlarmMachineCountOutcomeCallable SasClient::getAlarmMachineCountCa return task->get_future(); } +SasClient::GetAppNetworkOutcome SasClient::getAppNetwork(const GetAppNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAppNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAppNetworkOutcome(GetAppNetworkResult(outcome.result())); + else + return GetAppNetworkOutcome(outcome.error()); +} + +void SasClient::getAppNetworkAsync(const GetAppNetworkRequest& request, const GetAppNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAppNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::GetAppNetworkOutcomeCallable SasClient::getAppNetworkCallable(const GetAppNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAppNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetAssetsPropertyDetailOutcome SasClient::getAssetsPropertyDetail(const GetAssetsPropertyDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10815,6 +11103,42 @@ SasClient::GetClientUserDefineRuleOutcomeCallable SasClient::getClientUserDefine return task->get_future(); } +SasClient::GetCloudAssetCriteriaOutcome SasClient::getCloudAssetCriteria(const GetCloudAssetCriteriaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCloudAssetCriteriaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCloudAssetCriteriaOutcome(GetCloudAssetCriteriaResult(outcome.result())); + else + return GetCloudAssetCriteriaOutcome(outcome.error()); +} + +void SasClient::getCloudAssetCriteriaAsync(const GetCloudAssetCriteriaRequest& request, const GetCloudAssetCriteriaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCloudAssetCriteria(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::GetCloudAssetCriteriaOutcomeCallable SasClient::getCloudAssetCriteriaCallable(const GetCloudAssetCriteriaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCloudAssetCriteria(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetCloudAssetDetailOutcome SasClient::getCloudAssetDetail(const GetCloudAssetDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -10923,6 +11247,42 @@ SasClient::GetClusterCheckItemWarningStatisticsOutcomeCallable SasClient::getClu return task->get_future(); } +SasClient::GetClusterRuleSummaryOutcome SasClient::getClusterRuleSummary(const GetClusterRuleSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetClusterRuleSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetClusterRuleSummaryOutcome(GetClusterRuleSummaryResult(outcome.result())); + else + return GetClusterRuleSummaryOutcome(outcome.error()); +} + +void SasClient::getClusterRuleSummaryAsync(const GetClusterRuleSummaryRequest& request, const GetClusterRuleSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getClusterRuleSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::GetClusterRuleSummaryOutcomeCallable SasClient::getClusterRuleSummaryCallable(const GetClusterRuleSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getClusterRuleSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetClusterSuspEventStatisticsOutcome SasClient::getClusterSuspEventStatistics(const GetClusterSuspEventStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11175,6 +11535,42 @@ SasClient::GetImageScanNumInPeriodOutcomeCallable SasClient::getImageScanNumInPe return task->get_future(); } +SasClient::GetInterceptionRuleDetailOutcome SasClient::getInterceptionRuleDetail(const GetInterceptionRuleDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetInterceptionRuleDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetInterceptionRuleDetailOutcome(GetInterceptionRuleDetailResult(outcome.result())); + else + return GetInterceptionRuleDetailOutcome(outcome.error()); +} + +void SasClient::getInterceptionRuleDetailAsync(const GetInterceptionRuleDetailRequest& request, const GetInterceptionRuleDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getInterceptionRuleDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::GetInterceptionRuleDetailOutcomeCallable SasClient::getInterceptionRuleDetailCallable(const GetInterceptionRuleDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getInterceptionRuleDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::GetInterceptionSummaryOutcome SasClient::getInterceptionSummary(const GetInterceptionSummaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -11751,6 +12147,42 @@ SasClient::InstallCloudMonitorOutcomeCallable SasClient::installCloudMonitorCall return task->get_future(); } +SasClient::InstallPmAgentOutcome SasClient::installPmAgent(const InstallPmAgentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InstallPmAgentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InstallPmAgentOutcome(InstallPmAgentResult(outcome.result())); + else + return InstallPmAgentOutcome(outcome.error()); +} + +void SasClient::installPmAgentAsync(const InstallPmAgentRequest& request, const InstallPmAgentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, installPmAgent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::InstallPmAgentOutcomeCallable SasClient::installPmAgentCallable(const InstallPmAgentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->installPmAgent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::InstallUniBackupAgentOutcome SasClient::installUniBackupAgent(const InstallUniBackupAgentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12111,6 +12543,42 @@ SasClient::ListClientUserDefineRulesOutcomeCallable SasClient::listClientUserDef return task->get_future(); } +SasClient::ListCloudAssetInstancesOutcome SasClient::listCloudAssetInstances(const ListCloudAssetInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCloudAssetInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCloudAssetInstancesOutcome(ListCloudAssetInstancesResult(outcome.result())); + else + return ListCloudAssetInstancesOutcome(outcome.error()); +} + +void SasClient::listCloudAssetInstancesAsync(const ListCloudAssetInstancesRequest& request, const ListCloudAssetInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCloudAssetInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListCloudAssetInstancesOutcomeCallable SasClient::listCloudAssetInstancesCallable(const ListCloudAssetInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCloudAssetInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ListClusterCnnfStatusDetailOutcome SasClient::listClusterCnnfStatusDetail(const ListClusterCnnfStatusDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12363,6 +12831,150 @@ SasClient::ListHoneypotProbeOutcomeCallable SasClient::listHoneypotProbeCallable return task->get_future(); } +SasClient::ListImageRegistryRegionOutcome SasClient::listImageRegistryRegion(const ListImageRegistryRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImageRegistryRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImageRegistryRegionOutcome(ListImageRegistryRegionResult(outcome.result())); + else + return ListImageRegistryRegionOutcome(outcome.error()); +} + +void SasClient::listImageRegistryRegionAsync(const ListImageRegistryRegionRequest& request, const ListImageRegistryRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImageRegistryRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListImageRegistryRegionOutcomeCallable SasClient::listImageRegistryRegionCallable(const ListImageRegistryRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImageRegistryRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ListImageRiskOutcome SasClient::listImageRisk(const ListImageRiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImageRiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImageRiskOutcome(ListImageRiskResult(outcome.result())); + else + return ListImageRiskOutcome(outcome.error()); +} + +void SasClient::listImageRiskAsync(const ListImageRiskRequest& request, const ListImageRiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImageRisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListImageRiskOutcomeCallable SasClient::listImageRiskCallable(const ListImageRiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImageRisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ListInstanceCatalogOutcome SasClient::listInstanceCatalog(const ListInstanceCatalogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstanceCatalogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstanceCatalogOutcome(ListInstanceCatalogResult(outcome.result())); + else + return ListInstanceCatalogOutcome(outcome.error()); +} + +void SasClient::listInstanceCatalogAsync(const ListInstanceCatalogRequest& request, const ListInstanceCatalogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstanceCatalog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListInstanceCatalogOutcomeCallable SasClient::listInstanceCatalogCallable(const ListInstanceCatalogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstanceCatalog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ListInterceptionHistoryOutcome SasClient::listInterceptionHistory(const ListInterceptionHistoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInterceptionHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInterceptionHistoryOutcome(ListInterceptionHistoryResult(outcome.result())); + else + return ListInterceptionHistoryOutcome(outcome.error()); +} + +void SasClient::listInterceptionHistoryAsync(const ListInterceptionHistoryRequest& request, const ListInterceptionHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInterceptionHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListInterceptionHistoryOutcomeCallable SasClient::listInterceptionHistoryCallable(const ListInterceptionHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInterceptionHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ListInterceptionImageOutcome SasClient::listInterceptionImage(const ListInterceptionImageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12435,6 +13047,42 @@ SasClient::ListInterceptionRulePageOutcomeCallable SasClient::listInterceptionRu return task->get_future(); } +SasClient::ListInterceptionTargetPageOutcome SasClient::listInterceptionTargetPage(const ListInterceptionTargetPageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInterceptionTargetPageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInterceptionTargetPageOutcome(ListInterceptionTargetPageResult(outcome.result())); + else + return ListInterceptionTargetPageOutcome(outcome.error()); +} + +void SasClient::listInterceptionTargetPageAsync(const ListInterceptionTargetPageRequest& request, const ListInterceptionTargetPageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInterceptionTargetPage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListInterceptionTargetPageOutcomeCallable SasClient::listInterceptionTargetPageCallable(const ListInterceptionTargetPageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInterceptionTargetPage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ListPluginForUuidOutcome SasClient::listPluginForUuid(const ListPluginForUuidRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12471,6 +13119,42 @@ SasClient::ListPluginForUuidOutcomeCallable SasClient::listPluginForUuidCallable return task->get_future(); } +SasClient::ListPodRiskOutcome SasClient::listPodRisk(const ListPodRiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPodRiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPodRiskOutcome(ListPodRiskResult(outcome.result())); + else + return ListPodRiskOutcome(outcome.error()); +} + +void SasClient::listPodRiskAsync(const ListPodRiskRequest& request, const ListPodRiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPodRisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListPodRiskOutcomeCallable SasClient::listPodRiskCallable(const ListPodRiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPodRisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ListPrivateRegistryListOutcome SasClient::listPrivateRegistryList(const ListPrivateRegistryListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -12543,6 +13227,42 @@ SasClient::ListPrivateRegistryTypeOutcomeCallable SasClient::listPrivateRegistry return task->get_future(); } +SasClient::ListRuleTargetAllOutcome SasClient::listRuleTargetAll(const ListRuleTargetAllRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRuleTargetAllOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRuleTargetAllOutcome(ListRuleTargetAllResult(outcome.result())); + else + return ListRuleTargetAllOutcome(outcome.error()); +} + +void SasClient::listRuleTargetAllAsync(const ListRuleTargetAllRequest& request, const ListRuleTargetAllAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRuleTargetAll(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ListRuleTargetAllOutcomeCallable SasClient::listRuleTargetAllCallable(const ListRuleTargetAllRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRuleTargetAll(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ListSystemAggregationRulesOutcome SasClient::listSystemAggregationRules(const ListSystemAggregationRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -13227,6 +13947,42 @@ SasClient::ModifyClientUserDefineRuleOutcomeCallable SasClient::modifyClientUser return task->get_future(); } +SasClient::ModifyClusterCnnfStatusUserConfirmOutcome SasClient::modifyClusterCnnfStatusUserConfirm(const ModifyClusterCnnfStatusUserConfirmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyClusterCnnfStatusUserConfirmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyClusterCnnfStatusUserConfirmOutcome(ModifyClusterCnnfStatusUserConfirmResult(outcome.result())); + else + return ModifyClusterCnnfStatusUserConfirmOutcome(outcome.error()); +} + +void SasClient::modifyClusterCnnfStatusUserConfirmAsync(const ModifyClusterCnnfStatusUserConfirmRequest& request, const ModifyClusterCnnfStatusUserConfirmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyClusterCnnfStatusUserConfirm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyClusterCnnfStatusUserConfirmOutcomeCallable SasClient::modifyClusterCnnfStatusUserConfirmCallable(const ModifyClusterCnnfStatusUserConfirmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyClusterCnnfStatusUserConfirm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ModifyConcernNecessityOutcome SasClient::modifyConcernNecessity(const ModifyConcernNecessityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -13479,6 +14235,114 @@ SasClient::ModifyInstanceAntiBruteForceRuleOutcomeCallable SasClient::modifyInst return task->get_future(); } +SasClient::ModifyInterceptionRuleOutcome SasClient::modifyInterceptionRule(const ModifyInterceptionRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInterceptionRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInterceptionRuleOutcome(ModifyInterceptionRuleResult(outcome.result())); + else + return ModifyInterceptionRuleOutcome(outcome.error()); +} + +void SasClient::modifyInterceptionRuleAsync(const ModifyInterceptionRuleRequest& request, const ModifyInterceptionRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInterceptionRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyInterceptionRuleOutcomeCallable SasClient::modifyInterceptionRuleCallable(const ModifyInterceptionRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInterceptionRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyInterceptionRuleSwitchOutcome SasClient::modifyInterceptionRuleSwitch(const ModifyInterceptionRuleSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInterceptionRuleSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInterceptionRuleSwitchOutcome(ModifyInterceptionRuleSwitchResult(outcome.result())); + else + return ModifyInterceptionRuleSwitchOutcome(outcome.error()); +} + +void SasClient::modifyInterceptionRuleSwitchAsync(const ModifyInterceptionRuleSwitchRequest& request, const ModifyInterceptionRuleSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInterceptionRuleSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyInterceptionRuleSwitchOutcomeCallable SasClient::modifyInterceptionRuleSwitchCallable(const ModifyInterceptionRuleSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInterceptionRuleSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyInterceptionTargetOutcome SasClient::modifyInterceptionTarget(const ModifyInterceptionTargetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInterceptionTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInterceptionTargetOutcome(ModifyInterceptionTargetResult(outcome.result())); + else + return ModifyInterceptionTargetOutcome(outcome.error()); +} + +void SasClient::modifyInterceptionTargetAsync(const ModifyInterceptionTargetRequest& request, const ModifyInterceptionTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInterceptionTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyInterceptionTargetOutcomeCallable SasClient::modifyInterceptionTargetCallable(const ModifyInterceptionTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInterceptionTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::ModifyLogMetaStatusOutcome SasClient::modifyLogMetaStatus(const ModifyLogMetaStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -15711,6 +16575,42 @@ SasClient::SaveSuspEventUserSettingOutcomeCallable SasClient::saveSuspEventUserS return task->get_future(); } +SasClient::SetClusterInterceptionConfigOutcome SasClient::setClusterInterceptionConfig(const SetClusterInterceptionConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetClusterInterceptionConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetClusterInterceptionConfigOutcome(SetClusterInterceptionConfigResult(outcome.result())); + else + return SetClusterInterceptionConfigOutcome(outcome.error()); +} + +void SasClient::setClusterInterceptionConfigAsync(const SetClusterInterceptionConfigRequest& request, const SetClusterInterceptionConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setClusterInterceptionConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::SetClusterInterceptionConfigOutcomeCallable SasClient::setClusterInterceptionConfigCallable(const SetClusterInterceptionConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setClusterInterceptionConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SasClient::SetRegistryScanDayNumOutcome SasClient::setRegistryScanDayNum(const SetRegistryScanDayNumRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/sas/src/model/AddCheckInstanceResultWhiteListRequest.cc b/sas/src/model/AddCheckInstanceResultWhiteListRequest.cc index 816b31078..db66cfc51 100644 --- a/sas/src/model/AddCheckInstanceResultWhiteListRequest.cc +++ b/sas/src/model/AddCheckInstanceResultWhiteListRequest.cc @@ -34,15 +34,6 @@ void AddCheckInstanceResultWhiteListRequest::setSourceIp(const std::string &sour setParameter(std::string("SourceIp"), sourceIp); } -long AddCheckInstanceResultWhiteListRequest::getCheckId() const { - return checkId_; -} - -void AddCheckInstanceResultWhiteListRequest::setCheckId(long checkId) { - checkId_ = checkId; - setParameter(std::string("CheckId"), std::to_string(checkId)); -} - std::string AddCheckInstanceResultWhiteListRequest::getCheckGroupId() const { return checkGroupId_; } @@ -60,3 +51,12 @@ void AddCheckInstanceResultWhiteListRequest::setInstanceIds(const std::vector + +using AlibabaCloud::Sas::Model::AddPrivateRegistryRequest; + +AddPrivateRegistryRequest::AddPrivateRegistryRequest() + : RpcServiceRequest("sas", "2018-12-03", "AddPrivateRegistry") { + setMethod(HttpRequest::Method::Post); +} + +AddPrivateRegistryRequest::~AddPrivateRegistryRequest() {} + +std::string AddPrivateRegistryRequest::getExtraParam() const { + return extraParam_; +} + +void AddPrivateRegistryRequest::setExtraParam(const std::string &extraParam) { + extraParam_ = extraParam; + setParameter(std::string("ExtraParam"), extraParam); +} + +std::string AddPrivateRegistryRequest::getRegistryVersion() const { + return registryVersion_; +} + +void AddPrivateRegistryRequest::setRegistryVersion(const std::string ®istryVersion) { + registryVersion_ = registryVersion; + setParameter(std::string("RegistryVersion"), registryVersion); +} + +std::string AddPrivateRegistryRequest::getRegistryHostIp() const { + return registryHostIp_; +} + +void AddPrivateRegistryRequest::setRegistryHostIp(const std::string ®istryHostIp) { + registryHostIp_ = registryHostIp; + setParameter(std::string("RegistryHostIp"), registryHostIp); +} + +std::string AddPrivateRegistryRequest::getPassword() const { + return password_; +} + +void AddPrivateRegistryRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +std::string AddPrivateRegistryRequest::getSourceIp() const { + return sourceIp_; +} + +void AddPrivateRegistryRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string AddPrivateRegistryRequest::getRegistryRegionId() const { + return registryRegionId_; +} + +void AddPrivateRegistryRequest::setRegistryRegionId(const std::string ®istryRegionId) { + registryRegionId_ = registryRegionId; + setParameter(std::string("RegistryRegionId"), registryRegionId); +} + +int AddPrivateRegistryRequest::getTransPerHour() const { + return transPerHour_; +} + +void AddPrivateRegistryRequest::setTransPerHour(int transPerHour) { + transPerHour_ = transPerHour; + setParameter(std::string("TransPerHour"), std::to_string(transPerHour)); +} + +std::string AddPrivateRegistryRequest::getRegistryType() const { + return registryType_; +} + +void AddPrivateRegistryRequest::setRegistryType(const std::string ®istryType) { + registryType_ = registryType; + setParameter(std::string("RegistryType"), registryType); +} + +std::string AddPrivateRegistryRequest::getDomainName() const { + return domainName_; +} + +void AddPrivateRegistryRequest::setDomainName(const std::string &domainName) { + domainName_ = domainName; + setParameter(std::string("DomainName"), domainName); +} + +long AddPrivateRegistryRequest::getNetType() const { + return netType_; +} + +void AddPrivateRegistryRequest::setNetType(long netType) { + netType_ = netType; + setParameter(std::string("NetType"), std::to_string(netType)); +} + +std::string AddPrivateRegistryRequest::getVpcId() const { + return vpcId_; +} + +void AddPrivateRegistryRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +long AddPrivateRegistryRequest::getProtocolType() const { + return protocolType_; +} + +void AddPrivateRegistryRequest::setProtocolType(long protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), std::to_string(protocolType)); +} + +std::string AddPrivateRegistryRequest::getUserName() const { + return userName_; +} + +void AddPrivateRegistryRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/sas/src/model/AddPrivateRegistryResult.cc b/sas/src/model/AddPrivateRegistryResult.cc new file mode 100644 index 000000000..dd960c826 --- /dev/null +++ b/sas/src/model/AddPrivateRegistryResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +AddPrivateRegistryResult::AddPrivateRegistryResult() : + ServiceResult() +{} + +AddPrivateRegistryResult::AddPrivateRegistryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddPrivateRegistryResult::~AddPrivateRegistryResult() +{} + +void AddPrivateRegistryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["VpcId"].isNull()) + data_.vpcId = dataNode["VpcId"].asString(); + if(!dataNode["Token"].isNull()) + data_.token = dataNode["Token"].asString(); + if(!dataNode["TransPerHour"].isNull()) + data_.transPerHour = std::stoi(dataNode["TransPerHour"].asString()); + if(!dataNode["AliUid"].isNull()) + data_.aliUid = std::stol(dataNode["AliUid"].asString()); + if(!dataNode["RegistryType"].isNull()) + data_.registryType = dataNode["RegistryType"].asString(); + if(!dataNode["DomainName"].isNull()) + data_.domainName = dataNode["DomainName"].asString(); + if(!dataNode["RegionId"].isNull()) + data_.regionId = dataNode["RegionId"].asString(); + if(!dataNode["Password"].isNull()) + data_.password = dataNode["Password"].asString(); + if(!dataNode["NetType"].isNull()) + data_.netType = std::stol(dataNode["NetType"].asString()); + if(!dataNode["RegistryVersion"].isNull()) + data_.registryVersion = dataNode["RegistryVersion"].asString(); + if(!dataNode["ProtocolType"].isNull()) + data_.protocolType = std::stol(dataNode["ProtocolType"].asString()); + if(!dataNode["RegistryHostIp"].isNull()) + data_.registryHostIp = dataNode["RegistryHostIp"].asString(); + if(!dataNode["UserName"].isNull()) + data_.userName = dataNode["UserName"].asString(); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + +} + +AddPrivateRegistryResult::Data AddPrivateRegistryResult::getData()const +{ + return data_; +} + diff --git a/sas/src/model/ChangeCheckConfigRequest.cc b/sas/src/model/ChangeCheckConfigRequest.cc index 02df5bd2c..415b5b4c1 100644 --- a/sas/src/model/ChangeCheckConfigRequest.cc +++ b/sas/src/model/ChangeCheckConfigRequest.cc @@ -33,6 +33,15 @@ void ChangeCheckConfigRequest::setStandardIds(const std::vector &standardI standardIds_ = standardIds; } +int ChangeCheckConfigRequest::getEndTime() const { + return endTime_; +} + +void ChangeCheckConfigRequest::setEndTime(int endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + std::vector ChangeCheckConfigRequest::getCycleDays() const { return cycleDays_; } @@ -68,12 +77,3 @@ void ChangeCheckConfigRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } -int ChangeCheckConfigRequest::getEndTime() const { - return endTime_; -} - -void ChangeCheckConfigRequest::setEndTime(int endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), std::to_string(endTime)); -} - diff --git a/sas/src/model/CreateContainerScanTaskRequest.cc b/sas/src/model/CreateContainerScanTaskRequest.cc index 643fa889e..eb08b6348 100644 --- a/sas/src/model/CreateContainerScanTaskRequest.cc +++ b/sas/src/model/CreateContainerScanTaskRequest.cc @@ -25,15 +25,6 @@ CreateContainerScanTaskRequest::CreateContainerScanTaskRequest() CreateContainerScanTaskRequest::~CreateContainerScanTaskRequest() {} -std::string CreateContainerScanTaskRequest::getLang() const { - return lang_; -} - -void CreateContainerScanTaskRequest::setLang(const std::string &lang) { - lang_ = lang; - setParameter(std::string("Lang"), lang); -} - std::string CreateContainerScanTaskRequest::getClusterId() const { return clusterId_; } @@ -52,3 +43,12 @@ void CreateContainerScanTaskRequest::setContainerIds(const std::string &containe setParameter(std::string("ContainerIds"), containerIds); } +std::string CreateContainerScanTaskRequest::getLang() const { + return lang_; +} + +void CreateContainerScanTaskRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sas/src/model/CreateInterceptionRuleRequest.cc b/sas/src/model/CreateInterceptionRuleRequest.cc new file mode 100644 index 000000000..bcaa1d5d5 --- /dev/null +++ b/sas/src/model/CreateInterceptionRuleRequest.cc @@ -0,0 +1,117 @@ +/* + * 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::CreateInterceptionRuleRequest; + +CreateInterceptionRuleRequest::CreateInterceptionRuleRequest() + : RpcServiceRequest("sas", "2018-12-03", "CreateInterceptionRule") { + setMethod(HttpRequest::Method::Post); +} + +CreateInterceptionRuleRequest::~CreateInterceptionRuleRequest() {} + +std::string CreateInterceptionRuleRequest::getClusterName() const { + return clusterName_; +} + +void CreateInterceptionRuleRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +std::string CreateInterceptionRuleRequest::getRuleName() const { + return ruleName_; +} + +void CreateInterceptionRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string CreateInterceptionRuleRequest::getSourceIp() const { + return sourceIp_; +} + +void CreateInterceptionRuleRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string CreateInterceptionRuleRequest::getDstTargetList() const { + return dstTargetList_; +} + +void CreateInterceptionRuleRequest::setDstTargetList(const std::string &dstTargetList) { + dstTargetList_ = dstTargetList; + setParameter(std::string("DstTargetList"), dstTargetList); +} + +long CreateInterceptionRuleRequest::getOrderIndex() const { + return orderIndex_; +} + +void CreateInterceptionRuleRequest::setOrderIndex(long orderIndex) { + orderIndex_ = orderIndex; + setParameter(std::string("OrderIndex"), std::to_string(orderIndex)); +} + +std::string CreateInterceptionRuleRequest::getRuleType() const { + return ruleType_; +} + +void CreateInterceptionRuleRequest::setRuleType(const std::string &ruleType) { + ruleType_ = ruleType; + setParameter(std::string("RuleType"), ruleType); +} + +std::string CreateInterceptionRuleRequest::getClusterId() const { + return clusterId_; +} + +void CreateInterceptionRuleRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +long CreateInterceptionRuleRequest::getInterceptType() const { + return interceptType_; +} + +void CreateInterceptionRuleRequest::setInterceptType(long interceptType) { + interceptType_ = interceptType; + setParameter(std::string("InterceptType"), std::to_string(interceptType)); +} + +int CreateInterceptionRuleRequest::getRuleSwitch() const { + return ruleSwitch_; +} + +void CreateInterceptionRuleRequest::setRuleSwitch(int ruleSwitch) { + ruleSwitch_ = ruleSwitch; + setParameter(std::string("RuleSwitch"), std::to_string(ruleSwitch)); +} + +std::string CreateInterceptionRuleRequest::getSrcTarget() const { + return srcTarget_; +} + +void CreateInterceptionRuleRequest::setSrcTarget(const std::string &srcTarget) { + srcTarget_ = srcTarget; + setParameter(std::string("SrcTarget"), srcTarget); +} + diff --git a/sas/src/model/CreateInterceptionRuleResult.cc b/sas/src/model/CreateInterceptionRuleResult.cc new file mode 100644 index 000000000..245156492 --- /dev/null +++ b/sas/src/model/CreateInterceptionRuleResult.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; + +CreateInterceptionRuleResult::CreateInterceptionRuleResult() : + ServiceResult() +{} + +CreateInterceptionRuleResult::CreateInterceptionRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInterceptionRuleResult::~CreateInterceptionRuleResult() +{} + +void CreateInterceptionRuleResult::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/CreateInterceptionTargetRequest.cc b/sas/src/model/CreateInterceptionTargetRequest.cc new file mode 100644 index 000000000..6e7cf81b9 --- /dev/null +++ b/sas/src/model/CreateInterceptionTargetRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::CreateInterceptionTargetRequest; + +CreateInterceptionTargetRequest::CreateInterceptionTargetRequest() + : RpcServiceRequest("sas", "2018-12-03", "CreateInterceptionTarget") { + setMethod(HttpRequest::Method::Post); +} + +CreateInterceptionTargetRequest::~CreateInterceptionTargetRequest() {} + +std::string CreateInterceptionTargetRequest::getTargetType() const { + return targetType_; +} + +void CreateInterceptionTargetRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string CreateInterceptionTargetRequest::getClusterName() const { + return clusterName_; +} + +void CreateInterceptionTargetRequest::setClusterName(const std::string &clusterName) { + clusterName_ = clusterName; + setParameter(std::string("ClusterName"), clusterName); +} + +std::vector CreateInterceptionTargetRequest::getImageList() const { + return imageList_; +} + +void CreateInterceptionTargetRequest::setImageList(const std::vector &imageList) { + imageList_ = imageList; +} + +std::vector CreateInterceptionTargetRequest::getTagList() const { + return tagList_; +} + +void CreateInterceptionTargetRequest::setTagList(const std::vector &tagList) { + tagList_ = tagList; +} + +std::string CreateInterceptionTargetRequest::getTargetName() const { + return targetName_; +} + +void CreateInterceptionTargetRequest::setTargetName(const std::string &targetName) { + targetName_ = targetName; + setParameter(std::string("TargetName"), targetName); +} + +std::string CreateInterceptionTargetRequest::getSourceIp() const { + return sourceIp_; +} + +void CreateInterceptionTargetRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string CreateInterceptionTargetRequest::getAppName() const { + return appName_; +} + +void CreateInterceptionTargetRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string CreateInterceptionTargetRequest::getClusterId() const { + return clusterId_; +} + +void CreateInterceptionTargetRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string CreateInterceptionTargetRequest::get_Namespace() const { + return _namespace_; +} + +void CreateInterceptionTargetRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/sas/src/model/CreateInterceptionTargetResult.cc b/sas/src/model/CreateInterceptionTargetResult.cc new file mode 100644 index 000000000..4c3290d05 --- /dev/null +++ b/sas/src/model/CreateInterceptionTargetResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +CreateInterceptionTargetResult::CreateInterceptionTargetResult() : + ServiceResult() +{} + +CreateInterceptionTargetResult::CreateInterceptionTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInterceptionTargetResult::~CreateInterceptionTargetResult() +{} + +void CreateInterceptionTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +bool CreateInterceptionTargetResult::getResult()const +{ + return result_; +} + diff --git a/sas/src/model/DeleteBackupPolicyMachineRequest.cc b/sas/src/model/DeleteBackupPolicyMachineRequest.cc index a09546180..662158ac0 100644 --- a/sas/src/model/DeleteBackupPolicyMachineRequest.cc +++ b/sas/src/model/DeleteBackupPolicyMachineRequest.cc @@ -34,6 +34,15 @@ void DeleteBackupPolicyMachineRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DeleteBackupPolicyMachineRequest::getPolicyVersion() const { + return policyVersion_; +} + +void DeleteBackupPolicyMachineRequest::setPolicyVersion(const std::string &policyVersion) { + policyVersion_ = policyVersion; + setParameter(std::string("PolicyVersion"), policyVersion); +} + std::string DeleteBackupPolicyMachineRequest::getUuid() const { return uuid_; } @@ -69,12 +78,3 @@ void DeleteBackupPolicyMachineRequest::setUuidList(const std::vector + +using AlibabaCloud::Sas::Model::DeletePrivateRegistryRequest; + +DeletePrivateRegistryRequest::DeletePrivateRegistryRequest() + : RpcServiceRequest("sas", "2018-12-03", "DeletePrivateRegistry") { + setMethod(HttpRequest::Method::Post); +} + +DeletePrivateRegistryRequest::~DeletePrivateRegistryRequest() {} + +long DeletePrivateRegistryRequest::getRegistryId() const { + return registryId_; +} + +void DeletePrivateRegistryRequest::setRegistryId(long registryId) { + registryId_ = registryId; + setParameter(std::string("RegistryId"), std::to_string(registryId)); +} + +std::string DeletePrivateRegistryRequest::getSourceIp() const { + return sourceIp_; +} + +void DeletePrivateRegistryRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/sas/src/model/DeletePrivateRegistryResult.cc b/sas/src/model/DeletePrivateRegistryResult.cc new file mode 100644 index 000000000..f4922f907 --- /dev/null +++ b/sas/src/model/DeletePrivateRegistryResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DeletePrivateRegistryResult::DeletePrivateRegistryResult() : + ServiceResult() +{} + +DeletePrivateRegistryResult::DeletePrivateRegistryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePrivateRegistryResult::~DeletePrivateRegistryResult() +{} + +void DeletePrivateRegistryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool DeletePrivateRegistryResult::getData()const +{ + return data_; +} + diff --git a/sas/src/model/DescribeAntiBruteForceRulesRequest.cc b/sas/src/model/DescribeAntiBruteForceRulesRequest.cc index f1eef63ed..38635e6c0 100644 --- a/sas/src/model/DescribeAntiBruteForceRulesRequest.cc +++ b/sas/src/model/DescribeAntiBruteForceRulesRequest.cc @@ -34,6 +34,15 @@ void DescribeAntiBruteForceRulesRequest::setResourceOwnerId(long resourceOwnerId setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +int DescribeAntiBruteForceRulesRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeAntiBruteForceRulesRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::string DescribeAntiBruteForceRulesRequest::getSourceIp() const { return sourceIp_; } @@ -43,6 +52,15 @@ void DescribeAntiBruteForceRulesRequest::setSourceIp(const std::string &sourceIp setParameter(std::string("SourceIp"), sourceIp); } +std::string DescribeAntiBruteForceRulesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAntiBruteForceRulesRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + long DescribeAntiBruteForceRulesRequest::getId() const { return id_; } diff --git a/sas/src/model/DescribeAssetsSecurityEventSummaryRequest.cc b/sas/src/model/DescribeAssetsSecurityEventSummaryRequest.cc new file mode 100644 index 000000000..b79f1b3b9 --- /dev/null +++ b/sas/src/model/DescribeAssetsSecurityEventSummaryRequest.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::DescribeAssetsSecurityEventSummaryRequest; + +DescribeAssetsSecurityEventSummaryRequest::DescribeAssetsSecurityEventSummaryRequest() + : RpcServiceRequest("sas", "2018-12-03", "DescribeAssetsSecurityEventSummary") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAssetsSecurityEventSummaryRequest::~DescribeAssetsSecurityEventSummaryRequest() {} + +long DescribeAssetsSecurityEventSummaryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAssetsSecurityEventSummaryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAssetsSecurityEventSummaryRequest::getClusterId() const { + return clusterId_; +} + +void DescribeAssetsSecurityEventSummaryRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeAssetsSecurityEventSummaryRequest::getContainerFieldName() const { + return containerFieldName_; +} + +void DescribeAssetsSecurityEventSummaryRequest::setContainerFieldName(const std::string &containerFieldName) { + containerFieldName_ = containerFieldName; + setParameter(std::string("ContainerFieldName"), containerFieldName); +} + +std::string DescribeAssetsSecurityEventSummaryRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeAssetsSecurityEventSummaryRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DescribeAssetsSecurityEventSummaryRequest::getContainerFieldValue() const { + return containerFieldValue_; +} + +void DescribeAssetsSecurityEventSummaryRequest::setContainerFieldValue(const std::string &containerFieldValue) { + containerFieldValue_ = containerFieldValue; + setParameter(std::string("ContainerFieldValue"), containerFieldValue); +} + diff --git a/sas/src/model/DescribeAssetsSecurityEventSummaryResult.cc b/sas/src/model/DescribeAssetsSecurityEventSummaryResult.cc new file mode 100644 index 000000000..7e2a57624 --- /dev/null +++ b/sas/src/model/DescribeAssetsSecurityEventSummaryResult.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; + +DescribeAssetsSecurityEventSummaryResult::DescribeAssetsSecurityEventSummaryResult() : + ServiceResult() +{} + +DescribeAssetsSecurityEventSummaryResult::DescribeAssetsSecurityEventSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAssetsSecurityEventSummaryResult::~DescribeAssetsSecurityEventSummaryResult() +{} + +void DescribeAssetsSecurityEventSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAssetsNode = value["Assets"]["RiskAssetCount"]; + for (auto valueAssetsRiskAssetCount : allAssetsNode) + { + RiskAssetCount assetsObject; + if(!valueAssetsRiskAssetCount["RiskCount"].isNull()) + assetsObject.riskCount = std::stol(valueAssetsRiskAssetCount["RiskCount"].asString()); + if(!valueAssetsRiskAssetCount["TotalCount"].isNull()) + assetsObject.totalCount = std::stol(valueAssetsRiskAssetCount["TotalCount"].asString()); + if(!valueAssetsRiskAssetCount["AssetType"].isNull()) + assetsObject.assetType = valueAssetsRiskAssetCount["AssetType"].asString(); + assets_.push_back(assetsObject); + } + +} + +std::vector DescribeAssetsSecurityEventSummaryResult::getAssets()const +{ + return assets_; +} + diff --git a/sas/src/model/DescribeBackUpExportInfoRequest.cc b/sas/src/model/DescribeBackUpExportInfoRequest.cc index 524e1f805..66849ec14 100644 --- a/sas/src/model/DescribeBackUpExportInfoRequest.cc +++ b/sas/src/model/DescribeBackUpExportInfoRequest.cc @@ -25,6 +25,24 @@ DescribeBackUpExportInfoRequest::DescribeBackUpExportInfoRequest() DescribeBackUpExportInfoRequest::~DescribeBackUpExportInfoRequest() {} +std::string DescribeBackUpExportInfoRequest::getExportType() const { + return exportType_; +} + +void DescribeBackUpExportInfoRequest::setExportType(const std::string &exportType) { + exportType_ = exportType; + setParameter(std::string("ExportType"), exportType); +} + +int DescribeBackUpExportInfoRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeBackUpExportInfoRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::string DescribeBackUpExportInfoRequest::getSourceIp() const { return sourceIp_; } @@ -52,21 +70,3 @@ void DescribeBackUpExportInfoRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } -std::string DescribeBackUpExportInfoRequest::getExportType() const { - return exportType_; -} - -void DescribeBackUpExportInfoRequest::setExportType(const std::string &exportType) { - exportType_ = exportType; - setParameter(std::string("ExportType"), exportType); -} - -int DescribeBackUpExportInfoRequest::getCurrentPage() const { - return currentPage_; -} - -void DescribeBackUpExportInfoRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - diff --git a/sas/src/model/DescribeBackupMachineStatusRequest.cc b/sas/src/model/DescribeBackupMachineStatusRequest.cc index 6605d4bda..bd98f0580 100644 --- a/sas/src/model/DescribeBackupMachineStatusRequest.cc +++ b/sas/src/model/DescribeBackupMachineStatusRequest.cc @@ -34,6 +34,15 @@ void DescribeBackupMachineStatusRequest::setResourceOwnerId(long resourceOwnerId setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DescribeBackupMachineStatusRequest::getPolicyVersion() const { + return policyVersion_; +} + +void DescribeBackupMachineStatusRequest::setPolicyVersion(const std::string &policyVersion) { + policyVersion_ = policyVersion; + setParameter(std::string("PolicyVersion"), policyVersion); +} + std::string DescribeBackupMachineStatusRequest::getUuid() const { return uuid_; } @@ -61,12 +70,3 @@ void DescribeBackupMachineStatusRequest::setPolicyId(long policyId) { setParameter(std::string("PolicyId"), std::to_string(policyId)); } -std::string DescribeBackupMachineStatusRequest::getPolicyVersion() const { - return policyVersion_; -} - -void DescribeBackupMachineStatusRequest::setPolicyVersion(const std::string &policyVersion) { - policyVersion_ = policyVersion; - setParameter(std::string("PolicyVersion"), policyVersion); -} - diff --git a/sas/src/model/DescribeCheckFixDetailsRequest.cc b/sas/src/model/DescribeCheckFixDetailsRequest.cc index e102f6377..2319e87df 100644 --- a/sas/src/model/DescribeCheckFixDetailsRequest.cc +++ b/sas/src/model/DescribeCheckFixDetailsRequest.cc @@ -25,15 +25,6 @@ DescribeCheckFixDetailsRequest::DescribeCheckFixDetailsRequest() DescribeCheckFixDetailsRequest::~DescribeCheckFixDetailsRequest() {} -std::string DescribeCheckFixDetailsRequest::getLang() const { - return lang_; -} - -void DescribeCheckFixDetailsRequest::setLang(const std::string &lang) { - lang_ = lang; - setParameter(std::string("Lang"), lang); -} - std::string DescribeCheckFixDetailsRequest::getCheckIds() const { return checkIds_; } @@ -52,3 +43,12 @@ void DescribeCheckFixDetailsRequest::setRiskId(long riskId) { setParameter(std::string("RiskId"), std::to_string(riskId)); } +std::string DescribeCheckFixDetailsRequest::getLang() const { + return lang_; +} + +void DescribeCheckFixDetailsRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sas/src/model/DescribeCheckWarningMachinesRequest.cc b/sas/src/model/DescribeCheckWarningMachinesRequest.cc index 36dad0b78..7890b9c0b 100644 --- a/sas/src/model/DescribeCheckWarningMachinesRequest.cc +++ b/sas/src/model/DescribeCheckWarningMachinesRequest.cc @@ -25,6 +25,15 @@ DescribeCheckWarningMachinesRequest::DescribeCheckWarningMachinesRequest() DescribeCheckWarningMachinesRequest::~DescribeCheckWarningMachinesRequest() {} +long DescribeCheckWarningMachinesRequest::getRiskId() const { + return riskId_; +} + +void DescribeCheckWarningMachinesRequest::setRiskId(long riskId) { + riskId_ = riskId; + setParameter(std::string("RiskId"), std::to_string(riskId)); +} + std::string DescribeCheckWarningMachinesRequest::getLang() const { return lang_; } @@ -43,15 +52,6 @@ void DescribeCheckWarningMachinesRequest::setCheckId(long checkId) { setParameter(std::string("CheckId"), std::to_string(checkId)); } -long DescribeCheckWarningMachinesRequest::getRiskId() const { - return riskId_; -} - -void DescribeCheckWarningMachinesRequest::setRiskId(long riskId) { - riskId_ = riskId; - setParameter(std::string("RiskId"), std::to_string(riskId)); -} - int DescribeCheckWarningMachinesRequest::getStatus() const { return status_; } diff --git a/sas/src/model/DescribeClientConfSetupRequest.cc b/sas/src/model/DescribeClientConfSetupRequest.cc index 8cb3f90a4..0f563656f 100644 --- a/sas/src/model/DescribeClientConfSetupRequest.cc +++ b/sas/src/model/DescribeClientConfSetupRequest.cc @@ -25,6 +25,15 @@ DescribeClientConfSetupRequest::DescribeClientConfSetupRequest() DescribeClientConfSetupRequest::~DescribeClientConfSetupRequest() {} +std::string DescribeClientConfSetupRequest::getStrategyTagValue() const { + return strategyTagValue_; +} + +void DescribeClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) { + strategyTagValue_ = strategyTagValue; + setParameter(std::string("StrategyTagValue"), strategyTagValue); +} + std::string DescribeClientConfSetupRequest::getSourceIp() const { return sourceIp_; } @@ -52,12 +61,3 @@ void DescribeClientConfSetupRequest::setResourceDirectoryAccountId(const std::st setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); } -std::string DescribeClientConfSetupRequest::getStrategyTagValue() const { - return strategyTagValue_; -} - -void DescribeClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) { - strategyTagValue_ = strategyTagValue; - setParameter(std::string("StrategyTagValue"), strategyTagValue); -} - diff --git a/sas/src/model/DescribeClientConfStrategyRequest.cc b/sas/src/model/DescribeClientConfStrategyRequest.cc index b7c9c9f8d..8bb93c811 100644 --- a/sas/src/model/DescribeClientConfStrategyRequest.cc +++ b/sas/src/model/DescribeClientConfStrategyRequest.cc @@ -25,6 +25,15 @@ DescribeClientConfStrategyRequest::DescribeClientConfStrategyRequest() DescribeClientConfStrategyRequest::~DescribeClientConfStrategyRequest() {} +std::string DescribeClientConfStrategyRequest::getTagValue() const { + return tagValue_; +} + +void DescribeClientConfStrategyRequest::setTagValue(const std::string &tagValue) { + tagValue_ = tagValue; + setParameter(std::string("TagValue"), tagValue); +} + std::string DescribeClientConfStrategyRequest::getSourceIp() const { return sourceIp_; } @@ -52,12 +61,3 @@ void DescribeClientConfStrategyRequest::setResourceDirectoryAccountId(const std: setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); } -std::string DescribeClientConfStrategyRequest::getTagValue() const { - return tagValue_; -} - -void DescribeClientConfStrategyRequest::setTagValue(const std::string &tagValue) { - tagValue_ = tagValue; - setParameter(std::string("TagValue"), tagValue); -} - diff --git a/sas/src/model/DescribeContainerTagsRequest.cc b/sas/src/model/DescribeContainerTagsRequest.cc new file mode 100644 index 000000000..871a77dca --- /dev/null +++ b/sas/src/model/DescribeContainerTagsRequest.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::DescribeContainerTagsRequest; + +DescribeContainerTagsRequest::DescribeContainerTagsRequest() + : RpcServiceRequest("sas", "2018-12-03", "DescribeContainerTags") { + setMethod(HttpRequest::Method::Post); +} + +DescribeContainerTagsRequest::~DescribeContainerTagsRequest() {} + +std::string DescribeContainerTagsRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeContainerTagsRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DescribeContainerTagsRequest::getAppName() const { + return appName_; +} + +void DescribeContainerTagsRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int DescribeContainerTagsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeContainerTagsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeContainerTagsRequest::getFieldValue() const { + return fieldValue_; +} + +void DescribeContainerTagsRequest::setFieldValue(const std::string &fieldValue) { + fieldValue_ = fieldValue; + setParameter(std::string("FieldValue"), fieldValue); +} + +int DescribeContainerTagsRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeContainerTagsRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string DescribeContainerTagsRequest::getClusterId() const { + return clusterId_; +} + +void DescribeContainerTagsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeContainerTagsRequest::getFieldName() const { + return fieldName_; +} + +void DescribeContainerTagsRequest::setFieldName(const std::string &fieldName) { + fieldName_ = fieldName; + setParameter(std::string("FieldName"), fieldName); +} + +std::string DescribeContainerTagsRequest::get_Namespace() const { + return _namespace_; +} + +void DescribeContainerTagsRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/sas/src/model/DescribeContainerTagsResult.cc b/sas/src/model/DescribeContainerTagsResult.cc new file mode 100644 index 000000000..3d67cec6c --- /dev/null +++ b/sas/src/model/DescribeContainerTagsResult.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; + +DescribeContainerTagsResult::DescribeContainerTagsResult() : + ServiceResult() +{} + +DescribeContainerTagsResult::DescribeContainerTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeContainerTagsResult::~DescribeContainerTagsResult() +{} + +void DescribeContainerTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagValues = value["TagValues"]["tagValue"]; + for (const auto &item : allTagValues) + tagValues_.push_back(item.asString()); + +} + +std::vector DescribeContainerTagsResult::getTagValues()const +{ + return tagValues_; +} + diff --git a/sas/src/model/DescribeExcludeSystemPathRequest.cc b/sas/src/model/DescribeExcludeSystemPathRequest.cc index 2b0538f32..f208364bc 100644 --- a/sas/src/model/DescribeExcludeSystemPathRequest.cc +++ b/sas/src/model/DescribeExcludeSystemPathRequest.cc @@ -34,6 +34,15 @@ void DescribeExcludeSystemPathRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +int DescribeExcludeSystemPathRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeExcludeSystemPathRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::string DescribeExcludeSystemPathRequest::getSourceIp() const { return sourceIp_; } @@ -52,12 +61,3 @@ void DescribeExcludeSystemPathRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -int DescribeExcludeSystemPathRequest::getCurrentPage() const { - return currentPage_; -} - -void DescribeExcludeSystemPathRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - diff --git a/sas/src/model/DescribeGroupStructRequest.cc b/sas/src/model/DescribeGroupStructRequest.cc new file mode 100644 index 000000000..b293d6dca --- /dev/null +++ b/sas/src/model/DescribeGroupStructRequest.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::DescribeGroupStructRequest; + +DescribeGroupStructRequest::DescribeGroupStructRequest() + : RpcServiceRequest("sas", "2018-12-03", "DescribeGroupStruct") { + setMethod(HttpRequest::Method::Post); +} + +DescribeGroupStructRequest::~DescribeGroupStructRequest() {} + +std::string DescribeGroupStructRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeGroupStructRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DescribeGroupStructRequest::getLang() const { + return lang_; +} + +void DescribeGroupStructRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sas/src/model/DescribeGroupStructResult.cc b/sas/src/model/DescribeGroupStructResult.cc new file mode 100644 index 000000000..67791d39e --- /dev/null +++ b/sas/src/model/DescribeGroupStructResult.cc @@ -0,0 +1,101 @@ +/* + * 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; + +DescribeGroupStructResult::DescribeGroupStructResult() : + ServiceResult() +{} + +DescribeGroupStructResult::DescribeGroupStructResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGroupStructResult::~DescribeGroupStructResult() +{} + +void DescribeGroupStructResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGroups = value["Groups"]["Group"]; + for (const auto &item : allGroups) + groups_.push_back(item.asString()); + if(!value["GroupId"].isNull()) + groupId_ = std::stol(value["GroupId"].asString()); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["MachineNum"].isNull()) + machineNum_ = std::stoi(value["MachineNum"].asString()); + if(!value["GroupIndex"].isNull()) + groupIndex_ = std::stoi(value["GroupIndex"].asString()); + if(!value["GroupFather"].isNull()) + groupFather_ = std::stoi(value["GroupFather"].asString()); + if(!value["GroupLevel"].isNull()) + groupLevel_ = std::stoi(value["GroupLevel"].asString()); + if(!value["GroupFlag"].isNull()) + groupFlag_ = std::stoi(value["GroupFlag"].asString()); + +} + +std::string DescribeGroupStructResult::getGroupName()const +{ + return groupName_; +} + +int DescribeGroupStructResult::getMachineNum()const +{ + return machineNum_; +} + +int DescribeGroupStructResult::getGroupLevel()const +{ + return groupLevel_; +} + +std::vector DescribeGroupStructResult::getGroups()const +{ + return groups_; +} + +int DescribeGroupStructResult::getGroupIndex()const +{ + return groupIndex_; +} + +int DescribeGroupStructResult::getGroupFather()const +{ + return groupFather_; +} + +int DescribeGroupStructResult::getGroupFlag()const +{ + return groupFlag_; +} + +long DescribeGroupStructResult::getGroupId()const +{ + return groupId_; +} + diff --git a/sas/src/model/DescribeGroupedVulRequest.cc b/sas/src/model/DescribeGroupedVulRequest.cc index ef30f84c8..a37695cf7 100644 --- a/sas/src/model/DescribeGroupedVulRequest.cc +++ b/sas/src/model/DescribeGroupedVulRequest.cc @@ -25,6 +25,24 @@ DescribeGroupedVulRequest::DescribeGroupedVulRequest() DescribeGroupedVulRequest::~DescribeGroupedVulRequest() {} +std::string DescribeGroupedVulRequest::getStatusList() const { + return statusList_; +} + +void DescribeGroupedVulRequest::setStatusList(const std::string &statusList) { + statusList_ = statusList; + setParameter(std::string("StatusList"), statusList); +} + +std::string DescribeGroupedVulRequest::getTargetType() const { + return targetType_; +} + +void DescribeGroupedVulRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + int DescribeGroupedVulRequest::getMinScore() const { return minScore_; } @@ -34,6 +52,15 @@ void DescribeGroupedVulRequest::setMinScore(int minScore) { setParameter(std::string("MinScore"), std::to_string(minScore)); } +std::string DescribeGroupedVulRequest::getCveId() const { + return cveId_; +} + +void DescribeGroupedVulRequest::setCveId(const std::string &cveId) { + cveId_ = cveId; + setParameter(std::string("CveId"), cveId); +} + std::string DescribeGroupedVulRequest::getAttachTypes() const { return attachTypes_; } @@ -97,114 +124,6 @@ void DescribeGroupedVulRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } -std::string DescribeGroupedVulRequest::getLevel() const { - return level_; -} - -void DescribeGroupedVulRequest::setLevel(const std::string &level) { - level_ = level; - setParameter(std::string("Level"), level); -} - -std::string DescribeGroupedVulRequest::getGroupId() const { - return groupId_; -} - -void DescribeGroupedVulRequest::setGroupId(const std::string &groupId) { - groupId_ = groupId; - setParameter(std::string("GroupId"), groupId); -} - -std::string DescribeGroupedVulRequest::getOrderBy() const { - return orderBy_; -} - -void DescribeGroupedVulRequest::setOrderBy(const std::string &orderBy) { - orderBy_ = orderBy; - setParameter(std::string("OrderBy"), orderBy); -} - -long DescribeGroupedVulRequest::getPatchId() const { - return patchId_; -} - -void DescribeGroupedVulRequest::setPatchId(long patchId) { - patchId_ = patchId; - setParameter(std::string("PatchId"), std::to_string(patchId)); -} - -std::string DescribeGroupedVulRequest::getAliasName() const { - return aliasName_; -} - -void DescribeGroupedVulRequest::setAliasName(const std::string &aliasName) { - aliasName_ = aliasName; - setParameter(std::string("AliasName"), aliasName); -} - -std::string DescribeGroupedVulRequest::getName() const { - return name_; -} - -void DescribeGroupedVulRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); -} - -long DescribeGroupedVulRequest::getCreateTsEnd() const { - return createTsEnd_; -} - -void DescribeGroupedVulRequest::setCreateTsEnd(long createTsEnd) { - createTsEnd_ = createTsEnd; - setParameter(std::string("CreateTsEnd"), std::to_string(createTsEnd)); -} - -std::string DescribeGroupedVulRequest::getNecessity() const { - return necessity_; -} - -void DescribeGroupedVulRequest::setNecessity(const std::string &necessity) { - necessity_ = necessity; - setParameter(std::string("Necessity"), necessity); -} - -std::string DescribeGroupedVulRequest::getUuids() const { - return uuids_; -} - -void DescribeGroupedVulRequest::setUuids(const std::string &uuids) { - uuids_ = uuids; - setParameter(std::string("Uuids"), uuids); -} - -std::string DescribeGroupedVulRequest::getStatusList() const { - return statusList_; -} - -void DescribeGroupedVulRequest::setStatusList(const std::string &statusList) { - statusList_ = statusList; - setParameter(std::string("StatusList"), statusList); -} - -std::string DescribeGroupedVulRequest::getTargetType() const { - return targetType_; -} - -void DescribeGroupedVulRequest::setTargetType(const std::string &targetType) { - targetType_ = targetType; - setParameter(std::string("TargetType"), targetType); -} - -std::string DescribeGroupedVulRequest::getCveId() const { - return cveId_; -} - -void DescribeGroupedVulRequest::setCveId(const std::string &cveId) { - cveId_ = cveId; - setParameter(std::string("CveId"), cveId); -} - std::string DescribeGroupedVulRequest::getContainerFieldValue() const { return containerFieldValue_; } @@ -259,6 +178,33 @@ void DescribeGroupedVulRequest::setDirection(const std::string &direction) { setParameter(std::string("Direction"), direction); } +std::string DescribeGroupedVulRequest::getLevel() const { + return level_; +} + +void DescribeGroupedVulRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); +} + +std::string DescribeGroupedVulRequest::getGroupId() const { + return groupId_; +} + +void DescribeGroupedVulRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string DescribeGroupedVulRequest::getOrderBy() const { + return orderBy_; +} + +void DescribeGroupedVulRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + std::string DescribeGroupedVulRequest::getDealed() const { return dealed_; } @@ -286,6 +232,24 @@ void DescribeGroupedVulRequest::setClusterId(const std::string &clusterId) { setParameter(std::string("ClusterId"), clusterId); } +long DescribeGroupedVulRequest::getPatchId() const { + return patchId_; +} + +void DescribeGroupedVulRequest::setPatchId(long patchId) { + patchId_ = patchId; + setParameter(std::string("PatchId"), std::to_string(patchId)); +} + +std::string DescribeGroupedVulRequest::getAliasName() const { + return aliasName_; +} + +void DescribeGroupedVulRequest::setAliasName(const std::string &aliasName) { + aliasName_ = aliasName; + setParameter(std::string("AliasName"), aliasName); +} + std::string DescribeGroupedVulRequest::getSearchTags() const { return searchTags_; } @@ -295,3 +259,39 @@ void DescribeGroupedVulRequest::setSearchTags(const std::string &searchTags) { setParameter(std::string("SearchTags"), searchTags); } +std::string DescribeGroupedVulRequest::getName() const { + return name_; +} + +void DescribeGroupedVulRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +long DescribeGroupedVulRequest::getCreateTsEnd() const { + return createTsEnd_; +} + +void DescribeGroupedVulRequest::setCreateTsEnd(long createTsEnd) { + createTsEnd_ = createTsEnd; + setParameter(std::string("CreateTsEnd"), std::to_string(createTsEnd)); +} + +std::string DescribeGroupedVulRequest::getNecessity() const { + return necessity_; +} + +void DescribeGroupedVulRequest::setNecessity(const std::string &necessity) { + necessity_ = necessity; + setParameter(std::string("Necessity"), necessity); +} + +std::string DescribeGroupedVulRequest::getUuids() const { + return uuids_; +} + +void DescribeGroupedVulRequest::setUuids(const std::string &uuids) { + uuids_ = uuids; + setParameter(std::string("Uuids"), uuids); +} + diff --git a/sas/src/model/DescribeImageFixTaskRequest.cc b/sas/src/model/DescribeImageFixTaskRequest.cc index 47a17f727..2a86fa9f6 100644 --- a/sas/src/model/DescribeImageFixTaskRequest.cc +++ b/sas/src/model/DescribeImageFixTaskRequest.cc @@ -25,6 +25,24 @@ DescribeImageFixTaskRequest::DescribeImageFixTaskRequest() DescribeImageFixTaskRequest::~DescribeImageFixTaskRequest() {} +long DescribeImageFixTaskRequest::getEndTime() const { + return endTime_; +} + +void DescribeImageFixTaskRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +int DescribeImageFixTaskRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeImageFixTaskRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + long DescribeImageFixTaskRequest::getStartTime() const { return startTime_; } @@ -52,24 +70,6 @@ void DescribeImageFixTaskRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -long DescribeImageFixTaskRequest::getEndTime() const { - return endTime_; -} - -void DescribeImageFixTaskRequest::setEndTime(long endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), std::to_string(endTime)); -} - -int DescribeImageFixTaskRequest::getCurrentPage() const { - return currentPage_; -} - -void DescribeImageFixTaskRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - std::string DescribeImageFixTaskRequest::getStatus() const { return status_; } diff --git a/sas/src/model/DescribeInstallCodesResult.cc b/sas/src/model/DescribeInstallCodesResult.cc index 187ad4781..9674fa161 100644 --- a/sas/src/model/DescribeInstallCodesResult.cc +++ b/sas/src/model/DescribeInstallCodesResult.cc @@ -61,6 +61,8 @@ void DescribeInstallCodesResult::parse(const std::string &payload) installCodesObject.tag = valueInstallCodesInstallCode["Tag"].asString(); if(!valueInstallCodesInstallCode["Vendor"].isNull()) installCodesObject.vendor = std::stoi(valueInstallCodesInstallCode["Vendor"].asString()); + if(!valueInstallCodesInstallCode["ProxyCluster"].isNull()) + installCodesObject.proxyCluster = valueInstallCodesInstallCode["ProxyCluster"].asString(); installCodes_.push_back(installCodesObject); } diff --git a/sas/src/model/DescribeInstanceStatisticsResult.cc b/sas/src/model/DescribeInstanceStatisticsResult.cc index dd522a4b4..ef8a30bdd 100644 --- a/sas/src/model/DescribeInstanceStatisticsResult.cc +++ b/sas/src/model/DescribeInstanceStatisticsResult.cc @@ -79,6 +79,8 @@ void DescribeInstanceStatisticsResult::parse(const std::string &payload) dataObject.agentlessVulSca = std::stoi(valueDataDataItem["AgentlessVulSca"].asString()); if(!valueDataDataItem["AgentlessBaseline"].isNull()) dataObject.agentlessBaseline = std::stoi(valueDataDataItem["AgentlessBaseline"].asString()); + if(!valueDataDataItem["CspmNum"].isNull()) + dataObject.cspmNum = std::stoi(valueDataDataItem["CspmNum"].asString()); data_.push_back(dataObject); } diff --git a/sas/src/model/DescribeRestoreJobsRequest.cc b/sas/src/model/DescribeRestoreJobsRequest.cc index 08929133c..287181352 100644 --- a/sas/src/model/DescribeRestoreJobsRequest.cc +++ b/sas/src/model/DescribeRestoreJobsRequest.cc @@ -34,6 +34,15 @@ void DescribeRestoreJobsRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +int DescribeRestoreJobsRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeRestoreJobsRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::string DescribeRestoreJobsRequest::getSourceIp() const { return sourceIp_; } @@ -61,15 +70,6 @@ void DescribeRestoreJobsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -int DescribeRestoreJobsRequest::getCurrentPage() const { - return currentPage_; -} - -void DescribeRestoreJobsRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - std::string DescribeRestoreJobsRequest::getStatus() const { return status_; } diff --git a/sas/src/model/DescribeRestorePlansRequest.cc b/sas/src/model/DescribeRestorePlansRequest.cc index d50e339c7..1b7ff19cd 100644 --- a/sas/src/model/DescribeRestorePlansRequest.cc +++ b/sas/src/model/DescribeRestorePlansRequest.cc @@ -34,24 +34,6 @@ void DescribeRestorePlansRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DescribeRestorePlansRequest::getSourceIp() const { - return sourceIp_; -} - -void DescribeRestorePlansRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -int DescribeRestorePlansRequest::getPageSize() const { - return pageSize_; -} - -void DescribeRestorePlansRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - int DescribeRestorePlansRequest::getCurrentPage() const { return currentPage_; } @@ -70,6 +52,24 @@ void DescribeRestorePlansRequest::setInstanceName(const std::string &instanceNam setParameter(std::string("InstanceName"), instanceName); } +std::string DescribeRestorePlansRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeRestorePlansRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +int DescribeRestorePlansRequest::getPageSize() const { + return pageSize_; +} + +void DescribeRestorePlansRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + std::string DescribeRestorePlansRequest::getStatus() const { return status_; } diff --git a/sas/src/model/DescribeRisksRequest.cc b/sas/src/model/DescribeRisksRequest.cc index 595d2e5a3..481897f4e 100644 --- a/sas/src/model/DescribeRisksRequest.cc +++ b/sas/src/model/DescribeRisksRequest.cc @@ -25,6 +25,15 @@ DescribeRisksRequest::DescribeRisksRequest() DescribeRisksRequest::~DescribeRisksRequest() {} +long DescribeRisksRequest::getRiskId() const { + return riskId_; +} + +void DescribeRisksRequest::setRiskId(long riskId) { + riskId_ = riskId; + setParameter(std::string("RiskId"), std::to_string(riskId)); +} + std::string DescribeRisksRequest::getRiskName() const { return riskName_; } @@ -52,12 +61,3 @@ void DescribeRisksRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } -long DescribeRisksRequest::getRiskId() const { - return riskId_; -} - -void DescribeRisksRequest::setRiskId(long riskId) { - riskId_ = riskId; - setParameter(std::string("RiskId"), std::to_string(riskId)); -} - diff --git a/sas/src/model/DescribeStrategyExecDetailRequest.cc b/sas/src/model/DescribeStrategyExecDetailRequest.cc index 31bc42202..95fe96160 100644 --- a/sas/src/model/DescribeStrategyExecDetailRequest.cc +++ b/sas/src/model/DescribeStrategyExecDetailRequest.cc @@ -25,6 +25,15 @@ DescribeStrategyExecDetailRequest::DescribeStrategyExecDetailRequest() DescribeStrategyExecDetailRequest::~DescribeStrategyExecDetailRequest() {} +int DescribeStrategyExecDetailRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeStrategyExecDetailRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::string DescribeStrategyExecDetailRequest::getSourceIp() const { return sourceIp_; } @@ -43,15 +52,6 @@ void DescribeStrategyExecDetailRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -int DescribeStrategyExecDetailRequest::getCurrentPage() const { - return currentPage_; -} - -void DescribeStrategyExecDetailRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - int DescribeStrategyExecDetailRequest::getStrategyId() const { return strategyId_; } diff --git a/sas/src/model/DescribeStrategyRequest.cc b/sas/src/model/DescribeStrategyRequest.cc index 216df20f6..62952ad5c 100644 --- a/sas/src/model/DescribeStrategyRequest.cc +++ b/sas/src/model/DescribeStrategyRequest.cc @@ -25,6 +25,15 @@ DescribeStrategyRequest::DescribeStrategyRequest() DescribeStrategyRequest::~DescribeStrategyRequest() {} +std::string DescribeStrategyRequest::getCustomType() const { + return customType_; +} + +void DescribeStrategyRequest::setCustomType(const std::string &customType) { + customType_ = customType; + setParameter(std::string("CustomType"), customType); +} + std::string DescribeStrategyRequest::getSourceIp() const { return sourceIp_; } @@ -34,6 +43,15 @@ void DescribeStrategyRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } +std::string DescribeStrategyRequest::getStrategyIds() const { + return strategyIds_; +} + +void DescribeStrategyRequest::setStrategyIds(const std::string &strategyIds) { + strategyIds_ = strategyIds; + setParameter(std::string("StrategyIds"), strategyIds); +} + std::string DescribeStrategyRequest::getLang() const { return lang_; } @@ -52,21 +70,3 @@ void DescribeStrategyRequest::setResourceDirectoryAccountId(const std::string &r setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); } -std::string DescribeStrategyRequest::getCustomType() const { - return customType_; -} - -void DescribeStrategyRequest::setCustomType(const std::string &customType) { - customType_ = customType; - setParameter(std::string("CustomType"), customType); -} - -std::string DescribeStrategyRequest::getStrategyIds() const { - return strategyIds_; -} - -void DescribeStrategyRequest::setStrategyIds(const std::string &strategyIds) { - strategyIds_ = strategyIds; - setParameter(std::string("StrategyIds"), strategyIds); -} - diff --git a/sas/src/model/DescribeStrategyTargetRequest.cc b/sas/src/model/DescribeStrategyTargetRequest.cc index 41ca1b730..9ef8e8729 100644 --- a/sas/src/model/DescribeStrategyTargetRequest.cc +++ b/sas/src/model/DescribeStrategyTargetRequest.cc @@ -43,15 +43,6 @@ void DescribeStrategyTargetRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } -std::string DescribeStrategyTargetRequest::getResourceDirectoryAccountId() const { - return resourceDirectoryAccountId_; -} - -void DescribeStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { - resourceDirectoryAccountId_ = resourceDirectoryAccountId; - setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); -} - std::string DescribeStrategyTargetRequest::getConfig() const { return config_; } @@ -61,3 +52,12 @@ void DescribeStrategyTargetRequest::setConfig(const std::string &config) { setParameter(std::string("Config"), config); } +std::string DescribeStrategyTargetRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); +} + diff --git a/sas/src/model/DescribeSuspEventDetailRequest.cc b/sas/src/model/DescribeSuspEventDetailRequest.cc index abed9d84e..ce8358263 100644 --- a/sas/src/model/DescribeSuspEventDetailRequest.cc +++ b/sas/src/model/DescribeSuspEventDetailRequest.cc @@ -25,6 +25,15 @@ DescribeSuspEventDetailRequest::DescribeSuspEventDetailRequest() DescribeSuspEventDetailRequest::~DescribeSuspEventDetailRequest() {} +int DescribeSuspEventDetailRequest::getSuspiciousEventId() const { + return suspiciousEventId_; +} + +void DescribeSuspEventDetailRequest::setSuspiciousEventId(int suspiciousEventId) { + suspiciousEventId_ = suspiciousEventId; + setParameter(std::string("SuspiciousEventId"), std::to_string(suspiciousEventId)); +} + std::string DescribeSuspEventDetailRequest::getSourceIp() const { return sourceIp_; } @@ -52,12 +61,3 @@ void DescribeSuspEventDetailRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } -int DescribeSuspEventDetailRequest::getSuspiciousEventId() const { - return suspiciousEventId_; -} - -void DescribeSuspEventDetailRequest::setSuspiciousEventId(int suspiciousEventId) { - suspiciousEventId_ = suspiciousEventId; - setParameter(std::string("SuspiciousEventId"), std::to_string(suspiciousEventId)); -} - diff --git a/sas/src/model/DescribeTargetRequest.cc b/sas/src/model/DescribeTargetRequest.cc index 2e8dd7da4..03f5f31ac 100644 --- a/sas/src/model/DescribeTargetRequest.cc +++ b/sas/src/model/DescribeTargetRequest.cc @@ -43,15 +43,6 @@ void DescribeTargetRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } -std::string DescribeTargetRequest::getResourceDirectoryAccountId() const { - return resourceDirectoryAccountId_; -} - -void DescribeTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { - resourceDirectoryAccountId_ = resourceDirectoryAccountId; - setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); -} - std::string DescribeTargetRequest::getConfig() const { return config_; } @@ -61,3 +52,12 @@ void DescribeTargetRequest::setConfig(const std::string &config) { setParameter(std::string("Config"), config); } +std::string DescribeTargetRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void DescribeTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); +} + diff --git a/sas/src/model/DescribeVulCheckTaskStatusDetailRequest.cc b/sas/src/model/DescribeVulCheckTaskStatusDetailRequest.cc index dad7cce89..ab1b524fe 100644 --- a/sas/src/model/DescribeVulCheckTaskStatusDetailRequest.cc +++ b/sas/src/model/DescribeVulCheckTaskStatusDetailRequest.cc @@ -25,6 +25,14 @@ DescribeVulCheckTaskStatusDetailRequest::DescribeVulCheckTaskStatusDetailRequest DescribeVulCheckTaskStatusDetailRequest::~DescribeVulCheckTaskStatusDetailRequest() {} +std::vector DescribeVulCheckTaskStatusDetailRequest::getTypes() const { + return types_; +} + +void DescribeVulCheckTaskStatusDetailRequest::setTypes(const std::vector &types) { + types_ = types; +} + std::vector DescribeVulCheckTaskStatusDetailRequest::getTaskIds() const { return taskIds_; } @@ -51,11 +59,3 @@ void DescribeVulCheckTaskStatusDetailRequest::setSourceIp(const std::string &sou setParameter(std::string("SourceIp"), sourceIp); } -std::vector DescribeVulCheckTaskStatusDetailRequest::getTypes() const { - return types_; -} - -void DescribeVulCheckTaskStatusDetailRequest::setTypes(const std::vector &types) { - types_ = types; -} - diff --git a/sas/src/model/DescribeVulListPageRequest.cc b/sas/src/model/DescribeVulListPageRequest.cc index 2fc480af1..ff94b769e 100644 --- a/sas/src/model/DescribeVulListPageRequest.cc +++ b/sas/src/model/DescribeVulListPageRequest.cc @@ -34,24 +34,6 @@ void DescribeVulListPageRequest::setCveId(const std::string &cveId) { setParameter(std::string("CveId"), cveId); } -std::string DescribeVulListPageRequest::getSourceIp() const { - return sourceIp_; -} - -void DescribeVulListPageRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -int DescribeVulListPageRequest::getPageSize() const { - return pageSize_; -} - -void DescribeVulListPageRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - int DescribeVulListPageRequest::getCurrentPage() const { return currentPage_; } @@ -61,6 +43,15 @@ void DescribeVulListPageRequest::setCurrentPage(int currentPage) { setParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +std::string DescribeVulListPageRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeVulListPageRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + std::string DescribeVulListPageRequest::getVulNameLike() const { return vulNameLike_; } @@ -70,3 +61,12 @@ void DescribeVulListPageRequest::setVulNameLike(const std::string &vulNameLike) setParameter(std::string("VulNameLike"), vulNameLike); } +int DescribeVulListPageRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVulListPageRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/sas/src/model/GetAppNetworkRequest.cc b/sas/src/model/GetAppNetworkRequest.cc new file mode 100644 index 000000000..5aeec7a83 --- /dev/null +++ b/sas/src/model/GetAppNetworkRequest.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::GetAppNetworkRequest; + +GetAppNetworkRequest::GetAppNetworkRequest() + : RpcServiceRequest("sas", "2018-12-03", "GetAppNetwork") { + setMethod(HttpRequest::Method::Get); +} + +GetAppNetworkRequest::~GetAppNetworkRequest() {} + +long GetAppNetworkRequest::getStartTime() const { + return startTime_; +} + +void GetAppNetworkRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +long GetAppNetworkRequest::getEndTime() const { + return endTime_; +} + +void GetAppNetworkRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string GetAppNetworkRequest::getClusterId() const { + return clusterId_; +} + +void GetAppNetworkRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/sas/src/model/GetAppNetworkResult.cc b/sas/src/model/GetAppNetworkResult.cc new file mode 100644 index 000000000..6ee402c7f --- /dev/null +++ b/sas/src/model/GetAppNetworkResult.cc @@ -0,0 +1,97 @@ +/* + * 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; + +GetAppNetworkResult::GetAppNetworkResult() : + ServiceResult() +{} + +GetAppNetworkResult::GetAppNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAppNetworkResult::~GetAppNetworkResult() +{} + +void GetAppNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto appNetworkNode = value["AppNetwork"]; + auto allNodeNode = appNetworkNode["Node"]["AppNode"]; + for (auto appNetworkNodeNodeAppNode : allNodeNode) + { + AppNetwork::AppNode appNodeObject; + if(!appNetworkNodeNodeAppNode["RiskLevel"].isNull()) + appNodeObject.riskLevel = appNetworkNodeNodeAppNode["RiskLevel"].asString(); + if(!appNetworkNodeNodeAppNode["Id"].isNull()) + appNodeObject.id = appNetworkNodeNodeAppNode["Id"].asString(); + if(!appNetworkNodeNodeAppNode["NamespaceId"].isNull()) + appNodeObject.namespaceId = appNetworkNodeNodeAppNode["NamespaceId"].asString(); + if(!appNetworkNodeNodeAppNode["Type"].isNull()) + appNodeObject.type = appNetworkNodeNodeAppNode["Type"].asString(); + if(!appNetworkNodeNodeAppNode["Name"].isNull()) + appNodeObject.name = appNetworkNodeNodeAppNode["Name"].asString(); + auto allContainerIds = value["ContainerIds"]["ContainerId"]; + for (auto value : allContainerIds) + appNodeObject.containerIds.push_back(value.asString()); + appNetwork_.node.push_back(appNodeObject); + } + auto allEdgeNode = appNetworkNode["Edge"]["BasicEdge"]; + for (auto appNetworkNodeEdgeBasicEdge : allEdgeNode) + { + AppNetwork::BasicEdge basicEdgeObject; + if(!appNetworkNodeEdgeBasicEdge["Id"].isNull()) + basicEdgeObject.id = appNetworkNodeEdgeBasicEdge["Id"].asString(); + if(!appNetworkNodeEdgeBasicEdge["SrcNodeId"].isNull()) + basicEdgeObject.srcNodeId = appNetworkNodeEdgeBasicEdge["SrcNodeId"].asString(); + if(!appNetworkNodeEdgeBasicEdge["SrcNodeType"].isNull()) + basicEdgeObject.srcNodeType = appNetworkNodeEdgeBasicEdge["SrcNodeType"].asString(); + if(!appNetworkNodeEdgeBasicEdge["DstNodeId"].isNull()) + basicEdgeObject.dstNodeId = appNetworkNodeEdgeBasicEdge["DstNodeId"].asString(); + if(!appNetworkNodeEdgeBasicEdge["DstNodeType"].isNull()) + basicEdgeObject.dstNodeType = appNetworkNodeEdgeBasicEdge["DstNodeType"].asString(); + if(!appNetworkNodeEdgeBasicEdge["Port"].isNull()) + basicEdgeObject.port = appNetworkNodeEdgeBasicEdge["Port"].asString(); + appNetwork_.edge.push_back(basicEdgeObject); + } + auto all_NamespaceNode = appNetworkNode["Namespace"]["NamespaceItem"]; + for (auto appNetworkNodeNamespaceNamespaceItem : all_NamespaceNode) + { + AppNetwork::NamespaceItem namespaceItemObject; + if(!appNetworkNodeNamespaceNamespaceItem["Id"].isNull()) + namespaceItemObject.id = appNetworkNodeNamespaceNamespaceItem["Id"].asString(); + if(!appNetworkNodeNamespaceNamespaceItem["Name"].isNull()) + namespaceItemObject.name = appNetworkNodeNamespaceNamespaceItem["Name"].asString(); + appNetwork_._namespace.push_back(namespaceItemObject); + } + +} + +GetAppNetworkResult::AppNetwork GetAppNetworkResult::getAppNetwork()const +{ + return appNetwork_; +} + diff --git a/sas/src/model/GetCheckConfigRequest.cc b/sas/src/model/GetCheckConfigRequest.cc index 2816bc0a9..2293e0ea8 100644 --- a/sas/src/model/GetCheckConfigRequest.cc +++ b/sas/src/model/GetCheckConfigRequest.cc @@ -25,6 +25,15 @@ GetCheckConfigRequest::GetCheckConfigRequest() GetCheckConfigRequest::~GetCheckConfigRequest() {} +int GetCheckConfigRequest::getCurrentPage() const { + return currentPage_; +} + +void GetCheckConfigRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::string GetCheckConfigRequest::getSourceIp() const { return sourceIp_; } @@ -34,6 +43,15 @@ void GetCheckConfigRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } +std::string GetCheckConfigRequest::getCheckGroupId() const { + return checkGroupId_; +} + +void GetCheckConfigRequest::setCheckGroupId(const std::string &checkGroupId) { + checkGroupId_ = checkGroupId; + setParameter(std::string("CheckGroupId"), checkGroupId); +} + int GetCheckConfigRequest::getPageSize() const { return pageSize_; } @@ -61,21 +79,3 @@ void GetCheckConfigRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } -int GetCheckConfigRequest::getCurrentPage() const { - return currentPage_; -} - -void GetCheckConfigRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - -std::string GetCheckConfigRequest::getCheckGroupId() const { - return checkGroupId_; -} - -void GetCheckConfigRequest::setCheckGroupId(const std::string &checkGroupId) { - checkGroupId_ = checkGroupId; - setParameter(std::string("CheckGroupId"), checkGroupId); -} - diff --git a/sas/src/model/GetCheckRiskStatisticsRequest.cc b/sas/src/model/GetCheckRiskStatisticsRequest.cc index 53878fb10..13fb7eb40 100644 --- a/sas/src/model/GetCheckRiskStatisticsRequest.cc +++ b/sas/src/model/GetCheckRiskStatisticsRequest.cc @@ -25,6 +25,15 @@ GetCheckRiskStatisticsRequest::GetCheckRiskStatisticsRequest() GetCheckRiskStatisticsRequest::~GetCheckRiskStatisticsRequest() {} +int GetCheckRiskStatisticsRequest::getCurrentPage() const { + return currentPage_; +} + +void GetCheckRiskStatisticsRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + int GetCheckRiskStatisticsRequest::getPageSize() const { return pageSize_; } @@ -43,12 +52,3 @@ void GetCheckRiskStatisticsRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } -int GetCheckRiskStatisticsRequest::getCurrentPage() const { - return currentPage_; -} - -void GetCheckRiskStatisticsRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - diff --git a/sas/src/model/GetCloudAssetCriteriaRequest.cc b/sas/src/model/GetCloudAssetCriteriaRequest.cc new file mode 100644 index 000000000..658f04e24 --- /dev/null +++ b/sas/src/model/GetCloudAssetCriteriaRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sas::Model::GetCloudAssetCriteriaRequest; + +GetCloudAssetCriteriaRequest::GetCloudAssetCriteriaRequest() + : RpcServiceRequest("sas", "2018-12-03", "GetCloudAssetCriteria") { + setMethod(HttpRequest::Method::Post); +} + +GetCloudAssetCriteriaRequest::~GetCloudAssetCriteriaRequest() {} + +std::vector GetCloudAssetCriteriaRequest::getCloudAssetTypes() const { + return cloudAssetTypes_; +} + +void GetCloudAssetCriteriaRequest::setCloudAssetTypes(const std::vector &cloudAssetTypes) { + cloudAssetTypes_ = cloudAssetTypes; + for(int dep1 = 0; dep1 != cloudAssetTypes.size(); dep1++) { + auto cloudAssetTypesObj = cloudAssetTypes.at(dep1); + std::string cloudAssetTypesObjStr = std::string("CloudAssetTypes") + "." + std::to_string(dep1 + 1); + setParameter(cloudAssetTypesObjStr + ".AssetSubType", std::to_string(cloudAssetTypesObj.assetSubType)); + setParameter(cloudAssetTypesObjStr + ".AssetType", std::to_string(cloudAssetTypesObj.assetType)); + } +} + +std::string GetCloudAssetCriteriaRequest::getSourceIp() const { + return sourceIp_; +} + +void GetCloudAssetCriteriaRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string GetCloudAssetCriteriaRequest::getValue() const { + return value_; +} + +void GetCloudAssetCriteriaRequest::setValue(const std::string &value) { + value_ = value; + setParameter(std::string("Value"), value); +} + diff --git a/sas/src/model/GetCloudAssetCriteriaResult.cc b/sas/src/model/GetCloudAssetCriteriaResult.cc new file mode 100644 index 000000000..758f2d222 --- /dev/null +++ b/sas/src/model/GetCloudAssetCriteriaResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +GetCloudAssetCriteriaResult::GetCloudAssetCriteriaResult() : + ServiceResult() +{} + +GetCloudAssetCriteriaResult::GetCloudAssetCriteriaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCloudAssetCriteriaResult::~GetCloudAssetCriteriaResult() +{} + +void GetCloudAssetCriteriaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCriteriaListNode = value["CriteriaList"]["Criteria"]; + for (auto valueCriteriaListCriteria : allCriteriaListNode) + { + Criteria criteriaListObject; + if(!valueCriteriaListCriteria["Type"].isNull()) + criteriaListObject.type = valueCriteriaListCriteria["Type"].asString(); + if(!valueCriteriaListCriteria["Name"].isNull()) + criteriaListObject.name = valueCriteriaListCriteria["Name"].asString(); + if(!valueCriteriaListCriteria["Values"].isNull()) + criteriaListObject.values = valueCriteriaListCriteria["Values"].asString(); + if(!valueCriteriaListCriteria["MultiValues"].isNull()) + criteriaListObject.multiValues = valueCriteriaListCriteria["MultiValues"].asString(); + criteriaList_.push_back(criteriaListObject); + } + +} + +std::vector GetCloudAssetCriteriaResult::getCriteriaList()const +{ + return criteriaList_; +} + diff --git a/sas/src/model/GetClusterRuleSummaryRequest.cc b/sas/src/model/GetClusterRuleSummaryRequest.cc new file mode 100644 index 000000000..a11657cf2 --- /dev/null +++ b/sas/src/model/GetClusterRuleSummaryRequest.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::GetClusterRuleSummaryRequest; + +GetClusterRuleSummaryRequest::GetClusterRuleSummaryRequest() + : RpcServiceRequest("sas", "2018-12-03", "GetClusterRuleSummary") { + setMethod(HttpRequest::Method::Post); +} + +GetClusterRuleSummaryRequest::~GetClusterRuleSummaryRequest() {} + +std::string GetClusterRuleSummaryRequest::getClusterId() const { + return clusterId_; +} + +void GetClusterRuleSummaryRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetClusterRuleSummaryRequest::getSourceIp() const { + return sourceIp_; +} + +void GetClusterRuleSummaryRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/sas/src/model/GetClusterRuleSummaryResult.cc b/sas/src/model/GetClusterRuleSummaryResult.cc new file mode 100644 index 000000000..d3a9f6bbf --- /dev/null +++ b/sas/src/model/GetClusterRuleSummaryResult.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +GetClusterRuleSummaryResult::GetClusterRuleSummaryResult() : + ServiceResult() +{} + +GetClusterRuleSummaryResult::GetClusterRuleSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetClusterRuleSummaryResult::~GetClusterRuleSummaryResult() +{} + +void GetClusterRuleSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto clusterRuleSummaryNode = value["ClusterRuleSummary"]; + if(!clusterRuleSummaryNode["InterceptionSwitch"].isNull()) + clusterRuleSummary_.interceptionSwitch = std::stoi(clusterRuleSummaryNode["InterceptionSwitch"].asString()); + if(!clusterRuleSummaryNode["CloseRuleCount"].isNull()) + clusterRuleSummary_.closeRuleCount = std::stoi(clusterRuleSummaryNode["CloseRuleCount"].asString()); + if(!clusterRuleSummaryNode["InterceptionType"].isNull()) + clusterRuleSummary_.interceptionType = std::stoi(clusterRuleSummaryNode["InterceptionType"].asString()); + if(!clusterRuleSummaryNode["RuleCount"].isNull()) + clusterRuleSummary_.ruleCount = std::stoi(clusterRuleSummaryNode["RuleCount"].asString()); + if(!clusterRuleSummaryNode["OpenRuleCount"].isNull()) + clusterRuleSummary_.openRuleCount = std::stoi(clusterRuleSummaryNode["OpenRuleCount"].asString()); + if(!clusterRuleSummaryNode["SuggestRuleCount"].isNull()) + clusterRuleSummary_.suggestRuleCount = std::stoi(clusterRuleSummaryNode["SuggestRuleCount"].asString()); + if(!clusterRuleSummaryNode["InterceptionCount7Day"].isNull()) + clusterRuleSummary_.interceptionCount7Day = std::stol(clusterRuleSummaryNode["InterceptionCount7Day"].asString()); + +} + +GetClusterRuleSummaryResult::ClusterRuleSummary GetClusterRuleSummaryResult::getClusterRuleSummary()const +{ + return clusterRuleSummary_; +} + diff --git a/sas/src/model/GetInterceptionRuleDetailRequest.cc b/sas/src/model/GetInterceptionRuleDetailRequest.cc new file mode 100644 index 000000000..63531fbf2 --- /dev/null +++ b/sas/src/model/GetInterceptionRuleDetailRequest.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::GetInterceptionRuleDetailRequest; + +GetInterceptionRuleDetailRequest::GetInterceptionRuleDetailRequest() + : RpcServiceRequest("sas", "2018-12-03", "GetInterceptionRuleDetail") { + setMethod(HttpRequest::Method::Post); +} + +GetInterceptionRuleDetailRequest::~GetInterceptionRuleDetailRequest() {} + +std::string GetInterceptionRuleDetailRequest::getClusterId() const { + return clusterId_; +} + +void GetInterceptionRuleDetailRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetInterceptionRuleDetailRequest::getSourceIp() const { + return sourceIp_; +} + +void GetInterceptionRuleDetailRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string GetInterceptionRuleDetailRequest::getRuleId() const { + return ruleId_; +} + +void GetInterceptionRuleDetailRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/sas/src/model/GetInterceptionRuleDetailResult.cc b/sas/src/model/GetInterceptionRuleDetailResult.cc new file mode 100644 index 000000000..ee64a45a8 --- /dev/null +++ b/sas/src/model/GetInterceptionRuleDetailResult.cc @@ -0,0 +1,103 @@ +/* + * 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; + +GetInterceptionRuleDetailResult::GetInterceptionRuleDetailResult() : + ServiceResult() +{} + +GetInterceptionRuleDetailResult::GetInterceptionRuleDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetInterceptionRuleDetailResult::~GetInterceptionRuleDetailResult() +{} + +void GetInterceptionRuleDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto interceptionRuleDetailNode = value["InterceptionRuleDetail"]; + if(!interceptionRuleDetailNode["RuleType"].isNull()) + interceptionRuleDetail_.ruleType = interceptionRuleDetailNode["RuleType"].asString(); + if(!interceptionRuleDetailNode["RuleSwitch"].isNull()) + interceptionRuleDetail_.ruleSwitch = std::stoi(interceptionRuleDetailNode["RuleSwitch"].asString()); + if(!interceptionRuleDetailNode["RuleId"].isNull()) + interceptionRuleDetail_.ruleId = std::stol(interceptionRuleDetailNode["RuleId"].asString()); + if(!interceptionRuleDetailNode["RuleName"].isNull()) + interceptionRuleDetail_.ruleName = interceptionRuleDetailNode["RuleName"].asString(); + if(!interceptionRuleDetailNode["InterceptType"].isNull()) + interceptionRuleDetail_.interceptType = std::stol(interceptionRuleDetailNode["InterceptType"].asString()); + if(!interceptionRuleDetailNode["OrderIndex"].isNull()) + interceptionRuleDetail_.orderIndex = std::stol(interceptionRuleDetailNode["OrderIndex"].asString()); + auto srcTargetNode = interceptionRuleDetailNode["SrcTarget"]; + if(!srcTargetNode["AppName"].isNull()) + interceptionRuleDetail_.srcTarget.appName = srcTargetNode["AppName"].asString(); + if(!srcTargetNode["RuleType"].isNull()) + interceptionRuleDetail_.srcTarget.ruleType = srcTargetNode["RuleType"].asString(); + if(!srcTargetNode["TargetId"].isNull()) + interceptionRuleDetail_.srcTarget.targetId = std::stoi(srcTargetNode["TargetId"].asString()); + if(!srcTargetNode["TargetName"].isNull()) + interceptionRuleDetail_.srcTarget.targetName = srcTargetNode["TargetName"].asString(); + if(!srcTargetNode["Namespace"].isNull()) + interceptionRuleDetail_.srcTarget._namespace = srcTargetNode["Namespace"].asString(); + if(!srcTargetNode["TargetType"].isNull()) + interceptionRuleDetail_.srcTarget.targetType = srcTargetNode["TargetType"].asString(); + auto allImageList = srcTargetNode["ImageList"]["image"]; + for (auto value : allImageList) + interceptionRuleDetail_.srcTarget.imageList.push_back(value.asString()); + auto allTagList = srcTargetNode["TagList"]["tag"]; + for (auto value : allTagList) + interceptionRuleDetail_.srcTarget.tagList.push_back(value.asString()); + auto dstTargetNode = interceptionRuleDetailNode["DstTarget"]; + if(!dstTargetNode["AppName"].isNull()) + interceptionRuleDetail_.dstTarget.appName = dstTargetNode["AppName"].asString(); + if(!dstTargetNode["RuleType"].isNull()) + interceptionRuleDetail_.dstTarget.ruleType = dstTargetNode["RuleType"].asString(); + if(!dstTargetNode["TargetId"].isNull()) + interceptionRuleDetail_.dstTarget.targetId = std::stoi(dstTargetNode["TargetId"].asString()); + if(!dstTargetNode["TargetName"].isNull()) + interceptionRuleDetail_.dstTarget.targetName = dstTargetNode["TargetName"].asString(); + if(!dstTargetNode["Namespace"].isNull()) + interceptionRuleDetail_.dstTarget._namespace = dstTargetNode["Namespace"].asString(); + if(!dstTargetNode["TargetType"].isNull()) + interceptionRuleDetail_.dstTarget.targetType = dstTargetNode["TargetType"].asString(); + auto allPorts = dstTargetNode["Ports"]["port"]; + for (auto value : allPorts) + interceptionRuleDetail_.dstTarget.ports.push_back(value.asString()); + auto allImageList1 = dstTargetNode["ImageList"]["image"]; + for (auto value : allImageList1) + interceptionRuleDetail_.dstTarget.imageList1.push_back(value.asString()); + auto allTagList2 = dstTargetNode["TagList"]["tag"]; + for (auto value : allTagList2) + interceptionRuleDetail_.dstTarget.tagList2.push_back(value.asString()); + +} + +GetInterceptionRuleDetailResult::InterceptionRuleDetail GetInterceptionRuleDetailResult::getInterceptionRuleDetail()const +{ + return interceptionRuleDetail_; +} + diff --git a/sas/src/model/GetModuleConfigRequest.cc b/sas/src/model/GetModuleConfigRequest.cc index 4ef04ff8c..bf2d8c98d 100644 --- a/sas/src/model/GetModuleConfigRequest.cc +++ b/sas/src/model/GetModuleConfigRequest.cc @@ -25,6 +25,15 @@ GetModuleConfigRequest::GetModuleConfigRequest() GetModuleConfigRequest::~GetModuleConfigRequest() {} +std::string GetModuleConfigRequest::getCurrentPage() const { + return currentPage_; +} + +void GetModuleConfigRequest::setCurrentPage(const std::string ¤tPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), currentPage); +} + std::string GetModuleConfigRequest::getSourceIp() const { return sourceIp_; } @@ -52,12 +61,3 @@ void GetModuleConfigRequest::setResourceDirectoryAccountId(const std::string &re setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); } -std::string GetModuleConfigRequest::getCurrentPage() const { - return currentPage_; -} - -void GetModuleConfigRequest::setCurrentPage(const std::string ¤tPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), currentPage); -} - diff --git a/sas/src/model/IgnoreCheckItemsRequest.cc b/sas/src/model/IgnoreCheckItemsRequest.cc index f9b3c0799..31828950e 100644 --- a/sas/src/model/IgnoreCheckItemsRequest.cc +++ b/sas/src/model/IgnoreCheckItemsRequest.cc @@ -34,6 +34,20 @@ void IgnoreCheckItemsRequest::setReason(const std::string &reason) { setParameter(std::string("Reason"), reason); } +std::vector IgnoreCheckItemsRequest::getCheckAndRiskTypeList() const { + return checkAndRiskTypeList_; +} + +void IgnoreCheckItemsRequest::setCheckAndRiskTypeList(const std::vector &checkAndRiskTypeList) { + checkAndRiskTypeList_ = checkAndRiskTypeList; + for(int dep1 = 0; dep1 != checkAndRiskTypeList.size(); dep1++) { + auto checkAndRiskTypeListObj = checkAndRiskTypeList.at(dep1); + std::string checkAndRiskTypeListObjStr = std::string("CheckAndRiskTypeList") + "." + std::to_string(dep1 + 1); + setParameter(checkAndRiskTypeListObjStr + ".RiskType", checkAndRiskTypeListObj.riskType); + setParameter(checkAndRiskTypeListObjStr + ".CheckId", std::to_string(checkAndRiskTypeListObj.checkId)); + } +} + int IgnoreCheckItemsRequest::getType() const { return type_; } @@ -60,17 +74,3 @@ void IgnoreCheckItemsRequest::setLang(const std::string &lang) { setParameter(std::string("Lang"), lang); } -std::vector IgnoreCheckItemsRequest::getCheckAndRiskTypeList() const { - return checkAndRiskTypeList_; -} - -void IgnoreCheckItemsRequest::setCheckAndRiskTypeList(const std::vector &checkAndRiskTypeList) { - checkAndRiskTypeList_ = checkAndRiskTypeList; - for(int dep1 = 0; dep1 != checkAndRiskTypeList.size(); dep1++) { - auto checkAndRiskTypeListObj = checkAndRiskTypeList.at(dep1); - std::string checkAndRiskTypeListObjStr = std::string("CheckAndRiskTypeList") + "." + std::to_string(dep1 + 1); - setParameter(checkAndRiskTypeListObjStr + ".RiskType", checkAndRiskTypeListObj.riskType); - setParameter(checkAndRiskTypeListObjStr + ".CheckId", std::to_string(checkAndRiskTypeListObj.checkId)); - } -} - diff --git a/sas/src/model/InstallBackupClientRequest.cc b/sas/src/model/InstallBackupClientRequest.cc index 3a6e3c8e4..8bdf846fb 100644 --- a/sas/src/model/InstallBackupClientRequest.cc +++ b/sas/src/model/InstallBackupClientRequest.cc @@ -34,6 +34,15 @@ void InstallBackupClientRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string InstallBackupClientRequest::getPolicyVersion() const { + return policyVersion_; +} + +void InstallBackupClientRequest::setPolicyVersion(const std::string &policyVersion) { + policyVersion_ = policyVersion; + setParameter(std::string("PolicyVersion"), policyVersion); +} + std::string InstallBackupClientRequest::getUuid() const { return uuid_; } @@ -60,12 +69,3 @@ void InstallBackupClientRequest::setUuidList(const std::vector &uui uuidList_ = uuidList; } -std::string InstallBackupClientRequest::getPolicyVersion() const { - return policyVersion_; -} - -void InstallBackupClientRequest::setPolicyVersion(const std::string &policyVersion) { - policyVersion_ = policyVersion; - setParameter(std::string("PolicyVersion"), policyVersion); -} - diff --git a/sas/src/model/InstallPmAgentRequest.cc b/sas/src/model/InstallPmAgentRequest.cc new file mode 100644 index 000000000..1520323be --- /dev/null +++ b/sas/src/model/InstallPmAgentRequest.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::InstallPmAgentRequest; + +InstallPmAgentRequest::InstallPmAgentRequest() + : RpcServiceRequest("sas", "2018-12-03", "InstallPmAgent") { + setMethod(HttpRequest::Method::Post); +} + +InstallPmAgentRequest::~InstallPmAgentRequest() {} + +std::string InstallPmAgentRequest::getType() const { + return type_; +} + +void InstallPmAgentRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string InstallPmAgentRequest::getSourceIp() const { + return sourceIp_; +} + +void InstallPmAgentRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string InstallPmAgentRequest::getLang() const { + return lang_; +} + +void InstallPmAgentRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + +std::string InstallPmAgentRequest::getUuids() const { + return uuids_; +} + +void InstallPmAgentRequest::setUuids(const std::string &uuids) { + uuids_ = uuids; + setParameter(std::string("Uuids"), uuids); +} + diff --git a/sas/src/model/InstallPmAgentResult.cc b/sas/src/model/InstallPmAgentResult.cc new file mode 100644 index 000000000..6d5c8a52d --- /dev/null +++ b/sas/src/model/InstallPmAgentResult.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; + +InstallPmAgentResult::InstallPmAgentResult() : + ServiceResult() +{} + +InstallPmAgentResult::InstallPmAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InstallPmAgentResult::~InstallPmAgentResult() +{} + +void InstallPmAgentResult::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/ListCheckStandardRequest.cc b/sas/src/model/ListCheckStandardRequest.cc index 726116c3a..ae5ea9ac3 100644 --- a/sas/src/model/ListCheckStandardRequest.cc +++ b/sas/src/model/ListCheckStandardRequest.cc @@ -50,6 +50,14 @@ void ListCheckStandardRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } +std::vector ListCheckStandardRequest::getInstanceIds() const { + return instanceIds_; +} + +void ListCheckStandardRequest::setInstanceIds(const std::vector &instanceIds) { + instanceIds_ = instanceIds; +} + std::string ListCheckStandardRequest::getLang() const { return lang_; } @@ -67,11 +75,3 @@ void ListCheckStandardRequest::setVendors(const std::vector &vendor vendors_ = vendors; } -std::vector ListCheckStandardRequest::getInstanceIds() const { - return instanceIds_; -} - -void ListCheckStandardRequest::setInstanceIds(const std::vector &instanceIds) { - instanceIds_ = instanceIds; -} - diff --git a/sas/src/model/ListCloudAssetInstancesRequest.cc b/sas/src/model/ListCloudAssetInstancesRequest.cc new file mode 100644 index 000000000..5803deee9 --- /dev/null +++ b/sas/src/model/ListCloudAssetInstancesRequest.cc @@ -0,0 +1,95 @@ +/* + * 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::ListCloudAssetInstancesRequest; + +ListCloudAssetInstancesRequest::ListCloudAssetInstancesRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListCloudAssetInstances") { + setMethod(HttpRequest::Method::Post); +} + +ListCloudAssetInstancesRequest::~ListCloudAssetInstancesRequest() {} + +std::string ListCloudAssetInstancesRequest::getCriteria() const { + return criteria_; +} + +void ListCloudAssetInstancesRequest::setCriteria(const std::string &criteria) { + criteria_ = criteria; + setParameter(std::string("Criteria"), criteria); +} + +std::string ListCloudAssetInstancesRequest::getSourceIp() const { + return sourceIp_; +} + +void ListCloudAssetInstancesRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListCloudAssetInstancesRequest::getRegionId() const { + return regionId_; +} + +void ListCloudAssetInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListCloudAssetInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListCloudAssetInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListCloudAssetInstancesRequest::getLogicalExp() const { + return logicalExp_; +} + +void ListCloudAssetInstancesRequest::setLogicalExp(const std::string &logicalExp) { + logicalExp_ = logicalExp; + setParameter(std::string("LogicalExp"), logicalExp); +} + +std::vector ListCloudAssetInstancesRequest::getCloudAssetTypes() const { + return cloudAssetTypes_; +} + +void ListCloudAssetInstancesRequest::setCloudAssetTypes(const std::vector &cloudAssetTypes) { + cloudAssetTypes_ = cloudAssetTypes; + for(int dep1 = 0; dep1 != cloudAssetTypes.size(); dep1++) { + auto cloudAssetTypesObj = cloudAssetTypes.at(dep1); + std::string cloudAssetTypesObjStr = std::string("CloudAssetTypes") + "." + std::to_string(dep1 + 1); + setParameter(cloudAssetTypesObjStr + ".AssetSubType", std::to_string(cloudAssetTypesObj.assetSubType)); + setParameter(cloudAssetTypesObjStr + ".AssetType", std::to_string(cloudAssetTypesObj.assetType)); + } +} + +int ListCloudAssetInstancesRequest::getCurrentPage() const { + return currentPage_; +} + +void ListCloudAssetInstancesRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + diff --git a/sas/src/model/ListCloudAssetInstancesResult.cc b/sas/src/model/ListCloudAssetInstancesResult.cc new file mode 100644 index 000000000..de4791331 --- /dev/null +++ b/sas/src/model/ListCloudAssetInstancesResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListCloudAssetInstancesResult::ListCloudAssetInstancesResult() : + ServiceResult() +{} + +ListCloudAssetInstancesResult::ListCloudAssetInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCloudAssetInstancesResult::~ListCloudAssetInstancesResult() +{} + +void ListCloudAssetInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstancesNode = value["Instances"]["InstancesItem"]; + for (auto valueInstancesInstancesItem : allInstancesNode) + { + InstancesItem instancesObject; + if(!valueInstancesInstancesItem["RegionId"].isNull()) + instancesObject.regionId = valueInstancesInstancesItem["RegionId"].asString(); + if(!valueInstancesInstancesItem["Vendor"].isNull()) + instancesObject.vendor = std::stoi(valueInstancesInstancesItem["Vendor"].asString()); + if(!valueInstancesInstancesItem["AssetType"].isNull()) + instancesObject.assetType = std::stoi(valueInstancesInstancesItem["AssetType"].asString()); + if(!valueInstancesInstancesItem["AssetSubType"].isNull()) + instancesObject.assetSubType = valueInstancesInstancesItem["AssetSubType"].asString(); + if(!valueInstancesInstancesItem["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstancesItem["InstanceId"].asString(); + if(!valueInstancesInstancesItem["InstanceName"].isNull()) + instancesObject.instanceName = valueInstancesInstancesItem["InstanceName"].asString(); + if(!valueInstancesInstancesItem["CreatedTime"].isNull()) + instancesObject.createdTime = std::stol(valueInstancesInstancesItem["CreatedTime"].asString()); + if(!valueInstancesInstancesItem["InternetIp"].isNull()) + instancesObject.internetIp = valueInstancesInstancesItem["InternetIp"].asString(); + if(!valueInstancesInstancesItem["AlarmStatus"].isNull()) + instancesObject.alarmStatus = valueInstancesInstancesItem["AlarmStatus"].asString(); + if(!valueInstancesInstancesItem["RiskStatus"].isNull()) + instancesObject.riskStatus = valueInstancesInstancesItem["RiskStatus"].asString(); + if(!valueInstancesInstancesItem["AssetTypeName"].isNull()) + instancesObject.assetTypeName = valueInstancesInstancesItem["AssetTypeName"].asString(); + if(!valueInstancesInstancesItem["AssetSubTypeName"].isNull()) + instancesObject.assetSubTypeName = valueInstancesInstancesItem["AssetSubTypeName"].asString(); + if(!valueInstancesInstancesItem["SecurityInfo"].isNull()) + instancesObject.securityInfo = valueInstancesInstancesItem["SecurityInfo"].asString(); + instances_.push_back(instancesObject); + } + 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"; + +} + +std::vector ListCloudAssetInstancesResult::getInstances()const +{ + return instances_; +} + +ListCloudAssetInstancesResult::PageInfo ListCloudAssetInstancesResult::getPageInfo()const +{ + return pageInfo_; +} + +bool ListCloudAssetInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/sas/src/model/ListImageRegistryRegionRequest.cc b/sas/src/model/ListImageRegistryRegionRequest.cc new file mode 100644 index 000000000..d09f9fbc4 --- /dev/null +++ b/sas/src/model/ListImageRegistryRegionRequest.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::ListImageRegistryRegionRequest; + +ListImageRegistryRegionRequest::ListImageRegistryRegionRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListImageRegistryRegion") { + setMethod(HttpRequest::Method::Post); +} + +ListImageRegistryRegionRequest::~ListImageRegistryRegionRequest() {} + +std::string ListImageRegistryRegionRequest::getSourceIp() const { + return sourceIp_; +} + +void ListImageRegistryRegionRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/sas/src/model/ListImageRegistryRegionResult.cc b/sas/src/model/ListImageRegistryRegionResult.cc new file mode 100644 index 000000000..48c69645a --- /dev/null +++ b/sas/src/model/ListImageRegistryRegionResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListImageRegistryRegionResult::ListImageRegistryRegionResult() : + ServiceResult() +{} + +ListImageRegistryRegionResult::ListImageRegistryRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImageRegistryRegionResult::~ListImageRegistryRegionResult() +{} + +void ListImageRegistryRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["RegionName"].isNull()) + regionsObject.regionName = valueRegionsRegion["RegionName"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector ListImageRegistryRegionResult::getRegions()const +{ + return regions_; +} + diff --git a/sas/src/model/ListImageRiskRequest.cc b/sas/src/model/ListImageRiskRequest.cc new file mode 100644 index 000000000..4ee6408d0 --- /dev/null +++ b/sas/src/model/ListImageRiskRequest.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::ListImageRiskRequest; + +ListImageRiskRequest::ListImageRiskRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListImageRisk") { + setMethod(HttpRequest::Method::Post); +} + +ListImageRiskRequest::~ListImageRiskRequest() {} + +std::string ListImageRiskRequest::getAppName() const { + return appName_; +} + +void ListImageRiskRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string ListImageRiskRequest::getImageName() const { + return imageName_; +} + +void ListImageRiskRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + +int ListImageRiskRequest::getPageSize() const { + return pageSize_; +} + +void ListImageRiskRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int ListImageRiskRequest::getCurrentPage() const { + return currentPage_; +} + +void ListImageRiskRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListImageRiskRequest::getClusterId() const { + return clusterId_; +} + +void ListImageRiskRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListImageRiskRequest::get_Namespace() const { + return _namespace_; +} + +void ListImageRiskRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/sas/src/model/ListImageRiskResult.cc b/sas/src/model/ListImageRiskResult.cc new file mode 100644 index 000000000..358e4a193 --- /dev/null +++ b/sas/src/model/ListImageRiskResult.cc @@ -0,0 +1,114 @@ +/* + * 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; + +ListImageRiskResult::ListImageRiskResult() : + ServiceResult() +{} + +ListImageRiskResult::ListImageRiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImageRiskResult::~ListImageRiskResult() +{} + +void ListImageRiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImageRiskListNode = value["ImageRiskList"]["ImageRiskListItem"]; + for (auto valueImageRiskListImageRiskListItem : allImageRiskListNode) + { + ImageRiskListItem imageRiskListObject; + if(!valueImageRiskListImageRiskListItem["RepoNamespace"].isNull()) + imageRiskListObject.repoNamespace = valueImageRiskListImageRiskListItem["RepoNamespace"].asString(); + if(!valueImageRiskListImageRiskListItem["RepoName"].isNull()) + imageRiskListObject.repoName = valueImageRiskListImageRiskListItem["RepoName"].asString(); + if(!valueImageRiskListImageRiskListItem["Tag"].isNull()) + imageRiskListObject.tag = valueImageRiskListImageRiskListItem["Tag"].asString(); + if(!valueImageRiskListImageRiskListItem["RegionId"].isNull()) + imageRiskListObject.regionId = valueImageRiskListImageRiskListItem["RegionId"].asString(); + if(!valueImageRiskListImageRiskListItem["Digest"].isNull()) + imageRiskListObject.digest = valueImageRiskListImageRiskListItem["Digest"].asString(); + if(!valueImageRiskListImageRiskListItem["RepoId"].isNull()) + imageRiskListObject.repoId = valueImageRiskListImageRiskListItem["RepoId"].asString(); + if(!valueImageRiskListImageRiskListItem["RepoType"].isNull()) + imageRiskListObject.repoType = valueImageRiskListImageRiskListItem["RepoType"].asString(); + if(!valueImageRiskListImageRiskListItem["RegistryType"].isNull()) + imageRiskListObject.registryType = valueImageRiskListImageRiskListItem["RegistryType"].asString(); + if(!valueImageRiskListImageRiskListItem["Endpoints"].isNull()) + imageRiskListObject.endpoints = valueImageRiskListImageRiskListItem["Endpoints"].asString(); + if(!valueImageRiskListImageRiskListItem["ImageId"].isNull()) + imageRiskListObject.imageId = valueImageRiskListImageRiskListItem["ImageId"].asString(); + if(!valueImageRiskListImageRiskListItem["TagImmutable"].isNull()) + imageRiskListObject.tagImmutable = std::stoi(valueImageRiskListImageRiskListItem["TagImmutable"].asString()); + if(!valueImageRiskListImageRiskListItem["Statistics"].isNull()) + imageRiskListObject.statistics = valueImageRiskListImageRiskListItem["Statistics"].asString(); + if(!valueImageRiskListImageRiskListItem["ImageAccessType"].isNull()) + imageRiskListObject.imageAccessType = valueImageRiskListImageRiskListItem["ImageAccessType"].asString(); + if(!valueImageRiskListImageRiskListItem["Image"].isNull()) + imageRiskListObject.image = valueImageRiskListImageRiskListItem["Image"].asString(); + if(!valueImageRiskListImageRiskListItem["Uuid"].isNull()) + imageRiskListObject.uuid = valueImageRiskListImageRiskListItem["Uuid"].asString(); + if(!valueImageRiskListImageRiskListItem["InternetURLs"].isNull()) + imageRiskListObject.internetURLs = valueImageRiskListImageRiskListItem["InternetURLs"].asString(); + if(!valueImageRiskListImageRiskListItem["VpcURLs"].isNull()) + imageRiskListObject.vpcURLs = valueImageRiskListImageRiskListItem["VpcURLs"].asString(); + auto allEndPointListNode = valueImageRiskListImageRiskListItem["EndPointList"]["endpoint"]; + for (auto valueImageRiskListImageRiskListItemEndPointListendpoint : allEndPointListNode) + { + ImageRiskListItem::Endpoint endPointListObject; + if(!valueImageRiskListImageRiskListItemEndPointListendpoint["Type"].isNull()) + endPointListObject.type = valueImageRiskListImageRiskListItemEndPointListendpoint["Type"].asString(); + auto allDomains = value["Domains"]["domain"]; + for (auto value : allDomains) + endPointListObject.domains.push_back(value.asString()); + imageRiskListObject.endPointList.push_back(endPointListObject); + } + imageRiskList_.push_back(imageRiskListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["TotalCount"].isNull()) + pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); + if(!pageInfoNode["Count"].isNull()) + pageInfo_.count = std::stoi(pageInfoNode["Count"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + +} + +std::vector ListImageRiskResult::getImageRiskList()const +{ + return imageRiskList_; +} + +ListImageRiskResult::PageInfo ListImageRiskResult::getPageInfo()const +{ + return pageInfo_; +} + diff --git a/sas/src/model/ListInstanceCatalogRequest.cc b/sas/src/model/ListInstanceCatalogRequest.cc new file mode 100644 index 000000000..b4436d9ac --- /dev/null +++ b/sas/src/model/ListInstanceCatalogRequest.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::ListInstanceCatalogRequest; + +ListInstanceCatalogRequest::ListInstanceCatalogRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListInstanceCatalog") { + setMethod(HttpRequest::Method::Post); +} + +ListInstanceCatalogRequest::~ListInstanceCatalogRequest() {} + +std::string ListInstanceCatalogRequest::getSourceIp() const { + return sourceIp_; +} + +void ListInstanceCatalogRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListInstanceCatalogRequest::getLang() const { + return lang_; +} + +void ListInstanceCatalogRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sas/src/model/ListInstanceCatalogResult.cc b/sas/src/model/ListInstanceCatalogResult.cc new file mode 100644 index 000000000..5ea70de7c --- /dev/null +++ b/sas/src/model/ListInstanceCatalogResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListInstanceCatalogResult::ListInstanceCatalogResult() : + ServiceResult() +{} + +ListInstanceCatalogResult::ListInstanceCatalogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstanceCatalogResult::~ListInstanceCatalogResult() +{} + +void ListInstanceCatalogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVendorsNode = value["Vendors"]["VendorsItem"]; + for (auto valueVendorsVendorsItem : allVendorsNode) + { + VendorsItem vendorsObject; + if(!valueVendorsVendorsItem["Name"].isNull()) + vendorsObject.name = valueVendorsVendorsItem["Name"].asString(); + auto allInstanceTypesNode = valueVendorsVendorsItem["InstanceTypes"]["InstanceTypesItem"]; + for (auto valueVendorsVendorsItemInstanceTypesInstanceTypesItem : allInstanceTypesNode) + { + VendorsItem::InstanceTypesItem instanceTypesObject; + if(!valueVendorsVendorsItemInstanceTypesInstanceTypesItem["Name"].isNull()) + instanceTypesObject.name = valueVendorsVendorsItemInstanceTypesInstanceTypesItem["Name"].asString(); + auto allInstanceSubTypesNode = valueVendorsVendorsItemInstanceTypesInstanceTypesItem["InstanceSubTypes"]["InstanceSubTypesItem"]; + for (auto valueVendorsVendorsItemInstanceTypesInstanceTypesItemInstanceSubTypesInstanceSubTypesItem : allInstanceSubTypesNode) + { + VendorsItem::InstanceTypesItem::InstanceSubTypesItem instanceSubTypesObject; + if(!valueVendorsVendorsItemInstanceTypesInstanceTypesItemInstanceSubTypesInstanceSubTypesItem["Name"].isNull()) + instanceSubTypesObject.name = valueVendorsVendorsItemInstanceTypesInstanceTypesItemInstanceSubTypesInstanceSubTypesItem["Name"].asString(); + instanceTypesObject.instanceSubTypes.push_back(instanceSubTypesObject); + } + vendorsObject.instanceTypes.push_back(instanceTypesObject); + } + vendors_.push_back(vendorsObject); + } + +} + +std::vector ListInstanceCatalogResult::getVendors()const +{ + return vendors_; +} + diff --git a/sas/src/model/ListInterceptionHistoryRequest.cc b/sas/src/model/ListInterceptionHistoryRequest.cc new file mode 100644 index 000000000..a3e97ebfd --- /dev/null +++ b/sas/src/model/ListInterceptionHistoryRequest.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ListInterceptionHistoryRequest; + +ListInterceptionHistoryRequest::ListInterceptionHistoryRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListInterceptionHistory") { + setMethod(HttpRequest::Method::Post); +} + +ListInterceptionHistoryRequest::~ListInterceptionHistoryRequest() {} + +long ListInterceptionHistoryRequest::getStartTime() const { + return startTime_; +} + +void ListInterceptionHistoryRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string ListInterceptionHistoryRequest::getSourceIp() const { + return sourceIp_; +} + +void ListInterceptionHistoryRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +int ListInterceptionHistoryRequest::getPageSize() const { + return pageSize_; +} + +void ListInterceptionHistoryRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListInterceptionHistoryRequest::getHistoryName() const { + return historyName_; +} + +void ListInterceptionHistoryRequest::setHistoryName(const std::string &historyName) { + historyName_ = historyName; + setParameter(std::string("HistoryName"), historyName); +} + +std::vector ListInterceptionHistoryRequest::getInterceptionTypes() const { + return interceptionTypes_; +} + +void ListInterceptionHistoryRequest::setInterceptionTypes(const std::vector &interceptionTypes) { + interceptionTypes_ = interceptionTypes; +} + +long ListInterceptionHistoryRequest::getEndTime() const { + return endTime_; +} + +void ListInterceptionHistoryRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +int ListInterceptionHistoryRequest::getCurrentPage() const { + return currentPage_; +} + +void ListInterceptionHistoryRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListInterceptionHistoryRequest::getClusterId() const { + return clusterId_; +} + +void ListInterceptionHistoryRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/sas/src/model/ListInterceptionHistoryResult.cc b/sas/src/model/ListInterceptionHistoryResult.cc new file mode 100644 index 000000000..ab40d90c0 --- /dev/null +++ b/sas/src/model/ListInterceptionHistoryResult.cc @@ -0,0 +1,133 @@ +/* + * 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; + +ListInterceptionHistoryResult::ListInterceptionHistoryResult() : + ServiceResult() +{} + +ListInterceptionHistoryResult::ListInterceptionHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInterceptionHistoryResult::~ListInterceptionHistoryResult() +{} + +void ListInterceptionHistoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInterceptionHistoryListNode = value["InterceptionHistoryList"]["InterceptionHistory"]; + for (auto valueInterceptionHistoryListInterceptionHistory : allInterceptionHistoryListNode) + { + InterceptionHistory interceptionHistoryListObject; + if(!valueInterceptionHistoryListInterceptionHistory["SrcNamespace"].isNull()) + interceptionHistoryListObject.srcNamespace = valueInterceptionHistoryListInterceptionHistory["SrcNamespace"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["SrcRuleTargetName"].isNull()) + interceptionHistoryListObject.srcRuleTargetName = valueInterceptionHistoryListInterceptionHistory["SrcRuleTargetName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RiskLevel"].isNull()) + interceptionHistoryListObject.riskLevel = std::stol(valueInterceptionHistoryListInterceptionHistory["RiskLevel"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["Status"].isNull()) + interceptionHistoryListObject.status = std::stol(valueInterceptionHistoryListInterceptionHistory["Status"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["DstImageList"].isNull()) + interceptionHistoryListObject.dstImageList = valueInterceptionHistoryListInterceptionHistory["DstImageList"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["SrcTagList"].isNull()) + interceptionHistoryListObject.srcTagList = valueInterceptionHistoryListInterceptionHistory["SrcTagList"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["DstPort"].isNull()) + interceptionHistoryListObject.dstPort = std::stol(valueInterceptionHistoryListInterceptionHistory["DstPort"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["FirstTime"].isNull()) + interceptionHistoryListObject.firstTime = std::stol(valueInterceptionHistoryListInterceptionHistory["FirstTime"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["SrcAppName"].isNull()) + interceptionHistoryListObject.srcAppName = valueInterceptionHistoryListInterceptionHistory["SrcAppName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["SrcImageList"].isNull()) + interceptionHistoryListObject.srcImageList = valueInterceptionHistoryListInterceptionHistory["SrcImageList"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RuleId"].isNull()) + interceptionHistoryListObject.ruleId = std::stol(valueInterceptionHistoryListInterceptionHistory["RuleId"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["RuleName"].isNull()) + interceptionHistoryListObject.ruleName = valueInterceptionHistoryListInterceptionHistory["RuleName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["InterceptionName"].isNull()) + interceptionHistoryListObject.interceptionName = std::stol(valueInterceptionHistoryListInterceptionHistory["InterceptionName"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["DstNamespace"].isNull()) + interceptionHistoryListObject.dstNamespace = valueInterceptionHistoryListInterceptionHistory["DstNamespace"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["LastTime"].isNull()) + interceptionHistoryListObject.lastTime = std::stol(valueInterceptionHistoryListInterceptionHistory["LastTime"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["DstAppName"].isNull()) + interceptionHistoryListObject.dstAppName = valueInterceptionHistoryListInterceptionHistory["DstAppName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["DstRuleTargetName"].isNull()) + interceptionHistoryListObject.dstRuleTargetName = valueInterceptionHistoryListInterceptionHistory["DstRuleTargetName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["ClusterName"].isNull()) + interceptionHistoryListObject.clusterName = valueInterceptionHistoryListInterceptionHistory["ClusterName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["TryCount"].isNull()) + interceptionHistoryListObject.tryCount = std::stoi(valueInterceptionHistoryListInterceptionHistory["TryCount"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["DstTagList"].isNull()) + interceptionHistoryListObject.dstTagList = valueInterceptionHistoryListInterceptionHistory["DstTagList"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["InterceptionType"].isNull()) + interceptionHistoryListObject.interceptionType = std::stoi(valueInterceptionHistoryListInterceptionHistory["InterceptionType"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["RealInterceptionType"].isNull()) + interceptionHistoryListObject.realInterceptionType = std::stoi(valueInterceptionHistoryListInterceptionHistory["RealInterceptionType"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["Id"].isNull()) + interceptionHistoryListObject.id = std::stol(valueInterceptionHistoryListInterceptionHistory["Id"].asString()); + if(!valueInterceptionHistoryListInterceptionHistory["ClusterId"].isNull()) + interceptionHistoryListObject.clusterId = valueInterceptionHistoryListInterceptionHistory["ClusterId"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealSrcAppName"].isNull()) + interceptionHistoryListObject.realSrcAppName = valueInterceptionHistoryListInterceptionHistory["RealSrcAppName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealSrcPodName"].isNull()) + interceptionHistoryListObject.realSrcPodName = valueInterceptionHistoryListInterceptionHistory["RealSrcPodName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealDstAppName"].isNull()) + interceptionHistoryListObject.realDstAppName = valueInterceptionHistoryListInterceptionHistory["RealDstAppName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealDstPodName"].isNull()) + interceptionHistoryListObject.realDstPodName = valueInterceptionHistoryListInterceptionHistory["RealDstPodName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealDstNamespace"].isNull()) + interceptionHistoryListObject.realDstNamespace = valueInterceptionHistoryListInterceptionHistory["RealDstNamespace"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealDstImageName"].isNull()) + interceptionHistoryListObject.realDstImageName = valueInterceptionHistoryListInterceptionHistory["RealDstImageName"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealSrcNamespace"].isNull()) + interceptionHistoryListObject.realSrcNamespace = valueInterceptionHistoryListInterceptionHistory["RealSrcNamespace"].asString(); + if(!valueInterceptionHistoryListInterceptionHistory["RealSrcImageName"].isNull()) + interceptionHistoryListObject.realSrcImageName = valueInterceptionHistoryListInterceptionHistory["RealSrcImageName"].asString(); + interceptionHistoryList_.push_back(interceptionHistoryListObject); + } + 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()); + +} + +std::vector ListInterceptionHistoryResult::getInterceptionHistoryList()const +{ + return interceptionHistoryList_; +} + +ListInterceptionHistoryResult::PageInfo ListInterceptionHistoryResult::getPageInfo()const +{ + return pageInfo_; +} + diff --git a/sas/src/model/ListInterceptionTargetPageRequest.cc b/sas/src/model/ListInterceptionTargetPageRequest.cc new file mode 100644 index 000000000..063535f8d --- /dev/null +++ b/sas/src/model/ListInterceptionTargetPageRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ListInterceptionTargetPageRequest; + +ListInterceptionTargetPageRequest::ListInterceptionTargetPageRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListInterceptionTargetPage") { + setMethod(HttpRequest::Method::Post); +} + +ListInterceptionTargetPageRequest::~ListInterceptionTargetPageRequest() {} + +std::string ListInterceptionTargetPageRequest::getTargetType() const { + return targetType_; +} + +void ListInterceptionTargetPageRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::vector ListInterceptionTargetPageRequest::getImageList() const { + return imageList_; +} + +void ListInterceptionTargetPageRequest::setImageList(const std::vector &imageList) { + imageList_ = imageList; +} + +std::vector ListInterceptionTargetPageRequest::getTagList() const { + return tagList_; +} + +void ListInterceptionTargetPageRequest::setTagList(const std::vector &tagList) { + tagList_ = tagList; +} + +std::string ListInterceptionTargetPageRequest::getTargetName() const { + return targetName_; +} + +void ListInterceptionTargetPageRequest::setTargetName(const std::string &targetName) { + targetName_ = targetName; + setParameter(std::string("TargetName"), targetName); +} + +std::string ListInterceptionTargetPageRequest::getSourceIp() const { + return sourceIp_; +} + +void ListInterceptionTargetPageRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ListInterceptionTargetPageRequest::getAppName() const { + return appName_; +} + +void ListInterceptionTargetPageRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +int ListInterceptionTargetPageRequest::getPageSize() const { + return pageSize_; +} + +void ListInterceptionTargetPageRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int ListInterceptionTargetPageRequest::getCurrentPage() const { + return currentPage_; +} + +void ListInterceptionTargetPageRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListInterceptionTargetPageRequest::get_Namespace() const { + return _namespace_; +} + +void ListInterceptionTargetPageRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/sas/src/model/ListInterceptionTargetPageResult.cc b/sas/src/model/ListInterceptionTargetPageResult.cc new file mode 100644 index 000000000..6a5370044 --- /dev/null +++ b/sas/src/model/ListInterceptionTargetPageResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ListInterceptionTargetPageResult::ListInterceptionTargetPageResult() : + ServiceResult() +{} + +ListInterceptionTargetPageResult::ListInterceptionTargetPageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInterceptionTargetPageResult::~ListInterceptionTargetPageResult() +{} + +void ListInterceptionTargetPageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRuleTargetListNode = value["RuleTargetList"]["RuleTarget"]; + for (auto valueRuleTargetListRuleTarget : allRuleTargetListNode) + { + RuleTarget ruleTargetListObject; + if(!valueRuleTargetListRuleTarget["AppName"].isNull()) + ruleTargetListObject.appName = valueRuleTargetListRuleTarget["AppName"].asString(); + if(!valueRuleTargetListRuleTarget["TargetId"].isNull()) + ruleTargetListObject.targetId = std::stol(valueRuleTargetListRuleTarget["TargetId"].asString()); + if(!valueRuleTargetListRuleTarget["TargetName"].isNull()) + ruleTargetListObject.targetName = valueRuleTargetListRuleTarget["TargetName"].asString(); + if(!valueRuleTargetListRuleTarget["Namespace"].isNull()) + ruleTargetListObject._namespace = valueRuleTargetListRuleTarget["Namespace"].asString(); + if(!valueRuleTargetListRuleTarget["TargetType"].isNull()) + ruleTargetListObject.targetType = valueRuleTargetListRuleTarget["TargetType"].asString(); + if(!valueRuleTargetListRuleTarget["ClusterId"].isNull()) + ruleTargetListObject.clusterId = valueRuleTargetListRuleTarget["ClusterId"].asString(); + if(!valueRuleTargetListRuleTarget["ClusterName"].isNull()) + ruleTargetListObject.clusterName = valueRuleTargetListRuleTarget["ClusterName"].asString(); + if(!valueRuleTargetListRuleTarget["RuleType"].isNull()) + ruleTargetListObject.ruleType = valueRuleTargetListRuleTarget["RuleType"].asString(); + auto allImageList = value["ImageList"]["imageList"]; + for (auto value : allImageList) + ruleTargetListObject.imageList.push_back(value.asString()); + auto allTagList = value["TagList"]["tagList"]; + for (auto value : allTagList) + ruleTargetListObject.tagList.push_back(value.asString()); + ruleTargetList_.push_back(ruleTargetListObject); + } + 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()); + +} + +ListInterceptionTargetPageResult::PageInfo ListInterceptionTargetPageResult::getPageInfo()const +{ + return pageInfo_; +} + +std::vector ListInterceptionTargetPageResult::getRuleTargetList()const +{ + return ruleTargetList_; +} + diff --git a/sas/src/model/ListPodRiskRequest.cc b/sas/src/model/ListPodRiskRequest.cc new file mode 100644 index 000000000..b0d14514b --- /dev/null +++ b/sas/src/model/ListPodRiskRequest.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::ListPodRiskRequest; + +ListPodRiskRequest::ListPodRiskRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListPodRisk") { + setMethod(HttpRequest::Method::Post); +} + +ListPodRiskRequest::~ListPodRiskRequest() {} + +std::string ListPodRiskRequest::getPodName() const { + return podName_; +} + +void ListPodRiskRequest::setPodName(const std::string &podName) { + podName_ = podName; + setParameter(std::string("PodName"), podName); +} + +std::string ListPodRiskRequest::getAppName() const { + return appName_; +} + +void ListPodRiskRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +long ListPodRiskRequest::getPageSize() const { + return pageSize_; +} + +void ListPodRiskRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long ListPodRiskRequest::getCurrentPage() const { + return currentPage_; +} + +void ListPodRiskRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string ListPodRiskRequest::getClusterId() const { + return clusterId_; +} + +void ListPodRiskRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListPodRiskRequest::get_Namespace() const { + return _namespace_; +} + +void ListPodRiskRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/sas/src/model/ListPodRiskResult.cc b/sas/src/model/ListPodRiskResult.cc new file mode 100644 index 000000000..1cd0b5ffe --- /dev/null +++ b/sas/src/model/ListPodRiskResult.cc @@ -0,0 +1,91 @@ +/* + * 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; + +ListPodRiskResult::ListPodRiskResult() : + ServiceResult() +{} + +ListPodRiskResult::ListPodRiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPodRiskResult::~ListPodRiskResult() +{} + +void ListPodRiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPodRiskListNode = value["PodRiskList"]["PodRiskListItem"]; + for (auto valuePodRiskListPodRiskListItem : allPodRiskListNode) + { + PodRiskListItem podRiskListObject; + if(!valuePodRiskListPodRiskListItem["Pod"].isNull()) + podRiskListObject.pod = valuePodRiskListPodRiskListItem["Pod"].asString(); + if(!valuePodRiskListPodRiskListItem["NodeName"].isNull()) + podRiskListObject.nodeName = valuePodRiskListPodRiskListItem["NodeName"].asString(); + if(!valuePodRiskListPodRiskListItem["ClusterId"].isNull()) + podRiskListObject.clusterId = valuePodRiskListPodRiskListItem["ClusterId"].asString(); + if(!valuePodRiskListPodRiskListItem["PodIp"].isNull()) + podRiskListObject.podIp = valuePodRiskListPodRiskListItem["PodIp"].asString(); + if(!valuePodRiskListPodRiskListItem["CreateTime"].isNull()) + podRiskListObject.createTime = std::stol(valuePodRiskListPodRiskListItem["CreateTime"].asString()); + if(!valuePodRiskListPodRiskListItem["ClusterName"].isNull()) + podRiskListObject.clusterName = valuePodRiskListPodRiskListItem["ClusterName"].asString(); + if(!valuePodRiskListPodRiskListItem["Namespace"].isNull()) + podRiskListObject._namespace = valuePodRiskListPodRiskListItem["Namespace"].asString(); + if(!valuePodRiskListPodRiskListItem["VulCount"].isNull()) + podRiskListObject.vulCount = std::stoi(valuePodRiskListPodRiskListItem["VulCount"].asString()); + if(!valuePodRiskListPodRiskListItem["AlarmCount"].isNull()) + podRiskListObject.alarmCount = std::stoi(valuePodRiskListPodRiskListItem["AlarmCount"].asString()); + if(!valuePodRiskListPodRiskListItem["HcCount"].isNull()) + podRiskListObject.hcCount = std::stoi(valuePodRiskListPodRiskListItem["HcCount"].asString()); + if(!valuePodRiskListPodRiskListItem["InstanceId"].isNull()) + podRiskListObject.instanceId = valuePodRiskListPodRiskListItem["InstanceId"].asString(); + podRiskList_.push_back(podRiskListObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["TotalCount"].isNull()) + pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString()); + if(!pageInfoNode["Count"].isNull()) + pageInfo_.count = std::stoi(pageInfoNode["Count"].asString()); + if(!pageInfoNode["PageSize"].isNull()) + pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString()); + if(!pageInfoNode["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + +} + +ListPodRiskResult::PageInfo ListPodRiskResult::getPageInfo()const +{ + return pageInfo_; +} + +std::vector ListPodRiskResult::getPodRiskList()const +{ + return podRiskList_; +} + diff --git a/sas/src/model/ListRuleTargetAllRequest.cc b/sas/src/model/ListRuleTargetAllRequest.cc new file mode 100644 index 000000000..ec9031cf9 --- /dev/null +++ b/sas/src/model/ListRuleTargetAllRequest.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::ListRuleTargetAllRequest; + +ListRuleTargetAllRequest::ListRuleTargetAllRequest() + : RpcServiceRequest("sas", "2018-12-03", "ListRuleTargetAll") { + setMethod(HttpRequest::Method::Post); +} + +ListRuleTargetAllRequest::~ListRuleTargetAllRequest() {} + +std::string ListRuleTargetAllRequest::getClusterId() const { + return clusterId_; +} + +void ListRuleTargetAllRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListRuleTargetAllRequest::getSourceIp() const { + return sourceIp_; +} + +void ListRuleTargetAllRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + diff --git a/sas/src/model/ListRuleTargetAllResult.cc b/sas/src/model/ListRuleTargetAllResult.cc new file mode 100644 index 000000000..bede2d525 --- /dev/null +++ b/sas/src/model/ListRuleTargetAllResult.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; + +ListRuleTargetAllResult::ListRuleTargetAllResult() : + ServiceResult() +{} + +ListRuleTargetAllResult::ListRuleTargetAllResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRuleTargetAllResult::~ListRuleTargetAllResult() +{} + +void ListRuleTargetAllResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRuleTargetListNode = value["RuleTargetList"]["RuleTarget"]; + for (auto valueRuleTargetListRuleTarget : allRuleTargetListNode) + { + RuleTarget ruleTargetListObject; + if(!valueRuleTargetListRuleTarget["TargetId"].isNull()) + ruleTargetListObject.targetId = std::stol(valueRuleTargetListRuleTarget["TargetId"].asString()); + if(!valueRuleTargetListRuleTarget["TargetName"].isNull()) + ruleTargetListObject.targetName = valueRuleTargetListRuleTarget["TargetName"].asString(); + if(!valueRuleTargetListRuleTarget["TargetType"].isNull()) + ruleTargetListObject.targetType = valueRuleTargetListRuleTarget["TargetType"].asString(); + ruleTargetList_.push_back(ruleTargetListObject); + } + +} + +std::vector ListRuleTargetAllResult::getRuleTargetList()const +{ + return ruleTargetList_; +} + diff --git a/sas/src/model/ListVulAutoRepairConfigRequest.cc b/sas/src/model/ListVulAutoRepairConfigRequest.cc index 8c3d2d72e..618a4a504 100644 --- a/sas/src/model/ListVulAutoRepairConfigRequest.cc +++ b/sas/src/model/ListVulAutoRepairConfigRequest.cc @@ -25,6 +25,15 @@ ListVulAutoRepairConfigRequest::ListVulAutoRepairConfigRequest() ListVulAutoRepairConfigRequest::~ListVulAutoRepairConfigRequest() {} +int ListVulAutoRepairConfigRequest::getCurrentPage() const { + return currentPage_; +} + +void ListVulAutoRepairConfigRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::string ListVulAutoRepairConfigRequest::getType() const { return type_; } @@ -34,6 +43,15 @@ void ListVulAutoRepairConfigRequest::setType(const std::string &type) { setParameter(std::string("Type"), type); } +std::string ListVulAutoRepairConfigRequest::getAliasName() const { + return aliasName_; +} + +void ListVulAutoRepairConfigRequest::setAliasName(const std::string &aliasName) { + aliasName_ = aliasName; + setParameter(std::string("AliasName"), aliasName); +} + std::string ListVulAutoRepairConfigRequest::getSourceIp() const { return sourceIp_; } @@ -52,21 +70,3 @@ void ListVulAutoRepairConfigRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -int ListVulAutoRepairConfigRequest::getCurrentPage() const { - return currentPage_; -} - -void ListVulAutoRepairConfigRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - -std::string ListVulAutoRepairConfigRequest::getAliasName() const { - return aliasName_; -} - -void ListVulAutoRepairConfigRequest::setAliasName(const std::string &aliasName) { - aliasName_ = aliasName; - setParameter(std::string("AliasName"), aliasName); -} - diff --git a/sas/src/model/ModifyBackupPolicyStatusRequest.cc b/sas/src/model/ModifyBackupPolicyStatusRequest.cc index 725929466..310997a86 100644 --- a/sas/src/model/ModifyBackupPolicyStatusRequest.cc +++ b/sas/src/model/ModifyBackupPolicyStatusRequest.cc @@ -34,6 +34,15 @@ void ModifyBackupPolicyStatusRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyBackupPolicyStatusRequest::getPolicyVersion() const { + return policyVersion_; +} + +void ModifyBackupPolicyStatusRequest::setPolicyVersion(const std::string &policyVersion) { + policyVersion_ = policyVersion; + setParameter(std::string("PolicyVersion"), policyVersion); +} + std::string ModifyBackupPolicyStatusRequest::getSourceIp() const { return sourceIp_; } @@ -52,15 +61,6 @@ void ModifyBackupPolicyStatusRequest::setId(long id) { setParameter(std::string("Id"), std::to_string(id)); } -std::string ModifyBackupPolicyStatusRequest::getPolicyVersion() const { - return policyVersion_; -} - -void ModifyBackupPolicyStatusRequest::setPolicyVersion(const std::string &policyVersion) { - policyVersion_ = policyVersion; - setParameter(std::string("PolicyVersion"), policyVersion); -} - std::string ModifyBackupPolicyStatusRequest::getStatus() const { return status_; } diff --git a/sas/src/model/ModifyClientConfSetupRequest.cc b/sas/src/model/ModifyClientConfSetupRequest.cc index 1f8834985..818bc9745 100644 --- a/sas/src/model/ModifyClientConfSetupRequest.cc +++ b/sas/src/model/ModifyClientConfSetupRequest.cc @@ -34,6 +34,15 @@ void ModifyClientConfSetupRequest::setStrategyConfig(const std::string &strategy setParameter(std::string("StrategyConfig"), strategyConfig); } +std::string ModifyClientConfSetupRequest::getStrategyTagValue() const { + return strategyTagValue_; +} + +void ModifyClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) { + strategyTagValue_ = strategyTagValue; + setParameter(std::string("StrategyTagValue"), strategyTagValue); +} + std::string ModifyClientConfSetupRequest::getSourceIp() const { return sourceIp_; } @@ -61,12 +70,3 @@ void ModifyClientConfSetupRequest::setResourceDirectoryAccountId(const std::stri setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); } -std::string ModifyClientConfSetupRequest::getStrategyTagValue() const { - return strategyTagValue_; -} - -void ModifyClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) { - strategyTagValue_ = strategyTagValue; - setParameter(std::string("StrategyTagValue"), strategyTagValue); -} - diff --git a/sas/src/model/ModifyClusterCnnfStatusUserConfirmRequest.cc b/sas/src/model/ModifyClusterCnnfStatusUserConfirmRequest.cc new file mode 100644 index 000000000..0f9f16df9 --- /dev/null +++ b/sas/src/model/ModifyClusterCnnfStatusUserConfirmRequest.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 + +using AlibabaCloud::Sas::Model::ModifyClusterCnnfStatusUserConfirmRequest; + +ModifyClusterCnnfStatusUserConfirmRequest::ModifyClusterCnnfStatusUserConfirmRequest() + : RpcServiceRequest("sas", "2018-12-03", "ModifyClusterCnnfStatusUserConfirm") { + setMethod(HttpRequest::Method::Post); +} + +ModifyClusterCnnfStatusUserConfirmRequest::~ModifyClusterCnnfStatusUserConfirmRequest() {} + +std::vector ModifyClusterCnnfStatusUserConfirmRequest::getClusterIds() const { + return clusterIds_; +} + +void ModifyClusterCnnfStatusUserConfirmRequest::setClusterIds(const std::vector &clusterIds) { + clusterIds_ = clusterIds; +} + +bool ModifyClusterCnnfStatusUserConfirmRequest::getUserConfirm() const { + return userConfirm_; +} + +void ModifyClusterCnnfStatusUserConfirmRequest::setUserConfirm(bool userConfirm) { + userConfirm_ = userConfirm; + setParameter(std::string("UserConfirm"), userConfirm ? "true" : "false"); +} + diff --git a/sas/src/model/ModifyClusterCnnfStatusUserConfirmResult.cc b/sas/src/model/ModifyClusterCnnfStatusUserConfirmResult.cc new file mode 100644 index 000000000..ccb547c57 --- /dev/null +++ b/sas/src/model/ModifyClusterCnnfStatusUserConfirmResult.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; + +ModifyClusterCnnfStatusUserConfirmResult::ModifyClusterCnnfStatusUserConfirmResult() : + ServiceResult() +{} + +ModifyClusterCnnfStatusUserConfirmResult::ModifyClusterCnnfStatusUserConfirmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyClusterCnnfStatusUserConfirmResult::~ModifyClusterCnnfStatusUserConfirmResult() +{} + +void ModifyClusterCnnfStatusUserConfirmResult::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/ModifyCreateVulWhitelistRequest.cc b/sas/src/model/ModifyCreateVulWhitelistRequest.cc index d3eaf62ef..6d6f1dec9 100644 --- a/sas/src/model/ModifyCreateVulWhitelistRequest.cc +++ b/sas/src/model/ModifyCreateVulWhitelistRequest.cc @@ -34,15 +34,6 @@ void ModifyCreateVulWhitelistRequest::setReason(const std::string &reason) { setParameter(std::string("Reason"), reason); } -std::string ModifyCreateVulWhitelistRequest::getSourceIp() const { - return sourceIp_; -} - -void ModifyCreateVulWhitelistRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - std::string ModifyCreateVulWhitelistRequest::getWhitelist() const { return whitelist_; } @@ -52,6 +43,15 @@ void ModifyCreateVulWhitelistRequest::setWhitelist(const std::string &whitelist) setParameter(std::string("Whitelist"), whitelist); } +std::string ModifyCreateVulWhitelistRequest::getSourceIp() const { + return sourceIp_; +} + +void ModifyCreateVulWhitelistRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + std::string ModifyCreateVulWhitelistRequest::getTargetInfo() const { return targetInfo_; } diff --git a/sas/src/model/ModifyInterceptionRuleRequest.cc b/sas/src/model/ModifyInterceptionRuleRequest.cc new file mode 100644 index 000000000..81580c38d --- /dev/null +++ b/sas/src/model/ModifyInterceptionRuleRequest.cc @@ -0,0 +1,108 @@ +/* + * 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::ModifyInterceptionRuleRequest; + +ModifyInterceptionRuleRequest::ModifyInterceptionRuleRequest() + : RpcServiceRequest("sas", "2018-12-03", "ModifyInterceptionRule") { + setMethod(HttpRequest::Method::Post); +} + +ModifyInterceptionRuleRequest::~ModifyInterceptionRuleRequest() {} + +std::string ModifyInterceptionRuleRequest::getRuleName() const { + return ruleName_; +} + +void ModifyInterceptionRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string ModifyInterceptionRuleRequest::getSourceIp() const { + return sourceIp_; +} + +void ModifyInterceptionRuleRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +long ModifyInterceptionRuleRequest::getOrderIndex() const { + return orderIndex_; +} + +void ModifyInterceptionRuleRequest::setOrderIndex(long orderIndex) { + orderIndex_ = orderIndex; + setParameter(std::string("OrderIndex"), std::to_string(orderIndex)); +} + +std::string ModifyInterceptionRuleRequest::getDstTarget() const { + return dstTarget_; +} + +void ModifyInterceptionRuleRequest::setDstTarget(const std::string &dstTarget) { + dstTarget_ = dstTarget; + setParameter(std::string("DstTarget"), dstTarget); +} + +std::string ModifyInterceptionRuleRequest::getClusterId() const { + return clusterId_; +} + +void ModifyInterceptionRuleRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ModifyInterceptionRuleRequest::getInterceptType() const { + return interceptType_; +} + +void ModifyInterceptionRuleRequest::setInterceptType(int interceptType) { + interceptType_ = interceptType; + setParameter(std::string("InterceptType"), std::to_string(interceptType)); +} + +int ModifyInterceptionRuleRequest::getRuleSwitch() const { + return ruleSwitch_; +} + +void ModifyInterceptionRuleRequest::setRuleSwitch(int ruleSwitch) { + ruleSwitch_ = ruleSwitch; + setParameter(std::string("RuleSwitch"), std::to_string(ruleSwitch)); +} + +long ModifyInterceptionRuleRequest::getRuleId() const { + return ruleId_; +} + +void ModifyInterceptionRuleRequest::setRuleId(long ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), std::to_string(ruleId)); +} + +std::string ModifyInterceptionRuleRequest::getSrcTarget() const { + return srcTarget_; +} + +void ModifyInterceptionRuleRequest::setSrcTarget(const std::string &srcTarget) { + srcTarget_ = srcTarget; + setParameter(std::string("SrcTarget"), srcTarget); +} + diff --git a/sas/src/model/ModifyInterceptionRuleResult.cc b/sas/src/model/ModifyInterceptionRuleResult.cc new file mode 100644 index 000000000..a257643b6 --- /dev/null +++ b/sas/src/model/ModifyInterceptionRuleResult.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; + +ModifyInterceptionRuleResult::ModifyInterceptionRuleResult() : + ServiceResult() +{} + +ModifyInterceptionRuleResult::ModifyInterceptionRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInterceptionRuleResult::~ModifyInterceptionRuleResult() +{} + +void ModifyInterceptionRuleResult::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/ModifyInterceptionRuleSwitchRequest.cc b/sas/src/model/ModifyInterceptionRuleSwitchRequest.cc new file mode 100644 index 000000000..5dd861ba0 --- /dev/null +++ b/sas/src/model/ModifyInterceptionRuleSwitchRequest.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::ModifyInterceptionRuleSwitchRequest; + +ModifyInterceptionRuleSwitchRequest::ModifyInterceptionRuleSwitchRequest() + : RpcServiceRequest("sas", "2018-12-03", "ModifyInterceptionRuleSwitch") { + setMethod(HttpRequest::Method::Post); +} + +ModifyInterceptionRuleSwitchRequest::~ModifyInterceptionRuleSwitchRequest() {} + +std::string ModifyInterceptionRuleSwitchRequest::getClusterId() const { + return clusterId_; +} + +void ModifyInterceptionRuleSwitchRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ModifyInterceptionRuleSwitchRequest::getRuleIds() const { + return ruleIds_; +} + +void ModifyInterceptionRuleSwitchRequest::setRuleIds(const std::string &ruleIds) { + ruleIds_ = ruleIds; + setParameter(std::string("RuleIds"), ruleIds); +} + +std::string ModifyInterceptionRuleSwitchRequest::getSourceIp() const { + return sourceIp_; +} + +void ModifyInterceptionRuleSwitchRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +int ModifyInterceptionRuleSwitchRequest::getRuleSwitch() const { + return ruleSwitch_; +} + +void ModifyInterceptionRuleSwitchRequest::setRuleSwitch(int ruleSwitch) { + ruleSwitch_ = ruleSwitch; + setParameter(std::string("RuleSwitch"), std::to_string(ruleSwitch)); +} + diff --git a/sas/src/model/ModifyInterceptionRuleSwitchResult.cc b/sas/src/model/ModifyInterceptionRuleSwitchResult.cc new file mode 100644 index 000000000..1c940331a --- /dev/null +++ b/sas/src/model/ModifyInterceptionRuleSwitchResult.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; + +ModifyInterceptionRuleSwitchResult::ModifyInterceptionRuleSwitchResult() : + ServiceResult() +{} + +ModifyInterceptionRuleSwitchResult::ModifyInterceptionRuleSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInterceptionRuleSwitchResult::~ModifyInterceptionRuleSwitchResult() +{} + +void ModifyInterceptionRuleSwitchResult::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/ModifyInterceptionTargetRequest.cc b/sas/src/model/ModifyInterceptionTargetRequest.cc new file mode 100644 index 000000000..172b966b8 --- /dev/null +++ b/sas/src/model/ModifyInterceptionTargetRequest.cc @@ -0,0 +1,97 @@ +/* + * 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::ModifyInterceptionTargetRequest; + +ModifyInterceptionTargetRequest::ModifyInterceptionTargetRequest() + : RpcServiceRequest("sas", "2018-12-03", "ModifyInterceptionTarget") { + setMethod(HttpRequest::Method::Post); +} + +ModifyInterceptionTargetRequest::~ModifyInterceptionTargetRequest() {} + +long ModifyInterceptionTargetRequest::getTargetId() const { + return targetId_; +} + +void ModifyInterceptionTargetRequest::setTargetId(long targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), std::to_string(targetId)); +} + +std::string ModifyInterceptionTargetRequest::getTargetType() const { + return targetType_; +} + +void ModifyInterceptionTargetRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::vector ModifyInterceptionTargetRequest::getImageList() const { + return imageList_; +} + +void ModifyInterceptionTargetRequest::setImageList(const std::vector &imageList) { + imageList_ = imageList; +} + +std::vector ModifyInterceptionTargetRequest::getTagList() const { + return tagList_; +} + +void ModifyInterceptionTargetRequest::setTagList(const std::vector &tagList) { + tagList_ = tagList; +} + +std::string ModifyInterceptionTargetRequest::getTargetName() const { + return targetName_; +} + +void ModifyInterceptionTargetRequest::setTargetName(const std::string &targetName) { + targetName_ = targetName; + setParameter(std::string("TargetName"), targetName); +} + +std::string ModifyInterceptionTargetRequest::getSourceIp() const { + return sourceIp_; +} + +void ModifyInterceptionTargetRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string ModifyInterceptionTargetRequest::getAppName() const { + return appName_; +} + +void ModifyInterceptionTargetRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + +std::string ModifyInterceptionTargetRequest::get_Namespace() const { + return _namespace_; +} + +void ModifyInterceptionTargetRequest::set_Namespace(const std::string &_namespace) { + _namespace_ = _namespace; + setParameter(std::string("Namespace"), _namespace); +} + diff --git a/sas/src/model/ModifyInterceptionTargetResult.cc b/sas/src/model/ModifyInterceptionTargetResult.cc new file mode 100644 index 000000000..5bd659e8e --- /dev/null +++ b/sas/src/model/ModifyInterceptionTargetResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyInterceptionTargetResult::ModifyInterceptionTargetResult() : + ServiceResult() +{} + +ModifyInterceptionTargetResult::ModifyInterceptionTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInterceptionTargetResult::~ModifyInterceptionTargetResult() +{} + +void ModifyInterceptionTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +bool ModifyInterceptionTargetResult::getResult()const +{ + return result_; +} + diff --git a/sas/src/model/ModifyOperateVulRequest.cc b/sas/src/model/ModifyOperateVulRequest.cc index d5ea48c62..84f894372 100644 --- a/sas/src/model/ModifyOperateVulRequest.cc +++ b/sas/src/model/ModifyOperateVulRequest.cc @@ -52,15 +52,6 @@ void ModifyOperateVulRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } -std::string ModifyOperateVulRequest::getInfo() const { - return info_; -} - -void ModifyOperateVulRequest::setInfo(const std::string &info) { - info_ = info; - setParameter(std::string("Info"), info); -} - std::string ModifyOperateVulRequest::getOperateType() const { return operateType_; } @@ -70,3 +61,12 @@ void ModifyOperateVulRequest::setOperateType(const std::string &operateType) { setParameter(std::string("OperateType"), operateType); } +std::string ModifyOperateVulRequest::getInfo() const { + return info_; +} + +void ModifyOperateVulRequest::setInfo(const std::string &info) { + info_ = info; + setParameter(std::string("Info"), info); +} + diff --git a/sas/src/model/ModifySecurityEventMarkMissIndividuallyRequest.cc b/sas/src/model/ModifySecurityEventMarkMissIndividuallyRequest.cc index c4481aab4..d8a383ecd 100644 --- a/sas/src/model/ModifySecurityEventMarkMissIndividuallyRequest.cc +++ b/sas/src/model/ModifySecurityEventMarkMissIndividuallyRequest.cc @@ -43,6 +43,15 @@ void ModifySecurityEventMarkMissIndividuallyRequest::setSourceIp(const std::stri setParameter(std::string("SourceIp"), sourceIp); } +std::string ModifySecurityEventMarkMissIndividuallyRequest::getDeleteMarkMissParam() const { + return deleteMarkMissParam_; +} + +void ModifySecurityEventMarkMissIndividuallyRequest::setDeleteMarkMissParam(const std::string &deleteMarkMissParam) { + deleteMarkMissParam_ = deleteMarkMissParam; + setBodyParameter(std::string("DeleteMarkMissParam"), deleteMarkMissParam); +} + std::string ModifySecurityEventMarkMissIndividuallyRequest::getFrom() const { return from_; } @@ -61,12 +70,3 @@ void ModifySecurityEventMarkMissIndividuallyRequest::setLang(const std::string & setBodyParameter(std::string("Lang"), lang); } -std::string ModifySecurityEventMarkMissIndividuallyRequest::getDeleteMarkMissParam() const { - return deleteMarkMissParam_; -} - -void ModifySecurityEventMarkMissIndividuallyRequest::setDeleteMarkMissParam(const std::string &deleteMarkMissParam) { - deleteMarkMissParam_ = deleteMarkMissParam; - setBodyParameter(std::string("DeleteMarkMissParam"), deleteMarkMissParam); -} - diff --git a/sas/src/model/ModifyStrategyTargetRequest.cc b/sas/src/model/ModifyStrategyTargetRequest.cc index 610620ff2..da0873966 100644 --- a/sas/src/model/ModifyStrategyTargetRequest.cc +++ b/sas/src/model/ModifyStrategyTargetRequest.cc @@ -34,24 +34,6 @@ void ModifyStrategyTargetRequest::setType(const std::string &type) { setParameter(std::string("Type"), type); } -std::string ModifyStrategyTargetRequest::getSourceIp() const { - return sourceIp_; -} - -void ModifyStrategyTargetRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string ModifyStrategyTargetRequest::getResourceDirectoryAccountId() const { - return resourceDirectoryAccountId_; -} - -void ModifyStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { - resourceDirectoryAccountId_ = resourceDirectoryAccountId; - setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); -} - std::string ModifyStrategyTargetRequest::getTarget() const { return target_; } @@ -61,6 +43,15 @@ void ModifyStrategyTargetRequest::setTarget(const std::string &target) { setParameter(std::string("Target"), target); } +std::string ModifyStrategyTargetRequest::getSourceIp() const { + return sourceIp_; +} + +void ModifyStrategyTargetRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + std::string ModifyStrategyTargetRequest::getConfig() const { return config_; } @@ -70,3 +61,12 @@ void ModifyStrategyTargetRequest::setConfig(const std::string &config) { setParameter(std::string("Config"), config); } +std::string ModifyStrategyTargetRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void ModifyStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); +} + diff --git a/sas/src/model/ModifyVulConfigRequest.cc b/sas/src/model/ModifyVulConfigRequest.cc index 08397fc05..2d4240a4c 100644 --- a/sas/src/model/ModifyVulConfigRequest.cc +++ b/sas/src/model/ModifyVulConfigRequest.cc @@ -43,15 +43,6 @@ void ModifyVulConfigRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } -std::string ModifyVulConfigRequest::getResourceDirectoryAccountId() const { - return resourceDirectoryAccountId_; -} - -void ModifyVulConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { - resourceDirectoryAccountId_ = resourceDirectoryAccountId; - setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); -} - std::string ModifyVulConfigRequest::getConfig() const { return config_; } @@ -61,3 +52,12 @@ void ModifyVulConfigRequest::setConfig(const std::string &config) { setParameter(std::string("Config"), config); } +std::string ModifyVulConfigRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void ModifyVulConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); +} + diff --git a/sas/src/model/ModifyVulTargetRequest.cc b/sas/src/model/ModifyVulTargetRequest.cc index 60a4215a7..00057eaa9 100644 --- a/sas/src/model/ModifyVulTargetRequest.cc +++ b/sas/src/model/ModifyVulTargetRequest.cc @@ -25,24 +25,6 @@ ModifyVulTargetRequest::ModifyVulTargetRequest() ModifyVulTargetRequest::~ModifyVulTargetRequest() {} -std::string ModifyVulTargetRequest::getSourceIp() const { - return sourceIp_; -} - -void ModifyVulTargetRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string ModifyVulTargetRequest::getResourceDirectoryAccountId() const { - return resourceDirectoryAccountId_; -} - -void ModifyVulTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { - resourceDirectoryAccountId_ = resourceDirectoryAccountId; - setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); -} - std::string ModifyVulTargetRequest::getTarget() const { return target_; } @@ -52,6 +34,15 @@ void ModifyVulTargetRequest::setTarget(const std::string &target) { setParameter(std::string("Target"), target); } +std::string ModifyVulTargetRequest::getSourceIp() const { + return sourceIp_; +} + +void ModifyVulTargetRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + std::string ModifyVulTargetRequest::getConfig() const { return config_; } @@ -61,3 +52,12 @@ void ModifyVulTargetRequest::setConfig(const std::string &config) { setParameter(std::string("Config"), config); } +std::string ModifyVulTargetRequest::getResourceDirectoryAccountId() const { + return resourceDirectoryAccountId_; +} + +void ModifyVulTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) { + resourceDirectoryAccountId_ = resourceDirectoryAccountId; + setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId); +} + diff --git a/sas/src/model/ModifyVulWhitelistTargetRequest.cc b/sas/src/model/ModifyVulWhitelistTargetRequest.cc index b410a65de..312224fae 100644 --- a/sas/src/model/ModifyVulWhitelistTargetRequest.cc +++ b/sas/src/model/ModifyVulWhitelistTargetRequest.cc @@ -43,15 +43,6 @@ void ModifyVulWhitelistTargetRequest::setSourceIp(const std::string &sourceIp) { setParameter(std::string("SourceIp"), sourceIp); } -long ModifyVulWhitelistTargetRequest::getId() const { - return id_; -} - -void ModifyVulWhitelistTargetRequest::setId(long id) { - id_ = id; - setParameter(std::string("Id"), std::to_string(id)); -} - std::string ModifyVulWhitelistTargetRequest::getTargetInfo() const { return targetInfo_; } @@ -61,3 +52,12 @@ void ModifyVulWhitelistTargetRequest::setTargetInfo(const std::string &targetInf setParameter(std::string("TargetInfo"), targetInfo); } +long ModifyVulWhitelistTargetRequest::getId() const { + return id_; +} + +void ModifyVulWhitelistTargetRequest::setId(long id) { + id_ = id; + setParameter(std::string("Id"), std::to_string(id)); +} + diff --git a/sas/src/model/OpenSensitiveFileScanRequest.cc b/sas/src/model/OpenSensitiveFileScanRequest.cc index 16bcc2228..c703c3245 100644 --- a/sas/src/model/OpenSensitiveFileScanRequest.cc +++ b/sas/src/model/OpenSensitiveFileScanRequest.cc @@ -25,24 +25,6 @@ OpenSensitiveFileScanRequest::OpenSensitiveFileScanRequest() OpenSensitiveFileScanRequest::~OpenSensitiveFileScanRequest() {} -int OpenSensitiveFileScanRequest::getPageSize() const { - return pageSize_; -} - -void OpenSensitiveFileScanRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string OpenSensitiveFileScanRequest::getLang() const { - return lang_; -} - -void OpenSensitiveFileScanRequest::setLang(const std::string &lang) { - lang_ = lang; - setParameter(std::string("Lang"), lang); -} - int OpenSensitiveFileScanRequest::getCurrentPage() const { return currentPage_; } @@ -52,6 +34,15 @@ void OpenSensitiveFileScanRequest::setCurrentPage(int currentPage) { setParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +int OpenSensitiveFileScanRequest::getPageSize() const { + return pageSize_; +} + +void OpenSensitiveFileScanRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + std::string OpenSensitiveFileScanRequest::getSwitchOn() const { return switchOn_; } @@ -61,3 +52,12 @@ void OpenSensitiveFileScanRequest::setSwitchOn(const std::string &switchOn) { setParameter(std::string("SwitchOn"), switchOn); } +std::string OpenSensitiveFileScanRequest::getLang() const { + return lang_; +} + +void OpenSensitiveFileScanRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + diff --git a/sas/src/model/OperateAgentClientInstallRequest.cc b/sas/src/model/OperateAgentClientInstallRequest.cc index c35e37d0f..ee4174874 100644 --- a/sas/src/model/OperateAgentClientInstallRequest.cc +++ b/sas/src/model/OperateAgentClientInstallRequest.cc @@ -34,15 +34,6 @@ void OperateAgentClientInstallRequest::setSourceIp(const std::string &sourceIp) setParameter(std::string("SourceIp"), sourceIp); } -std::string OperateAgentClientInstallRequest::getLang() const { - return lang_; -} - -void OperateAgentClientInstallRequest::setLang(const std::string &lang) { - lang_ = lang; - setParameter(std::string("Lang"), lang); -} - std::string OperateAgentClientInstallRequest::getInstanceIds() const { return instanceIds_; } @@ -52,6 +43,15 @@ void OperateAgentClientInstallRequest::setInstanceIds(const std::string &instanc setParameter(std::string("InstanceIds"), instanceIds); } +std::string OperateAgentClientInstallRequest::getLang() const { + return lang_; +} + +void OperateAgentClientInstallRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); +} + std::string OperateAgentClientInstallRequest::getUuids() const { return uuids_; } diff --git a/sas/src/model/PageImageRegistryRequest.cc b/sas/src/model/PageImageRegistryRequest.cc index ee57c0dff..4d1ca3457 100644 --- a/sas/src/model/PageImageRegistryRequest.cc +++ b/sas/src/model/PageImageRegistryRequest.cc @@ -25,6 +25,24 @@ PageImageRegistryRequest::PageImageRegistryRequest() PageImageRegistryRequest::~PageImageRegistryRequest() {} +std::string PageImageRegistryRequest::getRegistryNameLike() const { + return registryNameLike_; +} + +void PageImageRegistryRequest::setRegistryNameLike(const std::string ®istryNameLike) { + registryNameLike_ = registryNameLike; + setBodyParameter(std::string("RegistryNameLike"), registryNameLike); +} + +int PageImageRegistryRequest::getCurrentPage() const { + return currentPage_; +} + +void PageImageRegistryRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + std::vector PageImageRegistryRequest::getRegistryTypeNotInList() const { return registryTypeNotInList_; } @@ -51,24 +69,6 @@ void PageImageRegistryRequest::setPageSize(int pageSize) { setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string PageImageRegistryRequest::getRegistryNameLike() const { - return registryNameLike_; -} - -void PageImageRegistryRequest::setRegistryNameLike(const std::string ®istryNameLike) { - registryNameLike_ = registryNameLike; - setBodyParameter(std::string("RegistryNameLike"), registryNameLike); -} - -int PageImageRegistryRequest::getCurrentPage() const { - return currentPage_; -} - -void PageImageRegistryRequest::setCurrentPage(int currentPage) { - currentPage_ = currentPage; - setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - std::vector PageImageRegistryRequest::getRegistryTypeInList() const { return registryTypeInList_; } diff --git a/sas/src/model/RemoveCheckResultWhiteListRequest.cc b/sas/src/model/RemoveCheckResultWhiteListRequest.cc index 17643ecb1..051597480 100644 --- a/sas/src/model/RemoveCheckResultWhiteListRequest.cc +++ b/sas/src/model/RemoveCheckResultWhiteListRequest.cc @@ -25,6 +25,14 @@ RemoveCheckResultWhiteListRequest::RemoveCheckResultWhiteListRequest() RemoveCheckResultWhiteListRequest::~RemoveCheckResultWhiteListRequest() {} +std::vector RemoveCheckResultWhiteListRequest::getCheckIds() const { + return checkIds_; +} + +void RemoveCheckResultWhiteListRequest::setCheckIds(const std::vector &checkIds) { + checkIds_ = checkIds; +} + std::string RemoveCheckResultWhiteListRequest::getType() const { return type_; } @@ -43,14 +51,6 @@ void RemoveCheckResultWhiteListRequest::setSourceIp(const std::string &sourceIp) setParameter(std::string("SourceIp"), sourceIp); } -std::vector RemoveCheckResultWhiteListRequest::getCheckIds() const { - return checkIds_; -} - -void RemoveCheckResultWhiteListRequest::setCheckIds(const std::vector &checkIds) { - checkIds_ = checkIds; -} - std::string RemoveCheckResultWhiteListRequest::getCheckGroupId() const { return checkGroupId_; } diff --git a/sas/src/model/SetClusterInterceptionConfigRequest.cc b/sas/src/model/SetClusterInterceptionConfigRequest.cc new file mode 100644 index 000000000..a92c92926 --- /dev/null +++ b/sas/src/model/SetClusterInterceptionConfigRequest.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::SetClusterInterceptionConfigRequest; + +SetClusterInterceptionConfigRequest::SetClusterInterceptionConfigRequest() + : RpcServiceRequest("sas", "2018-12-03", "SetClusterInterceptionConfig") { + setMethod(HttpRequest::Method::Post); +} + +SetClusterInterceptionConfigRequest::~SetClusterInterceptionConfigRequest() {} + +std::string SetClusterInterceptionConfigRequest::getClusterIds() const { + return clusterIds_; +} + +void SetClusterInterceptionConfigRequest::setClusterIds(const std::string &clusterIds) { + clusterIds_ = clusterIds; + setParameter(std::string("ClusterIds"), clusterIds); +} + +std::string SetClusterInterceptionConfigRequest::getSourceIp() const { + return sourceIp_; +} + +void SetClusterInterceptionConfigRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +int SetClusterInterceptionConfigRequest::getSwitchType() const { + return switchType_; +} + +void SetClusterInterceptionConfigRequest::setSwitchType(int switchType) { + switchType_ = switchType; + setParameter(std::string("SwitchType"), std::to_string(switchType)); +} + +int SetClusterInterceptionConfigRequest::getSwitchOn() const { + return switchOn_; +} + +void SetClusterInterceptionConfigRequest::setSwitchOn(int switchOn) { + switchOn_ = switchOn; + setParameter(std::string("SwitchOn"), std::to_string(switchOn)); +} + diff --git a/sas/src/model/SetClusterInterceptionConfigResult.cc b/sas/src/model/SetClusterInterceptionConfigResult.cc new file mode 100644 index 000000000..e36b03862 --- /dev/null +++ b/sas/src/model/SetClusterInterceptionConfigResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +SetClusterInterceptionConfigResult::SetClusterInterceptionConfigResult() : + ServiceResult() +{} + +SetClusterInterceptionConfigResult::SetClusterInterceptionConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetClusterInterceptionConfigResult::~SetClusterInterceptionConfigResult() +{} + +void SetClusterInterceptionConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; + +} + +bool SetClusterInterceptionConfigResult::getResult()const +{ + return result_; +} +