From 6010788ba316b2f1d986b923da40b2b6cbcfb8b4 Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Wed, 3 Apr 2019 15:32:54 +0800 Subject: [PATCH] =?UTF-8?q?SAS=20SDK=20Auto=20Released=20By=20lai.zhoulai,?= =?UTF-8?q?Version=EF=BC=9A1.35.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 6 + CMakeLists.txt | 2 + VERSION | 2 +- sas/CMakeLists.txt | 186 ++++ sas/include/alibabacloud/sas/SasClient.h | 254 +++++ sas/include/alibabacloud/sas/SasExport.h | 32 + .../model/DescribeAlarmEventDetailRequest.h | 57 + .../model/DescribeAlarmEventDetailResult.h | 81 ++ .../sas/model/DescribeAlarmEventListRequest.h | 75 ++ .../sas/model/DescribeAlarmEventListResult.h | 80 ++ .../sas/model/DescribeAutoDelConfigRequest.h | 48 + .../sas/model/DescribeAutoDelConfigResult.h | 51 + .../model/DescribeConcernNecessityRequest.h | 51 + .../model/DescribeConcernNecessityResult.h | 51 + .../sas/model/DescribeEmgVulGroupRequest.h | 51 + .../sas/model/DescribeEmgVulGroupResult.h | 62 ++ .../sas/model/DescribeGroupedVulRequest.h | 72 ++ .../sas/model/DescribeGroupedVulResult.h | 68 ++ .../model/DescribeRiskCheckResultRequest.h | 69 ++ .../sas/model/DescribeRiskCheckResultResult.h | 80 ++ .../model/DescribeRiskCheckSummaryRequest.h | 54 + .../model/DescribeRiskCheckSummaryResult.h | 81 ++ .../sas/model/DescribeRiskItemTypeRequest.h | 54 + .../sas/model/DescribeRiskItemTypeResult.h | 56 + ...scribeSecurityCheckScheduleConfigRequest.h | 54 + ...escribeSecurityCheckScheduleConfigResult.h | 57 + .../model/DescribeSuspEventDetailRequest.h | 57 + .../sas/model/DescribeSuspEventDetailResult.h | 92 ++ .../sas/model/DescribeSuspEventsRequest.h | 78 ++ .../sas/model/DescribeSuspEventsResult.h | 81 ++ ...DescribeUserBaselineAuthorizationRequest.h | 54 + .../DescribeUserBaselineAuthorizationResult.h | 55 + .../sas/model/DescribeVulDetailsRequest.h | 60 ++ .../sas/model/DescribeVulDetailsResult.h | 79 ++ .../sas/model/DescribeVulListRequest.h | 75 ++ .../sas/model/DescribeVulListResult.h | 118 +++ .../sas/model/DescribeVulWhitelistRequest.h | 54 + .../sas/model/DescribeVulWhitelistResult.h | 64 ++ .../sas/model/ModifyAutoDelConfigRequest.h | 51 + .../sas/model/ModifyAutoDelConfigResult.h | 49 + .../sas/model/ModifyConcernNecessityRequest.h | 54 + .../sas/model/ModifyConcernNecessityResult.h | 49 + .../model/ModifyCreateVulWhitelistRequest.h | 54 + .../model/ModifyCreateVulWhitelistResult.h | 49 + .../model/ModifyDeleteVulWhitelistRequest.h | 51 + .../model/ModifyDeleteVulWhitelistResult.h | 49 + .../sas/model/ModifyEmgVulSubmitRequest.h | 57 + .../sas/model/ModifyEmgVulSubmitResult.h | 49 + .../sas/model/ModifyOperateVulRequest.h | 60 ++ .../sas/model/ModifyOperateVulResult.h | 49 + .../sas/model/ModifyRiskCheckStatusRequest.h | 63 ++ .../sas/model/ModifyRiskCheckStatusResult.h | 49 + .../ModifyRiskSingleResultStatusRequest.h | 63 ++ .../ModifyRiskSingleResultStatusResult.h | 49 + ...ModifySecurityCheckScheduleConfigRequest.h | 63 ++ .../ModifySecurityCheckScheduleConfigResult.h | 49 + .../model/StartBaselineSecurityCheckRequest.h | 63 ++ .../model/StartBaselineSecurityCheckResult.h | 49 + sas/src/SasClient.cc | 989 ++++++++++++++++++ .../model/DescribeAlarmEventDetailRequest.cc | 71 ++ .../model/DescribeAlarmEventDetailResult.cc | 101 ++ .../model/DescribeAlarmEventListRequest.cc | 137 +++ sas/src/model/DescribeAlarmEventListResult.cc | 104 ++ sas/src/model/DescribeAutoDelConfigRequest.cc | 38 + sas/src/model/DescribeAutoDelConfigResult.cc | 52 + .../model/DescribeConcernNecessityRequest.cc | 49 + .../model/DescribeConcernNecessityResult.cc | 53 + sas/src/model/DescribeEmgVulGroupRequest.cc | 49 + sas/src/model/DescribeEmgVulGroupResult.cc | 75 ++ sas/src/model/DescribeGroupedVulRequest.cc | 126 +++ sas/src/model/DescribeGroupedVulResult.cc | 93 ++ .../model/DescribeRiskCheckResultRequest.cc | 115 ++ .../model/DescribeRiskCheckResultResult.cc | 121 +++ .../model/DescribeRiskCheckSummaryRequest.cc | 60 ++ .../model/DescribeRiskCheckSummaryResult.cc | 99 ++ sas/src/model/DescribeRiskItemTypeRequest.cc | 60 ++ sas/src/model/DescribeRiskItemTypeResult.cc | 60 ++ ...cribeSecurityCheckScheduleConfigRequest.cc | 60 ++ ...scribeSecurityCheckScheduleConfigResult.cc | 57 + .../model/DescribeSuspEventDetailRequest.cc | 71 ++ .../model/DescribeSuspEventDetailResult.cc | 183 ++++ sas/src/model/DescribeSuspEventsRequest.cc | 148 +++ sas/src/model/DescribeSuspEventsResult.cc | 122 +++ ...escribeUserBaselineAuthorizationRequest.cc | 60 ++ ...DescribeUserBaselineAuthorizationResult.cc | 53 + sas/src/model/DescribeVulDetailsRequest.cc | 82 ++ sas/src/model/DescribeVulDetailsResult.cc | 104 ++ sas/src/model/DescribeVulListRequest.cc | 137 +++ sas/src/model/DescribeVulListResult.cc | 178 ++++ sas/src/model/DescribeVulWhitelistRequest.cc | 60 ++ sas/src/model/DescribeVulWhitelistResult.cc | 85 ++ sas/src/model/ModifyAutoDelConfigRequest.cc | 49 + sas/src/model/ModifyAutoDelConfigResult.cc | 45 + .../model/ModifyConcernNecessityRequest.cc | 60 ++ sas/src/model/ModifyConcernNecessityResult.cc | 45 + .../model/ModifyCreateVulWhitelistRequest.cc | 60 ++ .../model/ModifyCreateVulWhitelistResult.cc | 45 + .../model/ModifyDeleteVulWhitelistRequest.cc | 49 + .../model/ModifyDeleteVulWhitelistResult.cc | 45 + sas/src/model/ModifyEmgVulSubmitRequest.cc | 71 ++ sas/src/model/ModifyEmgVulSubmitResult.cc | 45 + sas/src/model/ModifyOperateVulRequest.cc | 82 ++ sas/src/model/ModifyOperateVulResult.cc | 45 + sas/src/model/ModifyRiskCheckStatusRequest.cc | 93 ++ sas/src/model/ModifyRiskCheckStatusResult.cc | 45 + .../ModifyRiskSingleResultStatusRequest.cc | 94 ++ .../ModifyRiskSingleResultStatusResult.cc | 45 + ...odifySecurityCheckScheduleConfigRequest.cc | 93 ++ ...ModifySecurityCheckScheduleConfigResult.cc | 45 + .../StartBaselineSecurityCheckRequest.cc | 95 ++ .../model/StartBaselineSecurityCheckResult.cc | 45 + 111 files changed, 8717 insertions(+), 1 deletion(-) create mode 100644 sas/CMakeLists.txt create mode 100644 sas/include/alibabacloud/sas/SasClient.h create mode 100644 sas/include/alibabacloud/sas/SasExport.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAlarmEventListResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeAutoDelConfigResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeConcernNecessityRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeConcernNecessityResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeEmgVulGroupRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeEmgVulGroupResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeGroupedVulResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskItemTypeRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeRiskItemTypeResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeSuspEventsResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeVulDetailsResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeVulListRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeVulListResult.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeVulWhitelistRequest.h create mode 100644 sas/include/alibabacloud/sas/model/DescribeVulWhitelistResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyConcernNecessityResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyOperateVulRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyOperateVulResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.h create mode 100644 sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.h create mode 100644 sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h create mode 100644 sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h create mode 100644 sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h create mode 100644 sas/src/SasClient.cc create mode 100644 sas/src/model/DescribeAlarmEventDetailRequest.cc create mode 100644 sas/src/model/DescribeAlarmEventDetailResult.cc create mode 100644 sas/src/model/DescribeAlarmEventListRequest.cc create mode 100644 sas/src/model/DescribeAlarmEventListResult.cc create mode 100644 sas/src/model/DescribeAutoDelConfigRequest.cc create mode 100644 sas/src/model/DescribeAutoDelConfigResult.cc create mode 100644 sas/src/model/DescribeConcernNecessityRequest.cc create mode 100644 sas/src/model/DescribeConcernNecessityResult.cc create mode 100644 sas/src/model/DescribeEmgVulGroupRequest.cc create mode 100644 sas/src/model/DescribeEmgVulGroupResult.cc create mode 100644 sas/src/model/DescribeGroupedVulRequest.cc create mode 100644 sas/src/model/DescribeGroupedVulResult.cc create mode 100644 sas/src/model/DescribeRiskCheckResultRequest.cc create mode 100644 sas/src/model/DescribeRiskCheckResultResult.cc create mode 100644 sas/src/model/DescribeRiskCheckSummaryRequest.cc create mode 100644 sas/src/model/DescribeRiskCheckSummaryResult.cc create mode 100644 sas/src/model/DescribeRiskItemTypeRequest.cc create mode 100644 sas/src/model/DescribeRiskItemTypeResult.cc create mode 100644 sas/src/model/DescribeSecurityCheckScheduleConfigRequest.cc create mode 100644 sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc create mode 100644 sas/src/model/DescribeSuspEventDetailRequest.cc create mode 100644 sas/src/model/DescribeSuspEventDetailResult.cc create mode 100644 sas/src/model/DescribeSuspEventsRequest.cc create mode 100644 sas/src/model/DescribeSuspEventsResult.cc create mode 100644 sas/src/model/DescribeUserBaselineAuthorizationRequest.cc create mode 100644 sas/src/model/DescribeUserBaselineAuthorizationResult.cc create mode 100644 sas/src/model/DescribeVulDetailsRequest.cc create mode 100644 sas/src/model/DescribeVulDetailsResult.cc create mode 100644 sas/src/model/DescribeVulListRequest.cc create mode 100644 sas/src/model/DescribeVulListResult.cc create mode 100644 sas/src/model/DescribeVulWhitelistRequest.cc create mode 100644 sas/src/model/DescribeVulWhitelistResult.cc create mode 100644 sas/src/model/ModifyAutoDelConfigRequest.cc create mode 100644 sas/src/model/ModifyAutoDelConfigResult.cc create mode 100644 sas/src/model/ModifyConcernNecessityRequest.cc create mode 100644 sas/src/model/ModifyConcernNecessityResult.cc create mode 100644 sas/src/model/ModifyCreateVulWhitelistRequest.cc create mode 100644 sas/src/model/ModifyCreateVulWhitelistResult.cc create mode 100644 sas/src/model/ModifyDeleteVulWhitelistRequest.cc create mode 100644 sas/src/model/ModifyDeleteVulWhitelistResult.cc create mode 100644 sas/src/model/ModifyEmgVulSubmitRequest.cc create mode 100644 sas/src/model/ModifyEmgVulSubmitResult.cc create mode 100644 sas/src/model/ModifyOperateVulRequest.cc create mode 100644 sas/src/model/ModifyOperateVulResult.cc create mode 100644 sas/src/model/ModifyRiskCheckStatusRequest.cc create mode 100644 sas/src/model/ModifyRiskCheckStatusResult.cc create mode 100644 sas/src/model/ModifyRiskSingleResultStatusRequest.cc create mode 100644 sas/src/model/ModifyRiskSingleResultStatusResult.cc create mode 100644 sas/src/model/ModifySecurityCheckScheduleConfigRequest.cc create mode 100644 sas/src/model/ModifySecurityCheckScheduleConfigResult.cc create mode 100644 sas/src/model/StartBaselineSecurityCheckRequest.cc create mode 100644 sas/src/model/StartBaselineSecurityCheckResult.cc diff --git a/CHANGELOG b/CHANGELOG index b95ca69fe..805be6c8a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +2019-04-03 Version: 1.35.4 +1, Add interfaces related to vulnerability whitelist +2, Add interfaces related to vulnerability auto-del configuration +3, Add interfaces related to vulnerability fix advise +4, Add interfaces searching and operating vulnerability + 2019-03-29 Version: 1.35.3 1, Add DLQ message openAPI. 2, Add Query the subscription relational openAPI. diff --git a/CMakeLists.txt b/CMakeLists.txt index 500fe76f0..cc343b9b9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,3 +117,5 @@ add_subdirectory(ons) add_subdirectory(ivision) add_subdirectory(imm) add_subdirectory(bssopenapi) + +add_subdirectory(sas) \ No newline at end of file diff --git a/VERSION b/VERSION index 15e3e2513..b6f753fdf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.35.3 \ No newline at end of file +1.35.4 \ No newline at end of file diff --git a/sas/CMakeLists.txt b/sas/CMakeLists.txt new file mode 100644 index 000000000..e22d7f3d3 --- /dev/null +++ b/sas/CMakeLists.txt @@ -0,0 +1,186 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(sas_public_header + include/alibabacloud/sas/SasClient.h + include/alibabacloud/sas/SasExport.h ) + +set(sas_public_header_model + include/alibabacloud/sas/model/DescribeAlarmEventDetailRequest.h + include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h + include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h + include/alibabacloud/sas/model/DescribeAlarmEventListResult.h + include/alibabacloud/sas/model/DescribeSuspEventsRequest.h + include/alibabacloud/sas/model/DescribeSuspEventsResult.h + include/alibabacloud/sas/model/DescribeConcernNecessityRequest.h + include/alibabacloud/sas/model/DescribeConcernNecessityResult.h + include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.h + include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h + include/alibabacloud/sas/model/DescribeEmgVulGroupRequest.h + include/alibabacloud/sas/model/DescribeEmgVulGroupResult.h + include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h + include/alibabacloud/sas/model/DescribeAutoDelConfigResult.h + include/alibabacloud/sas/model/DescribeVulListRequest.h + include/alibabacloud/sas/model/DescribeVulListResult.h + include/alibabacloud/sas/model/DescribeVulWhitelistRequest.h + include/alibabacloud/sas/model/DescribeVulWhitelistResult.h + include/alibabacloud/sas/model/ModifyRiskCheckStatusRequest.h + include/alibabacloud/sas/model/ModifyRiskCheckStatusResult.h + include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h + include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h + include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h + include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h + include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h + include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h + include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h + include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h + include/alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.h + include/alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.h + include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h + include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h + include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h + include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h + include/alibabacloud/sas/model/DescribeVulDetailsRequest.h + include/alibabacloud/sas/model/DescribeVulDetailsResult.h + include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.h + include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h + include/alibabacloud/sas/model/DescribeGroupedVulRequest.h + include/alibabacloud/sas/model/DescribeGroupedVulResult.h + include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h + include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h + include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h + include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h + include/alibabacloud/sas/model/ModifyOperateVulRequest.h + include/alibabacloud/sas/model/ModifyOperateVulResult.h + include/alibabacloud/sas/model/DescribeRiskItemTypeRequest.h + include/alibabacloud/sas/model/DescribeRiskItemTypeResult.h + include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.h + include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h + include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h + include/alibabacloud/sas/model/ModifyConcernNecessityResult.h ) + +set(sas_src + src/SasClient.cc + src/model/DescribeAlarmEventDetailRequest.cc + src/model/DescribeAlarmEventDetailResult.cc + src/model/DescribeAlarmEventListRequest.cc + src/model/DescribeAlarmEventListResult.cc + src/model/DescribeSuspEventsRequest.cc + src/model/DescribeSuspEventsResult.cc + src/model/DescribeConcernNecessityRequest.cc + src/model/DescribeConcernNecessityResult.cc + src/model/ModifySecurityCheckScheduleConfigRequest.cc + src/model/ModifySecurityCheckScheduleConfigResult.cc + src/model/DescribeEmgVulGroupRequest.cc + src/model/DescribeEmgVulGroupResult.cc + src/model/DescribeAutoDelConfigRequest.cc + src/model/DescribeAutoDelConfigResult.cc + src/model/DescribeVulListRequest.cc + src/model/DescribeVulListResult.cc + src/model/DescribeVulWhitelistRequest.cc + src/model/DescribeVulWhitelistResult.cc + src/model/ModifyRiskCheckStatusRequest.cc + src/model/ModifyRiskCheckStatusResult.cc + src/model/DescribeSecurityCheckScheduleConfigRequest.cc + src/model/DescribeSecurityCheckScheduleConfigResult.cc + src/model/StartBaselineSecurityCheckRequest.cc + src/model/StartBaselineSecurityCheckResult.cc + src/model/DescribeRiskCheckResultRequest.cc + src/model/DescribeRiskCheckResultResult.cc + src/model/DescribeSuspEventDetailRequest.cc + src/model/DescribeSuspEventDetailResult.cc + src/model/ModifyRiskSingleResultStatusRequest.cc + src/model/ModifyRiskSingleResultStatusResult.cc + src/model/ModifyAutoDelConfigRequest.cc + src/model/ModifyAutoDelConfigResult.cc + src/model/ModifyEmgVulSubmitRequest.cc + src/model/ModifyEmgVulSubmitResult.cc + src/model/DescribeVulDetailsRequest.cc + src/model/DescribeVulDetailsResult.cc + src/model/ModifyCreateVulWhitelistRequest.cc + src/model/ModifyCreateVulWhitelistResult.cc + src/model/DescribeGroupedVulRequest.cc + src/model/DescribeGroupedVulResult.cc + src/model/ModifyDeleteVulWhitelistRequest.cc + src/model/ModifyDeleteVulWhitelistResult.cc + src/model/DescribeRiskCheckSummaryRequest.cc + src/model/DescribeRiskCheckSummaryResult.cc + src/model/ModifyOperateVulRequest.cc + src/model/ModifyOperateVulResult.cc + src/model/DescribeRiskItemTypeRequest.cc + src/model/DescribeRiskItemTypeResult.cc + src/model/DescribeUserBaselineAuthorizationRequest.cc + src/model/DescribeUserBaselineAuthorizationResult.cc + src/model/ModifyConcernNecessityRequest.cc + src/model/ModifyConcernNecessityResult.cc ) + +add_library(sas ${LIB_TYPE} + ${sas_public_header} + ${sas_public_header_model} + ${sas_src}) + +set_target_properties(sas + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}sas + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(sas + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_SAS_LIBRARY) +endif() + +target_include_directories(sas + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(sas + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(sas + jsoncpp) + target_include_directories(sas + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(sas + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(sas + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(sas + PRIVATE /usr/include/jsoncpp) + target_link_libraries(sas + jsoncpp) +endif() + +install(FILES ${sas_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sas) +install(FILES ${sas_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/sas/model) +install(TARGETS sas + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/SasClient.h b/sas/include/alibabacloud/sas/SasClient.h new file mode 100644 index 000000000..31f6f1798 --- /dev/null +++ b/sas/include/alibabacloud/sas/SasClient.h @@ -0,0 +1,254 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SASCLIENT_H_ +#define ALIBABACLOUD_SAS_SASCLIENT_H_ + +#include +#include +#include +#include +#include "SasExport.h" +#include "model/DescribeAlarmEventDetailRequest.h" +#include "model/DescribeAlarmEventDetailResult.h" +#include "model/DescribeAlarmEventListRequest.h" +#include "model/DescribeAlarmEventListResult.h" +#include "model/DescribeSuspEventsRequest.h" +#include "model/DescribeSuspEventsResult.h" +#include "model/DescribeConcernNecessityRequest.h" +#include "model/DescribeConcernNecessityResult.h" +#include "model/ModifySecurityCheckScheduleConfigRequest.h" +#include "model/ModifySecurityCheckScheduleConfigResult.h" +#include "model/DescribeEmgVulGroupRequest.h" +#include "model/DescribeEmgVulGroupResult.h" +#include "model/DescribeAutoDelConfigRequest.h" +#include "model/DescribeAutoDelConfigResult.h" +#include "model/DescribeVulListRequest.h" +#include "model/DescribeVulListResult.h" +#include "model/DescribeVulWhitelistRequest.h" +#include "model/DescribeVulWhitelistResult.h" +#include "model/ModifyRiskCheckStatusRequest.h" +#include "model/ModifyRiskCheckStatusResult.h" +#include "model/DescribeSecurityCheckScheduleConfigRequest.h" +#include "model/DescribeSecurityCheckScheduleConfigResult.h" +#include "model/StartBaselineSecurityCheckRequest.h" +#include "model/StartBaselineSecurityCheckResult.h" +#include "model/DescribeRiskCheckResultRequest.h" +#include "model/DescribeRiskCheckResultResult.h" +#include "model/DescribeSuspEventDetailRequest.h" +#include "model/DescribeSuspEventDetailResult.h" +#include "model/ModifyRiskSingleResultStatusRequest.h" +#include "model/ModifyRiskSingleResultStatusResult.h" +#include "model/ModifyAutoDelConfigRequest.h" +#include "model/ModifyAutoDelConfigResult.h" +#include "model/ModifyEmgVulSubmitRequest.h" +#include "model/ModifyEmgVulSubmitResult.h" +#include "model/DescribeVulDetailsRequest.h" +#include "model/DescribeVulDetailsResult.h" +#include "model/ModifyCreateVulWhitelistRequest.h" +#include "model/ModifyCreateVulWhitelistResult.h" +#include "model/DescribeGroupedVulRequest.h" +#include "model/DescribeGroupedVulResult.h" +#include "model/ModifyDeleteVulWhitelistRequest.h" +#include "model/ModifyDeleteVulWhitelistResult.h" +#include "model/DescribeRiskCheckSummaryRequest.h" +#include "model/DescribeRiskCheckSummaryResult.h" +#include "model/ModifyOperateVulRequest.h" +#include "model/ModifyOperateVulResult.h" +#include "model/DescribeRiskItemTypeRequest.h" +#include "model/DescribeRiskItemTypeResult.h" +#include "model/DescribeUserBaselineAuthorizationRequest.h" +#include "model/DescribeUserBaselineAuthorizationResult.h" +#include "model/ModifyConcernNecessityRequest.h" +#include "model/ModifyConcernNecessityResult.h" + + +namespace AlibabaCloud +{ + namespace Sas + { + class ALIBABACLOUD_SAS_EXPORT SasClient : public RpcServiceClient + { + public: + typedef Outcome DescribeAlarmEventDetailOutcome; + typedef std::future DescribeAlarmEventDetailOutcomeCallable; + typedef std::function&)> DescribeAlarmEventDetailAsyncHandler; + typedef Outcome DescribeAlarmEventListOutcome; + typedef std::future DescribeAlarmEventListOutcomeCallable; + typedef std::function&)> DescribeAlarmEventListAsyncHandler; + typedef Outcome DescribeSuspEventsOutcome; + typedef std::future DescribeSuspEventsOutcomeCallable; + typedef std::function&)> DescribeSuspEventsAsyncHandler; + typedef Outcome DescribeConcernNecessityOutcome; + typedef std::future DescribeConcernNecessityOutcomeCallable; + typedef std::function&)> DescribeConcernNecessityAsyncHandler; + typedef Outcome ModifySecurityCheckScheduleConfigOutcome; + typedef std::future ModifySecurityCheckScheduleConfigOutcomeCallable; + typedef std::function&)> ModifySecurityCheckScheduleConfigAsyncHandler; + typedef Outcome DescribeEmgVulGroupOutcome; + typedef std::future DescribeEmgVulGroupOutcomeCallable; + typedef std::function&)> DescribeEmgVulGroupAsyncHandler; + typedef Outcome DescribeAutoDelConfigOutcome; + typedef std::future DescribeAutoDelConfigOutcomeCallable; + typedef std::function&)> DescribeAutoDelConfigAsyncHandler; + typedef Outcome DescribeVulListOutcome; + typedef std::future DescribeVulListOutcomeCallable; + typedef std::function&)> DescribeVulListAsyncHandler; + typedef Outcome DescribeVulWhitelistOutcome; + typedef std::future DescribeVulWhitelistOutcomeCallable; + typedef std::function&)> DescribeVulWhitelistAsyncHandler; + typedef Outcome ModifyRiskCheckStatusOutcome; + typedef std::future ModifyRiskCheckStatusOutcomeCallable; + typedef std::function&)> ModifyRiskCheckStatusAsyncHandler; + typedef Outcome DescribeSecurityCheckScheduleConfigOutcome; + typedef std::future DescribeSecurityCheckScheduleConfigOutcomeCallable; + typedef std::function&)> DescribeSecurityCheckScheduleConfigAsyncHandler; + typedef Outcome StartBaselineSecurityCheckOutcome; + typedef std::future StartBaselineSecurityCheckOutcomeCallable; + typedef std::function&)> StartBaselineSecurityCheckAsyncHandler; + typedef Outcome DescribeRiskCheckResultOutcome; + typedef std::future DescribeRiskCheckResultOutcomeCallable; + typedef std::function&)> DescribeRiskCheckResultAsyncHandler; + typedef Outcome DescribeSuspEventDetailOutcome; + typedef std::future DescribeSuspEventDetailOutcomeCallable; + typedef std::function&)> DescribeSuspEventDetailAsyncHandler; + typedef Outcome ModifyRiskSingleResultStatusOutcome; + typedef std::future ModifyRiskSingleResultStatusOutcomeCallable; + typedef std::function&)> ModifyRiskSingleResultStatusAsyncHandler; + typedef Outcome ModifyAutoDelConfigOutcome; + typedef std::future ModifyAutoDelConfigOutcomeCallable; + typedef std::function&)> ModifyAutoDelConfigAsyncHandler; + typedef Outcome ModifyEmgVulSubmitOutcome; + typedef std::future ModifyEmgVulSubmitOutcomeCallable; + typedef std::function&)> ModifyEmgVulSubmitAsyncHandler; + typedef Outcome DescribeVulDetailsOutcome; + typedef std::future DescribeVulDetailsOutcomeCallable; + typedef std::function&)> DescribeVulDetailsAsyncHandler; + typedef Outcome ModifyCreateVulWhitelistOutcome; + typedef std::future ModifyCreateVulWhitelistOutcomeCallable; + typedef std::function&)> ModifyCreateVulWhitelistAsyncHandler; + typedef Outcome DescribeGroupedVulOutcome; + typedef std::future DescribeGroupedVulOutcomeCallable; + typedef std::function&)> DescribeGroupedVulAsyncHandler; + typedef Outcome ModifyDeleteVulWhitelistOutcome; + typedef std::future ModifyDeleteVulWhitelistOutcomeCallable; + typedef std::function&)> ModifyDeleteVulWhitelistAsyncHandler; + typedef Outcome DescribeRiskCheckSummaryOutcome; + typedef std::future DescribeRiskCheckSummaryOutcomeCallable; + typedef std::function&)> DescribeRiskCheckSummaryAsyncHandler; + typedef Outcome ModifyOperateVulOutcome; + typedef std::future ModifyOperateVulOutcomeCallable; + typedef std::function&)> ModifyOperateVulAsyncHandler; + typedef Outcome DescribeRiskItemTypeOutcome; + typedef std::future DescribeRiskItemTypeOutcomeCallable; + typedef std::function&)> DescribeRiskItemTypeAsyncHandler; + typedef Outcome DescribeUserBaselineAuthorizationOutcome; + typedef std::future DescribeUserBaselineAuthorizationOutcomeCallable; + typedef std::function&)> DescribeUserBaselineAuthorizationAsyncHandler; + typedef Outcome ModifyConcernNecessityOutcome; + typedef std::future ModifyConcernNecessityOutcomeCallable; + typedef std::function&)> ModifyConcernNecessityAsyncHandler; + + SasClient(const Credentials &credentials, const ClientConfiguration &configuration); + SasClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + SasClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~SasClient(); + DescribeAlarmEventDetailOutcome describeAlarmEventDetail(const Model::DescribeAlarmEventDetailRequest &request)const; + void describeAlarmEventDetailAsync(const Model::DescribeAlarmEventDetailRequest& request, const DescribeAlarmEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlarmEventDetailOutcomeCallable describeAlarmEventDetailCallable(const Model::DescribeAlarmEventDetailRequest& request) const; + DescribeAlarmEventListOutcome describeAlarmEventList(const Model::DescribeAlarmEventListRequest &request)const; + void describeAlarmEventListAsync(const Model::DescribeAlarmEventListRequest& request, const DescribeAlarmEventListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAlarmEventListOutcomeCallable describeAlarmEventListCallable(const Model::DescribeAlarmEventListRequest& request) const; + DescribeSuspEventsOutcome describeSuspEvents(const Model::DescribeSuspEventsRequest &request)const; + void describeSuspEventsAsync(const Model::DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSuspEventsOutcomeCallable describeSuspEventsCallable(const Model::DescribeSuspEventsRequest& request) const; + DescribeConcernNecessityOutcome describeConcernNecessity(const Model::DescribeConcernNecessityRequest &request)const; + void describeConcernNecessityAsync(const Model::DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConcernNecessityOutcomeCallable describeConcernNecessityCallable(const Model::DescribeConcernNecessityRequest& request) const; + ModifySecurityCheckScheduleConfigOutcome modifySecurityCheckScheduleConfig(const Model::ModifySecurityCheckScheduleConfigRequest &request)const; + void modifySecurityCheckScheduleConfigAsync(const Model::ModifySecurityCheckScheduleConfigRequest& request, const ModifySecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityCheckScheduleConfigOutcomeCallable modifySecurityCheckScheduleConfigCallable(const Model::ModifySecurityCheckScheduleConfigRequest& request) const; + DescribeEmgVulGroupOutcome describeEmgVulGroup(const Model::DescribeEmgVulGroupRequest &request)const; + void describeEmgVulGroupAsync(const Model::DescribeEmgVulGroupRequest& request, const DescribeEmgVulGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEmgVulGroupOutcomeCallable describeEmgVulGroupCallable(const Model::DescribeEmgVulGroupRequest& request) const; + DescribeAutoDelConfigOutcome describeAutoDelConfig(const Model::DescribeAutoDelConfigRequest &request)const; + void describeAutoDelConfigAsync(const Model::DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoDelConfigOutcomeCallable describeAutoDelConfigCallable(const Model::DescribeAutoDelConfigRequest& request) const; + DescribeVulListOutcome describeVulList(const Model::DescribeVulListRequest &request)const; + void describeVulListAsync(const Model::DescribeVulListRequest& request, const DescribeVulListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVulListOutcomeCallable describeVulListCallable(const Model::DescribeVulListRequest& request) const; + DescribeVulWhitelistOutcome describeVulWhitelist(const Model::DescribeVulWhitelistRequest &request)const; + void describeVulWhitelistAsync(const Model::DescribeVulWhitelistRequest& request, const DescribeVulWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVulWhitelistOutcomeCallable describeVulWhitelistCallable(const Model::DescribeVulWhitelistRequest& request) const; + ModifyRiskCheckStatusOutcome modifyRiskCheckStatus(const Model::ModifyRiskCheckStatusRequest &request)const; + void modifyRiskCheckStatusAsync(const Model::ModifyRiskCheckStatusRequest& request, const ModifyRiskCheckStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRiskCheckStatusOutcomeCallable modifyRiskCheckStatusCallable(const Model::ModifyRiskCheckStatusRequest& request) const; + DescribeSecurityCheckScheduleConfigOutcome describeSecurityCheckScheduleConfig(const Model::DescribeSecurityCheckScheduleConfigRequest &request)const; + void describeSecurityCheckScheduleConfigAsync(const Model::DescribeSecurityCheckScheduleConfigRequest& request, const DescribeSecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityCheckScheduleConfigOutcomeCallable describeSecurityCheckScheduleConfigCallable(const Model::DescribeSecurityCheckScheduleConfigRequest& request) const; + StartBaselineSecurityCheckOutcome startBaselineSecurityCheck(const Model::StartBaselineSecurityCheckRequest &request)const; + void startBaselineSecurityCheckAsync(const Model::StartBaselineSecurityCheckRequest& request, const StartBaselineSecurityCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartBaselineSecurityCheckOutcomeCallable startBaselineSecurityCheckCallable(const Model::StartBaselineSecurityCheckRequest& request) const; + DescribeRiskCheckResultOutcome describeRiskCheckResult(const Model::DescribeRiskCheckResultRequest &request)const; + void describeRiskCheckResultAsync(const Model::DescribeRiskCheckResultRequest& request, const DescribeRiskCheckResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRiskCheckResultOutcomeCallable describeRiskCheckResultCallable(const Model::DescribeRiskCheckResultRequest& request) const; + DescribeSuspEventDetailOutcome describeSuspEventDetail(const Model::DescribeSuspEventDetailRequest &request)const; + void describeSuspEventDetailAsync(const Model::DescribeSuspEventDetailRequest& request, const DescribeSuspEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSuspEventDetailOutcomeCallable describeSuspEventDetailCallable(const Model::DescribeSuspEventDetailRequest& request) const; + ModifyRiskSingleResultStatusOutcome modifyRiskSingleResultStatus(const Model::ModifyRiskSingleResultStatusRequest &request)const; + void modifyRiskSingleResultStatusAsync(const Model::ModifyRiskSingleResultStatusRequest& request, const ModifyRiskSingleResultStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRiskSingleResultStatusOutcomeCallable modifyRiskSingleResultStatusCallable(const Model::ModifyRiskSingleResultStatusRequest& request) const; + ModifyAutoDelConfigOutcome modifyAutoDelConfig(const Model::ModifyAutoDelConfigRequest &request)const; + void modifyAutoDelConfigAsync(const Model::ModifyAutoDelConfigRequest& request, const ModifyAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAutoDelConfigOutcomeCallable modifyAutoDelConfigCallable(const Model::ModifyAutoDelConfigRequest& request) const; + ModifyEmgVulSubmitOutcome modifyEmgVulSubmit(const Model::ModifyEmgVulSubmitRequest &request)const; + void modifyEmgVulSubmitAsync(const Model::ModifyEmgVulSubmitRequest& request, const ModifyEmgVulSubmitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEmgVulSubmitOutcomeCallable modifyEmgVulSubmitCallable(const Model::ModifyEmgVulSubmitRequest& request) const; + DescribeVulDetailsOutcome describeVulDetails(const Model::DescribeVulDetailsRequest &request)const; + void describeVulDetailsAsync(const Model::DescribeVulDetailsRequest& request, const DescribeVulDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVulDetailsOutcomeCallable describeVulDetailsCallable(const Model::DescribeVulDetailsRequest& request) const; + ModifyCreateVulWhitelistOutcome modifyCreateVulWhitelist(const Model::ModifyCreateVulWhitelistRequest &request)const; + void modifyCreateVulWhitelistAsync(const Model::ModifyCreateVulWhitelistRequest& request, const ModifyCreateVulWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCreateVulWhitelistOutcomeCallable modifyCreateVulWhitelistCallable(const Model::ModifyCreateVulWhitelistRequest& request) const; + DescribeGroupedVulOutcome describeGroupedVul(const Model::DescribeGroupedVulRequest &request)const; + void describeGroupedVulAsync(const Model::DescribeGroupedVulRequest& request, const DescribeGroupedVulAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGroupedVulOutcomeCallable describeGroupedVulCallable(const Model::DescribeGroupedVulRequest& request) const; + ModifyDeleteVulWhitelistOutcome modifyDeleteVulWhitelist(const Model::ModifyDeleteVulWhitelistRequest &request)const; + void modifyDeleteVulWhitelistAsync(const Model::ModifyDeleteVulWhitelistRequest& request, const ModifyDeleteVulWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDeleteVulWhitelistOutcomeCallable modifyDeleteVulWhitelistCallable(const Model::ModifyDeleteVulWhitelistRequest& request) const; + DescribeRiskCheckSummaryOutcome describeRiskCheckSummary(const Model::DescribeRiskCheckSummaryRequest &request)const; + void describeRiskCheckSummaryAsync(const Model::DescribeRiskCheckSummaryRequest& request, const DescribeRiskCheckSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRiskCheckSummaryOutcomeCallable describeRiskCheckSummaryCallable(const Model::DescribeRiskCheckSummaryRequest& request) const; + ModifyOperateVulOutcome modifyOperateVul(const Model::ModifyOperateVulRequest &request)const; + void modifyOperateVulAsync(const Model::ModifyOperateVulRequest& request, const ModifyOperateVulAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyOperateVulOutcomeCallable modifyOperateVulCallable(const Model::ModifyOperateVulRequest& request) const; + DescribeRiskItemTypeOutcome describeRiskItemType(const Model::DescribeRiskItemTypeRequest &request)const; + void describeRiskItemTypeAsync(const Model::DescribeRiskItemTypeRequest& request, const DescribeRiskItemTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRiskItemTypeOutcomeCallable describeRiskItemTypeCallable(const Model::DescribeRiskItemTypeRequest& request) const; + DescribeUserBaselineAuthorizationOutcome describeUserBaselineAuthorization(const Model::DescribeUserBaselineAuthorizationRequest &request)const; + void describeUserBaselineAuthorizationAsync(const Model::DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserBaselineAuthorizationOutcomeCallable describeUserBaselineAuthorizationCallable(const Model::DescribeUserBaselineAuthorizationRequest& 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; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_SAS_SASCLIENT_H_ diff --git a/sas/include/alibabacloud/sas/SasExport.h b/sas/include/alibabacloud/sas/SasExport.h new file mode 100644 index 000000000..e9035d38e --- /dev/null +++ b/sas/include/alibabacloud/sas/SasExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_SASEXPORT_H_ +#define ALIBABACLOUD_SAS_SASEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_SAS_LIBRARY) +# define ALIBABACLOUD_SAS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_SAS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_SAS_EXPORT +#endif + +#endif // !ALIBABACLOUD_SAS_SASEXPORT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailRequest.h b/sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailRequest.h new file mode 100644 index 000000000..e0d1147af --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailRequest.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_DESCRIBEALARMEVENTDETAILREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeAlarmEventDetailRequest : public RpcServiceRequest + { + + public: + DescribeAlarmEventDetailRequest(); + ~DescribeAlarmEventDetailRequest(); + + std::string getAlarmUniqueInfo()const; + void setAlarmUniqueInfo(const std::string& alarmUniqueInfo); + 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); + + private: + std::string alarmUniqueInfo_; + std::string sourceIp_; + std::string from_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h b/sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h new file mode 100644 index 000000000..73acef63c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAlarmEventDetailResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTDETAILRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeAlarmEventDetailResult : public ServiceResult + { + public: + struct Data + { + struct CauseDetail + { + struct ValueItem + { + std::string type; + std::string value; + std::string name; + }; + std::vector value; + std::string key; + }; + bool canCancelFault; + long endTime; + std::vector causeDetails; + long startTime; + std::string intranetIp; + std::string dataSource; + std::string instanceName; + std::string type; + bool canBeDealOnLine; + std::string uuid; + std::string internetIp; + std::string alarmEventDesc; + std::string alarmUniqueInfo; + std::string level; + std::string alarmEventAliasName; + std::string solution; + }; + + + DescribeAlarmEventDetailResult(); + explicit DescribeAlarmEventDetailResult(const std::string &payload); + ~DescribeAlarmEventDetailResult(); + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTDETAILRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h b/sas/include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h new file mode 100644 index 000000000..030e62c96 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAlarmEventListRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTLISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeAlarmEventListRequest : public RpcServiceRequest + { + + public: + DescribeAlarmEventListRequest(); + ~DescribeAlarmEventListRequest(); + + std::string getAlarmEventName()const; + void setAlarmEventName(const std::string& alarmEventName); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getAlarmEventType()const; + void setAlarmEventType(const std::string& alarmEventType); + std::string getDealed()const; + void setDealed(const std::string& dealed); + std::string getFrom()const; + void setFrom(const std::string& from); + std::string getRemark()const; + void setRemark(const std::string& remark); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getLevels()const; + void setLevels(const std::string& levels); + + private: + std::string alarmEventName_; + std::string sourceIp_; + std::string pageSize_; + std::string alarmEventType_; + std::string dealed_; + std::string from_; + std::string remark_; + int currentPage_; + std::string lang_; + std::string levels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTLISTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAlarmEventListResult.h b/sas/include/alibabacloud/sas/model/DescribeAlarmEventListResult.h new file mode 100644 index 000000000..984f49d2f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAlarmEventListResult.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_DESCRIBEALARMEVENTLISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeAlarmEventListResult : public ServiceResult + { + public: + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct SuspEventsItem + { + bool canCancelFault; + std::string description; + long endTime; + std::string alarmEventName; + long startTime; + std::string saleVersion; + std::string intranetIp; + std::string dataSource; + std::string instanceName; + bool canBeDealOnLine; + std::string uuid; + std::string internetIp; + std::string alarmEventType; + int suspiciousEventCount; + std::string alarmUniqueInfo; + std::string level; + std::string solution; + }; + + + DescribeAlarmEventListResult(); + explicit DescribeAlarmEventListResult(const std::string &payload); + ~DescribeAlarmEventListResult(); + PageInfo getPageInfo()const; + std::vector getSuspEvents()const; + + protected: + void parse(const std::string &payload); + private: + PageInfo pageInfo_; + std::vector suspEvents_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEALARMEVENTLISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h b/sas/include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.h new file mode 100644 index 000000000..9f1b3bdc6 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAutoDelConfigRequest.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_DESCRIBEAUTODELCONFIGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEAUTODELCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeAutoDelConfigRequest : public RpcServiceRequest + { + + public: + DescribeAutoDelConfigRequest(); + ~DescribeAutoDelConfigRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEAUTODELCONFIGREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeAutoDelConfigResult.h b/sas/include/alibabacloud/sas/model/DescribeAutoDelConfigResult.h new file mode 100644 index 000000000..f53e76a11 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeAutoDelConfigResult.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_DESCRIBEAUTODELCONFIGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEAUTODELCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeAutoDelConfigResult : public ServiceResult + { + public: + + + DescribeAutoDelConfigResult(); + explicit DescribeAutoDelConfigResult(const std::string &payload); + ~DescribeAutoDelConfigResult(); + int getDays()const; + + protected: + void parse(const std::string &payload); + private: + int days_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEAUTODELCONFIGRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeConcernNecessityRequest.h b/sas/include/alibabacloud/sas/model/DescribeConcernNecessityRequest.h new file mode 100644 index 000000000..52a6caa7d --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeConcernNecessityRequest.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_DESCRIBECONCERNNECESSITYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBECONCERNNECESSITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeConcernNecessityRequest : public RpcServiceRequest + { + + public: + DescribeConcernNecessityRequest(); + ~DescribeConcernNecessityRequest(); + + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECONCERNNECESSITYREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeConcernNecessityResult.h b/sas/include/alibabacloud/sas/model/DescribeConcernNecessityResult.h new file mode 100644 index 000000000..3ee330ddd --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeConcernNecessityResult.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_DESCRIBECONCERNNECESSITYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBECONCERNNECESSITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeConcernNecessityResult : public ServiceResult + { + public: + + + DescribeConcernNecessityResult(); + explicit DescribeConcernNecessityResult(const std::string &payload); + ~DescribeConcernNecessityResult(); + std::vector getConcernNecessity()const; + + protected: + void parse(const std::string &payload); + private: + std::vector concernNecessity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECONCERNNECESSITYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeEmgVulGroupRequest.h b/sas/include/alibabacloud/sas/model/DescribeEmgVulGroupRequest.h new file mode 100644 index 000000000..565146317 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeEmgVulGroupRequest.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_DESCRIBEEMGVULGROUPREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEEMGVULGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeEmgVulGroupRequest : public RpcServiceRequest + { + + public: + DescribeEmgVulGroupRequest(); + ~DescribeEmgVulGroupRequest(); + + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEEMGVULGROUPREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeEmgVulGroupResult.h b/sas/include/alibabacloud/sas/model/DescribeEmgVulGroupResult.h new file mode 100644 index 000000000..e9b8769e9 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeEmgVulGroupResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEEMGVULGROUPRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEEMGVULGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeEmgVulGroupResult : public ServiceResult + { + public: + struct EmgVulGroup + { + int pendingCount; + std::string type; + std::string description; + std::string aliasName; + long gmtPublish; + std::string name; + }; + + + DescribeEmgVulGroupResult(); + explicit DescribeEmgVulGroupResult(const std::string &payload); + ~DescribeEmgVulGroupResult(); + int getTotalCount()const; + std::vector getEmgVulGroupList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector emgVulGroupList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEEMGVULGROUPRESULT_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 new file mode 100644 index 000000000..73ec7a06c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeGroupedVulRequest.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_DESCRIBEGROUPEDVULREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPEDVULREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeGroupedVulRequest : public RpcServiceRequest + { + + public: + DescribeGroupedVulRequest(); + ~DescribeGroupedVulRequest(); + + 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); + std::string getDealed()const; + void setDealed(const std::string& dealed); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getType()const; + void setType(const std::string& type); + std::string getNecessity()const; + void setNecessity(const std::string& necessity); + std::string getUuids()const; + void setUuids(const std::string& uuids); + + private: + std::string aliasName_; + std::string sourceIp_; + int pageSize_; + std::string dealed_; + int currentPage_; + std::string lang_; + std::string type_; + std::string necessity_; + std::string uuids_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPEDVULREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeGroupedVulResult.h b/sas/include/alibabacloud/sas/model/DescribeGroupedVulResult.h new file mode 100644 index 000000000..5e8a9f876 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeGroupedVulResult.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_DESCRIBEGROUPEDVULRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPEDVULRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeGroupedVulResult : public ServiceResult + { + public: + struct GroupedVulItem + { + std::string type; + long gmtLast; + int laterCount; + int handledCount; + std::string aliasName; + int asapCount; + int nntfCount; + std::string tags; + }; + + + DescribeGroupedVulResult(); + explicit DescribeGroupedVulResult(const std::string &payload); + ~DescribeGroupedVulResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getGroupedVulItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + std::vector groupedVulItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEGROUPEDVULRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.h new file mode 100644 index 000000000..50e1a3beb --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultRequest.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_DESCRIBERISKCHECKRESULTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskCheckResultRequest : public RpcServiceRequest + { + + public: + DescribeRiskCheckResultRequest(); + ~DescribeRiskCheckResultRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + long getGroupId()const; + void setGroupId(long groupId); + std::string getName()const; + void setName(const std::string& name); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getRiskLevel()const; + void setRiskLevel(const std::string& riskLevel); + + private: + long resourceOwnerId_; + std::string sourceIp_; + long groupId_; + std::string name_; + int pageSize_; + int currentPage_; + std::string lang_; + std::string riskLevel_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKRESULTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.h new file mode 100644 index 000000000..0a027a767 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckResultResult.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_DESCRIBERISKCHECKRESULTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskCheckResultResult : public ServiceResult + { + public: + struct RiskCheckResultForDisplay + { + struct RiskItemResource + { + std::string contentResource; + std::string resourceName; + }; + std::string status; + long checkTime; + std::string type; + long taskId; + std::vector riskItemResources; + int affectedCount; + int remainingTime; + std::string title; + int sort; + long itemId; + std::string riskLevel; + }; + + + DescribeRiskCheckResultResult(); + explicit DescribeRiskCheckResultResult(const std::string &payload); + ~DescribeRiskCheckResultResult(); + int getTotalCount()const; + int getPageCount()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getList()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageCount_; + int pageSize_; + int currentPage_; + std::vector list_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKRESULTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.h new file mode 100644 index 000000000..ecad8a87b --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryRequest.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_DESCRIBERISKCHECKSUMMARYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKSUMMARYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskCheckSummaryRequest : public RpcServiceRequest + { + + public: + DescribeRiskCheckSummaryRequest(); + ~DescribeRiskCheckSummaryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKSUMMARYREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h new file mode 100644 index 000000000..fee7aa07e --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskCheckSummaryResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKSUMMARYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKSUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskCheckSummaryResult : public ServiceResult + { + public: + struct RiskCheckSummary + { + struct LevelCount + { + int count; + std::string key; + }; + struct Group + { + struct StatusCount + { + std::string status; + int count; + }; + std::string status; + std::vector countByStatus; + int remainingTime; + std::string title; + int sort; + long id; + }; + std::vector riskLevelCount; + std::vector groups; + long previousTime; + int previousCount; + int itemCount; + float riskRate; + int affectedAssetCount; + int riskCount; + }; + + + DescribeRiskCheckSummaryResult(); + explicit DescribeRiskCheckSummaryResult(const std::string &payload); + ~DescribeRiskCheckSummaryResult(); + RiskCheckSummary getRiskCheckSummary()const; + + protected: + void parse(const std::string &payload); + private: + RiskCheckSummary riskCheckSummary_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKCHECKSUMMARYRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskItemTypeRequest.h b/sas/include/alibabacloud/sas/model/DescribeRiskItemTypeRequest.h new file mode 100644 index 000000000..8b7b00778 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskItemTypeRequest.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_DESCRIBERISKITEMTYPEREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKITEMTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskItemTypeRequest : public RpcServiceRequest + { + + public: + DescribeRiskItemTypeRequest(); + ~DescribeRiskItemTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKITEMTYPEREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeRiskItemTypeResult.h b/sas/include/alibabacloud/sas/model/DescribeRiskItemTypeResult.h new file mode 100644 index 000000000..1d2063050 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeRiskItemTypeResult.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_DESCRIBERISKITEMTYPERESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBERISKITEMTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeRiskItemTypeResult : public ServiceResult + { + public: + struct ItemType + { + std::string title; + long id; + }; + + + DescribeRiskItemTypeResult(); + explicit DescribeRiskItemTypeResult(const std::string &payload); + ~DescribeRiskItemTypeResult(); + std::vector getList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector list_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBERISKITEMTYPERESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h b/sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.h new file mode 100644 index 000000000..2f253c101 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigRequest.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_DESCRIBESECURITYCHECKSCHEDULECONFIGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYCHECKSCHEDULECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeSecurityCheckScheduleConfigRequest : public RpcServiceRequest + { + + public: + DescribeSecurityCheckScheduleConfigRequest(); + ~DescribeSecurityCheckScheduleConfigRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYCHECKSCHEDULECONFIGREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h b/sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.h new file mode 100644 index 000000000..fdebafd8c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSecurityCheckScheduleConfigResult.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_DESCRIBESECURITYCHECKSCHEDULECONFIGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYCHECKSCHEDULECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeSecurityCheckScheduleConfigResult : public ServiceResult + { + public: + struct RiskCheckJobConfig + { + std::string daysOfWeek; + int endTime; + int startTime; + }; + + + DescribeSecurityCheckScheduleConfigResult(); + explicit DescribeSecurityCheckScheduleConfigResult(const std::string &payload); + ~DescribeSecurityCheckScheduleConfigResult(); + RiskCheckJobConfig getRiskCheckJobConfig()const; + + protected: + void parse(const std::string &payload); + private: + RiskCheckJobConfig riskCheckJobConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESECURITYCHECKSCHEDULECONFIGRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.h new file mode 100644 index 000000000..743538d2d --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailRequest.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_DESCRIBESUSPEVENTDETAILREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeSuspEventDetailRequest : public RpcServiceRequest + { + + 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); + + private: + int suspiciousEventId_; + std::string sourceIp_; + std::string from_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTDETAILREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h new file mode 100644 index 000000000..edf34c118 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventDetailResult.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DESCRIBESUSPEVENTDETAILRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeSuspEventDetailResult : public ServiceResult + { + public: + struct QuaraFile + { + std::string type; + std::string value; + std::string infoType; + std::string name; + }; + + + DescribeSuspEventDetailResult(); + explicit DescribeSuspEventDetailResult(const std::string &payload); + ~DescribeSuspEventDetailResult(); + std::string getEventDesc()const; + std::string getEventTypeDesc()const; + std::string getEventStatus()const; + std::string getEventName()const; + std::string getSaleVersion()const; + std::string getIntranetIp()const; + std::string getDataSource()const; + std::string getInstanceName()const; + std::string getType()const; + std::string getOperateMsg()const; + bool getCanBeDealOnLine()const; + std::vector getDetails()const; + std::string getUuid()const; + std::string getInternetIp()const; + std::string getLevel()const; + int getId()const; + std::string getLastTime()const; + std::string getSasId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eventDesc_; + std::string eventTypeDesc_; + std::string eventStatus_; + std::string eventName_; + std::string saleVersion_; + std::string intranetIp_; + std::string dataSource_; + std::string instanceName_; + std::string type_; + std::string operateMsg_; + bool canBeDealOnLine_; + std::vector details_; + std::string uuid_; + std::string internetIp_; + std::string level_; + int id_; + std::string lastTime_; + std::string sasId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTDETAILRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.h new file mode 100644 index 000000000..96cf55358 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventsRequest.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_DESCRIBESUSPEVENTSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeSuspEventsRequest : public RpcServiceRequest + { + + public: + DescribeSuspEventsRequest(); + ~DescribeSuspEventsRequest(); + + std::string getAlarmUniqueInfo()const; + void setAlarmUniqueInfo(const std::string& alarmUniqueInfo); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getName()const; + void setName(const std::string& name); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + std::string getDealed()const; + void setDealed(const std::string& dealed); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getCurrentPage()const; + void setCurrentPage(const std::string& currentPage); + std::string getFrom()const; + void setFrom(const std::string& from); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getLevels()const; + void setLevels(const std::string& levels); + std::string getParentEventTypes()const; + void setParentEventTypes(const std::string& parentEventTypes); + + private: + std::string alarmUniqueInfo_; + std::string sourceIp_; + std::string name_; + std::string pageSize_; + std::string dealed_; + std::string remark_; + std::string currentPage_; + std::string from_; + std::string lang_; + std::string levels_; + std::string parentEventTypes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTSREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeSuspEventsResult.h b/sas/include/alibabacloud/sas/model/DescribeSuspEventsResult.h new file mode 100644 index 000000000..0eaa2b986 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeSuspEventsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeSuspEventsResult : public ServiceResult + { + public: + struct WarningSummary + { + std::string alarmEventName; + int eventStatus; + std::string saleVersion; + std::string intranetIp; + std::string eventSubType; + std::string name; + std::string dataSource; + std::string occurrenceTime; + std::string instanceName; + std::string desc; + std::string operateMsg; + bool canBeDealOnLine; + std::string uuid; + std::string internetIp; + std::string alarmEventType; + std::string alarmUniqueInfo; + std::string level; + long id; + std::string lastTime; + }; + + + DescribeSuspEventsResult(); + explicit DescribeSuspEventsResult(const std::string &payload); + ~DescribeSuspEventsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + int getCount()const; + std::vector getSuspEvents()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + int count_; + std::vector suspEvents_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPEVENTSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.h b/sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.h new file mode 100644 index 000000000..4c649e444 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationRequest.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_DESCRIBEUSERBASELINEAUTHORIZATIONREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEUSERBASELINEAUTHORIZATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeUserBaselineAuthorizationRequest : public RpcServiceRequest + { + + public: + DescribeUserBaselineAuthorizationRequest(); + ~DescribeUserBaselineAuthorizationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEUSERBASELINEAUTHORIZATIONREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h b/sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h new file mode 100644 index 000000000..92781e1a0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeUserBaselineAuthorizationResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DESCRIBEUSERBASELINEAUTHORIZATIONRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEUSERBASELINEAUTHORIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeUserBaselineAuthorizationResult : public ServiceResult + { + public: + struct UserBaselineAuthorization + { + int status; + }; + + + DescribeUserBaselineAuthorizationResult(); + explicit DescribeUserBaselineAuthorizationResult(const std::string &payload); + ~DescribeUserBaselineAuthorizationResult(); + UserBaselineAuthorization getUserBaselineAuthorization()const; + + protected: + void parse(const std::string &payload); + private: + UserBaselineAuthorization userBaselineAuthorization_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEUSERBASELINEAUTHORIZATIONRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h b/sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h new file mode 100644 index 000000000..71d8c0d97 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeVulDetailsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEVULDETAILSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULDETAILSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeVulDetailsRequest : public RpcServiceRequest + { + + public: + DescribeVulDetailsRequest(); + ~DescribeVulDetailsRequest(); + + std::string getAliasName()const; + void setAliasName(const std::string& aliasName); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getName()const; + void setName(const std::string& name); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getType()const; + void setType(const std::string& type); + + private: + std::string aliasName_; + std::string sourceIp_; + std::string name_; + std::string lang_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULDETAILSREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeVulDetailsResult.h b/sas/include/alibabacloud/sas/model/DescribeVulDetailsResult.h new file mode 100644 index 000000000..4380bb634 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeVulDetailsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEVULDETAILSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeVulDetailsResult : public ServiceResult + { + public: + struct Cve + { + struct Classify + { + std::string demoVideoUrl; + std::string description; + std::string classify; + }; + std::string cvssVector; + std::string cvssScore; + std::string classify; + std::string poc; + long pocDisclosureTime; + std::string reference; + std::vector classifys; + std::string title; + std::string product; + std::string cveId; + std::string vendor; + std::string cnvdId; + std::string complexity; + long releaseTime; + long pocCreateTime; + std::string content; + std::string summary; + std::string solution; + std::string vulLevel; + }; + + + DescribeVulDetailsResult(); + explicit DescribeVulDetailsResult(const std::string &payload); + ~DescribeVulDetailsResult(); + std::vector getCves()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cves_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULDETAILSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeVulListRequest.h b/sas/include/alibabacloud/sas/model/DescribeVulListRequest.h new file mode 100644 index 000000000..1afdb5768 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeVulListRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEVULLISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeVulListRequest : public RpcServiceRequest + { + + public: + DescribeVulListRequest(); + ~DescribeVulListRequest(); + + 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); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getDealed()const; + void setDealed(const std::string& dealed); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getType()const; + void setType(const std::string& type); + std::string getNecessity()const; + void setNecessity(const std::string& necessity); + std::string getUuids()const; + void setUuids(const std::string& uuids); + + private: + std::string aliasName_; + std::string sourceIp_; + int pageSize_; + std::string remark_; + std::string dealed_; + int currentPage_; + std::string lang_; + std::string type_; + std::string necessity_; + std::string uuids_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULLISTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeVulListResult.h b/sas/include/alibabacloud/sas/model/DescribeVulListResult.h new file mode 100644 index 000000000..acc87bded --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeVulListResult.h @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DESCRIBEVULLISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeVulListResult : public ServiceResult + { + public: + struct VulRecord + { + struct ExtendContentJson + { + struct Necessity + { + std::string status; + std::string total_score; + std::string gmt_create; + std::string cvss_factor; + std::string time_factor; + std::string is_calc; + std::string enviroment_factor; + std::string assets_factor; + }; + struct RpmEntityListItem + { + std::string path; + std::string updateCmd; + std::string version; + std::string fullVersion; + std::string matchDetail; + std::string name; + }; + int status; + std::vector cveList; + std::string os; + std::string aliasName; + Necessity necessity; + long lastTs; + std::vector rpmEntityList; + std::string tag; + std::string osRelease; + std::string absolutePath; + long primaryId; + }; + int status; + std::string instanceId; + std::string ip; + std::string osVersion; + long lastTs; + std::string necessity; + std::string needReboot; + std::string resultMessage; + std::string intranetIp; + std::string name; + int groupId; + long repairTs; + std::string instanceName; + std::string type; + long firstTs; + std::string uuid; + std::string related; + long modifyTs; + std::string internetIp; + std::string aliasName; + std::string tag; + ExtendContentJson extendContentJson; + long primaryId; + std::string resultCode; + }; + + + DescribeVulListResult(); + explicit DescribeVulListResult(const std::string &payload); + ~DescribeVulListResult(); + int getTotalCount()const; + std::vector getVulRecords()const; + int getPageSize()const; + int getCurrentPage()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector vulRecords_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULLISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeVulWhitelistRequest.h b/sas/include/alibabacloud/sas/model/DescribeVulWhitelistRequest.h new file mode 100644 index 000000000..62b9c8e99 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeVulWhitelistRequest.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_DESCRIBEVULWHITELISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeVulWhitelistRequest : public RpcServiceRequest + { + + public: + DescribeVulWhitelistRequest(); + ~DescribeVulWhitelistRequest(); + + 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: + std::string sourceIp_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/DescribeVulWhitelistResult.h b/sas/include/alibabacloud/sas/model/DescribeVulWhitelistResult.h new file mode 100644 index 000000000..4c7842681 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/DescribeVulWhitelistResult.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_DESCRIBEVULWHITELISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVULWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT DescribeVulWhitelistResult : public ServiceResult + { + public: + struct VulWhitelist + { + std::string type; + std::string aliasName; + std::string reason; + std::string name; + }; + + + DescribeVulWhitelistResult(); + explicit DescribeVulWhitelistResult(const std::string &payload); + ~DescribeVulWhitelistResult(); + int getTotalCount()const; + std::vector getVulWhitelists()const; + int getPageSize()const; + int getCurrentPage()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector vulWhitelists_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVULWHITELISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h b/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.h new file mode 100644 index 000000000..30d48ff16 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigRequest.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_MODIFYAUTODELCONFIGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyAutoDelConfigRequest : public RpcServiceRequest + { + + public: + ModifyAutoDelConfigRequest(); + ~ModifyAutoDelConfigRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getDays()const; + void setDays(int days); + + private: + std::string sourceIp_; + int days_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h b/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigResult.h new file mode 100644 index 000000000..271df9498 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyAutoDelConfigResult.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_MODIFYAUTODELCONFIGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyAutoDelConfigResult : public ServiceResult + { + public: + + + ModifyAutoDelConfigResult(); + explicit ModifyAutoDelConfigResult(const std::string &payload); + ~ModifyAutoDelConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYAUTODELCONFIGRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h b/sas/include/alibabacloud/sas/model/ModifyConcernNecessityRequest.h new file mode 100644 index 000000000..7f7f4e67b --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyConcernNecessityRequest.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_MODIFYCONCERNNECESSITYREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyConcernNecessityRequest : public RpcServiceRequest + { + + public: + ModifyConcernNecessityRequest(); + ~ModifyConcernNecessityRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getConcernNecessity()const; + void setConcernNecessity(const std::string& concernNecessity); + + private: + std::string sourceIp_; + std::string lang_; + std::string concernNecessity_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyConcernNecessityResult.h b/sas/include/alibabacloud/sas/model/ModifyConcernNecessityResult.h new file mode 100644 index 000000000..539dc7739 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyConcernNecessityResult.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_MODIFYCONCERNNECESSITYRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyConcernNecessityResult : public ServiceResult + { + public: + + + ModifyConcernNecessityResult(); + explicit ModifyConcernNecessityResult(const std::string &payload); + ~ModifyConcernNecessityResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCONCERNNECESSITYRESULT_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 new file mode 100644 index 000000000..02d34844e --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistRequest.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_MODIFYCREATEVULWHITELISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYCREATEVULWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyCreateVulWhitelistRequest : public RpcServiceRequest + { + + public: + ModifyCreateVulWhitelistRequest(); + ~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); + + private: + std::string reason_; + std::string sourceIp_; + std::string whitelist_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCREATEVULWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h b/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.h new file mode 100644 index 000000000..a2a6d92e8 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyCreateVulWhitelistResult.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_MODIFYCREATEVULWHITELISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYCREATEVULWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyCreateVulWhitelistResult : public ServiceResult + { + public: + + + ModifyCreateVulWhitelistResult(); + explicit ModifyCreateVulWhitelistResult(const std::string &payload); + ~ModifyCreateVulWhitelistResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYCREATEVULWHITELISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h b/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.h new file mode 100644 index 000000000..f6835319c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistRequest.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_MODIFYDELETEVULWHITELISTREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyDeleteVulWhitelistRequest : public RpcServiceRequest + { + + public: + ModifyDeleteVulWhitelistRequest(); + ~ModifyDeleteVulWhitelistRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getWhitelist()const; + void setWhitelist(const std::string& whitelist); + + private: + std::string sourceIp_; + std::string whitelist_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h b/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.h new file mode 100644 index 000000000..f22573b84 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyDeleteVulWhitelistResult.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_MODIFYDELETEVULWHITELISTRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyDeleteVulWhitelistResult : public ServiceResult + { + public: + + + ModifyDeleteVulWhitelistResult(); + explicit ModifyDeleteVulWhitelistResult(const std::string &payload); + ~ModifyDeleteVulWhitelistResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYDELETEVULWHITELISTRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h b/sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.h new file mode 100644 index 000000000..3deacdf88 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitRequest.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_MODIFYEMGVULSUBMITREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYEMGVULSUBMITREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyEmgVulSubmitRequest : public RpcServiceRequest + { + + public: + ModifyEmgVulSubmitRequest(); + ~ModifyEmgVulSubmitRequest(); + + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getName()const; + void setName(const std::string& name); + std::string getUserAgreement()const; + void setUserAgreement(const std::string& userAgreement); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + std::string sourceIp_; + std::string name_; + std::string userAgreement_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYEMGVULSUBMITREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h b/sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.h new file mode 100644 index 000000000..6f898a4f6 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyEmgVulSubmitResult.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_MODIFYEMGVULSUBMITRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYEMGVULSUBMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyEmgVulSubmitResult : public ServiceResult + { + public: + + + ModifyEmgVulSubmitResult(); + explicit ModifyEmgVulSubmitResult(const std::string &payload); + ~ModifyEmgVulSubmitResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYEMGVULSUBMITRESULT_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 new file mode 100644 index 000000000..6dfc0794c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyOperateVulRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SAS_MODEL_MODIFYOPERATEVULREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYOPERATEVULREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyOperateVulRequest : public RpcServiceRequest + { + + public: + ModifyOperateVulRequest(); + ~ModifyOperateVulRequest(); + + std::string getReason()const; + void setReason(const std::string& reason); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getOperateType()const; + void setOperateType(const std::string& operateType); + std::string getType()const; + void setType(const std::string& type); + std::string getInfo()const; + void setInfo(const std::string& info); + + private: + std::string reason_; + std::string sourceIp_; + std::string operateType_; + std::string type_; + std::string info_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYOPERATEVULREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyOperateVulResult.h b/sas/include/alibabacloud/sas/model/ModifyOperateVulResult.h new file mode 100644 index 000000000..923d9dc0f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyOperateVulResult.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_MODIFYOPERATEVULRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYOPERATEVULRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyOperateVulResult : public ServiceResult + { + public: + + + ModifyOperateVulResult(); + explicit ModifyOperateVulResult(const std::string &payload); + ~ModifyOperateVulResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYOPERATEVULRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusRequest.h b/sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusRequest.h new file mode 100644 index 000000000..78f7bd61f --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusRequest.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_MODIFYRISKCHECKSTATUSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYRISKCHECKSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyRiskCheckStatusRequest : public RpcServiceRequest + { + + public: + ModifyRiskCheckStatusRequest(); + ~ModifyRiskCheckStatusRequest(); + + long getItemId()const; + void setItemId(long itemId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getLang()const; + void setLang(const std::string& lang); + long getTaskId()const; + void setTaskId(long taskId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long itemId_; + long resourceOwnerId_; + std::string sourceIp_; + std::string lang_; + long taskId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYRISKCHECKSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusResult.h b/sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusResult.h new file mode 100644 index 000000000..156607898 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyRiskCheckStatusResult.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_MODIFYRISKCHECKSTATUSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYRISKCHECKSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyRiskCheckStatusResult : public ServiceResult + { + public: + + + ModifyRiskCheckStatusResult(); + explicit ModifyRiskCheckStatusResult(const std::string &payload); + ~ModifyRiskCheckStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYRISKCHECKSTATUSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.h b/sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.h new file mode 100644 index 000000000..984e95cd4 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusRequest.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_MODIFYRISKSINGLERESULTSTATUSREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYRISKSINGLERESULTSTATUSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyRiskSingleResultStatusRequest : public RpcServiceRequest + { + + public: + ModifyRiskSingleResultStatusRequest(); + ~ModifyRiskSingleResultStatusRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::vector getIds()const; + void setIds(const std::vector& ids); + std::string getLang()const; + void setLang(const std::string& lang); + long getTaskId()const; + void setTaskId(long taskId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::vector ids_; + std::string lang_; + long taskId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYRISKSINGLERESULTSTATUSREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.h b/sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.h new file mode 100644 index 000000000..54631beb5 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifyRiskSingleResultStatusResult.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_MODIFYRISKSINGLERESULTSTATUSRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYRISKSINGLERESULTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifyRiskSingleResultStatusResult : public ServiceResult + { + public: + + + ModifyRiskSingleResultStatusResult(); + explicit ModifyRiskSingleResultStatusResult(const std::string &payload); + ~ModifyRiskSingleResultStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYRISKSINGLERESULTSTATUSRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.h b/sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.h new file mode 100644 index 000000000..f9c919cd0 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigRequest.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_MODIFYSECURITYCHECKSCHEDULECONFIGREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYSECURITYCHECKSCHEDULECONFIGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifySecurityCheckScheduleConfigRequest : public RpcServiceRequest + { + + public: + ModifySecurityCheckScheduleConfigRequest(); + ~ModifySecurityCheckScheduleConfigRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getDaysOfWeek()const; + void setDaysOfWeek(const std::string& daysOfWeek); + int getEndTime()const; + void setEndTime(int endTime); + int getStartTime()const; + void setStartTime(int startTime); + std::string getLang()const; + void setLang(const std::string& lang); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string daysOfWeek_; + int endTime_; + int startTime_; + std::string lang_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYSECURITYCHECKSCHEDULECONFIGREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h b/sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.h new file mode 100644 index 000000000..02f3e1893 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/ModifySecurityCheckScheduleConfigResult.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_MODIFYSECURITYCHECKSCHEDULECONFIGRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_MODIFYSECURITYCHECKSCHEDULECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT ModifySecurityCheckScheduleConfigResult : public ServiceResult + { + public: + + + ModifySecurityCheckScheduleConfigResult(); + explicit ModifySecurityCheckScheduleConfigResult(const std::string &payload); + ~ModifySecurityCheckScheduleConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_MODIFYSECURITYCHECKSCHEDULECONFIGRESULT_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h b/sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.h new file mode 100644 index 000000000..cd57a2c57 --- /dev/null +++ b/sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckRequest.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_STARTBASELINESECURITYCHECKREQUEST_H_ +#define ALIBABACLOUD_SAS_MODEL_STARTBASELINESECURITYCHECKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT StartBaselineSecurityCheckRequest : public RpcServiceRequest + { + + public: + StartBaselineSecurityCheckRequest(); + ~StartBaselineSecurityCheckRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getAssets()const; + void setAssets(const std::vector& assets); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::vector getItemIds()const; + void setItemIds(const std::vector& itemIds); + std::string getLang()const; + void setLang(const std::string& lang); + std::string getType()const; + void setType(const std::string& type); + + private: + long resourceOwnerId_; + std::vector assets_; + std::string sourceIp_; + std::vector itemIds_; + std::string lang_; + std::string type_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_STARTBASELINESECURITYCHECKREQUEST_H_ \ No newline at end of file diff --git a/sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h b/sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.h new file mode 100644 index 000000000..6cdd1f66c --- /dev/null +++ b/sas/include/alibabacloud/sas/model/StartBaselineSecurityCheckResult.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_STARTBASELINESECURITYCHECKRESULT_H_ +#define ALIBABACLOUD_SAS_MODEL_STARTBASELINESECURITYCHECKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Sas + { + namespace Model + { + class ALIBABACLOUD_SAS_EXPORT StartBaselineSecurityCheckResult : public ServiceResult + { + public: + + + StartBaselineSecurityCheckResult(); + explicit StartBaselineSecurityCheckResult(const std::string &payload); + ~StartBaselineSecurityCheckResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SAS_MODEL_STARTBASELINESECURITYCHECKRESULT_H_ \ No newline at end of file diff --git a/sas/src/SasClient.cc b/sas/src/SasClient.cc new file mode 100644 index 000000000..f4e89f294 --- /dev/null +++ b/sas/src/SasClient.cc @@ -0,0 +1,989 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +namespace +{ + const std::string SERVICE_NAME = "Sas"; +} + +SasClient::SasClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "sas"); +} + +SasClient::SasClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "sas"); +} + +SasClient::SasClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "sas"); +} + +SasClient::~SasClient() +{} + +SasClient::DescribeAlarmEventDetailOutcome SasClient::describeAlarmEventDetail(const DescribeAlarmEventDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlarmEventDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlarmEventDetailOutcome(DescribeAlarmEventDetailResult(outcome.result())); + else + return DescribeAlarmEventDetailOutcome(outcome.error()); +} + +void SasClient::describeAlarmEventDetailAsync(const DescribeAlarmEventDetailRequest& request, const DescribeAlarmEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlarmEventDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeAlarmEventDetailOutcomeCallable SasClient::describeAlarmEventDetailCallable(const DescribeAlarmEventDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlarmEventDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeAlarmEventListOutcome SasClient::describeAlarmEventList(const DescribeAlarmEventListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAlarmEventListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAlarmEventListOutcome(DescribeAlarmEventListResult(outcome.result())); + else + return DescribeAlarmEventListOutcome(outcome.error()); +} + +void SasClient::describeAlarmEventListAsync(const DescribeAlarmEventListRequest& request, const DescribeAlarmEventListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAlarmEventList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeAlarmEventListOutcomeCallable SasClient::describeAlarmEventListCallable(const DescribeAlarmEventListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAlarmEventList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeSuspEventsOutcome SasClient::describeSuspEvents(const DescribeSuspEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSuspEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSuspEventsOutcome(DescribeSuspEventsResult(outcome.result())); + else + return DescribeSuspEventsOutcome(outcome.error()); +} + +void SasClient::describeSuspEventsAsync(const DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSuspEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeSuspEventsOutcomeCallable SasClient::describeSuspEventsCallable(const DescribeSuspEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSuspEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeConcernNecessityOutcome SasClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConcernNecessityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConcernNecessityOutcome(DescribeConcernNecessityResult(outcome.result())); + else + return DescribeConcernNecessityOutcome(outcome.error()); +} + +void SasClient::describeConcernNecessityAsync(const DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConcernNecessity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeConcernNecessityOutcomeCallable SasClient::describeConcernNecessityCallable(const DescribeConcernNecessityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConcernNecessity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifySecurityCheckScheduleConfigOutcome SasClient::modifySecurityCheckScheduleConfig(const ModifySecurityCheckScheduleConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityCheckScheduleConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityCheckScheduleConfigOutcome(ModifySecurityCheckScheduleConfigResult(outcome.result())); + else + return ModifySecurityCheckScheduleConfigOutcome(outcome.error()); +} + +void SasClient::modifySecurityCheckScheduleConfigAsync(const ModifySecurityCheckScheduleConfigRequest& request, const ModifySecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityCheckScheduleConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifySecurityCheckScheduleConfigOutcomeCallable SasClient::modifySecurityCheckScheduleConfigCallable(const ModifySecurityCheckScheduleConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityCheckScheduleConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeEmgVulGroupOutcome SasClient::describeEmgVulGroup(const DescribeEmgVulGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEmgVulGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEmgVulGroupOutcome(DescribeEmgVulGroupResult(outcome.result())); + else + return DescribeEmgVulGroupOutcome(outcome.error()); +} + +void SasClient::describeEmgVulGroupAsync(const DescribeEmgVulGroupRequest& request, const DescribeEmgVulGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEmgVulGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeEmgVulGroupOutcomeCallable SasClient::describeEmgVulGroupCallable(const DescribeEmgVulGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEmgVulGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeAutoDelConfigOutcome SasClient::describeAutoDelConfig(const DescribeAutoDelConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoDelConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoDelConfigOutcome(DescribeAutoDelConfigResult(outcome.result())); + else + return DescribeAutoDelConfigOutcome(outcome.error()); +} + +void SasClient::describeAutoDelConfigAsync(const DescribeAutoDelConfigRequest& request, const DescribeAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoDelConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeAutoDelConfigOutcomeCallable SasClient::describeAutoDelConfigCallable(const DescribeAutoDelConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoDelConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeVulListOutcome SasClient::describeVulList(const DescribeVulListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVulListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVulListOutcome(DescribeVulListResult(outcome.result())); + else + return DescribeVulListOutcome(outcome.error()); +} + +void SasClient::describeVulListAsync(const DescribeVulListRequest& request, const DescribeVulListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVulList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeVulListOutcomeCallable SasClient::describeVulListCallable(const DescribeVulListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVulList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeVulWhitelistOutcome SasClient::describeVulWhitelist(const DescribeVulWhitelistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVulWhitelistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVulWhitelistOutcome(DescribeVulWhitelistResult(outcome.result())); + else + return DescribeVulWhitelistOutcome(outcome.error()); +} + +void SasClient::describeVulWhitelistAsync(const DescribeVulWhitelistRequest& request, const DescribeVulWhitelistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVulWhitelist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeVulWhitelistOutcomeCallable SasClient::describeVulWhitelistCallable(const DescribeVulWhitelistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVulWhitelist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyRiskCheckStatusOutcome SasClient::modifyRiskCheckStatus(const ModifyRiskCheckStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRiskCheckStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRiskCheckStatusOutcome(ModifyRiskCheckStatusResult(outcome.result())); + else + return ModifyRiskCheckStatusOutcome(outcome.error()); +} + +void SasClient::modifyRiskCheckStatusAsync(const ModifyRiskCheckStatusRequest& request, const ModifyRiskCheckStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRiskCheckStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyRiskCheckStatusOutcomeCallable SasClient::modifyRiskCheckStatusCallable(const ModifyRiskCheckStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRiskCheckStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeSecurityCheckScheduleConfigOutcome SasClient::describeSecurityCheckScheduleConfig(const DescribeSecurityCheckScheduleConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityCheckScheduleConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityCheckScheduleConfigOutcome(DescribeSecurityCheckScheduleConfigResult(outcome.result())); + else + return DescribeSecurityCheckScheduleConfigOutcome(outcome.error()); +} + +void SasClient::describeSecurityCheckScheduleConfigAsync(const DescribeSecurityCheckScheduleConfigRequest& request, const DescribeSecurityCheckScheduleConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityCheckScheduleConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeSecurityCheckScheduleConfigOutcomeCallable SasClient::describeSecurityCheckScheduleConfigCallable(const DescribeSecurityCheckScheduleConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityCheckScheduleConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::StartBaselineSecurityCheckOutcome SasClient::startBaselineSecurityCheck(const StartBaselineSecurityCheckRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartBaselineSecurityCheckOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartBaselineSecurityCheckOutcome(StartBaselineSecurityCheckResult(outcome.result())); + else + return StartBaselineSecurityCheckOutcome(outcome.error()); +} + +void SasClient::startBaselineSecurityCheckAsync(const StartBaselineSecurityCheckRequest& request, const StartBaselineSecurityCheckAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startBaselineSecurityCheck(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::StartBaselineSecurityCheckOutcomeCallable SasClient::startBaselineSecurityCheckCallable(const StartBaselineSecurityCheckRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startBaselineSecurityCheck(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeRiskCheckResultOutcome SasClient::describeRiskCheckResult(const DescribeRiskCheckResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRiskCheckResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRiskCheckResultOutcome(DescribeRiskCheckResultResult(outcome.result())); + else + return DescribeRiskCheckResultOutcome(outcome.error()); +} + +void SasClient::describeRiskCheckResultAsync(const DescribeRiskCheckResultRequest& request, const DescribeRiskCheckResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRiskCheckResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeRiskCheckResultOutcomeCallable SasClient::describeRiskCheckResultCallable(const DescribeRiskCheckResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRiskCheckResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeSuspEventDetailOutcome SasClient::describeSuspEventDetail(const DescribeSuspEventDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSuspEventDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSuspEventDetailOutcome(DescribeSuspEventDetailResult(outcome.result())); + else + return DescribeSuspEventDetailOutcome(outcome.error()); +} + +void SasClient::describeSuspEventDetailAsync(const DescribeSuspEventDetailRequest& request, const DescribeSuspEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSuspEventDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeSuspEventDetailOutcomeCallable SasClient::describeSuspEventDetailCallable(const DescribeSuspEventDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSuspEventDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyRiskSingleResultStatusOutcome SasClient::modifyRiskSingleResultStatus(const ModifyRiskSingleResultStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRiskSingleResultStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRiskSingleResultStatusOutcome(ModifyRiskSingleResultStatusResult(outcome.result())); + else + return ModifyRiskSingleResultStatusOutcome(outcome.error()); +} + +void SasClient::modifyRiskSingleResultStatusAsync(const ModifyRiskSingleResultStatusRequest& request, const ModifyRiskSingleResultStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRiskSingleResultStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyRiskSingleResultStatusOutcomeCallable SasClient::modifyRiskSingleResultStatusCallable(const ModifyRiskSingleResultStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRiskSingleResultStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyAutoDelConfigOutcome SasClient::modifyAutoDelConfig(const ModifyAutoDelConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAutoDelConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAutoDelConfigOutcome(ModifyAutoDelConfigResult(outcome.result())); + else + return ModifyAutoDelConfigOutcome(outcome.error()); +} + +void SasClient::modifyAutoDelConfigAsync(const ModifyAutoDelConfigRequest& request, const ModifyAutoDelConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAutoDelConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyAutoDelConfigOutcomeCallable SasClient::modifyAutoDelConfigCallable(const ModifyAutoDelConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAutoDelConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyEmgVulSubmitOutcome SasClient::modifyEmgVulSubmit(const ModifyEmgVulSubmitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEmgVulSubmitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEmgVulSubmitOutcome(ModifyEmgVulSubmitResult(outcome.result())); + else + return ModifyEmgVulSubmitOutcome(outcome.error()); +} + +void SasClient::modifyEmgVulSubmitAsync(const ModifyEmgVulSubmitRequest& request, const ModifyEmgVulSubmitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEmgVulSubmit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyEmgVulSubmitOutcomeCallable SasClient::modifyEmgVulSubmitCallable(const ModifyEmgVulSubmitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEmgVulSubmit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeVulDetailsOutcome SasClient::describeVulDetails(const DescribeVulDetailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVulDetailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVulDetailsOutcome(DescribeVulDetailsResult(outcome.result())); + else + return DescribeVulDetailsOutcome(outcome.error()); +} + +void SasClient::describeVulDetailsAsync(const DescribeVulDetailsRequest& request, const DescribeVulDetailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVulDetails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeVulDetailsOutcomeCallable SasClient::describeVulDetailsCallable(const DescribeVulDetailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVulDetails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyCreateVulWhitelistOutcome SasClient::modifyCreateVulWhitelist(const ModifyCreateVulWhitelistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCreateVulWhitelistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCreateVulWhitelistOutcome(ModifyCreateVulWhitelistResult(outcome.result())); + else + return ModifyCreateVulWhitelistOutcome(outcome.error()); +} + +void SasClient::modifyCreateVulWhitelistAsync(const ModifyCreateVulWhitelistRequest& request, const ModifyCreateVulWhitelistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCreateVulWhitelist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyCreateVulWhitelistOutcomeCallable SasClient::modifyCreateVulWhitelistCallable(const ModifyCreateVulWhitelistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCreateVulWhitelist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeGroupedVulOutcome SasClient::describeGroupedVul(const DescribeGroupedVulRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupedVulOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupedVulOutcome(DescribeGroupedVulResult(outcome.result())); + else + return DescribeGroupedVulOutcome(outcome.error()); +} + +void SasClient::describeGroupedVulAsync(const DescribeGroupedVulRequest& request, const DescribeGroupedVulAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroupedVul(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeGroupedVulOutcomeCallable SasClient::describeGroupedVulCallable(const DescribeGroupedVulRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroupedVul(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyDeleteVulWhitelistOutcome SasClient::modifyDeleteVulWhitelist(const ModifyDeleteVulWhitelistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDeleteVulWhitelistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDeleteVulWhitelistOutcome(ModifyDeleteVulWhitelistResult(outcome.result())); + else + return ModifyDeleteVulWhitelistOutcome(outcome.error()); +} + +void SasClient::modifyDeleteVulWhitelistAsync(const ModifyDeleteVulWhitelistRequest& request, const ModifyDeleteVulWhitelistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDeleteVulWhitelist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyDeleteVulWhitelistOutcomeCallable SasClient::modifyDeleteVulWhitelistCallable(const ModifyDeleteVulWhitelistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDeleteVulWhitelist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeRiskCheckSummaryOutcome SasClient::describeRiskCheckSummary(const DescribeRiskCheckSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRiskCheckSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRiskCheckSummaryOutcome(DescribeRiskCheckSummaryResult(outcome.result())); + else + return DescribeRiskCheckSummaryOutcome(outcome.error()); +} + +void SasClient::describeRiskCheckSummaryAsync(const DescribeRiskCheckSummaryRequest& request, const DescribeRiskCheckSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRiskCheckSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeRiskCheckSummaryOutcomeCallable SasClient::describeRiskCheckSummaryCallable(const DescribeRiskCheckSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRiskCheckSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyOperateVulOutcome SasClient::modifyOperateVul(const ModifyOperateVulRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyOperateVulOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyOperateVulOutcome(ModifyOperateVulResult(outcome.result())); + else + return ModifyOperateVulOutcome(outcome.error()); +} + +void SasClient::modifyOperateVulAsync(const ModifyOperateVulRequest& request, const ModifyOperateVulAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyOperateVul(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyOperateVulOutcomeCallable SasClient::modifyOperateVulCallable(const ModifyOperateVulRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyOperateVul(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeRiskItemTypeOutcome SasClient::describeRiskItemType(const DescribeRiskItemTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRiskItemTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRiskItemTypeOutcome(DescribeRiskItemTypeResult(outcome.result())); + else + return DescribeRiskItemTypeOutcome(outcome.error()); +} + +void SasClient::describeRiskItemTypeAsync(const DescribeRiskItemTypeRequest& request, const DescribeRiskItemTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRiskItemType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeRiskItemTypeOutcomeCallable SasClient::describeRiskItemTypeCallable(const DescribeRiskItemTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRiskItemType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::DescribeUserBaselineAuthorizationOutcome SasClient::describeUserBaselineAuthorization(const DescribeUserBaselineAuthorizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserBaselineAuthorizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserBaselineAuthorizationOutcome(DescribeUserBaselineAuthorizationResult(outcome.result())); + else + return DescribeUserBaselineAuthorizationOutcome(outcome.error()); +} + +void SasClient::describeUserBaselineAuthorizationAsync(const DescribeUserBaselineAuthorizationRequest& request, const DescribeUserBaselineAuthorizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserBaselineAuthorization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::DescribeUserBaselineAuthorizationOutcomeCallable SasClient::describeUserBaselineAuthorizationCallable(const DescribeUserBaselineAuthorizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserBaselineAuthorization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SasClient::ModifyConcernNecessityOutcome SasClient::modifyConcernNecessity(const ModifyConcernNecessityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyConcernNecessityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyConcernNecessityOutcome(ModifyConcernNecessityResult(outcome.result())); + else + return ModifyConcernNecessityOutcome(outcome.error()); +} + +void SasClient::modifyConcernNecessityAsync(const ModifyConcernNecessityRequest& request, const ModifyConcernNecessityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyConcernNecessity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SasClient::ModifyConcernNecessityOutcomeCallable SasClient::modifyConcernNecessityCallable(const ModifyConcernNecessityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyConcernNecessity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/sas/src/model/DescribeAlarmEventDetailRequest.cc b/sas/src/model/DescribeAlarmEventDetailRequest.cc new file mode 100644 index 000000000..8b66d53f2 --- /dev/null +++ b/sas/src/model/DescribeAlarmEventDetailRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeAlarmEventDetailRequest; + +DescribeAlarmEventDetailRequest::DescribeAlarmEventDetailRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventDetail") +{} + +DescribeAlarmEventDetailRequest::~DescribeAlarmEventDetailRequest() +{} + +std::string DescribeAlarmEventDetailRequest::getAlarmUniqueInfo()const +{ + return alarmUniqueInfo_; +} + +void DescribeAlarmEventDetailRequest::setAlarmUniqueInfo(const std::string& alarmUniqueInfo) +{ + alarmUniqueInfo_ = alarmUniqueInfo; + setCoreParameter("AlarmUniqueInfo", alarmUniqueInfo); +} + +std::string DescribeAlarmEventDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAlarmEventDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeAlarmEventDetailRequest::getFrom()const +{ + return from_; +} + +void DescribeAlarmEventDetailRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +std::string DescribeAlarmEventDetailRequest::getLang()const +{ + return lang_; +} + +void DescribeAlarmEventDetailRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeAlarmEventDetailResult.cc b/sas/src/model/DescribeAlarmEventDetailResult.cc new file mode 100644 index 000000000..4248e4264 --- /dev/null +++ b/sas/src/model/DescribeAlarmEventDetailResult.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; + +DescribeAlarmEventDetailResult::DescribeAlarmEventDetailResult() : + ServiceResult() +{} + +DescribeAlarmEventDetailResult::DescribeAlarmEventDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlarmEventDetailResult::~DescribeAlarmEventDetailResult() +{} + +void DescribeAlarmEventDetailResult::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["InternetIp"].isNull()) + data_.internetIp = dataNode["InternetIp"].asString(); + if(!dataNode["Level"].isNull()) + data_.level = dataNode["Level"].asString(); + if(!dataNode["InstanceName"].isNull()) + data_.instanceName = dataNode["InstanceName"].asString(); + if(!dataNode["AlarmEventAliasName"].isNull()) + data_.alarmEventAliasName = dataNode["AlarmEventAliasName"].asString(); + if(!dataNode["Type"].isNull()) + data_.type = dataNode["Type"].asString(); + if(!dataNode["Uuid"].isNull()) + data_.uuid = dataNode["Uuid"].asString(); + if(!dataNode["Solution"].isNull()) + data_.solution = dataNode["Solution"].asString(); + if(!dataNode["StartTime"].isNull()) + data_.startTime = std::stol(dataNode["StartTime"].asString()); + if(!dataNode["EndTime"].isNull()) + data_.endTime = std::stol(dataNode["EndTime"].asString()); + if(!dataNode["AlarmEventDesc"].isNull()) + data_.alarmEventDesc = dataNode["AlarmEventDesc"].asString(); + if(!dataNode["IntranetIp"].isNull()) + data_.intranetIp = dataNode["IntranetIp"].asString(); + if(!dataNode["CanBeDealOnLine"].isNull()) + data_.canBeDealOnLine = dataNode["CanBeDealOnLine"].asString() == "true"; + if(!dataNode["AlarmUniqueInfo"].isNull()) + data_.alarmUniqueInfo = dataNode["AlarmUniqueInfo"].asString(); + if(!dataNode["DataSource"].isNull()) + data_.dataSource = dataNode["DataSource"].asString(); + if(!dataNode["CanCancelFault"].isNull()) + data_.canCancelFault = dataNode["CanCancelFault"].asString() == "true"; + auto allCauseDetails = value["CauseDetails"]["CauseDetail"]; + for (auto value : allCauseDetails) + { + Data::CauseDetail causeDetailObject; + if(!value["Key"].isNull()) + causeDetailObject.key = value["Key"].asString(); + auto allValue = value["Value"]["ValueItem"]; + for (auto value : allValue) + { + Data::CauseDetail::ValueItem valueObject; + if(!value["Name"].isNull()) + valueObject.name = value["Name"].asString(); + if(!value["Type"].isNull()) + valueObject.type = value["Type"].asString(); + if(!value["Value"].isNull()) + valueObject.value = value["Value"].asString(); + causeDetailObject.value.push_back(valueObject); + } + data_.causeDetails.push_back(causeDetailObject); + } + +} + +DescribeAlarmEventDetailResult::Data DescribeAlarmEventDetailResult::getData()const +{ + return data_; +} + diff --git a/sas/src/model/DescribeAlarmEventListRequest.cc b/sas/src/model/DescribeAlarmEventListRequest.cc new file mode 100644 index 000000000..04ebd76fc --- /dev/null +++ b/sas/src/model/DescribeAlarmEventListRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeAlarmEventListRequest; + +DescribeAlarmEventListRequest::DescribeAlarmEventListRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventList") +{} + +DescribeAlarmEventListRequest::~DescribeAlarmEventListRequest() +{} + +std::string DescribeAlarmEventListRequest::getAlarmEventName()const +{ + return alarmEventName_; +} + +void DescribeAlarmEventListRequest::setAlarmEventName(const std::string& alarmEventName) +{ + alarmEventName_ = alarmEventName; + setCoreParameter("AlarmEventName", alarmEventName); +} + +std::string DescribeAlarmEventListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAlarmEventListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeAlarmEventListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAlarmEventListRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeAlarmEventListRequest::getAlarmEventType()const +{ + return alarmEventType_; +} + +void DescribeAlarmEventListRequest::setAlarmEventType(const std::string& alarmEventType) +{ + alarmEventType_ = alarmEventType; + setCoreParameter("AlarmEventType", alarmEventType); +} + +std::string DescribeAlarmEventListRequest::getDealed()const +{ + return dealed_; +} + +void DescribeAlarmEventListRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setCoreParameter("Dealed", dealed); +} + +std::string DescribeAlarmEventListRequest::getFrom()const +{ + return from_; +} + +void DescribeAlarmEventListRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +std::string DescribeAlarmEventListRequest::getRemark()const +{ + return remark_; +} + +void DescribeAlarmEventListRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +int DescribeAlarmEventListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeAlarmEventListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeAlarmEventListRequest::getLang()const +{ + return lang_; +} + +void DescribeAlarmEventListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeAlarmEventListRequest::getLevels()const +{ + return levels_; +} + +void DescribeAlarmEventListRequest::setLevels(const std::string& levels) +{ + levels_ = levels; + setCoreParameter("Levels", levels); +} + diff --git a/sas/src/model/DescribeAlarmEventListResult.cc b/sas/src/model/DescribeAlarmEventListResult.cc new file mode 100644 index 000000000..6f2255331 --- /dev/null +++ b/sas/src/model/DescribeAlarmEventListResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DescribeAlarmEventListResult::DescribeAlarmEventListResult() : + ServiceResult() +{} + +DescribeAlarmEventListResult::DescribeAlarmEventListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlarmEventListResult::~DescribeAlarmEventListResult() +{} + +void DescribeAlarmEventListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSuspEvents = value["SuspEvents"]["SuspEventsItem"]; + for (auto value : allSuspEvents) + { + SuspEventsItem suspEventsObject; + if(!value["AlarmUniqueInfo"].isNull()) + suspEventsObject.alarmUniqueInfo = value["AlarmUniqueInfo"].asString(); + if(!value["Solution"].isNull()) + suspEventsObject.solution = value["Solution"].asString(); + if(!value["Level"].isNull()) + suspEventsObject.level = value["Level"].asString(); + if(!value["CanBeDealOnLine"].isNull()) + suspEventsObject.canBeDealOnLine = value["CanBeDealOnLine"].asString() == "true"; + if(!value["Description"].isNull()) + suspEventsObject.description = value["Description"].asString(); + if(!value["StartTime"].isNull()) + suspEventsObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + suspEventsObject.endTime = std::stol(value["EndTime"].asString()); + if(!value["AlarmEventType"].isNull()) + suspEventsObject.alarmEventType = value["AlarmEventType"].asString(); + if(!value["SuspiciousEventCount"].isNull()) + suspEventsObject.suspiciousEventCount = std::stoi(value["SuspiciousEventCount"].asString()); + if(!value["Uuid"].isNull()) + suspEventsObject.uuid = value["Uuid"].asString(); + if(!value["InstanceName"].isNull()) + suspEventsObject.instanceName = value["InstanceName"].asString(); + if(!value["InternetIp"].isNull()) + suspEventsObject.internetIp = value["InternetIp"].asString(); + if(!value["IntranetIp"].isNull()) + suspEventsObject.intranetIp = value["IntranetIp"].asString(); + if(!value["AlarmEventName"].isNull()) + suspEventsObject.alarmEventName = value["AlarmEventName"].asString(); + if(!value["SaleVersion"].isNull()) + suspEventsObject.saleVersion = value["SaleVersion"].asString(); + if(!value["DataSource"].isNull()) + suspEventsObject.dataSource = value["DataSource"].asString(); + if(!value["CanCancelFault"].isNull()) + suspEventsObject.canCancelFault = value["CanCancelFault"].asString() == "true"; + suspEvents_.push_back(suspEventsObject); + } + auto pageInfoNode = value["PageInfo"]; + if(!pageInfoNode["Count"].isNull()) + pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull()) + pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString()); + +} + +DescribeAlarmEventListResult::PageInfo DescribeAlarmEventListResult::getPageInfo()const +{ + return pageInfo_; +} + +std::vector DescribeAlarmEventListResult::getSuspEvents()const +{ + return suspEvents_; +} + diff --git a/sas/src/model/DescribeAutoDelConfigRequest.cc b/sas/src/model/DescribeAutoDelConfigRequest.cc new file mode 100644 index 000000000..72647aa83 --- /dev/null +++ b/sas/src/model/DescribeAutoDelConfigRequest.cc @@ -0,0 +1,38 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeAutoDelConfigRequest; + +DescribeAutoDelConfigRequest::DescribeAutoDelConfigRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeAutoDelConfig") +{} + +DescribeAutoDelConfigRequest::~DescribeAutoDelConfigRequest() +{} + +std::string DescribeAutoDelConfigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeAutoDelConfigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + diff --git a/sas/src/model/DescribeAutoDelConfigResult.cc b/sas/src/model/DescribeAutoDelConfigResult.cc new file mode 100644 index 000000000..49ac79ba8 --- /dev/null +++ b/sas/src/model/DescribeAutoDelConfigResult.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; + +DescribeAutoDelConfigResult::DescribeAutoDelConfigResult() : + ServiceResult() +{} + +DescribeAutoDelConfigResult::DescribeAutoDelConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoDelConfigResult::~DescribeAutoDelConfigResult() +{} + +void DescribeAutoDelConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Days"].isNull()) + days_ = std::stoi(value["Days"].asString()); + +} + +int DescribeAutoDelConfigResult::getDays()const +{ + return days_; +} + diff --git a/sas/src/model/DescribeConcernNecessityRequest.cc b/sas/src/model/DescribeConcernNecessityRequest.cc new file mode 100644 index 000000000..25266a1d4 --- /dev/null +++ b/sas/src/model/DescribeConcernNecessityRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeConcernNecessityRequest; + +DescribeConcernNecessityRequest::DescribeConcernNecessityRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeConcernNecessity") +{} + +DescribeConcernNecessityRequest::~DescribeConcernNecessityRequest() +{} + +std::string DescribeConcernNecessityRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeConcernNecessityRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeConcernNecessityRequest::getLang()const +{ + return lang_; +} + +void DescribeConcernNecessityRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeConcernNecessityResult.cc b/sas/src/model/DescribeConcernNecessityResult.cc new file mode 100644 index 000000000..43532367f --- /dev/null +++ b/sas/src/model/DescribeConcernNecessityResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeConcernNecessityResult::DescribeConcernNecessityResult() : + ServiceResult() +{} + +DescribeConcernNecessityResult::DescribeConcernNecessityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConcernNecessityResult::~DescribeConcernNecessityResult() +{} + +void DescribeConcernNecessityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allConcernNecessity = value["ConcernNecessity"]["Necessity"]; + for (const auto &item : allConcernNecessity) + concernNecessity_.push_back(item.asString()); + +} + +std::vector DescribeConcernNecessityResult::getConcernNecessity()const +{ + return concernNecessity_; +} + diff --git a/sas/src/model/DescribeEmgVulGroupRequest.cc b/sas/src/model/DescribeEmgVulGroupRequest.cc new file mode 100644 index 000000000..63a3da2fa --- /dev/null +++ b/sas/src/model/DescribeEmgVulGroupRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeEmgVulGroupRequest; + +DescribeEmgVulGroupRequest::DescribeEmgVulGroupRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeEmgVulGroup") +{} + +DescribeEmgVulGroupRequest::~DescribeEmgVulGroupRequest() +{} + +std::string DescribeEmgVulGroupRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeEmgVulGroupRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeEmgVulGroupRequest::getLang()const +{ + return lang_; +} + +void DescribeEmgVulGroupRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeEmgVulGroupResult.cc b/sas/src/model/DescribeEmgVulGroupResult.cc new file mode 100644 index 000000000..1f1e76a9a --- /dev/null +++ b/sas/src/model/DescribeEmgVulGroupResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeEmgVulGroupResult::DescribeEmgVulGroupResult() : + ServiceResult() +{} + +DescribeEmgVulGroupResult::DescribeEmgVulGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEmgVulGroupResult::~DescribeEmgVulGroupResult() +{} + +void DescribeEmgVulGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEmgVulGroupList = value["EmgVulGroupList"]["EmgVulGroup"]; + for (auto value : allEmgVulGroupList) + { + EmgVulGroup emgVulGroupListObject; + if(!value["AliasName"].isNull()) + emgVulGroupListObject.aliasName = value["AliasName"].asString(); + if(!value["PendingCount"].isNull()) + emgVulGroupListObject.pendingCount = std::stoi(value["PendingCount"].asString()); + if(!value["Name"].isNull()) + emgVulGroupListObject.name = value["Name"].asString(); + if(!value["GmtPublish"].isNull()) + emgVulGroupListObject.gmtPublish = std::stol(value["GmtPublish"].asString()); + if(!value["Description"].isNull()) + emgVulGroupListObject.description = value["Description"].asString(); + if(!value["Type"].isNull()) + emgVulGroupListObject.type = value["Type"].asString(); + emgVulGroupList_.push_back(emgVulGroupListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeEmgVulGroupResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeEmgVulGroupResult::getEmgVulGroupList()const +{ + return emgVulGroupList_; +} + diff --git a/sas/src/model/DescribeGroupedVulRequest.cc b/sas/src/model/DescribeGroupedVulRequest.cc new file mode 100644 index 000000000..fc29ac91b --- /dev/null +++ b/sas/src/model/DescribeGroupedVulRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeGroupedVulRequest; + +DescribeGroupedVulRequest::DescribeGroupedVulRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeGroupedVul") +{} + +DescribeGroupedVulRequest::~DescribeGroupedVulRequest() +{} + +std::string DescribeGroupedVulRequest::getAliasName()const +{ + return aliasName_; +} + +void DescribeGroupedVulRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setCoreParameter("AliasName", aliasName); +} + +std::string DescribeGroupedVulRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeGroupedVulRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeGroupedVulRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGroupedVulRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeGroupedVulRequest::getDealed()const +{ + return dealed_; +} + +void DescribeGroupedVulRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setCoreParameter("Dealed", dealed); +} + +int DescribeGroupedVulRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeGroupedVulRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeGroupedVulRequest::getLang()const +{ + return lang_; +} + +void DescribeGroupedVulRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeGroupedVulRequest::getType()const +{ + return type_; +} + +void DescribeGroupedVulRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string DescribeGroupedVulRequest::getNecessity()const +{ + return necessity_; +} + +void DescribeGroupedVulRequest::setNecessity(const std::string& necessity) +{ + necessity_ = necessity; + setCoreParameter("Necessity", necessity); +} + +std::string DescribeGroupedVulRequest::getUuids()const +{ + return uuids_; +} + +void DescribeGroupedVulRequest::setUuids(const std::string& uuids) +{ + uuids_ = uuids; + setCoreParameter("Uuids", uuids); +} + diff --git a/sas/src/model/DescribeGroupedVulResult.cc b/sas/src/model/DescribeGroupedVulResult.cc new file mode 100644 index 000000000..8c96e8f34 --- /dev/null +++ b/sas/src/model/DescribeGroupedVulResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeGroupedVulResult::DescribeGroupedVulResult() : + ServiceResult() +{} + +DescribeGroupedVulResult::DescribeGroupedVulResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGroupedVulResult::~DescribeGroupedVulResult() +{} + +void DescribeGroupedVulResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allGroupedVulItems = value["GroupedVulItems"]["GroupedVulItem"]; + for (auto value : allGroupedVulItems) + { + GroupedVulItem groupedVulItemsObject; + if(!value["AliasName"].isNull()) + groupedVulItemsObject.aliasName = value["AliasName"].asString(); + if(!value["Type"].isNull()) + groupedVulItemsObject.type = value["Type"].asString(); + if(!value["GmtLast"].isNull()) + groupedVulItemsObject.gmtLast = std::stol(value["GmtLast"].asString()); + if(!value["AsapCount"].isNull()) + groupedVulItemsObject.asapCount = std::stoi(value["AsapCount"].asString()); + if(!value["LaterCount"].isNull()) + groupedVulItemsObject.laterCount = std::stoi(value["LaterCount"].asString()); + if(!value["NntfCount"].isNull()) + groupedVulItemsObject.nntfCount = std::stoi(value["NntfCount"].asString()); + if(!value["HandledCount"].isNull()) + groupedVulItemsObject.handledCount = std::stoi(value["HandledCount"].asString()); + if(!value["Tags"].isNull()) + groupedVulItemsObject.tags = value["Tags"].asString(); + groupedVulItems_.push_back(groupedVulItemsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeGroupedVulResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGroupedVulResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGroupedVulResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeGroupedVulResult::getGroupedVulItems()const +{ + return groupedVulItems_; +} + diff --git a/sas/src/model/DescribeRiskCheckResultRequest.cc b/sas/src/model/DescribeRiskCheckResultRequest.cc new file mode 100644 index 000000000..1995dfa7d --- /dev/null +++ b/sas/src/model/DescribeRiskCheckResultRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeRiskCheckResultRequest; + +DescribeRiskCheckResultRequest::DescribeRiskCheckResultRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckResult") +{} + +DescribeRiskCheckResultRequest::~DescribeRiskCheckResultRequest() +{} + +long DescribeRiskCheckResultRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRiskCheckResultRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRiskCheckResultRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeRiskCheckResultRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +long DescribeRiskCheckResultRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeRiskCheckResultRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +std::string DescribeRiskCheckResultRequest::getName()const +{ + return name_; +} + +void DescribeRiskCheckResultRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +int DescribeRiskCheckResultRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRiskCheckResultRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeRiskCheckResultRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeRiskCheckResultRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeRiskCheckResultRequest::getLang()const +{ + return lang_; +} + +void DescribeRiskCheckResultRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeRiskCheckResultRequest::getRiskLevel()const +{ + return riskLevel_; +} + +void DescribeRiskCheckResultRequest::setRiskLevel(const std::string& riskLevel) +{ + riskLevel_ = riskLevel; + setCoreParameter("RiskLevel", riskLevel); +} + diff --git a/sas/src/model/DescribeRiskCheckResultResult.cc b/sas/src/model/DescribeRiskCheckResultResult.cc new file mode 100644 index 000000000..4f362f4c9 --- /dev/null +++ b/sas/src/model/DescribeRiskCheckResultResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DescribeRiskCheckResultResult::DescribeRiskCheckResultResult() : + ServiceResult() +{} + +DescribeRiskCheckResultResult::DescribeRiskCheckResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRiskCheckResultResult::~DescribeRiskCheckResultResult() +{} + +void DescribeRiskCheckResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allList = value["List"]["RiskCheckResultForDisplay"]; + for (auto value : allList) + { + RiskCheckResultForDisplay listObject; + if(!value["ItemId"].isNull()) + listObject.itemId = std::stol(value["ItemId"].asString()); + if(!value["TaskId"].isNull()) + listObject.taskId = std::stol(value["TaskId"].asString()); + if(!value["Title"].isNull()) + listObject.title = value["Title"].asString(); + if(!value["RiskLevel"].isNull()) + listObject.riskLevel = value["RiskLevel"].asString(); + if(!value["Status"].isNull()) + listObject.status = value["Status"].asString(); + if(!value["AffectedCount"].isNull()) + listObject.affectedCount = std::stoi(value["AffectedCount"].asString()); + if(!value["CheckTime"].isNull()) + listObject.checkTime = std::stol(value["CheckTime"].asString()); + if(!value["RemainingTime"].isNull()) + listObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["Sort"].isNull()) + listObject.sort = std::stoi(value["Sort"].asString()); + if(!value["Type"].isNull()) + listObject.type = value["Type"].asString(); + auto allRiskItemResources = value["RiskItemResources"]["RiskItemResource"]; + for (auto value : allRiskItemResources) + { + RiskCheckResultForDisplay::RiskItemResource riskItemResourcesObject; + if(!value["ResourceName"].isNull()) + riskItemResourcesObject.resourceName = value["ResourceName"].asString(); + if(!value["ContentResource"].isNull()) + riskItemResourcesObject.contentResource = value["ContentResource"].asString(); + listObject.riskItemResources.push_back(riskItemResourcesObject); + } + list_.push_back(listObject); + } + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + +} + +int DescribeRiskCheckResultResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeRiskCheckResultResult::getPageCount()const +{ + return pageCount_; +} + +int DescribeRiskCheckResultResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeRiskCheckResultResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeRiskCheckResultResult::getList()const +{ + return list_; +} + +int DescribeRiskCheckResultResult::getCount()const +{ + return count_; +} + diff --git a/sas/src/model/DescribeRiskCheckSummaryRequest.cc b/sas/src/model/DescribeRiskCheckSummaryRequest.cc new file mode 100644 index 000000000..e829093ed --- /dev/null +++ b/sas/src/model/DescribeRiskCheckSummaryRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeRiskCheckSummaryRequest; + +DescribeRiskCheckSummaryRequest::DescribeRiskCheckSummaryRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeRiskCheckSummary") +{} + +DescribeRiskCheckSummaryRequest::~DescribeRiskCheckSummaryRequest() +{} + +long DescribeRiskCheckSummaryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRiskCheckSummaryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRiskCheckSummaryRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeRiskCheckSummaryRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeRiskCheckSummaryRequest::getLang()const +{ + return lang_; +} + +void DescribeRiskCheckSummaryRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeRiskCheckSummaryResult.cc b/sas/src/model/DescribeRiskCheckSummaryResult.cc new file mode 100644 index 000000000..e99979e02 --- /dev/null +++ b/sas/src/model/DescribeRiskCheckSummaryResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeRiskCheckSummaryResult::DescribeRiskCheckSummaryResult() : + ServiceResult() +{} + +DescribeRiskCheckSummaryResult::DescribeRiskCheckSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRiskCheckSummaryResult::~DescribeRiskCheckSummaryResult() +{} + +void DescribeRiskCheckSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto riskCheckSummaryNode = value["RiskCheckSummary"]; + if(!riskCheckSummaryNode["RiskCount"].isNull()) + riskCheckSummary_.riskCount = std::stoi(riskCheckSummaryNode["RiskCount"].asString()); + if(!riskCheckSummaryNode["PreviousCount"].isNull()) + riskCheckSummary_.previousCount = std::stoi(riskCheckSummaryNode["PreviousCount"].asString()); + if(!riskCheckSummaryNode["ItemCount"].isNull()) + riskCheckSummary_.itemCount = std::stoi(riskCheckSummaryNode["ItemCount"].asString()); + if(!riskCheckSummaryNode["RiskRate"].isNull()) + riskCheckSummary_.riskRate = std::stof(riskCheckSummaryNode["RiskRate"].asString()); + if(!riskCheckSummaryNode["AffectedAssetCount"].isNull()) + riskCheckSummary_.affectedAssetCount = std::stoi(riskCheckSummaryNode["AffectedAssetCount"].asString()); + if(!riskCheckSummaryNode["PreviousTime"].isNull()) + riskCheckSummary_.previousTime = std::stol(riskCheckSummaryNode["PreviousTime"].asString()); + auto allRiskLevelCount = value["RiskLevelCount"]["levelCount"]; + for (auto value : allRiskLevelCount) + { + RiskCheckSummary::LevelCount levelCountObject; + if(!value["Key"].isNull()) + levelCountObject.key = value["Key"].asString(); + if(!value["Count"].isNull()) + levelCountObject.count = std::stoi(value["Count"].asString()); + riskCheckSummary_.riskLevelCount.push_back(levelCountObject); + } + auto allGroups = value["Groups"]["group"]; + for (auto value : allGroups) + { + RiskCheckSummary::Group groupObject; + if(!value["Id"].isNull()) + groupObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + groupObject.title = value["Title"].asString(); + if(!value["Status"].isNull()) + groupObject.status = value["Status"].asString(); + if(!value["RemainingTime"].isNull()) + groupObject.remainingTime = std::stoi(value["RemainingTime"].asString()); + if(!value["Sort"].isNull()) + groupObject.sort = std::stoi(value["Sort"].asString()); + auto allCountByStatus = value["CountByStatus"]["statusCount"]; + for (auto value : allCountByStatus) + { + RiskCheckSummary::Group::StatusCount countByStatusObject; + if(!value["Status"].isNull()) + countByStatusObject.status = value["Status"].asString(); + if(!value["Count"].isNull()) + countByStatusObject.count = std::stoi(value["Count"].asString()); + groupObject.countByStatus.push_back(countByStatusObject); + } + riskCheckSummary_.groups.push_back(groupObject); + } + +} + +DescribeRiskCheckSummaryResult::RiskCheckSummary DescribeRiskCheckSummaryResult::getRiskCheckSummary()const +{ + return riskCheckSummary_; +} + diff --git a/sas/src/model/DescribeRiskItemTypeRequest.cc b/sas/src/model/DescribeRiskItemTypeRequest.cc new file mode 100644 index 000000000..ae7f41847 --- /dev/null +++ b/sas/src/model/DescribeRiskItemTypeRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeRiskItemTypeRequest; + +DescribeRiskItemTypeRequest::DescribeRiskItemTypeRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeRiskItemType") +{} + +DescribeRiskItemTypeRequest::~DescribeRiskItemTypeRequest() +{} + +long DescribeRiskItemTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRiskItemTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRiskItemTypeRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeRiskItemTypeRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeRiskItemTypeRequest::getLang()const +{ + return lang_; +} + +void DescribeRiskItemTypeRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeRiskItemTypeResult.cc b/sas/src/model/DescribeRiskItemTypeResult.cc new file mode 100644 index 000000000..45df9329d --- /dev/null +++ b/sas/src/model/DescribeRiskItemTypeResult.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeRiskItemTypeResult::DescribeRiskItemTypeResult() : + ServiceResult() +{} + +DescribeRiskItemTypeResult::DescribeRiskItemTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRiskItemTypeResult::~DescribeRiskItemTypeResult() +{} + +void DescribeRiskItemTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allList = value["List"]["ItemType"]; + for (auto value : allList) + { + ItemType listObject; + if(!value["Id"].isNull()) + listObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + listObject.title = value["Title"].asString(); + list_.push_back(listObject); + } + +} + +std::vector DescribeRiskItemTypeResult::getList()const +{ + return list_; +} + diff --git a/sas/src/model/DescribeSecurityCheckScheduleConfigRequest.cc b/sas/src/model/DescribeSecurityCheckScheduleConfigRequest.cc new file mode 100644 index 000000000..1b4c7fe8e --- /dev/null +++ b/sas/src/model/DescribeSecurityCheckScheduleConfigRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeSecurityCheckScheduleConfigRequest; + +DescribeSecurityCheckScheduleConfigRequest::DescribeSecurityCheckScheduleConfigRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeSecurityCheckScheduleConfig") +{} + +DescribeSecurityCheckScheduleConfigRequest::~DescribeSecurityCheckScheduleConfigRequest() +{} + +long DescribeSecurityCheckScheduleConfigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSecurityCheckScheduleConfigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSecurityCheckScheduleConfigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeSecurityCheckScheduleConfigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeSecurityCheckScheduleConfigRequest::getLang()const +{ + return lang_; +} + +void DescribeSecurityCheckScheduleConfigRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc b/sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc new file mode 100644 index 000000000..7b0b0daec --- /dev/null +++ b/sas/src/model/DescribeSecurityCheckScheduleConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeSecurityCheckScheduleConfigResult::DescribeSecurityCheckScheduleConfigResult() : + ServiceResult() +{} + +DescribeSecurityCheckScheduleConfigResult::DescribeSecurityCheckScheduleConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityCheckScheduleConfigResult::~DescribeSecurityCheckScheduleConfigResult() +{} + +void DescribeSecurityCheckScheduleConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto riskCheckJobConfigNode = value["RiskCheckJobConfig"]; + if(!riskCheckJobConfigNode["StartTime"].isNull()) + riskCheckJobConfig_.startTime = std::stoi(riskCheckJobConfigNode["StartTime"].asString()); + if(!riskCheckJobConfigNode["EndTime"].isNull()) + riskCheckJobConfig_.endTime = std::stoi(riskCheckJobConfigNode["EndTime"].asString()); + if(!riskCheckJobConfigNode["DaysOfWeek"].isNull()) + riskCheckJobConfig_.daysOfWeek = riskCheckJobConfigNode["DaysOfWeek"].asString(); + +} + +DescribeSecurityCheckScheduleConfigResult::RiskCheckJobConfig DescribeSecurityCheckScheduleConfigResult::getRiskCheckJobConfig()const +{ + return riskCheckJobConfig_; +} + diff --git a/sas/src/model/DescribeSuspEventDetailRequest.cc b/sas/src/model/DescribeSuspEventDetailRequest.cc new file mode 100644 index 000000000..dce07bd60 --- /dev/null +++ b/sas/src/model/DescribeSuspEventDetailRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeSuspEventDetailRequest; + +DescribeSuspEventDetailRequest::DescribeSuspEventDetailRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeSuspEventDetail") +{} + +DescribeSuspEventDetailRequest::~DescribeSuspEventDetailRequest() +{} + +int DescribeSuspEventDetailRequest::getSuspiciousEventId()const +{ + return suspiciousEventId_; +} + +void DescribeSuspEventDetailRequest::setSuspiciousEventId(int suspiciousEventId) +{ + suspiciousEventId_ = suspiciousEventId; + setCoreParameter("SuspiciousEventId", std::to_string(suspiciousEventId)); +} + +std::string DescribeSuspEventDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeSuspEventDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeSuspEventDetailRequest::getFrom()const +{ + return from_; +} + +void DescribeSuspEventDetailRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +std::string DescribeSuspEventDetailRequest::getLang()const +{ + return lang_; +} + +void DescribeSuspEventDetailRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeSuspEventDetailResult.cc b/sas/src/model/DescribeSuspEventDetailResult.cc new file mode 100644 index 000000000..7206fbc63 --- /dev/null +++ b/sas/src/model/DescribeSuspEventDetailResult.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DescribeSuspEventDetailResult::DescribeSuspEventDetailResult() : + ServiceResult() +{} + +DescribeSuspEventDetailResult::DescribeSuspEventDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSuspEventDetailResult::~DescribeSuspEventDetailResult() +{} + +void DescribeSuspEventDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDetails = value["Details"]["QuaraFile"]; + for (auto value : allDetails) + { + QuaraFile detailsObject; + if(!value["Name"].isNull()) + detailsObject.name = value["Name"].asString(); + if(!value["Type"].isNull()) + detailsObject.type = value["Type"].asString(); + if(!value["InfoType"].isNull()) + detailsObject.infoType = value["InfoType"].asString(); + if(!value["Value"].isNull()) + detailsObject.value = value["Value"].asString(); + details_.push_back(detailsObject); + } + if(!value["LastTime"].isNull()) + lastTime_ = value["LastTime"].asString(); + if(!value["Id"].isNull()) + id_ = std::stoi(value["Id"].asString()); + if(!value["InstanceName"].isNull()) + instanceName_ = value["InstanceName"].asString(); + if(!value["InternetIp"].isNull()) + internetIp_ = value["InternetIp"].asString(); + if(!value["IntranetIp"].isNull()) + intranetIp_ = value["IntranetIp"].asString(); + if(!value["Uuid"].isNull()) + uuid_ = value["Uuid"].asString(); + if(!value["EventDesc"].isNull()) + eventDesc_ = value["EventDesc"].asString(); + if(!value["EventTypeDesc"].isNull()) + eventTypeDesc_ = value["EventTypeDesc"].asString(); + if(!value["Level"].isNull()) + level_ = value["Level"].asString(); + if(!value["EventStatus"].isNull()) + eventStatus_ = value["EventStatus"].asString(); + if(!value["SaleVersion"].isNull()) + saleVersion_ = value["SaleVersion"].asString(); + if(!value["DataSource"].isNull()) + dataSource_ = value["DataSource"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["OperateMsg"].isNull()) + operateMsg_ = value["OperateMsg"].asString(); + if(!value["SasId"].isNull()) + sasId_ = value["SasId"].asString(); + if(!value["EventName"].isNull()) + eventName_ = value["EventName"].asString(); + if(!value["CanBeDealOnLine"].isNull()) + canBeDealOnLine_ = value["CanBeDealOnLine"].asString() == "true"; + +} + +std::string DescribeSuspEventDetailResult::getEventDesc()const +{ + return eventDesc_; +} + +std::string DescribeSuspEventDetailResult::getEventTypeDesc()const +{ + return eventTypeDesc_; +} + +std::string DescribeSuspEventDetailResult::getEventStatus()const +{ + return eventStatus_; +} + +std::string DescribeSuspEventDetailResult::getEventName()const +{ + return eventName_; +} + +std::string DescribeSuspEventDetailResult::getSaleVersion()const +{ + return saleVersion_; +} + +std::string DescribeSuspEventDetailResult::getIntranetIp()const +{ + return intranetIp_; +} + +std::string DescribeSuspEventDetailResult::getDataSource()const +{ + return dataSource_; +} + +std::string DescribeSuspEventDetailResult::getInstanceName()const +{ + return instanceName_; +} + +std::string DescribeSuspEventDetailResult::getType()const +{ + return type_; +} + +std::string DescribeSuspEventDetailResult::getOperateMsg()const +{ + return operateMsg_; +} + +bool DescribeSuspEventDetailResult::getCanBeDealOnLine()const +{ + return canBeDealOnLine_; +} + +std::vector DescribeSuspEventDetailResult::getDetails()const +{ + return details_; +} + +std::string DescribeSuspEventDetailResult::getUuid()const +{ + return uuid_; +} + +std::string DescribeSuspEventDetailResult::getInternetIp()const +{ + return internetIp_; +} + +std::string DescribeSuspEventDetailResult::getLevel()const +{ + return level_; +} + +int DescribeSuspEventDetailResult::getId()const +{ + return id_; +} + +std::string DescribeSuspEventDetailResult::getLastTime()const +{ + return lastTime_; +} + +std::string DescribeSuspEventDetailResult::getSasId()const +{ + return sasId_; +} + diff --git a/sas/src/model/DescribeSuspEventsRequest.cc b/sas/src/model/DescribeSuspEventsRequest.cc new file mode 100644 index 000000000..f40d970e4 --- /dev/null +++ b/sas/src/model/DescribeSuspEventsRequest.cc @@ -0,0 +1,148 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeSuspEventsRequest; + +DescribeSuspEventsRequest::DescribeSuspEventsRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeSuspEvents") +{} + +DescribeSuspEventsRequest::~DescribeSuspEventsRequest() +{} + +std::string DescribeSuspEventsRequest::getAlarmUniqueInfo()const +{ + return alarmUniqueInfo_; +} + +void DescribeSuspEventsRequest::setAlarmUniqueInfo(const std::string& alarmUniqueInfo) +{ + alarmUniqueInfo_ = alarmUniqueInfo; + setCoreParameter("AlarmUniqueInfo", alarmUniqueInfo); +} + +std::string DescribeSuspEventsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeSuspEventsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeSuspEventsRequest::getName()const +{ + return name_; +} + +void DescribeSuspEventsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DescribeSuspEventsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSuspEventsRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeSuspEventsRequest::getDealed()const +{ + return dealed_; +} + +void DescribeSuspEventsRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setCoreParameter("Dealed", dealed); +} + +std::string DescribeSuspEventsRequest::getRemark()const +{ + return remark_; +} + +void DescribeSuspEventsRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string DescribeSuspEventsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeSuspEventsRequest::setCurrentPage(const std::string& currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", currentPage); +} + +std::string DescribeSuspEventsRequest::getFrom()const +{ + return from_; +} + +void DescribeSuspEventsRequest::setFrom(const std::string& from) +{ + from_ = from; + setCoreParameter("From", from); +} + +std::string DescribeSuspEventsRequest::getLang()const +{ + return lang_; +} + +void DescribeSuspEventsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeSuspEventsRequest::getLevels()const +{ + return levels_; +} + +void DescribeSuspEventsRequest::setLevels(const std::string& levels) +{ + levels_ = levels; + setCoreParameter("Levels", levels); +} + +std::string DescribeSuspEventsRequest::getParentEventTypes()const +{ + return parentEventTypes_; +} + +void DescribeSuspEventsRequest::setParentEventTypes(const std::string& parentEventTypes) +{ + parentEventTypes_ = parentEventTypes; + setCoreParameter("ParentEventTypes", parentEventTypes); +} + diff --git a/sas/src/model/DescribeSuspEventsResult.cc b/sas/src/model/DescribeSuspEventsResult.cc new file mode 100644 index 000000000..3abdba89e --- /dev/null +++ b/sas/src/model/DescribeSuspEventsResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DescribeSuspEventsResult::DescribeSuspEventsResult() : + ServiceResult() +{} + +DescribeSuspEventsResult::DescribeSuspEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSuspEventsResult::~DescribeSuspEventsResult() +{} + +void DescribeSuspEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSuspEvents = value["SuspEvents"]["WarningSummary"]; + for (auto value : allSuspEvents) + { + WarningSummary suspEventsObject; + if(!value["LastTime"].isNull()) + suspEventsObject.lastTime = value["LastTime"].asString(); + if(!value["OccurrenceTime"].isNull()) + suspEventsObject.occurrenceTime = value["OccurrenceTime"].asString(); + if(!value["Id"].isNull()) + suspEventsObject.id = std::stol(value["Id"].asString()); + if(!value["InstanceName"].isNull()) + suspEventsObject.instanceName = value["InstanceName"].asString(); + if(!value["InternetIp"].isNull()) + suspEventsObject.internetIp = value["InternetIp"].asString(); + if(!value["IntranetIp"].isNull()) + suspEventsObject.intranetIp = value["IntranetIp"].asString(); + if(!value["Uuid"].isNull()) + suspEventsObject.uuid = value["Uuid"].asString(); + if(!value["Name"].isNull()) + suspEventsObject.name = value["Name"].asString(); + if(!value["EventSubType"].isNull()) + suspEventsObject.eventSubType = value["EventSubType"].asString(); + if(!value["Level"].isNull()) + suspEventsObject.level = value["Level"].asString(); + if(!value["EventStatus"].isNull()) + suspEventsObject.eventStatus = std::stoi(value["EventStatus"].asString()); + if(!value["Desc"].isNull()) + suspEventsObject.desc = value["Desc"].asString(); + if(!value["OperateMsg"].isNull()) + suspEventsObject.operateMsg = value["OperateMsg"].asString(); + if(!value["DataSource"].isNull()) + suspEventsObject.dataSource = value["DataSource"].asString(); + if(!value["CanBeDealOnLine"].isNull()) + suspEventsObject.canBeDealOnLine = value["CanBeDealOnLine"].asString() == "true"; + if(!value["SaleVersion"].isNull()) + suspEventsObject.saleVersion = value["SaleVersion"].asString(); + if(!value["AlarmEventType"].isNull()) + suspEventsObject.alarmEventType = value["AlarmEventType"].asString(); + if(!value["AlarmEventName"].isNull()) + suspEventsObject.alarmEventName = value["AlarmEventName"].asString(); + if(!value["AlarmUniqueInfo"].isNull()) + suspEventsObject.alarmUniqueInfo = value["AlarmUniqueInfo"].asString(); + suspEvents_.push_back(suspEventsObject); + } + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + +} + +int DescribeSuspEventsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSuspEventsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSuspEventsResult::getCurrentPage()const +{ + return currentPage_; +} + +int DescribeSuspEventsResult::getCount()const +{ + return count_; +} + +std::vector DescribeSuspEventsResult::getSuspEvents()const +{ + return suspEvents_; +} + diff --git a/sas/src/model/DescribeUserBaselineAuthorizationRequest.cc b/sas/src/model/DescribeUserBaselineAuthorizationRequest.cc new file mode 100644 index 000000000..0f64ae41d --- /dev/null +++ b/sas/src/model/DescribeUserBaselineAuthorizationRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeUserBaselineAuthorizationRequest; + +DescribeUserBaselineAuthorizationRequest::DescribeUserBaselineAuthorizationRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeUserBaselineAuthorization") +{} + +DescribeUserBaselineAuthorizationRequest::~DescribeUserBaselineAuthorizationRequest() +{} + +long DescribeUserBaselineAuthorizationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserBaselineAuthorizationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeUserBaselineAuthorizationRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeUserBaselineAuthorizationRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeUserBaselineAuthorizationRequest::getLang()const +{ + return lang_; +} + +void DescribeUserBaselineAuthorizationRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/DescribeUserBaselineAuthorizationResult.cc b/sas/src/model/DescribeUserBaselineAuthorizationResult.cc new file mode 100644 index 000000000..fc77da2b1 --- /dev/null +++ b/sas/src/model/DescribeUserBaselineAuthorizationResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeUserBaselineAuthorizationResult::DescribeUserBaselineAuthorizationResult() : + ServiceResult() +{} + +DescribeUserBaselineAuthorizationResult::DescribeUserBaselineAuthorizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserBaselineAuthorizationResult::~DescribeUserBaselineAuthorizationResult() +{} + +void DescribeUserBaselineAuthorizationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto userBaselineAuthorizationNode = value["UserBaselineAuthorization"]; + if(!userBaselineAuthorizationNode["Status"].isNull()) + userBaselineAuthorization_.status = std::stoi(userBaselineAuthorizationNode["Status"].asString()); + +} + +DescribeUserBaselineAuthorizationResult::UserBaselineAuthorization DescribeUserBaselineAuthorizationResult::getUserBaselineAuthorization()const +{ + return userBaselineAuthorization_; +} + diff --git a/sas/src/model/DescribeVulDetailsRequest.cc b/sas/src/model/DescribeVulDetailsRequest.cc new file mode 100644 index 000000000..365d3dce2 --- /dev/null +++ b/sas/src/model/DescribeVulDetailsRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeVulDetailsRequest; + +DescribeVulDetailsRequest::DescribeVulDetailsRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeVulDetails") +{} + +DescribeVulDetailsRequest::~DescribeVulDetailsRequest() +{} + +std::string DescribeVulDetailsRequest::getAliasName()const +{ + return aliasName_; +} + +void DescribeVulDetailsRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setCoreParameter("AliasName", aliasName); +} + +std::string DescribeVulDetailsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeVulDetailsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string DescribeVulDetailsRequest::getName()const +{ + return name_; +} + +void DescribeVulDetailsRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DescribeVulDetailsRequest::getLang()const +{ + return lang_; +} + +void DescribeVulDetailsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeVulDetailsRequest::getType()const +{ + return type_; +} + +void DescribeVulDetailsRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + diff --git a/sas/src/model/DescribeVulDetailsResult.cc b/sas/src/model/DescribeVulDetailsResult.cc new file mode 100644 index 000000000..e3a9cdd58 --- /dev/null +++ b/sas/src/model/DescribeVulDetailsResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DescribeVulDetailsResult::DescribeVulDetailsResult() : + ServiceResult() +{} + +DescribeVulDetailsResult::DescribeVulDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVulDetailsResult::~DescribeVulDetailsResult() +{} + +void DescribeVulDetailsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCves = value["Cves"]["Cve"]; + for (auto value : allCves) + { + Cve cvesObject; + if(!value["CveId"].isNull()) + cvesObject.cveId = value["CveId"].asString(); + if(!value["CnvdId"].isNull()) + cvesObject.cnvdId = value["CnvdId"].asString(); + if(!value["Title"].isNull()) + cvesObject.title = value["Title"].asString(); + if(!value["CvssScore"].isNull()) + cvesObject.cvssScore = value["CvssScore"].asString(); + if(!value["CvssVector"].isNull()) + cvesObject.cvssVector = value["CvssVector"].asString(); + if(!value["ReleaseTime"].isNull()) + cvesObject.releaseTime = std::stol(value["ReleaseTime"].asString()); + if(!value["Complexity"].isNull()) + cvesObject.complexity = value["Complexity"].asString(); + if(!value["Poc"].isNull()) + cvesObject.poc = value["Poc"].asString(); + if(!value["PocCreateTime"].isNull()) + cvesObject.pocCreateTime = std::stol(value["PocCreateTime"].asString()); + if(!value["PocDisclosureTime"].isNull()) + cvesObject.pocDisclosureTime = std::stol(value["PocDisclosureTime"].asString()); + if(!value["Summary"].isNull()) + cvesObject.summary = value["Summary"].asString(); + if(!value["Solution"].isNull()) + cvesObject.solution = value["Solution"].asString(); + if(!value["Content"].isNull()) + cvesObject.content = value["Content"].asString(); + if(!value["Vendor"].isNull()) + cvesObject.vendor = value["Vendor"].asString(); + if(!value["Product"].isNull()) + cvesObject.product = value["Product"].asString(); + if(!value["VulLevel"].isNull()) + cvesObject.vulLevel = value["VulLevel"].asString(); + if(!value["Reference"].isNull()) + cvesObject.reference = value["Reference"].asString(); + if(!value["Classify"].isNull()) + cvesObject.classify = value["Classify"].asString(); + auto allClassifys = value["Classifys"]["Classify"]; + for (auto value : allClassifys) + { + Cve::Classify classifysObject; + if(!value["Classify"].isNull()) + classifysObject.classify = value["Classify"].asString(); + if(!value["Description"].isNull()) + classifysObject.description = value["Description"].asString(); + if(!value["DemoVideoUrl"].isNull()) + classifysObject.demoVideoUrl = value["DemoVideoUrl"].asString(); + cvesObject.classifys.push_back(classifysObject); + } + cves_.push_back(cvesObject); + } + +} + +std::vector DescribeVulDetailsResult::getCves()const +{ + return cves_; +} + diff --git a/sas/src/model/DescribeVulListRequest.cc b/sas/src/model/DescribeVulListRequest.cc new file mode 100644 index 000000000..ae6a3c13b --- /dev/null +++ b/sas/src/model/DescribeVulListRequest.cc @@ -0,0 +1,137 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::DescribeVulListRequest; + +DescribeVulListRequest::DescribeVulListRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeVulList") +{} + +DescribeVulListRequest::~DescribeVulListRequest() +{} + +std::string DescribeVulListRequest::getAliasName()const +{ + return aliasName_; +} + +void DescribeVulListRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setCoreParameter("AliasName", aliasName); +} + +std::string DescribeVulListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeVulListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeVulListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVulListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVulListRequest::getRemark()const +{ + return remark_; +} + +void DescribeVulListRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setCoreParameter("Remark", remark); +} + +std::string DescribeVulListRequest::getDealed()const +{ + return dealed_; +} + +void DescribeVulListRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setCoreParameter("Dealed", dealed); +} + +int DescribeVulListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeVulListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeVulListRequest::getLang()const +{ + return lang_; +} + +void DescribeVulListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string DescribeVulListRequest::getType()const +{ + return type_; +} + +void DescribeVulListRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string DescribeVulListRequest::getNecessity()const +{ + return necessity_; +} + +void DescribeVulListRequest::setNecessity(const std::string& necessity) +{ + necessity_ = necessity; + setCoreParameter("Necessity", necessity); +} + +std::string DescribeVulListRequest::getUuids()const +{ + return uuids_; +} + +void DescribeVulListRequest::setUuids(const std::string& uuids) +{ + uuids_ = uuids; + setCoreParameter("Uuids", uuids); +} + diff --git a/sas/src/model/DescribeVulListResult.cc b/sas/src/model/DescribeVulListResult.cc new file mode 100644 index 000000000..6432eec81 --- /dev/null +++ b/sas/src/model/DescribeVulListResult.cc @@ -0,0 +1,178 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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; + +DescribeVulListResult::DescribeVulListResult() : + ServiceResult() +{} + +DescribeVulListResult::DescribeVulListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVulListResult::~DescribeVulListResult() +{} + +void DescribeVulListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVulRecords = value["VulRecords"]["VulRecord"]; + for (auto value : allVulRecords) + { + VulRecord vulRecordsObject; + if(!value["PrimaryId"].isNull()) + vulRecordsObject.primaryId = std::stol(value["PrimaryId"].asString()); + if(!value["Uuid"].isNull()) + vulRecordsObject.uuid = value["Uuid"].asString(); + if(!value["Name"].isNull()) + vulRecordsObject.name = value["Name"].asString(); + if(!value["Tag"].isNull()) + vulRecordsObject.tag = value["Tag"].asString(); + if(!value["Type"].isNull()) + vulRecordsObject.type = value["Type"].asString(); + if(!value["AliasName"].isNull()) + vulRecordsObject.aliasName = value["AliasName"].asString(); + if(!value["FirstTs"].isNull()) + vulRecordsObject.firstTs = std::stol(value["FirstTs"].asString()); + if(!value["LastTs"].isNull()) + vulRecordsObject.lastTs = std::stol(value["LastTs"].asString()); + if(!value["RepairTs"].isNull()) + vulRecordsObject.repairTs = std::stol(value["RepairTs"].asString()); + if(!value["Status"].isNull()) + vulRecordsObject.status = std::stoi(value["Status"].asString()); + if(!value["Related"].isNull()) + vulRecordsObject.related = value["Related"].asString(); + if(!value["ResultCode"].isNull()) + vulRecordsObject.resultCode = value["ResultCode"].asString(); + if(!value["ResultMessage"].isNull()) + vulRecordsObject.resultMessage = value["ResultMessage"].asString(); + if(!value["ModifyTs"].isNull()) + vulRecordsObject.modifyTs = std::stol(value["ModifyTs"].asString()); + if(!value["Necessity"].isNull()) + vulRecordsObject.necessity = value["Necessity"].asString(); + if(!value["GroupId"].isNull()) + vulRecordsObject.groupId = std::stoi(value["GroupId"].asString()); + if(!value["InstanceId"].isNull()) + vulRecordsObject.instanceId = value["InstanceId"].asString(); + if(!value["InstanceName"].isNull()) + vulRecordsObject.instanceName = value["InstanceName"].asString(); + if(!value["InternetIp"].isNull()) + vulRecordsObject.internetIp = value["InternetIp"].asString(); + if(!value["IntranetIp"].isNull()) + vulRecordsObject.intranetIp = value["IntranetIp"].asString(); + if(!value["Ip"].isNull()) + vulRecordsObject.ip = value["Ip"].asString(); + if(!value["OsVersion"].isNull()) + vulRecordsObject.osVersion = value["OsVersion"].asString(); + if(!value["NeedReboot"].isNull()) + vulRecordsObject.needReboot = value["NeedReboot"].asString(); + auto extendContentJsonNode = value["ExtendContentJson"]; + if(!extendContentJsonNode["Os"].isNull()) + vulRecordsObject.extendContentJson.os = extendContentJsonNode["Os"].asString(); + if(!extendContentJsonNode["OsRelease"].isNull()) + vulRecordsObject.extendContentJson.osRelease = extendContentJsonNode["OsRelease"].asString(); + if(!extendContentJsonNode["Status"].isNull()) + vulRecordsObject.extendContentJson.status = std::stoi(extendContentJsonNode["Status"].asString()); + if(!extendContentJsonNode["LastTs"].isNull()) + vulRecordsObject.extendContentJson.lastTs = std::stol(extendContentJsonNode["LastTs"].asString()); + if(!extendContentJsonNode["AliasName"].isNull()) + vulRecordsObject.extendContentJson.aliasName = extendContentJsonNode["AliasName"].asString(); + if(!extendContentJsonNode["Tag"].isNull()) + vulRecordsObject.extendContentJson.tag = extendContentJsonNode["Tag"].asString(); + if(!extendContentJsonNode["PrimaryId"].isNull()) + vulRecordsObject.extendContentJson.primaryId = std::stol(extendContentJsonNode["PrimaryId"].asString()); + if(!extendContentJsonNode["AbsolutePath"].isNull()) + vulRecordsObject.extendContentJson.absolutePath = extendContentJsonNode["AbsolutePath"].asString(); + auto allRpmEntityList = value["RpmEntityList"]["RpmEntityListItem"]; + for (auto value : allRpmEntityList) + { + VulRecord::ExtendContentJson::RpmEntityListItem rpmEntityListItemObject; + if(!value["FullVersion"].isNull()) + rpmEntityListItemObject.fullVersion = value["FullVersion"].asString(); + if(!value["MatchDetail"].isNull()) + rpmEntityListItemObject.matchDetail = value["MatchDetail"].asString(); + if(!value["Name"].isNull()) + rpmEntityListItemObject.name = value["Name"].asString(); + if(!value["Path"].isNull()) + rpmEntityListItemObject.path = value["Path"].asString(); + if(!value["UpdateCmd"].isNull()) + rpmEntityListItemObject.updateCmd = value["UpdateCmd"].asString(); + if(!value["Version"].isNull()) + rpmEntityListItemObject.version = value["Version"].asString(); + vulRecordsObject.extendContentJson.rpmEntityList.push_back(rpmEntityListItemObject); + } + auto necessityNode = extendContentJsonNode["Necessity"]; + if(!necessityNode["Cvss_factor"].isNull()) + vulRecordsObject.extendContentJson.necessity.cvss_factor = necessityNode["Cvss_factor"].asString(); + if(!necessityNode["Gmt_create"].isNull()) + vulRecordsObject.extendContentJson.necessity.gmt_create = necessityNode["Gmt_create"].asString(); + if(!necessityNode["Status"].isNull()) + vulRecordsObject.extendContentJson.necessity.status = necessityNode["Status"].asString(); + if(!necessityNode["Enviroment_factor"].isNull()) + vulRecordsObject.extendContentJson.necessity.enviroment_factor = necessityNode["Enviroment_factor"].asString(); + if(!necessityNode["Assets_factor"].isNull()) + vulRecordsObject.extendContentJson.necessity.assets_factor = necessityNode["Assets_factor"].asString(); + if(!necessityNode["Is_calc"].isNull()) + vulRecordsObject.extendContentJson.necessity.is_calc = necessityNode["Is_calc"].asString(); + if(!necessityNode["Total_score"].isNull()) + vulRecordsObject.extendContentJson.necessity.total_score = necessityNode["Total_score"].asString(); + if(!necessityNode["Time_factor"].isNull()) + vulRecordsObject.extendContentJson.necessity.time_factor = necessityNode["Time_factor"].asString(); + auto allCveList = extendContentJsonNode["cveList"]["CveList"]; + for (auto value : allCveList) + vulRecordsObject.extendContentJson.cveList.push_back(value.asString()); + vulRecords_.push_back(vulRecordsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVulListResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeVulListResult::getVulRecords()const +{ + return vulRecords_; +} + +int DescribeVulListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVulListResult::getCurrentPage()const +{ + return currentPage_; +} + diff --git a/sas/src/model/DescribeVulWhitelistRequest.cc b/sas/src/model/DescribeVulWhitelistRequest.cc new file mode 100644 index 000000000..b79751ece --- /dev/null +++ b/sas/src/model/DescribeVulWhitelistRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::DescribeVulWhitelistRequest; + +DescribeVulWhitelistRequest::DescribeVulWhitelistRequest() : + RpcServiceRequest("sas", "2018-12-03", "DescribeVulWhitelist") +{} + +DescribeVulWhitelistRequest::~DescribeVulWhitelistRequest() +{} + +std::string DescribeVulWhitelistRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeVulWhitelistRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int DescribeVulWhitelistRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVulWhitelistRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeVulWhitelistRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeVulWhitelistRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setCoreParameter("CurrentPage", std::to_string(currentPage)); +} + diff --git a/sas/src/model/DescribeVulWhitelistResult.cc b/sas/src/model/DescribeVulWhitelistResult.cc new file mode 100644 index 000000000..6c398a25d --- /dev/null +++ b/sas/src/model/DescribeVulWhitelistResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +DescribeVulWhitelistResult::DescribeVulWhitelistResult() : + ServiceResult() +{} + +DescribeVulWhitelistResult::DescribeVulWhitelistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVulWhitelistResult::~DescribeVulWhitelistResult() +{} + +void DescribeVulWhitelistResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVulWhitelists = value["VulWhitelists"]["VulWhitelist"]; + for (auto value : allVulWhitelists) + { + VulWhitelist vulWhitelistsObject; + if(!value["Name"].isNull()) + vulWhitelistsObject.name = value["Name"].asString(); + if(!value["Type"].isNull()) + vulWhitelistsObject.type = value["Type"].asString(); + if(!value["AliasName"].isNull()) + vulWhitelistsObject.aliasName = value["AliasName"].asString(); + if(!value["Reason"].isNull()) + vulWhitelistsObject.reason = value["Reason"].asString(); + vulWhitelists_.push_back(vulWhitelistsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVulWhitelistResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeVulWhitelistResult::getVulWhitelists()const +{ + return vulWhitelists_; +} + +int DescribeVulWhitelistResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVulWhitelistResult::getCurrentPage()const +{ + return currentPage_; +} + diff --git a/sas/src/model/ModifyAutoDelConfigRequest.cc b/sas/src/model/ModifyAutoDelConfigRequest.cc new file mode 100644 index 000000000..0c4c2b59f --- /dev/null +++ b/sas/src/model/ModifyAutoDelConfigRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sas::Model::ModifyAutoDelConfigRequest; + +ModifyAutoDelConfigRequest::ModifyAutoDelConfigRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyAutoDelConfig") +{} + +ModifyAutoDelConfigRequest::~ModifyAutoDelConfigRequest() +{} + +std::string ModifyAutoDelConfigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyAutoDelConfigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +int ModifyAutoDelConfigRequest::getDays()const +{ + return days_; +} + +void ModifyAutoDelConfigRequest::setDays(int days) +{ + days_ = days; + setCoreParameter("Days", std::to_string(days)); +} + diff --git a/sas/src/model/ModifyAutoDelConfigResult.cc b/sas/src/model/ModifyAutoDelConfigResult.cc new file mode 100644 index 000000000..a982f62a1 --- /dev/null +++ b/sas/src/model/ModifyAutoDelConfigResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyAutoDelConfigResult::ModifyAutoDelConfigResult() : + ServiceResult() +{} + +ModifyAutoDelConfigResult::ModifyAutoDelConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAutoDelConfigResult::~ModifyAutoDelConfigResult() +{} + +void ModifyAutoDelConfigResult::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/ModifyConcernNecessityRequest.cc b/sas/src/model/ModifyConcernNecessityRequest.cc new file mode 100644 index 000000000..7c2324f5d --- /dev/null +++ b/sas/src/model/ModifyConcernNecessityRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ModifyConcernNecessityRequest; + +ModifyConcernNecessityRequest::ModifyConcernNecessityRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyConcernNecessity") +{} + +ModifyConcernNecessityRequest::~ModifyConcernNecessityRequest() +{} + +std::string ModifyConcernNecessityRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyConcernNecessityRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyConcernNecessityRequest::getLang()const +{ + return lang_; +} + +void ModifyConcernNecessityRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string ModifyConcernNecessityRequest::getConcernNecessity()const +{ + return concernNecessity_; +} + +void ModifyConcernNecessityRequest::setConcernNecessity(const std::string& concernNecessity) +{ + concernNecessity_ = concernNecessity; + setCoreParameter("ConcernNecessity", concernNecessity); +} + diff --git a/sas/src/model/ModifyConcernNecessityResult.cc b/sas/src/model/ModifyConcernNecessityResult.cc new file mode 100644 index 000000000..bb6618b70 --- /dev/null +++ b/sas/src/model/ModifyConcernNecessityResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyConcernNecessityResult::ModifyConcernNecessityResult() : + ServiceResult() +{} + +ModifyConcernNecessityResult::ModifyConcernNecessityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyConcernNecessityResult::~ModifyConcernNecessityResult() +{} + +void ModifyConcernNecessityResult::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 new file mode 100644 index 000000000..154bc3180 --- /dev/null +++ b/sas/src/model/ModifyCreateVulWhitelistRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ModifyCreateVulWhitelistRequest; + +ModifyCreateVulWhitelistRequest::ModifyCreateVulWhitelistRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyCreateVulWhitelist") +{} + +ModifyCreateVulWhitelistRequest::~ModifyCreateVulWhitelistRequest() +{} + +std::string ModifyCreateVulWhitelistRequest::getReason()const +{ + return reason_; +} + +void ModifyCreateVulWhitelistRequest::setReason(const std::string& reason) +{ + reason_ = reason; + setCoreParameter("Reason", reason); +} + +std::string ModifyCreateVulWhitelistRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyCreateVulWhitelistRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyCreateVulWhitelistRequest::getWhitelist()const +{ + return whitelist_; +} + +void ModifyCreateVulWhitelistRequest::setWhitelist(const std::string& whitelist) +{ + whitelist_ = whitelist; + setCoreParameter("Whitelist", whitelist); +} + diff --git a/sas/src/model/ModifyCreateVulWhitelistResult.cc b/sas/src/model/ModifyCreateVulWhitelistResult.cc new file mode 100644 index 000000000..31816e80a --- /dev/null +++ b/sas/src/model/ModifyCreateVulWhitelistResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyCreateVulWhitelistResult::ModifyCreateVulWhitelistResult() : + ServiceResult() +{} + +ModifyCreateVulWhitelistResult::ModifyCreateVulWhitelistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCreateVulWhitelistResult::~ModifyCreateVulWhitelistResult() +{} + +void ModifyCreateVulWhitelistResult::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/ModifyDeleteVulWhitelistRequest.cc b/sas/src/model/ModifyDeleteVulWhitelistRequest.cc new file mode 100644 index 000000000..85df99da3 --- /dev/null +++ b/sas/src/model/ModifyDeleteVulWhitelistRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Sas::Model::ModifyDeleteVulWhitelistRequest; + +ModifyDeleteVulWhitelistRequest::ModifyDeleteVulWhitelistRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyDeleteVulWhitelist") +{} + +ModifyDeleteVulWhitelistRequest::~ModifyDeleteVulWhitelistRequest() +{} + +std::string ModifyDeleteVulWhitelistRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyDeleteVulWhitelistRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyDeleteVulWhitelistRequest::getWhitelist()const +{ + return whitelist_; +} + +void ModifyDeleteVulWhitelistRequest::setWhitelist(const std::string& whitelist) +{ + whitelist_ = whitelist; + setCoreParameter("Whitelist", whitelist); +} + diff --git a/sas/src/model/ModifyDeleteVulWhitelistResult.cc b/sas/src/model/ModifyDeleteVulWhitelistResult.cc new file mode 100644 index 000000000..842161d74 --- /dev/null +++ b/sas/src/model/ModifyDeleteVulWhitelistResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult() : + ServiceResult() +{} + +ModifyDeleteVulWhitelistResult::ModifyDeleteVulWhitelistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDeleteVulWhitelistResult::~ModifyDeleteVulWhitelistResult() +{} + +void ModifyDeleteVulWhitelistResult::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/ModifyEmgVulSubmitRequest.cc b/sas/src/model/ModifyEmgVulSubmitRequest.cc new file mode 100644 index 000000000..071042559 --- /dev/null +++ b/sas/src/model/ModifyEmgVulSubmitRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::ModifyEmgVulSubmitRequest; + +ModifyEmgVulSubmitRequest::ModifyEmgVulSubmitRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyEmgVulSubmit") +{} + +ModifyEmgVulSubmitRequest::~ModifyEmgVulSubmitRequest() +{} + +std::string ModifyEmgVulSubmitRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyEmgVulSubmitRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyEmgVulSubmitRequest::getName()const +{ + return name_; +} + +void ModifyEmgVulSubmitRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string ModifyEmgVulSubmitRequest::getUserAgreement()const +{ + return userAgreement_; +} + +void ModifyEmgVulSubmitRequest::setUserAgreement(const std::string& userAgreement) +{ + userAgreement_ = userAgreement; + setCoreParameter("UserAgreement", userAgreement); +} + +std::string ModifyEmgVulSubmitRequest::getLang()const +{ + return lang_; +} + +void ModifyEmgVulSubmitRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/ModifyEmgVulSubmitResult.cc b/sas/src/model/ModifyEmgVulSubmitResult.cc new file mode 100644 index 000000000..7d9b45644 --- /dev/null +++ b/sas/src/model/ModifyEmgVulSubmitResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyEmgVulSubmitResult::ModifyEmgVulSubmitResult() : + ServiceResult() +{} + +ModifyEmgVulSubmitResult::ModifyEmgVulSubmitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEmgVulSubmitResult::~ModifyEmgVulSubmitResult() +{} + +void ModifyEmgVulSubmitResult::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/ModifyOperateVulRequest.cc b/sas/src/model/ModifyOperateVulRequest.cc new file mode 100644 index 000000000..57d0a014d --- /dev/null +++ b/sas/src/model/ModifyOperateVulRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::ModifyOperateVulRequest; + +ModifyOperateVulRequest::ModifyOperateVulRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyOperateVul") +{} + +ModifyOperateVulRequest::~ModifyOperateVulRequest() +{} + +std::string ModifyOperateVulRequest::getReason()const +{ + return reason_; +} + +void ModifyOperateVulRequest::setReason(const std::string& reason) +{ + reason_ = reason; + setCoreParameter("Reason", reason); +} + +std::string ModifyOperateVulRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyOperateVulRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyOperateVulRequest::getOperateType()const +{ + return operateType_; +} + +void ModifyOperateVulRequest::setOperateType(const std::string& operateType) +{ + operateType_ = operateType; + setCoreParameter("OperateType", operateType); +} + +std::string ModifyOperateVulRequest::getType()const +{ + return type_; +} + +void ModifyOperateVulRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string ModifyOperateVulRequest::getInfo()const +{ + return info_; +} + +void ModifyOperateVulRequest::setInfo(const std::string& info) +{ + info_ = info; + setCoreParameter("Info", info); +} + diff --git a/sas/src/model/ModifyOperateVulResult.cc b/sas/src/model/ModifyOperateVulResult.cc new file mode 100644 index 000000000..2bbfb5160 --- /dev/null +++ b/sas/src/model/ModifyOperateVulResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyOperateVulResult::ModifyOperateVulResult() : + ServiceResult() +{} + +ModifyOperateVulResult::ModifyOperateVulResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyOperateVulResult::~ModifyOperateVulResult() +{} + +void ModifyOperateVulResult::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/ModifyRiskCheckStatusRequest.cc b/sas/src/model/ModifyRiskCheckStatusRequest.cc new file mode 100644 index 000000000..959cc2a5a --- /dev/null +++ b/sas/src/model/ModifyRiskCheckStatusRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ModifyRiskCheckStatusRequest; + +ModifyRiskCheckStatusRequest::ModifyRiskCheckStatusRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyRiskCheckStatus") +{} + +ModifyRiskCheckStatusRequest::~ModifyRiskCheckStatusRequest() +{} + +long ModifyRiskCheckStatusRequest::getItemId()const +{ + return itemId_; +} + +void ModifyRiskCheckStatusRequest::setItemId(long itemId) +{ + itemId_ = itemId; + setCoreParameter("ItemId", std::to_string(itemId)); +} + +long ModifyRiskCheckStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRiskCheckStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyRiskCheckStatusRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyRiskCheckStatusRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifyRiskCheckStatusRequest::getLang()const +{ + return lang_; +} + +void ModifyRiskCheckStatusRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long ModifyRiskCheckStatusRequest::getTaskId()const +{ + return taskId_; +} + +void ModifyRiskCheckStatusRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string ModifyRiskCheckStatusRequest::getStatus()const +{ + return status_; +} + +void ModifyRiskCheckStatusRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/sas/src/model/ModifyRiskCheckStatusResult.cc b/sas/src/model/ModifyRiskCheckStatusResult.cc new file mode 100644 index 000000000..7807888f7 --- /dev/null +++ b/sas/src/model/ModifyRiskCheckStatusResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyRiskCheckStatusResult::ModifyRiskCheckStatusResult() : + ServiceResult() +{} + +ModifyRiskCheckStatusResult::ModifyRiskCheckStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRiskCheckStatusResult::~ModifyRiskCheckStatusResult() +{} + +void ModifyRiskCheckStatusResult::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/ModifyRiskSingleResultStatusRequest.cc b/sas/src/model/ModifyRiskSingleResultStatusRequest.cc new file mode 100644 index 000000000..bb5638777 --- /dev/null +++ b/sas/src/model/ModifyRiskSingleResultStatusRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::ModifyRiskSingleResultStatusRequest; + +ModifyRiskSingleResultStatusRequest::ModifyRiskSingleResultStatusRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifyRiskSingleResultStatus") +{} + +ModifyRiskSingleResultStatusRequest::~ModifyRiskSingleResultStatusRequest() +{} + +long ModifyRiskSingleResultStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRiskSingleResultStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyRiskSingleResultStatusRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyRiskSingleResultStatusRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::vector ModifyRiskSingleResultStatusRequest::getIds()const +{ + return ids_; +} + +void ModifyRiskSingleResultStatusRequest::setIds(const std::vector& ids) +{ + ids_ = ids; + for(int i = 0; i!= ids.size(); i++) + setCoreParameter("Ids."+ std::to_string(i), ids.at(i)); +} + +std::string ModifyRiskSingleResultStatusRequest::getLang()const +{ + return lang_; +} + +void ModifyRiskSingleResultStatusRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +long ModifyRiskSingleResultStatusRequest::getTaskId()const +{ + return taskId_; +} + +void ModifyRiskSingleResultStatusRequest::setTaskId(long taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", std::to_string(taskId)); +} + +std::string ModifyRiskSingleResultStatusRequest::getStatus()const +{ + return status_; +} + +void ModifyRiskSingleResultStatusRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/sas/src/model/ModifyRiskSingleResultStatusResult.cc b/sas/src/model/ModifyRiskSingleResultStatusResult.cc new file mode 100644 index 000000000..d39f63fda --- /dev/null +++ b/sas/src/model/ModifyRiskSingleResultStatusResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifyRiskSingleResultStatusResult::ModifyRiskSingleResultStatusResult() : + ServiceResult() +{} + +ModifyRiskSingleResultStatusResult::ModifyRiskSingleResultStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRiskSingleResultStatusResult::~ModifyRiskSingleResultStatusResult() +{} + +void ModifyRiskSingleResultStatusResult::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/ModifySecurityCheckScheduleConfigRequest.cc b/sas/src/model/ModifySecurityCheckScheduleConfigRequest.cc new file mode 100644 index 000000000..5ddc0429d --- /dev/null +++ b/sas/src/model/ModifySecurityCheckScheduleConfigRequest.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Sas::Model::ModifySecurityCheckScheduleConfigRequest; + +ModifySecurityCheckScheduleConfigRequest::ModifySecurityCheckScheduleConfigRequest() : + RpcServiceRequest("sas", "2018-12-03", "ModifySecurityCheckScheduleConfig") +{} + +ModifySecurityCheckScheduleConfigRequest::~ModifySecurityCheckScheduleConfigRequest() +{} + +long ModifySecurityCheckScheduleConfigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySecurityCheckScheduleConfigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySecurityCheckScheduleConfigRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifySecurityCheckScheduleConfigRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::string ModifySecurityCheckScheduleConfigRequest::getDaysOfWeek()const +{ + return daysOfWeek_; +} + +void ModifySecurityCheckScheduleConfigRequest::setDaysOfWeek(const std::string& daysOfWeek) +{ + daysOfWeek_ = daysOfWeek; + setCoreParameter("DaysOfWeek", daysOfWeek); +} + +int ModifySecurityCheckScheduleConfigRequest::getEndTime()const +{ + return endTime_; +} + +void ModifySecurityCheckScheduleConfigRequest::setEndTime(int endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +int ModifySecurityCheckScheduleConfigRequest::getStartTime()const +{ + return startTime_; +} + +void ModifySecurityCheckScheduleConfigRequest::setStartTime(int startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + +std::string ModifySecurityCheckScheduleConfigRequest::getLang()const +{ + return lang_; +} + +void ModifySecurityCheckScheduleConfigRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + diff --git a/sas/src/model/ModifySecurityCheckScheduleConfigResult.cc b/sas/src/model/ModifySecurityCheckScheduleConfigResult.cc new file mode 100644 index 000000000..bef8a1d21 --- /dev/null +++ b/sas/src/model/ModifySecurityCheckScheduleConfigResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +ModifySecurityCheckScheduleConfigResult::ModifySecurityCheckScheduleConfigResult() : + ServiceResult() +{} + +ModifySecurityCheckScheduleConfigResult::ModifySecurityCheckScheduleConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityCheckScheduleConfigResult::~ModifySecurityCheckScheduleConfigResult() +{} + +void ModifySecurityCheckScheduleConfigResult::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/StartBaselineSecurityCheckRequest.cc b/sas/src/model/StartBaselineSecurityCheckRequest.cc new file mode 100644 index 000000000..eb4e22d71 --- /dev/null +++ b/sas/src/model/StartBaselineSecurityCheckRequest.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::StartBaselineSecurityCheckRequest; + +StartBaselineSecurityCheckRequest::StartBaselineSecurityCheckRequest() : + RpcServiceRequest("sas", "2018-12-03", "StartBaselineSecurityCheck") +{} + +StartBaselineSecurityCheckRequest::~StartBaselineSecurityCheckRequest() +{} + +long StartBaselineSecurityCheckRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartBaselineSecurityCheckRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector StartBaselineSecurityCheckRequest::getAssets()const +{ + return assets_; +} + +void StartBaselineSecurityCheckRequest::setAssets(const std::vector& assets) +{ + assets_ = assets; + for(int i = 0; i!= assets.size(); i++) + setCoreParameter("Assets."+ std::to_string(i), assets.at(i)); +} + +std::string StartBaselineSecurityCheckRequest::getSourceIp()const +{ + return sourceIp_; +} + +void StartBaselineSecurityCheckRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setCoreParameter("SourceIp", sourceIp); +} + +std::vector StartBaselineSecurityCheckRequest::getItemIds()const +{ + return itemIds_; +} + +void StartBaselineSecurityCheckRequest::setItemIds(const std::vector& itemIds) +{ + itemIds_ = itemIds; + for(int i = 0; i!= itemIds.size(); i++) + setCoreParameter("ItemIds."+ std::to_string(i), std::to_string(itemIds.at(i))); +} + +std::string StartBaselineSecurityCheckRequest::getLang()const +{ + return lang_; +} + +void StartBaselineSecurityCheckRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setCoreParameter("Lang", lang); +} + +std::string StartBaselineSecurityCheckRequest::getType()const +{ + return type_; +} + +void StartBaselineSecurityCheckRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + diff --git a/sas/src/model/StartBaselineSecurityCheckResult.cc b/sas/src/model/StartBaselineSecurityCheckResult.cc new file mode 100644 index 000000000..4f4dc894b --- /dev/null +++ b/sas/src/model/StartBaselineSecurityCheckResult.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 +#include + +using namespace AlibabaCloud::Sas; +using namespace AlibabaCloud::Sas::Model; + +StartBaselineSecurityCheckResult::StartBaselineSecurityCheckResult() : + ServiceResult() +{} + +StartBaselineSecurityCheckResult::StartBaselineSecurityCheckResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartBaselineSecurityCheckResult::~StartBaselineSecurityCheckResult() +{} + +void StartBaselineSecurityCheckResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +