From 558c26ba3d8fc59a662f71a20e097e729a15c6ab Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Wed, 7 Feb 2018 15:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E5=90=9B=E7=9F=B3=E5=8F=91=E8=B5=B7?= =?UTF-8?q?=E7=9A=84AEGIS=20SDK=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83,=20BUI?= =?UTF-8?q?LD=5FID=3D397,=20=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=9A1.0.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 3 + CMakeLists.txt | 3 +- VERSION | 2 +- aegis/CMakeLists.txt | 178 ++++ .../include/alibabacloud/aegis/AegisClient.h | 239 +++++ .../include/alibabacloud/aegis/AegisExport.h | 32 + .../aegis/model/CreateInstanceRequest.h | 69 ++ .../aegis/model/CreateInstanceResult.h | 53 + .../aegis/model/DeleteStrategyRequest.h | 54 + .../aegis/model/DeleteStrategyResult.h | 49 + .../aegis/model/DescribeLoginLogsRequest.h | 57 ++ .../aegis/model/DescribeLoginLogsResult.h | 59 ++ .../model/DescribeStrategyTargetRequest.h | 60 ++ .../model/DescribeStrategyTargetResult.h | 59 ++ .../model/DescribeStratetyDetailRequest.h | 54 + .../model/DescribeStratetyDetailResult.h | 73 ++ .../aegis/model/DescribeStratetyRequest.h | 51 + .../aegis/model/DescribeStratetyResult.h | 70 ++ .../model/DescribeSuspiciousEventsRequest.h | 51 + .../model/DescribeSuspiciousEventsResult.h | 59 ++ .../aegis/model/DescribeVulDetailsRequest.h | 108 ++ .../aegis/model/DescribeVulDetailsResult.h | 81 ++ .../aegis/model/DescribeVulListRequest.h | 108 ++ .../aegis/model/DescribeVulListResult.h | 59 ++ .../aegis/model/DescribeWarningRequest.h | 78 ++ .../aegis/model/DescribeWarningResult.h | 59 ++ .../aegis/model/DescribeWebshellRequest.h | 57 ++ .../aegis/model/DescribeWebshellResult.h | 55 ++ .../aegis/model/GetAccountStatisticsRequest.h | 51 + .../aegis/model/GetAccountStatisticsResult.h | 64 ++ .../aegis/model/GetCrackStatisticsRequest.h | 51 + .../aegis/model/GetCrackStatisticsResult.h | 63 ++ .../aegis/model/GetEntityListRequest.h | 63 ++ .../aegis/model/GetEntityListResult.h | 85 ++ .../aegis/model/GetStatisticsByUuidRequest.h | 48 + .../aegis/model/GetStatisticsByUuidResult.h | 68 ++ .../aegis/model/GetStatisticsRequest.h | 51 + .../aegis/model/GetStatisticsResult.h | 66 ++ .../aegis/model/ModifyBatchIgnoreVulRequest.h | 57 ++ .../aegis/model/ModifyBatchIgnoreVulResult.h | 53 + .../aegis/model/ModifyStrategyRequest.h | 66 ++ .../aegis/model/ModifyStrategyResult.h | 61 ++ .../aegis/model/ModifyStrategyTargetRequest.h | 60 ++ .../aegis/model/ModifyStrategyTargetResult.h | 49 + .../aegis/model/QueryCrackEventRequest.h | 60 ++ .../aegis/model/QueryCrackEventResult.h | 91 ++ .../aegis/model/QueryLoginEventRequest.h | 60 ++ .../aegis/model/QueryLoginEventResult.h | 89 ++ .../aegis/model/ReleaseInstanceRequest.h | 51 + .../aegis/model/ReleaseInstanceResult.h | 49 + .../aegis/model/RenewInstanceRequest.h | 63 ++ .../aegis/model/RenewInstanceResult.h | 51 + .../aegis/model/UpgradeInstanceRequest.h | 60 ++ .../aegis/model/UpgradeInstanceResult.h | 51 + aegis/src/AegisClient.cc | 925 ++++++++++++++++++ aegis/src/model/CreateInstanceRequest.cc | 115 +++ aegis/src/model/CreateInstanceResult.cc | 59 ++ aegis/src/model/DeleteStrategyRequest.cc | 60 ++ aegis/src/model/DeleteStrategyResult.cc | 45 + aegis/src/model/DescribeLoginLogsRequest.cc | 71 ++ aegis/src/model/DescribeLoginLogsResult.cc | 81 ++ .../model/DescribeStrategyTargetRequest.cc | 82 ++ .../src/model/DescribeStrategyTargetResult.cc | 69 ++ .../model/DescribeStratetyDetailRequest.cc | 60 ++ .../src/model/DescribeStratetyDetailResult.cc | 90 ++ aegis/src/model/DescribeStratetyRequest.cc | 49 + aegis/src/model/DescribeStratetyResult.cc | 89 ++ .../model/DescribeSuspiciousEventsRequest.cc | 49 + .../model/DescribeSuspiciousEventsResult.cc | 81 ++ aegis/src/model/DescribeVulDetailsRequest.cc | 258 +++++ aegis/src/model/DescribeVulDetailsResult.cc | 158 +++ aegis/src/model/DescribeVulListRequest.cc | 258 +++++ aegis/src/model/DescribeVulListResult.cc | 81 ++ aegis/src/model/DescribeWarningRequest.cc | 148 +++ aegis/src/model/DescribeWarningResult.cc | 81 ++ aegis/src/model/DescribeWebshellRequest.cc | 71 ++ aegis/src/model/DescribeWebshellResult.cc | 66 ++ .../src/model/GetAccountStatisticsRequest.cc | 49 + aegis/src/model/GetAccountStatisticsResult.cc | 88 ++ aegis/src/model/GetCrackStatisticsRequest.cc | 49 + aegis/src/model/GetCrackStatisticsResult.cc | 86 ++ aegis/src/model/GetEntityListRequest.cc | 93 ++ aegis/src/model/GetEntityListResult.cc | 126 +++ aegis/src/model/GetStatisticsByUuidRequest.cc | 38 + aegis/src/model/GetStatisticsByUuidResult.cc | 96 ++ aegis/src/model/GetStatisticsRequest.cc | 49 + aegis/src/model/GetStatisticsResult.cc | 92 ++ .../src/model/ModifyBatchIgnoreVulRequest.cc | 71 ++ aegis/src/model/ModifyBatchIgnoreVulResult.cc | 59 ++ aegis/src/model/ModifyStrategyRequest.cc | 104 ++ aegis/src/model/ModifyStrategyResult.cc | 79 ++ .../src/model/ModifyStrategyTargetRequest.cc | 82 ++ aegis/src/model/ModifyStrategyTargetResult.cc | 45 + aegis/src/model/QueryCrackEventRequest.cc | 82 ++ aegis/src/model/QueryCrackEventResult.cc | 138 +++ aegis/src/model/QueryLoginEventRequest.cc | 82 ++ aegis/src/model/QueryLoginEventResult.cc | 134 +++ aegis/src/model/ReleaseInstanceRequest.cc | 49 + aegis/src/model/ReleaseInstanceResult.cc | 45 + aegis/src/model/RenewInstanceRequest.cc | 93 ++ aegis/src/model/RenewInstanceResult.cc | 52 + aegis/src/model/UpgradeInstanceRequest.cc | 82 ++ aegis/src/model/UpgradeInstanceResult.cc | 52 + 103 files changed, 8520 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG create mode 100644 aegis/CMakeLists.txt create mode 100644 aegis/include/alibabacloud/aegis/AegisClient.h create mode 100644 aegis/include/alibabacloud/aegis/AegisExport.h create mode 100644 aegis/include/alibabacloud/aegis/model/CreateInstanceRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/CreateInstanceResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DeleteStrategyRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DeleteStrategyResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeLoginLogsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeLoginLogsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeStratetyRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeStratetyResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulDetailsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulDetailsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeWarningRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeWarningResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeWebshellRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/DescribeWebshellResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetAccountStatisticsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetAccountStatisticsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetCrackStatisticsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetCrackStatisticsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetEntityListRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetEntityListResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetStatisticsRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/GetStatisticsResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyStrategyRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyStrategyResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/QueryCrackEventRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/QueryCrackEventResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/QueryLoginEventRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/QueryLoginEventResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/ReleaseInstanceRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/ReleaseInstanceResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/RenewInstanceRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/RenewInstanceResult.h create mode 100644 aegis/include/alibabacloud/aegis/model/UpgradeInstanceRequest.h create mode 100644 aegis/include/alibabacloud/aegis/model/UpgradeInstanceResult.h create mode 100644 aegis/src/AegisClient.cc create mode 100644 aegis/src/model/CreateInstanceRequest.cc create mode 100644 aegis/src/model/CreateInstanceResult.cc create mode 100644 aegis/src/model/DeleteStrategyRequest.cc create mode 100644 aegis/src/model/DeleteStrategyResult.cc create mode 100644 aegis/src/model/DescribeLoginLogsRequest.cc create mode 100644 aegis/src/model/DescribeLoginLogsResult.cc create mode 100644 aegis/src/model/DescribeStrategyTargetRequest.cc create mode 100644 aegis/src/model/DescribeStrategyTargetResult.cc create mode 100644 aegis/src/model/DescribeStratetyDetailRequest.cc create mode 100644 aegis/src/model/DescribeStratetyDetailResult.cc create mode 100644 aegis/src/model/DescribeStratetyRequest.cc create mode 100644 aegis/src/model/DescribeStratetyResult.cc create mode 100644 aegis/src/model/DescribeSuspiciousEventsRequest.cc create mode 100644 aegis/src/model/DescribeSuspiciousEventsResult.cc create mode 100644 aegis/src/model/DescribeVulDetailsRequest.cc create mode 100644 aegis/src/model/DescribeVulDetailsResult.cc create mode 100644 aegis/src/model/DescribeVulListRequest.cc create mode 100644 aegis/src/model/DescribeVulListResult.cc create mode 100644 aegis/src/model/DescribeWarningRequest.cc create mode 100644 aegis/src/model/DescribeWarningResult.cc create mode 100644 aegis/src/model/DescribeWebshellRequest.cc create mode 100644 aegis/src/model/DescribeWebshellResult.cc create mode 100644 aegis/src/model/GetAccountStatisticsRequest.cc create mode 100644 aegis/src/model/GetAccountStatisticsResult.cc create mode 100644 aegis/src/model/GetCrackStatisticsRequest.cc create mode 100644 aegis/src/model/GetCrackStatisticsResult.cc create mode 100644 aegis/src/model/GetEntityListRequest.cc create mode 100644 aegis/src/model/GetEntityListResult.cc create mode 100644 aegis/src/model/GetStatisticsByUuidRequest.cc create mode 100644 aegis/src/model/GetStatisticsByUuidResult.cc create mode 100644 aegis/src/model/GetStatisticsRequest.cc create mode 100644 aegis/src/model/GetStatisticsResult.cc create mode 100644 aegis/src/model/ModifyBatchIgnoreVulRequest.cc create mode 100644 aegis/src/model/ModifyBatchIgnoreVulResult.cc create mode 100644 aegis/src/model/ModifyStrategyRequest.cc create mode 100644 aegis/src/model/ModifyStrategyResult.cc create mode 100644 aegis/src/model/ModifyStrategyTargetRequest.cc create mode 100644 aegis/src/model/ModifyStrategyTargetResult.cc create mode 100644 aegis/src/model/QueryCrackEventRequest.cc create mode 100644 aegis/src/model/QueryCrackEventResult.cc create mode 100644 aegis/src/model/QueryLoginEventRequest.cc create mode 100644 aegis/src/model/QueryLoginEventResult.cc create mode 100644 aegis/src/model/ReleaseInstanceRequest.cc create mode 100644 aegis/src/model/ReleaseInstanceResult.cc create mode 100644 aegis/src/model/RenewInstanceRequest.cc create mode 100644 aegis/src/model/RenewInstanceResult.cc create mode 100644 aegis/src/model/UpgradeInstanceRequest.cc create mode 100644 aegis/src/model/UpgradeInstanceResult.cc diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 000000000..7eae5c1cf --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,3 @@ +2018-02-07 Version: 1.0.12 +1, add the access interface of logs such as vulnerabilities, baselines, exceptions, etc. + diff --git a/CMakeLists.txt b/CMakeLists.txt index 288394405..c0b659329 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,4 +59,5 @@ add_subdirectory(cloudphoto) add_subdirectory(ess) add_subdirectory(tesladam) add_subdirectory(cms) -add_subdirectory(afs) \ No newline at end of file +add_subdirectory(afs) +add_subdirectory(aegis) \ No newline at end of file diff --git a/VERSION b/VERSION index 86844988e..492b167a6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.11 \ No newline at end of file +1.0.12 \ No newline at end of file diff --git a/aegis/CMakeLists.txt b/aegis/CMakeLists.txt new file mode 100644 index 000000000..817d53d1b --- /dev/null +++ b/aegis/CMakeLists.txt @@ -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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(aegis_public_header + include/alibabacloud/aegis/AegisClient.h + include/alibabacloud/aegis/AegisExport.h ) + +set(aegis_public_header_model + include/alibabacloud/aegis/model/GetEntityListRequest.h + include/alibabacloud/aegis/model/GetEntityListResult.h + include/alibabacloud/aegis/model/GetStatisticsByUuidRequest.h + include/alibabacloud/aegis/model/GetStatisticsByUuidResult.h + include/alibabacloud/aegis/model/GetStatisticsRequest.h + include/alibabacloud/aegis/model/GetStatisticsResult.h + include/alibabacloud/aegis/model/DescribeVulDetailsRequest.h + include/alibabacloud/aegis/model/DescribeVulDetailsResult.h + include/alibabacloud/aegis/model/DeleteStrategyRequest.h + include/alibabacloud/aegis/model/DeleteStrategyResult.h + include/alibabacloud/aegis/model/GetCrackStatisticsRequest.h + include/alibabacloud/aegis/model/GetCrackStatisticsResult.h + include/alibabacloud/aegis/model/DescribeWarningRequest.h + include/alibabacloud/aegis/model/DescribeWarningResult.h + include/alibabacloud/aegis/model/ReleaseInstanceRequest.h + include/alibabacloud/aegis/model/ReleaseInstanceResult.h + include/alibabacloud/aegis/model/DescribeSuspiciousEventsRequest.h + include/alibabacloud/aegis/model/DescribeSuspiciousEventsResult.h + include/alibabacloud/aegis/model/CreateInstanceRequest.h + include/alibabacloud/aegis/model/CreateInstanceResult.h + include/alibabacloud/aegis/model/DescribeVulListRequest.h + include/alibabacloud/aegis/model/DescribeVulListResult.h + include/alibabacloud/aegis/model/UpgradeInstanceRequest.h + include/alibabacloud/aegis/model/UpgradeInstanceResult.h + include/alibabacloud/aegis/model/RenewInstanceRequest.h + include/alibabacloud/aegis/model/RenewInstanceResult.h + include/alibabacloud/aegis/model/DescribeStrategyTargetRequest.h + include/alibabacloud/aegis/model/DescribeStrategyTargetResult.h + include/alibabacloud/aegis/model/QueryLoginEventRequest.h + include/alibabacloud/aegis/model/QueryLoginEventResult.h + include/alibabacloud/aegis/model/GetAccountStatisticsRequest.h + include/alibabacloud/aegis/model/GetAccountStatisticsResult.h + include/alibabacloud/aegis/model/ModifyStrategyRequest.h + include/alibabacloud/aegis/model/ModifyStrategyResult.h + include/alibabacloud/aegis/model/ModifyStrategyTargetRequest.h + include/alibabacloud/aegis/model/ModifyStrategyTargetResult.h + include/alibabacloud/aegis/model/ModifyBatchIgnoreVulRequest.h + include/alibabacloud/aegis/model/ModifyBatchIgnoreVulResult.h + include/alibabacloud/aegis/model/DescribeWebshellRequest.h + include/alibabacloud/aegis/model/DescribeWebshellResult.h + include/alibabacloud/aegis/model/DescribeStratetyDetailRequest.h + include/alibabacloud/aegis/model/DescribeStratetyDetailResult.h + include/alibabacloud/aegis/model/DescribeStratetyRequest.h + include/alibabacloud/aegis/model/DescribeStratetyResult.h + include/alibabacloud/aegis/model/DescribeLoginLogsRequest.h + include/alibabacloud/aegis/model/DescribeLoginLogsResult.h + include/alibabacloud/aegis/model/QueryCrackEventRequest.h + include/alibabacloud/aegis/model/QueryCrackEventResult.h ) + +set(aegis_src + src/AegisClient.cc + src/model/GetEntityListRequest.cc + src/model/GetEntityListResult.cc + src/model/GetStatisticsByUuidRequest.cc + src/model/GetStatisticsByUuidResult.cc + src/model/GetStatisticsRequest.cc + src/model/GetStatisticsResult.cc + src/model/DescribeVulDetailsRequest.cc + src/model/DescribeVulDetailsResult.cc + src/model/DeleteStrategyRequest.cc + src/model/DeleteStrategyResult.cc + src/model/GetCrackStatisticsRequest.cc + src/model/GetCrackStatisticsResult.cc + src/model/DescribeWarningRequest.cc + src/model/DescribeWarningResult.cc + src/model/ReleaseInstanceRequest.cc + src/model/ReleaseInstanceResult.cc + src/model/DescribeSuspiciousEventsRequest.cc + src/model/DescribeSuspiciousEventsResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/DescribeVulListRequest.cc + src/model/DescribeVulListResult.cc + src/model/UpgradeInstanceRequest.cc + src/model/UpgradeInstanceResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/DescribeStrategyTargetRequest.cc + src/model/DescribeStrategyTargetResult.cc + src/model/QueryLoginEventRequest.cc + src/model/QueryLoginEventResult.cc + src/model/GetAccountStatisticsRequest.cc + src/model/GetAccountStatisticsResult.cc + src/model/ModifyStrategyRequest.cc + src/model/ModifyStrategyResult.cc + src/model/ModifyStrategyTargetRequest.cc + src/model/ModifyStrategyTargetResult.cc + src/model/ModifyBatchIgnoreVulRequest.cc + src/model/ModifyBatchIgnoreVulResult.cc + src/model/DescribeWebshellRequest.cc + src/model/DescribeWebshellResult.cc + src/model/DescribeStratetyDetailRequest.cc + src/model/DescribeStratetyDetailResult.cc + src/model/DescribeStratetyRequest.cc + src/model/DescribeStratetyResult.cc + src/model/DescribeLoginLogsRequest.cc + src/model/DescribeLoginLogsResult.cc + src/model/QueryCrackEventRequest.cc + src/model/QueryCrackEventResult.cc ) + +add_library(aegis ${LIB_TYPE} + ${aegis_public_header} + ${aegis_public_header_model} + ${aegis_src}) + +set_target_properties(aegis + 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}aegis + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(aegis + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_AEGIS_LIBRARY) +endif() + +target_include_directories(aegis + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(aegis + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(aegis + jsoncpp) + target_include_directories(aegis + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(aegis + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(aegis + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(aegis + PRIVATE /usr/include/jsoncpp) + target_link_libraries(aegis + jsoncpp) +endif() + +install(FILES ${aegis_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aegis) +install(FILES ${aegis_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/aegis/model) +install(TARGETS aegis + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/AegisClient.h b/aegis/include/alibabacloud/aegis/AegisClient.h new file mode 100644 index 000000000..46259dec2 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/AegisClient.h @@ -0,0 +1,239 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_AEGIS_AEGISCLIENT_H_ +#define ALIBABACLOUD_AEGIS_AEGISCLIENT_H_ + +#include +#include +#include +#include +#include "AegisExport.h" +#include "model/GetEntityListRequest.h" +#include "model/GetEntityListResult.h" +#include "model/GetStatisticsByUuidRequest.h" +#include "model/GetStatisticsByUuidResult.h" +#include "model/GetStatisticsRequest.h" +#include "model/GetStatisticsResult.h" +#include "model/DescribeVulDetailsRequest.h" +#include "model/DescribeVulDetailsResult.h" +#include "model/DeleteStrategyRequest.h" +#include "model/DeleteStrategyResult.h" +#include "model/GetCrackStatisticsRequest.h" +#include "model/GetCrackStatisticsResult.h" +#include "model/DescribeWarningRequest.h" +#include "model/DescribeWarningResult.h" +#include "model/ReleaseInstanceRequest.h" +#include "model/ReleaseInstanceResult.h" +#include "model/DescribeSuspiciousEventsRequest.h" +#include "model/DescribeSuspiciousEventsResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" +#include "model/DescribeVulListRequest.h" +#include "model/DescribeVulListResult.h" +#include "model/UpgradeInstanceRequest.h" +#include "model/UpgradeInstanceResult.h" +#include "model/RenewInstanceRequest.h" +#include "model/RenewInstanceResult.h" +#include "model/DescribeStrategyTargetRequest.h" +#include "model/DescribeStrategyTargetResult.h" +#include "model/QueryLoginEventRequest.h" +#include "model/QueryLoginEventResult.h" +#include "model/GetAccountStatisticsRequest.h" +#include "model/GetAccountStatisticsResult.h" +#include "model/ModifyStrategyRequest.h" +#include "model/ModifyStrategyResult.h" +#include "model/ModifyStrategyTargetRequest.h" +#include "model/ModifyStrategyTargetResult.h" +#include "model/ModifyBatchIgnoreVulRequest.h" +#include "model/ModifyBatchIgnoreVulResult.h" +#include "model/DescribeWebshellRequest.h" +#include "model/DescribeWebshellResult.h" +#include "model/DescribeStratetyDetailRequest.h" +#include "model/DescribeStratetyDetailResult.h" +#include "model/DescribeStratetyRequest.h" +#include "model/DescribeStratetyResult.h" +#include "model/DescribeLoginLogsRequest.h" +#include "model/DescribeLoginLogsResult.h" +#include "model/QueryCrackEventRequest.h" +#include "model/QueryCrackEventResult.h" + + +namespace AlibabaCloud +{ + namespace Aegis + { + class ALIBABACLOUD_AEGIS_EXPORT AegisClient : public RpcServiceClient + { + public: + typedef Outcome GetEntityListOutcome; + typedef std::future GetEntityListOutcomeCallable; + typedef std::function&)> GetEntityListAsyncHandler; + typedef Outcome GetStatisticsByUuidOutcome; + typedef std::future GetStatisticsByUuidOutcomeCallable; + typedef std::function&)> GetStatisticsByUuidAsyncHandler; + typedef Outcome GetStatisticsOutcome; + typedef std::future GetStatisticsOutcomeCallable; + typedef std::function&)> GetStatisticsAsyncHandler; + typedef Outcome DescribeVulDetailsOutcome; + typedef std::future DescribeVulDetailsOutcomeCallable; + typedef std::function&)> DescribeVulDetailsAsyncHandler; + typedef Outcome DeleteStrategyOutcome; + typedef std::future DeleteStrategyOutcomeCallable; + typedef std::function&)> DeleteStrategyAsyncHandler; + typedef Outcome GetCrackStatisticsOutcome; + typedef std::future GetCrackStatisticsOutcomeCallable; + typedef std::function&)> GetCrackStatisticsAsyncHandler; + typedef Outcome DescribeWarningOutcome; + typedef std::future DescribeWarningOutcomeCallable; + typedef std::function&)> DescribeWarningAsyncHandler; + typedef Outcome ReleaseInstanceOutcome; + typedef std::future ReleaseInstanceOutcomeCallable; + typedef std::function&)> ReleaseInstanceAsyncHandler; + typedef Outcome DescribeSuspiciousEventsOutcome; + typedef std::future DescribeSuspiciousEventsOutcomeCallable; + typedef std::function&)> DescribeSuspiciousEventsAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; + typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome DescribeVulListOutcome; + typedef std::future DescribeVulListOutcomeCallable; + typedef std::function&)> DescribeVulListAsyncHandler; + typedef Outcome UpgradeInstanceOutcome; + typedef std::future UpgradeInstanceOutcomeCallable; + typedef std::function&)> UpgradeInstanceAsyncHandler; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; + typedef std::function&)> RenewInstanceAsyncHandler; + typedef Outcome DescribeStrategyTargetOutcome; + typedef std::future DescribeStrategyTargetOutcomeCallable; + typedef std::function&)> DescribeStrategyTargetAsyncHandler; + typedef Outcome QueryLoginEventOutcome; + typedef std::future QueryLoginEventOutcomeCallable; + typedef std::function&)> QueryLoginEventAsyncHandler; + typedef Outcome GetAccountStatisticsOutcome; + typedef std::future GetAccountStatisticsOutcomeCallable; + typedef std::function&)> GetAccountStatisticsAsyncHandler; + typedef Outcome ModifyStrategyOutcome; + typedef std::future ModifyStrategyOutcomeCallable; + typedef std::function&)> ModifyStrategyAsyncHandler; + typedef Outcome ModifyStrategyTargetOutcome; + typedef std::future ModifyStrategyTargetOutcomeCallable; + typedef std::function&)> ModifyStrategyTargetAsyncHandler; + typedef Outcome ModifyBatchIgnoreVulOutcome; + typedef std::future ModifyBatchIgnoreVulOutcomeCallable; + typedef std::function&)> ModifyBatchIgnoreVulAsyncHandler; + typedef Outcome DescribeWebshellOutcome; + typedef std::future DescribeWebshellOutcomeCallable; + typedef std::function&)> DescribeWebshellAsyncHandler; + typedef Outcome DescribeStratetyDetailOutcome; + typedef std::future DescribeStratetyDetailOutcomeCallable; + typedef std::function&)> DescribeStratetyDetailAsyncHandler; + typedef Outcome DescribeStratetyOutcome; + typedef std::future DescribeStratetyOutcomeCallable; + typedef std::function&)> DescribeStratetyAsyncHandler; + typedef Outcome DescribeLoginLogsOutcome; + typedef std::future DescribeLoginLogsOutcomeCallable; + typedef std::function&)> DescribeLoginLogsAsyncHandler; + typedef Outcome QueryCrackEventOutcome; + typedef std::future QueryCrackEventOutcomeCallable; + typedef std::function&)> QueryCrackEventAsyncHandler; + + AegisClient(const Credentials &credentials, const ClientConfiguration &configuration); + AegisClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + AegisClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~AegisClient(); + GetEntityListOutcome getEntityList(const Model::GetEntityListRequest &request)const; + void getEntityListAsync(const Model::GetEntityListRequest& request, const GetEntityListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEntityListOutcomeCallable getEntityListCallable(const Model::GetEntityListRequest& request) const; + GetStatisticsByUuidOutcome getStatisticsByUuid(const Model::GetStatisticsByUuidRequest &request)const; + void getStatisticsByUuidAsync(const Model::GetStatisticsByUuidRequest& request, const GetStatisticsByUuidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStatisticsByUuidOutcomeCallable getStatisticsByUuidCallable(const Model::GetStatisticsByUuidRequest& request) const; + GetStatisticsOutcome getStatistics(const Model::GetStatisticsRequest &request)const; + void getStatisticsAsync(const Model::GetStatisticsRequest& request, const GetStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStatisticsOutcomeCallable getStatisticsCallable(const Model::GetStatisticsRequest& 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; + DeleteStrategyOutcome deleteStrategy(const Model::DeleteStrategyRequest &request)const; + void deleteStrategyAsync(const Model::DeleteStrategyRequest& request, const DeleteStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteStrategyOutcomeCallable deleteStrategyCallable(const Model::DeleteStrategyRequest& request) const; + GetCrackStatisticsOutcome getCrackStatistics(const Model::GetCrackStatisticsRequest &request)const; + void getCrackStatisticsAsync(const Model::GetCrackStatisticsRequest& request, const GetCrackStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCrackStatisticsOutcomeCallable getCrackStatisticsCallable(const Model::GetCrackStatisticsRequest& request) const; + DescribeWarningOutcome describeWarning(const Model::DescribeWarningRequest &request)const; + void describeWarningAsync(const Model::DescribeWarningRequest& request, const DescribeWarningAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWarningOutcomeCallable describeWarningCallable(const Model::DescribeWarningRequest& request) const; + ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const; + void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const; + DescribeSuspiciousEventsOutcome describeSuspiciousEvents(const Model::DescribeSuspiciousEventsRequest &request)const; + void describeSuspiciousEventsAsync(const Model::DescribeSuspiciousEventsRequest& request, const DescribeSuspiciousEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSuspiciousEventsOutcomeCallable describeSuspiciousEventsCallable(const Model::DescribeSuspiciousEventsRequest& request) const; + CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; + void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& 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; + UpgradeInstanceOutcome upgradeInstance(const Model::UpgradeInstanceRequest &request)const; + void upgradeInstanceAsync(const Model::UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeInstanceOutcomeCallable upgradeInstanceCallable(const Model::UpgradeInstanceRequest& request) const; + RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; + void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; + DescribeStrategyTargetOutcome describeStrategyTarget(const Model::DescribeStrategyTargetRequest &request)const; + void describeStrategyTargetAsync(const Model::DescribeStrategyTargetRequest& request, const DescribeStrategyTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStrategyTargetOutcomeCallable describeStrategyTargetCallable(const Model::DescribeStrategyTargetRequest& request) const; + QueryLoginEventOutcome queryLoginEvent(const Model::QueryLoginEventRequest &request)const; + void queryLoginEventAsync(const Model::QueryLoginEventRequest& request, const QueryLoginEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryLoginEventOutcomeCallable queryLoginEventCallable(const Model::QueryLoginEventRequest& request) const; + GetAccountStatisticsOutcome getAccountStatistics(const Model::GetAccountStatisticsRequest &request)const; + void getAccountStatisticsAsync(const Model::GetAccountStatisticsRequest& request, const GetAccountStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountStatisticsOutcomeCallable getAccountStatisticsCallable(const Model::GetAccountStatisticsRequest& request) const; + ModifyStrategyOutcome modifyStrategy(const Model::ModifyStrategyRequest &request)const; + void modifyStrategyAsync(const Model::ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyStrategyOutcomeCallable modifyStrategyCallable(const Model::ModifyStrategyRequest& request) const; + ModifyStrategyTargetOutcome modifyStrategyTarget(const Model::ModifyStrategyTargetRequest &request)const; + void modifyStrategyTargetAsync(const Model::ModifyStrategyTargetRequest& request, const ModifyStrategyTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyStrategyTargetOutcomeCallable modifyStrategyTargetCallable(const Model::ModifyStrategyTargetRequest& request) const; + ModifyBatchIgnoreVulOutcome modifyBatchIgnoreVul(const Model::ModifyBatchIgnoreVulRequest &request)const; + void modifyBatchIgnoreVulAsync(const Model::ModifyBatchIgnoreVulRequest& request, const ModifyBatchIgnoreVulAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBatchIgnoreVulOutcomeCallable modifyBatchIgnoreVulCallable(const Model::ModifyBatchIgnoreVulRequest& request) const; + DescribeWebshellOutcome describeWebshell(const Model::DescribeWebshellRequest &request)const; + void describeWebshellAsync(const Model::DescribeWebshellRequest& request, const DescribeWebshellAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeWebshellOutcomeCallable describeWebshellCallable(const Model::DescribeWebshellRequest& request) const; + DescribeStratetyDetailOutcome describeStratetyDetail(const Model::DescribeStratetyDetailRequest &request)const; + void describeStratetyDetailAsync(const Model::DescribeStratetyDetailRequest& request, const DescribeStratetyDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStratetyDetailOutcomeCallable describeStratetyDetailCallable(const Model::DescribeStratetyDetailRequest& request) const; + DescribeStratetyOutcome describeStratety(const Model::DescribeStratetyRequest &request)const; + void describeStratetyAsync(const Model::DescribeStratetyRequest& request, const DescribeStratetyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeStratetyOutcomeCallable describeStratetyCallable(const Model::DescribeStratetyRequest& request) const; + DescribeLoginLogsOutcome describeLoginLogs(const Model::DescribeLoginLogsRequest &request)const; + void describeLoginLogsAsync(const Model::DescribeLoginLogsRequest& request, const DescribeLoginLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoginLogsOutcomeCallable describeLoginLogsCallable(const Model::DescribeLoginLogsRequest& request) const; + QueryCrackEventOutcome queryCrackEvent(const Model::QueryCrackEventRequest &request)const; + void queryCrackEventAsync(const Model::QueryCrackEventRequest& request, const QueryCrackEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryCrackEventOutcomeCallable queryCrackEventCallable(const Model::QueryCrackEventRequest& request) const; + + private: + virtual EndpointOutcome endpoint()const override; + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_AEGIS_AEGISCLIENT_H_ diff --git a/aegis/include/alibabacloud/aegis/AegisExport.h b/aegis/include/alibabacloud/aegis/AegisExport.h new file mode 100644 index 000000000..d01604aaa --- /dev/null +++ b/aegis/include/alibabacloud/aegis/AegisExport.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_AEGIS_AEGISEXPORT_H_ +#define ALIBABACLOUD_AEGIS_AEGISEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_AEGIS_LIBRARY) +# define ALIBABACLOUD_AEGIS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_AEGIS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_AEGIS_EXPORT +#endif + +#endif // !ALIBABACLOUD_AEGIS_AEGISEXPORT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CreateInstanceRequest.h b/aegis/include/alibabacloud/aegis/model/CreateInstanceRequest.h new file mode 100644 index 000000000..bf83dcab7 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CreateInstanceRequest.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_AEGIS_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CreateInstanceRequest : public RpcServiceRequest + { + + public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + + int getDuration()const; + void setDuration(int duration); + bool getIsAutoRenew()const; + void setIsAutoRenew(bool isAutoRenew); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getVmNumber()const; + void setVmNumber(int vmNumber); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getVersionCode()const; + void setVersionCode(int versionCode); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + int getAutoRenewDuration()const; + void setAutoRenewDuration(int autoRenewDuration); + + private: + int duration_; + bool isAutoRenew_; + std::string clientToken_; + int vmNumber_; + long ownerId_; + int versionCode_; + std::string pricingCycle_; + int autoRenewDuration_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/CreateInstanceResult.h b/aegis/include/alibabacloud/aegis/model/CreateInstanceResult.h new file mode 100644 index 000000000..94192b60f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/CreateInstanceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT CreateInstanceResult : public ServiceResult + { + public: + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); + std::string getInstanceId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DeleteStrategyRequest.h b/aegis/include/alibabacloud/aegis/model/DeleteStrategyRequest.h new file mode 100644 index 000000000..69400b417 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DeleteStrategyRequest.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_AEGIS_MODEL_DELETESTRATEGYREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DELETESTRATEGYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DeleteStrategyRequest : public RpcServiceRequest + { + + public: + DeleteStrategyRequest(); + ~DeleteStrategyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getId()const; + void setId(const std::string& id); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DELETESTRATEGYREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DeleteStrategyResult.h b/aegis/include/alibabacloud/aegis/model/DeleteStrategyResult.h new file mode 100644 index 000000000..d1203f8ec --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DeleteStrategyResult.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_AEGIS_MODEL_DELETESTRATEGYRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DELETESTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DeleteStrategyResult : public ServiceResult + { + public: + + + DeleteStrategyResult(); + explicit DeleteStrategyResult(const std::string &payload); + ~DeleteStrategyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DELETESTRATEGYRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeLoginLogsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeLoginLogsRequest.h new file mode 100644 index 000000000..0e0570ddb --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeLoginLogsRequest.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_AEGIS_MODEL_DESCRIBELOGINLOGSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBELOGINLOGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeLoginLogsRequest : public RpcServiceRequest + { + + public: + DescribeLoginLogsRequest(); + ~DescribeLoginLogsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + + private: + long resourceOwnerId_; + std::string sourceIp_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBELOGINLOGSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeLoginLogsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeLoginLogsResult.h new file mode 100644 index 000000000..ff470040e --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeLoginLogsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBELOGINLOGSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBELOGINLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeLoginLogsResult : public ServiceResult + { + public: + + + DescribeLoginLogsResult(); + explicit DescribeLoginLogsResult(const std::string &payload); + ~DescribeLoginLogsResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + int getHttpStatusCode()const; + std::vector getLoginLogs()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + int httpStatusCode_; + std::vector loginLogs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBELOGINLOGSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetRequest.h new file mode 100644 index 000000000..eb5152235 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetRequest.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_AEGIS_MODEL_DESCRIBESTRATEGYTARGETREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATEGYTARGETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeStrategyTargetRequest : public RpcServiceRequest + { + + public: + DescribeStrategyTargetRequest(); + ~DescribeStrategyTargetRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getType()const; + void setType(const std::string& type); + std::string getConfig()const; + void setConfig(const std::string& config); + std::string getTarget()const; + void setTarget(const std::string& target); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string type_; + std::string config_; + std::string target_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATEGYTARGETREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetResult.h b/aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetResult.h new file mode 100644 index 000000000..361d09bf6 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeStrategyTargetResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATEGYTARGETRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATEGYTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeStrategyTargetResult : public ServiceResult + { + public: + struct StringItem + { + std::string target; + std::string targetType; + std::string flag; + }; + + + DescribeStrategyTargetResult(); + explicit DescribeStrategyTargetResult(const std::string &payload); + ~DescribeStrategyTargetResult(); + std::vector getStrategyTargets()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector strategyTargets_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATEGYTARGETRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailRequest.h new file mode 100644 index 000000000..4b2758450 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailRequest.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_AEGIS_MODEL_DESCRIBESTRATETYDETAILREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYDETAILREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeStratetyDetailRequest : public RpcServiceRequest + { + + public: + DescribeStratetyDetailRequest(); + ~DescribeStratetyDetailRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getId()const; + void setId(const std::string& id); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYDETAILREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailResult.h b/aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailResult.h new file mode 100644 index 000000000..34078c259 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeStratetyDetailResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYDETAILRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeStratetyDetailResult : public ServiceResult + { + public: + struct Strategy + { + struct RiskTypeWhiteListQueryResult + { + struct SubTyp + { + std::string typeName; + std::string alias; + bool on; + }; + std::string typeName; + std::vector subTypes; + std::string alias; + bool on; + }; + int cycleStartTime; + int type; + int cycleDays; + int id; + std::vector riskTypeWhiteListQueryResultList; + std::string name; + }; + + + DescribeStratetyDetailResult(); + explicit DescribeStratetyDetailResult(const std::string &payload); + ~DescribeStratetyDetailResult(); + std::vector getStrategy()const; + + protected: + void parse(const std::string &payload); + private: + std::vector strategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYDETAILRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStratetyRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeStratetyRequest.h new file mode 100644 index 000000000..76b106e45 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeStratetyRequest.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_AEGIS_MODEL_DESCRIBESTRATETYREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeStratetyRequest : public RpcServiceRequest + { + + public: + DescribeStratetyRequest(); + ~DescribeStratetyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + long resourceOwnerId_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeStratetyResult.h b/aegis/include/alibabacloud/aegis/model/DescribeStratetyResult.h new file mode 100644 index 000000000..3893010d9 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeStratetyResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeStratetyResult : public ServiceResult + { + public: + struct Data + { + struct ConfigTarget + { + std::string target; + std::string targetType; + std::string flag; + }; + int cycleStartTime; + int ecsCount; + int type; + int cycleDays; + int id; + std::vector configTargets; + int riskCount; + std::string name; + }; + + + DescribeStratetyResult(); + explicit DescribeStratetyResult(const std::string &payload); + ~DescribeStratetyResult(); + std::vector getStrategies()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector strategies_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESTRATETYRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsRequest.h new file mode 100644 index 000000000..6bf7d4881 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsRequest.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_AEGIS_MODEL_DESCRIBESUSPICIOUSEVENTSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUSPICIOUSEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeSuspiciousEventsRequest : public RpcServiceRequest + { + + public: + DescribeSuspiciousEventsRequest(); + ~DescribeSuspiciousEventsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + + private: + long resourceOwnerId_; + std::string sourceIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUSPICIOUSEVENTSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsResult.h new file mode 100644 index 000000000..f6914dfb1 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeSuspiciousEventsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUSPICIOUSEVENTSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUSPICIOUSEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeSuspiciousEventsResult : public ServiceResult + { + public: + + + DescribeSuspiciousEventsResult(); + explicit DescribeSuspiciousEventsResult(const std::string &payload); + ~DescribeSuspiciousEventsResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getSuspiciousEvents()const; + int getCurrentPage()const; + int getHttpStatusCode()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector suspiciousEvents_; + int currentPage_; + int httpStatusCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBESUSPICIOUSEVENTSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulDetailsRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulDetailsRequest.h new file mode 100644 index 000000000..2933ffed5 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulDetailsRequest.h @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULDETAILSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULDETAILSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulDetailsRequest : public RpcServiceRequest + { + + public: + DescribeVulDetailsRequest(); + ~DescribeVulDetailsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getStatusList()const; + void setStatusList(const std::string& statusList); + std::string getLevel()const; + void setLevel(const std::string& level); + std::string getResource()const; + void setResource(const std::string& resource); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); + std::string getDealed()const; + void setDealed(const std::string& dealed); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getType()const; + void setType(const std::string& type); + long getLastTsEnd()const; + void setLastTsEnd(long lastTsEnd); + std::string getBatchName()const; + void setBatchName(const std::string& batchName); + long getPatchId()const; + void setPatchId(long patchId); + 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); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getLang()const; + void setLang(const std::string& lang); + long getLastTsStart()const; + void setLastTsStart(long lastTsStart); + std::string getNecessity()const; + void setNecessity(const std::string& necessity); + std::string getUuids()const; + void setUuids(const std::string& uuids); + std::string getDirection()const; + void setDirection(const std::string& direction); + + private: + long resourceOwnerId_; + std::string product_; + std::string statusList_; + std::string level_; + std::string resource_; + std::string orderBy_; + std::string dealed_; + int currentPage_; + std::string type_; + long lastTsEnd_; + std::string batchName_; + long patchId_; + std::string aliasName_; + std::string sourceIp_; + std::string name_; + int pageSize_; + std::string lang_; + long lastTsStart_; + std::string necessity_; + std::string uuids_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULDETAILSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulDetailsResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVulDetailsResult.h new file mode 100644 index 000000000..c98ed6036 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulDetailsResult.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_AEGIS_MODEL_DESCRIBEVULDETAILSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulDetailsResult : public ServiceResult + { + public: + + + DescribeVulDetailsResult(); + explicit DescribeVulDetailsResult(const std::string &payload); + ~DescribeVulDetailsResult(); + int getPendingCount()const; + std::string getDescription()const; + std::vector getCveLists()const; + std::string getCveIds()const; + long getVulPublishTs()const; + std::string getProduct()const; + bool getHasPatch()const; + std::string getName()const; + std::string getType()const; + std::string getCvss()const; + long getPatchPublishTs()const; + int getHandledCount()const; + std::string getAliasName()const; + std::string getLevel()const; + std::string getAdvice()const; + std::string getPatchSource()const; + + protected: + void parse(const std::string &payload); + private: + int pendingCount_; + std::string description_; + std::vector cveLists_; + std::string cveIds_; + long vulPublishTs_; + std::string product_; + bool hasPatch_; + std::string name_; + std::string type_; + std::string cvss_; + long patchPublishTs_; + int handledCount_; + std::string aliasName_; + std::string level_; + std::string advice_; + std::string patchSource_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULDETAILSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h new file mode 100644 index 000000000..6970793dc --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulListRequest.h @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulListRequest : public RpcServiceRequest + { + + public: + DescribeVulListRequest(); + ~DescribeVulListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getProduct()const; + void setProduct(const std::string& product); + std::string getStatusList()const; + void setStatusList(const std::string& statusList); + std::string getLevel()const; + void setLevel(const std::string& level); + std::string getResource()const; + void setResource(const std::string& resource); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); + std::string getDealed()const; + void setDealed(const std::string& dealed); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getType()const; + void setType(const std::string& type); + long getLastTsEnd()const; + void setLastTsEnd(long lastTsEnd); + std::string getBatchName()const; + void setBatchName(const std::string& batchName); + long getPatchId()const; + void setPatchId(long patchId); + 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); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getLang()const; + void setLang(const std::string& lang); + long getLastTsStart()const; + void setLastTsStart(long lastTsStart); + std::string getNecessity()const; + void setNecessity(const std::string& necessity); + std::string getUuids()const; + void setUuids(const std::string& uuids); + std::string getDirection()const; + void setDirection(const std::string& direction); + + private: + long resourceOwnerId_; + std::string product_; + std::string statusList_; + std::string level_; + std::string resource_; + std::string orderBy_; + std::string dealed_; + int currentPage_; + std::string type_; + long lastTsEnd_; + std::string batchName_; + long patchId_; + std::string aliasName_; + std::string sourceIp_; + std::string name_; + int pageSize_; + std::string lang_; + long lastTsStart_; + std::string necessity_; + std::string uuids_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h b/aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h new file mode 100644 index 000000000..7b660536e --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeVulListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeVulListResult : public ServiceResult + { + public: + + + DescribeVulListResult(); + explicit DescribeVulListResult(const std::string &payload); + ~DescribeVulListResult(); + int getTotalCount()const; + std::vector getVulRecords()const; + int getPageSize()const; + int getCurrentPage()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector vulRecords_; + int pageSize_; + int currentPage_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEVULLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWarningRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeWarningRequest.h new file mode 100644 index 000000000..a40ff6a19 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeWarningRequest.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_AEGIS_MODEL_DESCRIBEWARNINGREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWARNINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeWarningRequest : public RpcServiceRequest + { + + public: + DescribeWarningRequest(); + ~DescribeWarningRequest(); + + std::string getTypeNames()const; + void setTypeNames(const std::string& typeNames); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRiskName()const; + void setRiskName(const std::string& riskName); + std::string getStatusList()const; + void setStatusList(const std::string& statusList); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getRiskLevels()const; + void setRiskLevels(const std::string& riskLevels); + int getPageSize()const; + void setPageSize(int pageSize); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getDealed()const; + void setDealed(const std::string& dealed); + std::string getSubTypeNames()const; + void setSubTypeNames(const std::string& subTypeNames); + std::string getUuids()const; + void setUuids(const std::string& uuids); + + private: + std::string typeNames_; + long resourceOwnerId_; + std::string riskName_; + std::string statusList_; + std::string sourceIp_; + std::string riskLevels_; + int pageSize_; + int currentPage_; + std::string dealed_; + std::string subTypeNames_; + std::string uuids_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWARNINGREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWarningResult.h b/aegis/include/alibabacloud/aegis/model/DescribeWarningResult.h new file mode 100644 index 000000000..2730ea2c3 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeWarningResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWARNINGRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWARNINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeWarningResult : public ServiceResult + { + public: + + + DescribeWarningResult(); + explicit DescribeWarningResult(const std::string &payload); + ~DescribeWarningResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + int getCount()const; + std::vector getWarnings()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + int count_; + std::vector warnings_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWARNINGRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebshellRequest.h b/aegis/include/alibabacloud/aegis/model/DescribeWebshellRequest.h new file mode 100644 index 000000000..e6d460a3b --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebshellRequest.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_AEGIS_MODEL_DESCRIBEWEBSHELLREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeWebshellRequest : public RpcServiceRequest + { + + public: + DescribeWebshellRequest(); + ~DescribeWebshellRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + int getGroupId()const; + void setGroupId(int groupId); + std::string getRemark()const; + void setRemark(const std::string& remark); + + private: + long resourceOwnerId_; + std::string sourceIp_; + int groupId_; + std::string remark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/DescribeWebshellResult.h b/aegis/include/alibabacloud/aegis/model/DescribeWebshellResult.h new file mode 100644 index 000000000..a47d31df5 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/DescribeWebshellResult.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_AEGIS_MODEL_DESCRIBEWEBSHELLRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT DescribeWebshellResult : public ServiceResult + { + public: + + + DescribeWebshellResult(); + explicit DescribeWebshellResult(const std::string &payload); + ~DescribeWebshellResult(); + int getTotalCount()const; + int getPageSize()const; + int getCurrentPage()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int currentPage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_DESCRIBEWEBSHELLRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetAccountStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/GetAccountStatisticsRequest.h new file mode 100644 index 000000000..c07a6c958 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetAccountStatisticsRequest.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_AEGIS_MODEL_GETACCOUNTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETACCOUNTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetAccountStatisticsRequest : public RpcServiceRequest + { + + public: + GetAccountStatisticsRequest(); + ~GetAccountStatisticsRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + + private: + std::string endTime_; + std::string startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETACCOUNTSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetAccountStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/GetAccountStatisticsResult.h new file mode 100644 index 000000000..fdc2bdc00 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetAccountStatisticsResult.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_AEGIS_MODEL_GETACCOUNTSTATISTICSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETACCOUNTSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetAccountStatisticsResult : public ServiceResult + { + public: + struct Data + { + int crackSuccess; + int remoteLogin; + }; + + + GetAccountStatisticsResult(); + explicit GetAccountStatisticsResult(const std::string &payload); + ~GetAccountStatisticsResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETACCOUNTSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetCrackStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/GetCrackStatisticsRequest.h new file mode 100644 index 000000000..449aa9ae5 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetCrackStatisticsRequest.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_AEGIS_MODEL_GETCRACKSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETCRACKSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetCrackStatisticsRequest : public RpcServiceRequest + { + + public: + GetCrackStatisticsRequest(); + ~GetCrackStatisticsRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + + private: + std::string endTime_; + std::string startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETCRACKSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetCrackStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/GetCrackStatisticsResult.h new file mode 100644 index 000000000..490804e53 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetCrackStatisticsResult.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_AEGIS_MODEL_GETCRACKSTATISTICSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETCRACKSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetCrackStatisticsResult : public ServiceResult + { + public: + struct Data + { + int intercepted; + }; + + + GetCrackStatisticsResult(); + explicit GetCrackStatisticsResult(const std::string &payload); + ~GetCrackStatisticsResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETCRACKSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetEntityListRequest.h b/aegis/include/alibabacloud/aegis/model/GetEntityListRequest.h new file mode 100644 index 000000000..eb5d49920 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetEntityListRequest.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_AEGIS_MODEL_GETENTITYLISTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETENTITYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetEntityListRequest : public RpcServiceRequest + { + + public: + GetEntityListRequest(); + ~GetEntityListRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getRemark()const; + void setRemark(const std::string& remark); + std::string getEventType()const; + void setEventType(const std::string& eventType); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getRegionNo()const; + void setRegionNo(const std::string& regionNo); + + private: + long groupId_; + int pageSize_; + std::string remark_; + std::string eventType_; + int currentPage_; + std::string regionNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETENTITYLISTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetEntityListResult.h b/aegis/include/alibabacloud/aegis/model/GetEntityListResult.h new file mode 100644 index 000000000..6bf2ea547 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetEntityListResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_GETENTITYLISTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETENTITYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetEntityListResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct Entity + { + std::string instanceName; + std::string uuid; + std::string buyVersion; + std::string aegisVersion; + std::string os; + std::string instanceId; + std::string ip; + std::string region; + bool aegisOnline; + std::string flag; + long groupId; + }; + std::vector pageInfo; + std::vector list; + }; + + + GetEntityListResult(); + explicit GetEntityListResult(const std::string &payload); + ~GetEntityListResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETENTITYLISTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidRequest.h b/aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidRequest.h new file mode 100644 index 000000000..9fa750b27 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidRequest.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_AEGIS_MODEL_GETSTATISTICSBYUUIDREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSBYUUIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetStatisticsByUuidRequest : public RpcServiceRequest + { + + public: + GetStatisticsByUuidRequest(); + ~GetStatisticsByUuidRequest(); + + std::string getUuid()const; + void setUuid(const std::string& uuid); + + private: + std::string uuid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSBYUUIDREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidResult.h b/aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidResult.h new file mode 100644 index 000000000..611f7515c --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetStatisticsByUuidResult.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_AEGIS_MODEL_GETSTATISTICSBYUUIDRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSBYUUIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetStatisticsByUuidResult : public ServiceResult + { + public: + struct Entity + { + int account; + std::string uuid; + int health; + int trojan; + bool online; + int patch; + }; + + + GetStatisticsByUuidResult(); + explicit GetStatisticsByUuidResult(const std::string &payload); + ~GetStatisticsByUuidResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSBYUUIDRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetStatisticsRequest.h b/aegis/include/alibabacloud/aegis/model/GetStatisticsRequest.h new file mode 100644 index 000000000..c7b1e4771 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetStatisticsRequest.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_AEGIS_MODEL_GETSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetStatisticsRequest : public RpcServiceRequest + { + + public: + GetStatisticsRequest(); + ~GetStatisticsRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + + private: + std::string endTime_; + std::string startTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/GetStatisticsResult.h b/aegis/include/alibabacloud/aegis/model/GetStatisticsResult.h new file mode 100644 index 000000000..ada8ff1c7 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/GetStatisticsResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT GetStatisticsResult : public ServiceResult + { + public: + struct Data + { + int account; + int health; + int trojan; + int patch; + }; + + + GetStatisticsResult(); + explicit GetStatisticsResult(const std::string &payload); + ~GetStatisticsResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_GETSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulRequest.h new file mode 100644 index 000000000..aa56c9227 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulRequest.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_AEGIS_MODEL_MODIFYBATCHIGNOREVULREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYBATCHIGNOREVULREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyBatchIgnoreVulRequest : public RpcServiceRequest + { + + public: + ModifyBatchIgnoreVulRequest(); + ~ModifyBatchIgnoreVulRequest(); + + std::string getReason()const; + void setReason(const std::string& reason); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getInfo()const; + void setInfo(const std::string& info); + + private: + std::string reason_; + long resourceOwnerId_; + std::string sourceIp_; + std::string info_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYBATCHIGNOREVULREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulResult.h b/aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulResult.h new file mode 100644 index 000000000..d8b463979 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyBatchIgnoreVulResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_MODIFYBATCHIGNOREVULRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYBATCHIGNOREVULRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyBatchIgnoreVulResult : public ServiceResult + { + public: + + + ModifyBatchIgnoreVulResult(); + explicit ModifyBatchIgnoreVulResult(const std::string &payload); + ~ModifyBatchIgnoreVulResult(); + int getHttpStatusCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYBATCHIGNOREVULRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyStrategyRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyStrategyRequest.h new file mode 100644 index 000000000..758dcf565 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyStrategyRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyStrategyRequest : public RpcServiceRequest + { + + public: + ModifyStrategyRequest(); + ~ModifyStrategyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRiskSubTypeName()const; + void setRiskSubTypeName(const std::string& riskSubTypeName); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getCycleStartTime()const; + void setCycleStartTime(const std::string& cycleStartTime); + std::string getName()const; + void setName(const std::string& name); + std::string getCycleDays()const; + void setCycleDays(const std::string& cycleDays); + std::string getId()const; + void setId(const std::string& id); + + private: + long resourceOwnerId_; + std::string riskSubTypeName_; + std::string sourceIp_; + std::string cycleStartTime_; + std::string name_; + std::string cycleDays_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyStrategyResult.h b/aegis/include/alibabacloud/aegis/model/ModifyStrategyResult.h new file mode 100644 index 000000000..92db3023c --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyStrategyResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyStrategyResult : public ServiceResult + { + public: + struct Result + { + int strategyId; + }; + + + ModifyStrategyResult(); + explicit ModifyStrategyResult(const std::string &payload); + ~ModifyStrategyResult(); + int getTotalCount()const; + int getHttpStatusCode()const; + bool getSuccess()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int httpStatusCode_; + bool success_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetRequest.h b/aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetRequest.h new file mode 100644 index 000000000..d5da0ec18 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetRequest.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_AEGIS_MODEL_MODIFYSTRATEGYTARGETREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYTARGETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyStrategyTargetRequest : public RpcServiceRequest + { + + public: + ModifyStrategyTargetRequest(); + ~ModifyStrategyTargetRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceIp()const; + void setSourceIp(const std::string& sourceIp); + std::string getType()const; + void setType(const std::string& type); + std::string getConfig()const; + void setConfig(const std::string& config); + std::string getTarget()const; + void setTarget(const std::string& target); + + private: + long resourceOwnerId_; + std::string sourceIp_; + std::string type_; + std::string config_; + std::string target_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYTARGETREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetResult.h b/aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetResult.h new file mode 100644 index 000000000..28be2fedb --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ModifyStrategyTargetResult.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_AEGIS_MODEL_MODIFYSTRATEGYTARGETRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ModifyStrategyTargetResult : public ServiceResult + { + public: + + + ModifyStrategyTargetResult(); + explicit ModifyStrategyTargetResult(const std::string &payload); + ~ModifyStrategyTargetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_MODIFYSTRATEGYTARGETRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/QueryCrackEventRequest.h b/aegis/include/alibabacloud/aegis/model/QueryCrackEventRequest.h new file mode 100644 index 000000000..3fef698b8 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/QueryCrackEventRequest.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_AEGIS_MODEL_QUERYCRACKEVENTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_QUERYCRACKEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT QueryCrackEventRequest : public RpcServiceRequest + { + + public: + QueryCrackEventRequest(); + ~QueryCrackEventRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getUuid()const; + void setUuid(const std::string& uuid); + int getStatus()const; + void setStatus(int status); + + private: + std::string endTime_; + int currentPage_; + std::string startTime_; + std::string uuid_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_QUERYCRACKEVENTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/QueryCrackEventResult.h b/aegis/include/alibabacloud/aegis/model/QueryCrackEventResult.h new file mode 100644 index 000000000..d80de1eb0 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/QueryCrackEventResult.h @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_QUERYCRACKEVENTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_QUERYCRACKEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT QueryCrackEventResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct Entity + { + int status; + std::string buyVersion; + std::string userName; + std::string instanceId; + std::string ip; + int attackType; + std::string statusName; + int groupId; + std::string instanceName; + int inWhite; + std::string uuid; + std::string attackTypeName; + int crackTimes; + std::string region; + std::string crackSourceIp; + std::string attackTime; + std::string location; + }; + std::vector pageInfo; + std::vector list; + }; + + + QueryCrackEventResult(); + explicit QueryCrackEventResult(const std::string &payload); + ~QueryCrackEventResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_QUERYCRACKEVENTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/QueryLoginEventRequest.h b/aegis/include/alibabacloud/aegis/model/QueryLoginEventRequest.h new file mode 100644 index 000000000..7868ba68c --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/QueryLoginEventRequest.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_AEGIS_MODEL_QUERYLOGINEVENTREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_QUERYLOGINEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT QueryLoginEventRequest : public RpcServiceRequest + { + + public: + QueryLoginEventRequest(); + ~QueryLoginEventRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + int getCurrentPage()const; + void setCurrentPage(int currentPage); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getUuid()const; + void setUuid(const std::string& uuid); + int getStatus()const; + void setStatus(int status); + + private: + std::string endTime_; + int currentPage_; + std::string startTime_; + std::string uuid_; + int status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_QUERYLOGINEVENTREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/QueryLoginEventResult.h b/aegis/include/alibabacloud/aegis/model/QueryLoginEventResult.h new file mode 100644 index 000000000..b728fdcc8 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/QueryLoginEventResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_AEGIS_MODEL_QUERYLOGINEVENTRESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_QUERYLOGINEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT QueryLoginEventResult : public ServiceResult + { + public: + struct Data + { + struct PageInfo + { + int totalCount; + int pageSize; + int currentPage; + int count; + }; + struct Entity + { + int status; + std::string loginTime; + std::string buyVersion; + std::string loginSourceIp; + std::string userName; + std::string instanceId; + std::string ip; + std::string statusName; + int groupId; + std::string instanceName; + std::string loginTypeName; + std::string uuid; + std::string region; + int loginType; + std::string location; + }; + std::vector pageInfo; + std::vector list; + }; + + + QueryLoginEventResult(); + explicit QueryLoginEventResult(const std::string &payload); + ~QueryLoginEventResult(); + std::string getRequestId()const; + std::string getMessage()const; + std::vector getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::vector data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_QUERYLOGINEVENTRESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ReleaseInstanceRequest.h b/aegis/include/alibabacloud/aegis/model/ReleaseInstanceRequest.h new file mode 100644 index 000000000..56493a437 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ReleaseInstanceRequest.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_AEGIS_MODEL_RELEASEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_RELEASEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ReleaseInstanceRequest : public RpcServiceRequest + { + + public: + ReleaseInstanceRequest(); + ~ReleaseInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string instanceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_RELEASEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/ReleaseInstanceResult.h b/aegis/include/alibabacloud/aegis/model/ReleaseInstanceResult.h new file mode 100644 index 000000000..aded3fd0f --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/ReleaseInstanceResult.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_AEGIS_MODEL_RELEASEINSTANCERESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_RELEASEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT ReleaseInstanceResult : public ServiceResult + { + public: + + + ReleaseInstanceResult(); + explicit ReleaseInstanceResult(const std::string &payload); + ~ReleaseInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_RELEASEINSTANCERESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/RenewInstanceRequest.h b/aegis/include/alibabacloud/aegis/model/RenewInstanceRequest.h new file mode 100644 index 000000000..b7ffc1efb --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/RenewInstanceRequest.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_AEGIS_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT RenewInstanceRequest : public RpcServiceRequest + { + + public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + + int getDuration()const; + void setDuration(int duration); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVmNumber()const; + void setVmNumber(const std::string& vmNumber); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + int duration_; + std::string instanceId_; + std::string clientToken_; + std::string vmNumber_; + long ownerId_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/RenewInstanceResult.h b/aegis/include/alibabacloud/aegis/model/RenewInstanceResult.h new file mode 100644 index 000000000..a36ac1067 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/RenewInstanceResult.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_AEGIS_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/UpgradeInstanceRequest.h b/aegis/include/alibabacloud/aegis/model/UpgradeInstanceRequest.h new file mode 100644 index 000000000..c06e56583 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/UpgradeInstanceRequest.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_AEGIS_MODEL_UPGRADEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_AEGIS_MODEL_UPGRADEINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT UpgradeInstanceRequest : public RpcServiceRequest + { + + public: + UpgradeInstanceRequest(); + ~UpgradeInstanceRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + int getVmNumber()const; + void setVmNumber(int vmNumber); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getVersionCode()const; + void setVersionCode(int versionCode); + + private: + std::string instanceId_; + std::string clientToken_; + int vmNumber_; + long ownerId_; + int versionCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_UPGRADEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/aegis/include/alibabacloud/aegis/model/UpgradeInstanceResult.h b/aegis/include/alibabacloud/aegis/model/UpgradeInstanceResult.h new file mode 100644 index 000000000..91b0c3165 --- /dev/null +++ b/aegis/include/alibabacloud/aegis/model/UpgradeInstanceResult.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_AEGIS_MODEL_UPGRADEINSTANCERESULT_H_ +#define ALIBABACLOUD_AEGIS_MODEL_UPGRADEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Aegis + { + namespace Model + { + class ALIBABACLOUD_AEGIS_EXPORT UpgradeInstanceResult : public ServiceResult + { + public: + + + UpgradeInstanceResult(); + explicit UpgradeInstanceResult(const std::string &payload); + ~UpgradeInstanceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_AEGIS_MODEL_UPGRADEINSTANCERESULT_H_ \ No newline at end of file diff --git a/aegis/src/AegisClient.cc b/aegis/src/AegisClient.cc new file mode 100644 index 000000000..28e98897a --- /dev/null +++ b/aegis/src/AegisClient.cc @@ -0,0 +1,925 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +AegisClient::AegisClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "vipaegis"); +} + +AegisClient::AegisClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "vipaegis"); +} + +AegisClient::AegisClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "vipaegis"); +} + +AegisClient::~AegisClient() +{} + +CoreClient::EndpointOutcome AegisClient::endpoint()const +{ + if(!configuration().endpoint().empty()) + return CoreClient::EndpointOutcome(configuration().endpoint()); + + auto endpoint = endpointProvider_->getEndpoint(); + + if (endpoint.empty()) + return CoreClient::EndpointOutcome(Error("InvalidEndpoint","")); + else + return CoreClient::EndpointOutcome(endpoint); +} + +AegisClient::GetEntityListOutcome AegisClient::getEntityList(const GetEntityListRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GetEntityListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEntityListOutcome(GetEntityListResult(outcome.result())); + else + return GetEntityListOutcome(outcome.error()); +} + +void AegisClient::getEntityListAsync(const GetEntityListRequest& request, const GetEntityListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEntityList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::GetEntityListOutcomeCallable AegisClient::getEntityListCallable(const GetEntityListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEntityList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::GetStatisticsByUuidOutcome AegisClient::getStatisticsByUuid(const GetStatisticsByUuidRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GetStatisticsByUuidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStatisticsByUuidOutcome(GetStatisticsByUuidResult(outcome.result())); + else + return GetStatisticsByUuidOutcome(outcome.error()); +} + +void AegisClient::getStatisticsByUuidAsync(const GetStatisticsByUuidRequest& request, const GetStatisticsByUuidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStatisticsByUuid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::GetStatisticsByUuidOutcomeCallable AegisClient::getStatisticsByUuidCallable(const GetStatisticsByUuidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStatisticsByUuid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::GetStatisticsOutcome AegisClient::getStatistics(const GetStatisticsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GetStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStatisticsOutcome(GetStatisticsResult(outcome.result())); + else + return GetStatisticsOutcome(outcome.error()); +} + +void AegisClient::getStatisticsAsync(const GetStatisticsRequest& request, const GetStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::GetStatisticsOutcomeCallable AegisClient::getStatisticsCallable(const GetStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeVulDetailsOutcome AegisClient::describeVulDetails(const DescribeVulDetailsRequest &request) const +{ + auto endpointOutcome = endpoint(); + 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 AegisClient::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)); +} + +AegisClient::DescribeVulDetailsOutcomeCallable AegisClient::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(); +} + +AegisClient::DeleteStrategyOutcome AegisClient::deleteStrategy(const DeleteStrategyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteStrategyOutcome(DeleteStrategyResult(outcome.result())); + else + return DeleteStrategyOutcome(outcome.error()); +} + +void AegisClient::deleteStrategyAsync(const DeleteStrategyRequest& request, const DeleteStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DeleteStrategyOutcomeCallable AegisClient::deleteStrategyCallable(const DeleteStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::GetCrackStatisticsOutcome AegisClient::getCrackStatistics(const GetCrackStatisticsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GetCrackStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCrackStatisticsOutcome(GetCrackStatisticsResult(outcome.result())); + else + return GetCrackStatisticsOutcome(outcome.error()); +} + +void AegisClient::getCrackStatisticsAsync(const GetCrackStatisticsRequest& request, const GetCrackStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCrackStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::GetCrackStatisticsOutcomeCallable AegisClient::getCrackStatisticsCallable(const GetCrackStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCrackStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeWarningOutcome AegisClient::describeWarning(const DescribeWarningRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWarningOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWarningOutcome(DescribeWarningResult(outcome.result())); + else + return DescribeWarningOutcome(outcome.error()); +} + +void AegisClient::describeWarningAsync(const DescribeWarningRequest& request, const DescribeWarningAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWarning(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeWarningOutcomeCallable AegisClient::describeWarningCallable(const DescribeWarningRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWarning(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::ReleaseInstanceOutcome AegisClient::releaseInstance(const ReleaseInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstanceOutcome(ReleaseInstanceResult(outcome.result())); + else + return ReleaseInstanceOutcome(outcome.error()); +} + +void AegisClient::releaseInstanceAsync(const ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ReleaseInstanceOutcomeCallable AegisClient::releaseInstanceCallable(const ReleaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeSuspiciousEventsOutcome AegisClient::describeSuspiciousEvents(const DescribeSuspiciousEventsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSuspiciousEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSuspiciousEventsOutcome(DescribeSuspiciousEventsResult(outcome.result())); + else + return DescribeSuspiciousEventsOutcome(outcome.error()); +} + +void AegisClient::describeSuspiciousEventsAsync(const DescribeSuspiciousEventsRequest& request, const DescribeSuspiciousEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSuspiciousEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeSuspiciousEventsOutcomeCallable AegisClient::describeSuspiciousEventsCallable(const DescribeSuspiciousEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSuspiciousEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::CreateInstanceOutcome AegisClient::createInstance(const CreateInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + else + return CreateInstanceOutcome(outcome.error()); +} + +void AegisClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::CreateInstanceOutcomeCallable AegisClient::createInstanceCallable(const CreateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeVulListOutcome AegisClient::describeVulList(const DescribeVulListRequest &request) const +{ + auto endpointOutcome = endpoint(); + 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 AegisClient::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)); +} + +AegisClient::DescribeVulListOutcomeCallable AegisClient::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(); +} + +AegisClient::UpgradeInstanceOutcome AegisClient::upgradeInstance(const UpgradeInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeInstanceOutcome(UpgradeInstanceResult(outcome.result())); + else + return UpgradeInstanceOutcome(outcome.error()); +} + +void AegisClient::upgradeInstanceAsync(const UpgradeInstanceRequest& request, const UpgradeInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::UpgradeInstanceOutcomeCallable AegisClient::upgradeInstanceCallable(const UpgradeInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::RenewInstanceOutcome AegisClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RenewInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); + else + return RenewInstanceOutcome(outcome.error()); +} + +void AegisClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::RenewInstanceOutcomeCallable AegisClient::renewInstanceCallable(const RenewInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeStrategyTargetOutcome AegisClient::describeStrategyTarget(const DescribeStrategyTargetRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStrategyTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStrategyTargetOutcome(DescribeStrategyTargetResult(outcome.result())); + else + return DescribeStrategyTargetOutcome(outcome.error()); +} + +void AegisClient::describeStrategyTargetAsync(const DescribeStrategyTargetRequest& request, const DescribeStrategyTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStrategyTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeStrategyTargetOutcomeCallable AegisClient::describeStrategyTargetCallable(const DescribeStrategyTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStrategyTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::QueryLoginEventOutcome AegisClient::queryLoginEvent(const QueryLoginEventRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return QueryLoginEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryLoginEventOutcome(QueryLoginEventResult(outcome.result())); + else + return QueryLoginEventOutcome(outcome.error()); +} + +void AegisClient::queryLoginEventAsync(const QueryLoginEventRequest& request, const QueryLoginEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryLoginEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::QueryLoginEventOutcomeCallable AegisClient::queryLoginEventCallable(const QueryLoginEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryLoginEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::GetAccountStatisticsOutcome AegisClient::getAccountStatistics(const GetAccountStatisticsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountStatisticsOutcome(GetAccountStatisticsResult(outcome.result())); + else + return GetAccountStatisticsOutcome(outcome.error()); +} + +void AegisClient::getAccountStatisticsAsync(const GetAccountStatisticsRequest& request, const GetAccountStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::GetAccountStatisticsOutcomeCallable AegisClient::getAccountStatisticsCallable(const GetAccountStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::ModifyStrategyOutcome AegisClient::modifyStrategy(const ModifyStrategyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyStrategyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyStrategyOutcome(ModifyStrategyResult(outcome.result())); + else + return ModifyStrategyOutcome(outcome.error()); +} + +void AegisClient::modifyStrategyAsync(const ModifyStrategyRequest& request, const ModifyStrategyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyStrategy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyStrategyOutcomeCallable AegisClient::modifyStrategyCallable(const ModifyStrategyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyStrategy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::ModifyStrategyTargetOutcome AegisClient::modifyStrategyTarget(const ModifyStrategyTargetRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyStrategyTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyStrategyTargetOutcome(ModifyStrategyTargetResult(outcome.result())); + else + return ModifyStrategyTargetOutcome(outcome.error()); +} + +void AegisClient::modifyStrategyTargetAsync(const ModifyStrategyTargetRequest& request, const ModifyStrategyTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyStrategyTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyStrategyTargetOutcomeCallable AegisClient::modifyStrategyTargetCallable(const ModifyStrategyTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyStrategyTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::ModifyBatchIgnoreVulOutcome AegisClient::modifyBatchIgnoreVul(const ModifyBatchIgnoreVulRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBatchIgnoreVulOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBatchIgnoreVulOutcome(ModifyBatchIgnoreVulResult(outcome.result())); + else + return ModifyBatchIgnoreVulOutcome(outcome.error()); +} + +void AegisClient::modifyBatchIgnoreVulAsync(const ModifyBatchIgnoreVulRequest& request, const ModifyBatchIgnoreVulAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBatchIgnoreVul(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::ModifyBatchIgnoreVulOutcomeCallable AegisClient::modifyBatchIgnoreVulCallable(const ModifyBatchIgnoreVulRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBatchIgnoreVul(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeWebshellOutcome AegisClient::describeWebshell(const DescribeWebshellRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeWebshellOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeWebshellOutcome(DescribeWebshellResult(outcome.result())); + else + return DescribeWebshellOutcome(outcome.error()); +} + +void AegisClient::describeWebshellAsync(const DescribeWebshellRequest& request, const DescribeWebshellAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeWebshell(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeWebshellOutcomeCallable AegisClient::describeWebshellCallable(const DescribeWebshellRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeWebshell(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeStratetyDetailOutcome AegisClient::describeStratetyDetail(const DescribeStratetyDetailRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStratetyDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStratetyDetailOutcome(DescribeStratetyDetailResult(outcome.result())); + else + return DescribeStratetyDetailOutcome(outcome.error()); +} + +void AegisClient::describeStratetyDetailAsync(const DescribeStratetyDetailRequest& request, const DescribeStratetyDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStratetyDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeStratetyDetailOutcomeCallable AegisClient::describeStratetyDetailCallable(const DescribeStratetyDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStratetyDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeStratetyOutcome AegisClient::describeStratety(const DescribeStratetyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeStratetyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeStratetyOutcome(DescribeStratetyResult(outcome.result())); + else + return DescribeStratetyOutcome(outcome.error()); +} + +void AegisClient::describeStratetyAsync(const DescribeStratetyRequest& request, const DescribeStratetyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeStratety(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeStratetyOutcomeCallable AegisClient::describeStratetyCallable(const DescribeStratetyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeStratety(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::DescribeLoginLogsOutcome AegisClient::describeLoginLogs(const DescribeLoginLogsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoginLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoginLogsOutcome(DescribeLoginLogsResult(outcome.result())); + else + return DescribeLoginLogsOutcome(outcome.error()); +} + +void AegisClient::describeLoginLogsAsync(const DescribeLoginLogsRequest& request, const DescribeLoginLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoginLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::DescribeLoginLogsOutcomeCallable AegisClient::describeLoginLogsCallable(const DescribeLoginLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoginLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AegisClient::QueryCrackEventOutcome AegisClient::queryCrackEvent(const QueryCrackEventRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return QueryCrackEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryCrackEventOutcome(QueryCrackEventResult(outcome.result())); + else + return QueryCrackEventOutcome(outcome.error()); +} + +void AegisClient::queryCrackEventAsync(const QueryCrackEventRequest& request, const QueryCrackEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryCrackEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AegisClient::QueryCrackEventOutcomeCallable AegisClient::queryCrackEventCallable(const QueryCrackEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryCrackEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/aegis/src/model/CreateInstanceRequest.cc b/aegis/src/model/CreateInstanceRequest.cc new file mode 100644 index 000000000..436562f48 --- /dev/null +++ b/aegis/src/model/CreateInstanceRequest.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::Aegis::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() : + RpcServiceRequest("aegis", "2016-11-11", "CreateInstance") +{} + +CreateInstanceRequest::~CreateInstanceRequest() +{} + +int CreateInstanceRequest::getDuration()const +{ + return duration_; +} + +void CreateInstanceRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +bool CreateInstanceRequest::getIsAutoRenew()const +{ + return isAutoRenew_; +} + +void CreateInstanceRequest::setIsAutoRenew(bool isAutoRenew) +{ + isAutoRenew_ = isAutoRenew; + setParameter("IsAutoRenew", std::to_string(isAutoRenew)); +} + +std::string CreateInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int CreateInstanceRequest::getVmNumber()const +{ + return vmNumber_; +} + +void CreateInstanceRequest::setVmNumber(int vmNumber) +{ + vmNumber_ = vmNumber; + setParameter("VmNumber", std::to_string(vmNumber)); +} + +long CreateInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int CreateInstanceRequest::getVersionCode()const +{ + return versionCode_; +} + +void CreateInstanceRequest::setVersionCode(int versionCode) +{ + versionCode_ = versionCode; + setParameter("VersionCode", std::to_string(versionCode)); +} + +std::string CreateInstanceRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void CreateInstanceRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + +int CreateInstanceRequest::getAutoRenewDuration()const +{ + return autoRenewDuration_; +} + +void CreateInstanceRequest::setAutoRenewDuration(int autoRenewDuration) +{ + autoRenewDuration_ = autoRenewDuration; + setParameter("AutoRenewDuration", std::to_string(autoRenewDuration)); +} + diff --git a/aegis/src/model/CreateInstanceResult.cc b/aegis/src/model/CreateInstanceResult.cc new file mode 100644 index 000000000..8af923967 --- /dev/null +++ b/aegis/src/model/CreateInstanceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +CreateInstanceResult::CreateInstanceResult() : + ServiceResult() +{} + +CreateInstanceResult::CreateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceResult::~CreateInstanceResult() +{} + +void CreateInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string CreateInstanceResult::getInstanceId()const +{ + return instanceId_; +} + +std::string CreateInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/aegis/src/model/DeleteStrategyRequest.cc b/aegis/src/model/DeleteStrategyRequest.cc new file mode 100644 index 000000000..b57eb2961 --- /dev/null +++ b/aegis/src/model/DeleteStrategyRequest.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::Aegis::Model::DeleteStrategyRequest; + +DeleteStrategyRequest::DeleteStrategyRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DeleteStrategy") +{} + +DeleteStrategyRequest::~DeleteStrategyRequest() +{} + +long DeleteStrategyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteStrategyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteStrategyRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DeleteStrategyRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DeleteStrategyRequest::getId()const +{ + return id_; +} + +void DeleteStrategyRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/aegis/src/model/DeleteStrategyResult.cc b/aegis/src/model/DeleteStrategyResult.cc new file mode 100644 index 000000000..5a975126b --- /dev/null +++ b/aegis/src/model/DeleteStrategyResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DeleteStrategyResult::DeleteStrategyResult() : + ServiceResult() +{} + +DeleteStrategyResult::DeleteStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStrategyResult::~DeleteStrategyResult() +{} + +void DeleteStrategyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/DescribeLoginLogsRequest.cc b/aegis/src/model/DescribeLoginLogsRequest.cc new file mode 100644 index 000000000..4fd98982b --- /dev/null +++ b/aegis/src/model/DescribeLoginLogsRequest.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::Aegis::Model::DescribeLoginLogsRequest; + +DescribeLoginLogsRequest::DescribeLoginLogsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeLoginLogs") +{} + +DescribeLoginLogsRequest::~DescribeLoginLogsRequest() +{} + +long DescribeLoginLogsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeLoginLogsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeLoginLogsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeLoginLogsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int DescribeLoginLogsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeLoginLogsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeLoginLogsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeLoginLogsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + diff --git a/aegis/src/model/DescribeLoginLogsResult.cc b/aegis/src/model/DescribeLoginLogsResult.cc new file mode 100644 index 000000000..764f65e71 --- /dev/null +++ b/aegis/src/model/DescribeLoginLogsResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeLoginLogsResult::DescribeLoginLogsResult() : + ServiceResult() +{} + +DescribeLoginLogsResult::DescribeLoginLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoginLogsResult::~DescribeLoginLogsResult() +{} + +void DescribeLoginLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allLoginLogs = value["LoginLogs"]["StringItem"]; + for (const auto &item : allLoginLogs) + loginLogs_.push_back(item.asString()); + 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()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int DescribeLoginLogsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeLoginLogsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeLoginLogsResult::getCurrentPage()const +{ + return currentPage_; +} + +int DescribeLoginLogsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector DescribeLoginLogsResult::getLoginLogs()const +{ + return loginLogs_; +} + diff --git a/aegis/src/model/DescribeStrategyTargetRequest.cc b/aegis/src/model/DescribeStrategyTargetRequest.cc new file mode 100644 index 000000000..e15525aff --- /dev/null +++ b/aegis/src/model/DescribeStrategyTargetRequest.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::Aegis::Model::DescribeStrategyTargetRequest; + +DescribeStrategyTargetRequest::DescribeStrategyTargetRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeStrategyTarget") +{} + +DescribeStrategyTargetRequest::~DescribeStrategyTargetRequest() +{} + +long DescribeStrategyTargetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeStrategyTargetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeStrategyTargetRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeStrategyTargetRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeStrategyTargetRequest::getType()const +{ + return type_; +} + +void DescribeStrategyTargetRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string DescribeStrategyTargetRequest::getConfig()const +{ + return config_; +} + +void DescribeStrategyTargetRequest::setConfig(const std::string& config) +{ + config_ = config; + setParameter("Config", config); +} + +std::string DescribeStrategyTargetRequest::getTarget()const +{ + return target_; +} + +void DescribeStrategyTargetRequest::setTarget(const std::string& target) +{ + target_ = target; + setParameter("Target", target); +} + diff --git a/aegis/src/model/DescribeStrategyTargetResult.cc b/aegis/src/model/DescribeStrategyTargetResult.cc new file mode 100644 index 000000000..b39e51cdf --- /dev/null +++ b/aegis/src/model/DescribeStrategyTargetResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeStrategyTargetResult::DescribeStrategyTargetResult() : + ServiceResult() +{} + +DescribeStrategyTargetResult::DescribeStrategyTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStrategyTargetResult::~DescribeStrategyTargetResult() +{} + +void DescribeStrategyTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allStrategyTargets = value["StrategyTargets"]["StringItem"]; + for (auto value : allStrategyTargets) + { + StringItem strategyTargetsObject; + if(!value["Flag"].isNull()) + strategyTargetsObject.flag = value["Flag"].asString(); + if(!value["Target"].isNull()) + strategyTargetsObject.target = value["Target"].asString(); + if(!value["TargetType"].isNull()) + strategyTargetsObject.targetType = value["TargetType"].asString(); + strategyTargets_.push_back(strategyTargetsObject); + } + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +std::vector DescribeStrategyTargetResult::getStrategyTargets()const +{ + return strategyTargets_; +} + +int DescribeStrategyTargetResult::getCount()const +{ + return count_; +} + diff --git a/aegis/src/model/DescribeStratetyDetailRequest.cc b/aegis/src/model/DescribeStratetyDetailRequest.cc new file mode 100644 index 000000000..fe4dc09f6 --- /dev/null +++ b/aegis/src/model/DescribeStratetyDetailRequest.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::Aegis::Model::DescribeStratetyDetailRequest; + +DescribeStratetyDetailRequest::DescribeStratetyDetailRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeStratetyDetail") +{} + +DescribeStratetyDetailRequest::~DescribeStratetyDetailRequest() +{} + +long DescribeStratetyDetailRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeStratetyDetailRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeStratetyDetailRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeStratetyDetailRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeStratetyDetailRequest::getId()const +{ + return id_; +} + +void DescribeStratetyDetailRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/aegis/src/model/DescribeStratetyDetailResult.cc b/aegis/src/model/DescribeStratetyDetailResult.cc new file mode 100644 index 000000000..a8eb1d0f5 --- /dev/null +++ b/aegis/src/model/DescribeStratetyDetailResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeStratetyDetailResult::DescribeStratetyDetailResult() : + ServiceResult() +{} + +DescribeStratetyDetailResult::DescribeStratetyDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStratetyDetailResult::~DescribeStratetyDetailResult() +{} + +void DescribeStratetyDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allStrategy = value["Strategy"]; + for (auto value : allStrategy) + { + Strategy strategyObject; + if(!value["CycleDays"].isNull()) + strategyObject.cycleDays = std::stoi(value["CycleDays"].asString()); + if(!value["Name"].isNull()) + strategyObject.name = value["Name"].asString(); + if(!value["Id"].isNull()) + strategyObject.id = std::stoi(value["Id"].asString()); + if(!value["CycleStartTime"].isNull()) + strategyObject.cycleStartTime = std::stoi(value["CycleStartTime"].asString()); + if(!value["Type"].isNull()) + strategyObject.type = std::stoi(value["Type"].asString()); + auto allRiskTypeWhiteListQueryResultList = value["RiskTypeWhiteListQueryResultList"]["RiskTypeWhiteListQueryResult"]; + for (auto value : allRiskTypeWhiteListQueryResultList) + { + Strategy::RiskTypeWhiteListQueryResult riskTypeWhiteListQueryResultObject; + if(!value["TypeName"].isNull()) + riskTypeWhiteListQueryResultObject.typeName = value["TypeName"].asString(); + if(!value["Alias"].isNull()) + riskTypeWhiteListQueryResultObject.alias = value["Alias"].asString(); + if(!value["On"].isNull()) + riskTypeWhiteListQueryResultObject.on = value["On"].asString() == "true"; + auto allSubTypes = value["SubTypes"]["SubTyp"]; + for (auto value : allSubTypes) + { + Strategy::RiskTypeWhiteListQueryResult::SubTyp subTypesObject; + if(!value["TypeName"].isNull()) + subTypesObject.typeName = value["TypeName"].asString(); + if(!value["Alias"].isNull()) + subTypesObject.alias = value["Alias"].asString(); + if(!value["On"].isNull()) + subTypesObject.on = value["On"].asString() == "true"; + riskTypeWhiteListQueryResultObject.subTypes.push_back(subTypesObject); + } + strategyObject.riskTypeWhiteListQueryResultList.push_back(riskTypeWhiteListQueryResultObject); + } + strategy_.push_back(strategyObject); + } + +} + +std::vector DescribeStratetyDetailResult::getStrategy()const +{ + return strategy_; +} + diff --git a/aegis/src/model/DescribeStratetyRequest.cc b/aegis/src/model/DescribeStratetyRequest.cc new file mode 100644 index 000000000..43c276d0a --- /dev/null +++ b/aegis/src/model/DescribeStratetyRequest.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::Aegis::Model::DescribeStratetyRequest; + +DescribeStratetyRequest::DescribeStratetyRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeStratety") +{} + +DescribeStratetyRequest::~DescribeStratetyRequest() +{} + +long DescribeStratetyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeStratetyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeStratetyRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeStratetyRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeStratetyResult.cc b/aegis/src/model/DescribeStratetyResult.cc new file mode 100644 index 000000000..182e23bd5 --- /dev/null +++ b/aegis/src/model/DescribeStratetyResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeStratetyResult::DescribeStratetyResult() : + ServiceResult() +{} + +DescribeStratetyResult::DescribeStratetyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeStratetyResult::~DescribeStratetyResult() +{} + +void DescribeStratetyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allStrategies = value["Strategies"]["Data"]; + for (auto value : allStrategies) + { + Data strategiesObject; + if(!value["CycleDays"].isNull()) + strategiesObject.cycleDays = std::stoi(value["CycleDays"].asString()); + if(!value["Id"].isNull()) + strategiesObject.id = std::stoi(value["Id"].asString()); + if(!value["CycleStartTime"].isNull()) + strategiesObject.cycleStartTime = std::stoi(value["CycleStartTime"].asString()); + if(!value["Type"].isNull()) + strategiesObject.type = std::stoi(value["Type"].asString()); + if(!value["Name"].isNull()) + strategiesObject.name = value["Name"].asString(); + if(!value["RiskCount"].isNull()) + strategiesObject.riskCount = std::stoi(value["RiskCount"].asString()); + if(!value["EcsCount"].isNull()) + strategiesObject.ecsCount = std::stoi(value["EcsCount"].asString()); + auto allConfigTargets = value["ConfigTargets"]["ConfigTarget"]; + for (auto value : allConfigTargets) + { + Data::ConfigTarget configTargetsObject; + if(!value["Flag"].isNull()) + configTargetsObject.flag = value["Flag"].asString(); + if(!value["TargetType"].isNull()) + configTargetsObject.targetType = value["TargetType"].asString(); + if(!value["Target"].isNull()) + configTargetsObject.target = value["Target"].asString(); + strategiesObject.configTargets.push_back(configTargetsObject); + } + strategies_.push_back(strategiesObject); + } + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +std::vector DescribeStratetyResult::getStrategies()const +{ + return strategies_; +} + +int DescribeStratetyResult::getCount()const +{ + return count_; +} + diff --git a/aegis/src/model/DescribeSuspiciousEventsRequest.cc b/aegis/src/model/DescribeSuspiciousEventsRequest.cc new file mode 100644 index 000000000..26ab569c5 --- /dev/null +++ b/aegis/src/model/DescribeSuspiciousEventsRequest.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::Aegis::Model::DescribeSuspiciousEventsRequest; + +DescribeSuspiciousEventsRequest::DescribeSuspiciousEventsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeSuspiciousEvents") +{} + +DescribeSuspiciousEventsRequest::~DescribeSuspiciousEventsRequest() +{} + +long DescribeSuspiciousEventsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSuspiciousEventsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSuspiciousEventsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeSuspiciousEventsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + diff --git a/aegis/src/model/DescribeSuspiciousEventsResult.cc b/aegis/src/model/DescribeSuspiciousEventsResult.cc new file mode 100644 index 000000000..1db933a64 --- /dev/null +++ b/aegis/src/model/DescribeSuspiciousEventsResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeSuspiciousEventsResult::DescribeSuspiciousEventsResult() : + ServiceResult() +{} + +DescribeSuspiciousEventsResult::DescribeSuspiciousEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSuspiciousEventsResult::~DescribeSuspiciousEventsResult() +{} + +void DescribeSuspiciousEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSuspiciousEvents = value["SuspiciousEvents"]["StringItem"]; + for (const auto &item : allSuspiciousEvents) + suspiciousEvents_.push_back(item.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()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int DescribeSuspiciousEventsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSuspiciousEventsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeSuspiciousEventsResult::getSuspiciousEvents()const +{ + return suspiciousEvents_; +} + +int DescribeSuspiciousEventsResult::getCurrentPage()const +{ + return currentPage_; +} + +int DescribeSuspiciousEventsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + diff --git a/aegis/src/model/DescribeVulDetailsRequest.cc b/aegis/src/model/DescribeVulDetailsRequest.cc new file mode 100644 index 000000000..ec8a1646b --- /dev/null +++ b/aegis/src/model/DescribeVulDetailsRequest.cc @@ -0,0 +1,258 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis::Model::DescribeVulDetailsRequest; + +DescribeVulDetailsRequest::DescribeVulDetailsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeVulDetails") +{} + +DescribeVulDetailsRequest::~DescribeVulDetailsRequest() +{} + +long DescribeVulDetailsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVulDetailsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVulDetailsRequest::getProduct()const +{ + return product_; +} + +void DescribeVulDetailsRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string DescribeVulDetailsRequest::getStatusList()const +{ + return statusList_; +} + +void DescribeVulDetailsRequest::setStatusList(const std::string& statusList) +{ + statusList_ = statusList; + setParameter("StatusList", statusList); +} + +std::string DescribeVulDetailsRequest::getLevel()const +{ + return level_; +} + +void DescribeVulDetailsRequest::setLevel(const std::string& level) +{ + level_ = level; + setParameter("Level", level); +} + +std::string DescribeVulDetailsRequest::getResource()const +{ + return resource_; +} + +void DescribeVulDetailsRequest::setResource(const std::string& resource) +{ + resource_ = resource; + setParameter("Resource", resource); +} + +std::string DescribeVulDetailsRequest::getOrderBy()const +{ + return orderBy_; +} + +void DescribeVulDetailsRequest::setOrderBy(const std::string& orderBy) +{ + orderBy_ = orderBy; + setParameter("OrderBy", orderBy); +} + +std::string DescribeVulDetailsRequest::getDealed()const +{ + return dealed_; +} + +void DescribeVulDetailsRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setParameter("Dealed", dealed); +} + +int DescribeVulDetailsRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeVulDetailsRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeVulDetailsRequest::getType()const +{ + return type_; +} + +void DescribeVulDetailsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +long DescribeVulDetailsRequest::getLastTsEnd()const +{ + return lastTsEnd_; +} + +void DescribeVulDetailsRequest::setLastTsEnd(long lastTsEnd) +{ + lastTsEnd_ = lastTsEnd; + setParameter("LastTsEnd", std::to_string(lastTsEnd)); +} + +std::string DescribeVulDetailsRequest::getBatchName()const +{ + return batchName_; +} + +void DescribeVulDetailsRequest::setBatchName(const std::string& batchName) +{ + batchName_ = batchName; + setParameter("BatchName", batchName); +} + +long DescribeVulDetailsRequest::getPatchId()const +{ + return patchId_; +} + +void DescribeVulDetailsRequest::setPatchId(long patchId) +{ + patchId_ = patchId; + setParameter("PatchId", std::to_string(patchId)); +} + +std::string DescribeVulDetailsRequest::getAliasName()const +{ + return aliasName_; +} + +void DescribeVulDetailsRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setParameter("AliasName", aliasName); +} + +std::string DescribeVulDetailsRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeVulDetailsRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeVulDetailsRequest::getName()const +{ + return name_; +} + +void DescribeVulDetailsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeVulDetailsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVulDetailsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVulDetailsRequest::getLang()const +{ + return lang_; +} + +void DescribeVulDetailsRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +long DescribeVulDetailsRequest::getLastTsStart()const +{ + return lastTsStart_; +} + +void DescribeVulDetailsRequest::setLastTsStart(long lastTsStart) +{ + lastTsStart_ = lastTsStart; + setParameter("LastTsStart", std::to_string(lastTsStart)); +} + +std::string DescribeVulDetailsRequest::getNecessity()const +{ + return necessity_; +} + +void DescribeVulDetailsRequest::setNecessity(const std::string& necessity) +{ + necessity_ = necessity; + setParameter("Necessity", necessity); +} + +std::string DescribeVulDetailsRequest::getUuids()const +{ + return uuids_; +} + +void DescribeVulDetailsRequest::setUuids(const std::string& uuids) +{ + uuids_ = uuids; + setParameter("Uuids", uuids); +} + +std::string DescribeVulDetailsRequest::getDirection()const +{ + return direction_; +} + +void DescribeVulDetailsRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setParameter("Direction", direction); +} + diff --git a/aegis/src/model/DescribeVulDetailsResult.cc b/aegis/src/model/DescribeVulDetailsResult.cc new file mode 100644 index 000000000..ffaa94eb2 --- /dev/null +++ b/aegis/src/model/DescribeVulDetailsResult.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis; +using namespace AlibabaCloud::Aegis::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 allCveLists = value["CveLists"]["cve"]; + for (const auto &item : allCveLists) + cveLists_.push_back(item.asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["AliasName"].isNull()) + aliasName_ = value["AliasName"].asString(); + if(!value["Level"].isNull()) + level_ = value["Level"].asString(); + if(!value["VulPublishTs"].isNull()) + vulPublishTs_ = std::stol(value["VulPublishTs"].asString()); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["Product"].isNull()) + product_ = value["Product"].asString(); + if(!value["HasPatch"].isNull()) + hasPatch_ = value["HasPatch"].asString() == "true"; + if(!value["PatchPublishTs"].isNull()) + patchPublishTs_ = std::stol(value["PatchPublishTs"].asString()); + if(!value["PatchSource"].isNull()) + patchSource_ = value["PatchSource"].asString(); + if(!value["Cvss"].isNull()) + cvss_ = value["Cvss"].asString(); + if(!value["CveIds"].isNull()) + cveIds_ = value["CveIds"].asString(); + if(!value["Advice"].isNull()) + advice_ = value["Advice"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["PendingCount"].isNull()) + pendingCount_ = std::stoi(value["PendingCount"].asString()); + if(!value["HandledCount"].isNull()) + handledCount_ = std::stoi(value["HandledCount"].asString()); + +} + +int DescribeVulDetailsResult::getPendingCount()const +{ + return pendingCount_; +} + +std::string DescribeVulDetailsResult::getDescription()const +{ + return description_; +} + +std::vector DescribeVulDetailsResult::getCveLists()const +{ + return cveLists_; +} + +std::string DescribeVulDetailsResult::getCveIds()const +{ + return cveIds_; +} + +long DescribeVulDetailsResult::getVulPublishTs()const +{ + return vulPublishTs_; +} + +std::string DescribeVulDetailsResult::getProduct()const +{ + return product_; +} + +bool DescribeVulDetailsResult::getHasPatch()const +{ + return hasPatch_; +} + +std::string DescribeVulDetailsResult::getName()const +{ + return name_; +} + +std::string DescribeVulDetailsResult::getType()const +{ + return type_; +} + +std::string DescribeVulDetailsResult::getCvss()const +{ + return cvss_; +} + +long DescribeVulDetailsResult::getPatchPublishTs()const +{ + return patchPublishTs_; +} + +int DescribeVulDetailsResult::getHandledCount()const +{ + return handledCount_; +} + +std::string DescribeVulDetailsResult::getAliasName()const +{ + return aliasName_; +} + +std::string DescribeVulDetailsResult::getLevel()const +{ + return level_; +} + +std::string DescribeVulDetailsResult::getAdvice()const +{ + return advice_; +} + +std::string DescribeVulDetailsResult::getPatchSource()const +{ + return patchSource_; +} + diff --git a/aegis/src/model/DescribeVulListRequest.cc b/aegis/src/model/DescribeVulListRequest.cc new file mode 100644 index 000000000..b1a5ecc92 --- /dev/null +++ b/aegis/src/model/DescribeVulListRequest.cc @@ -0,0 +1,258 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis::Model::DescribeVulListRequest; + +DescribeVulListRequest::DescribeVulListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeVulList") +{} + +DescribeVulListRequest::~DescribeVulListRequest() +{} + +long DescribeVulListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVulListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVulListRequest::getProduct()const +{ + return product_; +} + +void DescribeVulListRequest::setProduct(const std::string& product) +{ + product_ = product; + setParameter("Product", product); +} + +std::string DescribeVulListRequest::getStatusList()const +{ + return statusList_; +} + +void DescribeVulListRequest::setStatusList(const std::string& statusList) +{ + statusList_ = statusList; + setParameter("StatusList", statusList); +} + +std::string DescribeVulListRequest::getLevel()const +{ + return level_; +} + +void DescribeVulListRequest::setLevel(const std::string& level) +{ + level_ = level; + setParameter("Level", level); +} + +std::string DescribeVulListRequest::getResource()const +{ + return resource_; +} + +void DescribeVulListRequest::setResource(const std::string& resource) +{ + resource_ = resource; + setParameter("Resource", resource); +} + +std::string DescribeVulListRequest::getOrderBy()const +{ + return orderBy_; +} + +void DescribeVulListRequest::setOrderBy(const std::string& orderBy) +{ + orderBy_ = orderBy; + setParameter("OrderBy", orderBy); +} + +std::string DescribeVulListRequest::getDealed()const +{ + return dealed_; +} + +void DescribeVulListRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setParameter("Dealed", dealed); +} + +int DescribeVulListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeVulListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeVulListRequest::getType()const +{ + return type_; +} + +void DescribeVulListRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +long DescribeVulListRequest::getLastTsEnd()const +{ + return lastTsEnd_; +} + +void DescribeVulListRequest::setLastTsEnd(long lastTsEnd) +{ + lastTsEnd_ = lastTsEnd; + setParameter("LastTsEnd", std::to_string(lastTsEnd)); +} + +std::string DescribeVulListRequest::getBatchName()const +{ + return batchName_; +} + +void DescribeVulListRequest::setBatchName(const std::string& batchName) +{ + batchName_ = batchName; + setParameter("BatchName", batchName); +} + +long DescribeVulListRequest::getPatchId()const +{ + return patchId_; +} + +void DescribeVulListRequest::setPatchId(long patchId) +{ + patchId_ = patchId; + setParameter("PatchId", std::to_string(patchId)); +} + +std::string DescribeVulListRequest::getAliasName()const +{ + return aliasName_; +} + +void DescribeVulListRequest::setAliasName(const std::string& aliasName) +{ + aliasName_ = aliasName; + setParameter("AliasName", aliasName); +} + +std::string DescribeVulListRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeVulListRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeVulListRequest::getName()const +{ + return name_; +} + +void DescribeVulListRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int DescribeVulListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVulListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVulListRequest::getLang()const +{ + return lang_; +} + +void DescribeVulListRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + +long DescribeVulListRequest::getLastTsStart()const +{ + return lastTsStart_; +} + +void DescribeVulListRequest::setLastTsStart(long lastTsStart) +{ + lastTsStart_ = lastTsStart; + setParameter("LastTsStart", std::to_string(lastTsStart)); +} + +std::string DescribeVulListRequest::getNecessity()const +{ + return necessity_; +} + +void DescribeVulListRequest::setNecessity(const std::string& necessity) +{ + necessity_ = necessity; + setParameter("Necessity", necessity); +} + +std::string DescribeVulListRequest::getUuids()const +{ + return uuids_; +} + +void DescribeVulListRequest::setUuids(const std::string& uuids) +{ + uuids_ = uuids; + setParameter("Uuids", uuids); +} + +std::string DescribeVulListRequest::getDirection()const +{ + return direction_; +} + +void DescribeVulListRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setParameter("Direction", direction); +} + diff --git a/aegis/src/model/DescribeVulListResult.cc b/aegis/src/model/DescribeVulListResult.cc new file mode 100644 index 000000000..407c3f8bf --- /dev/null +++ b/aegis/src/model/DescribeVulListResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::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 (const auto &item : allVulRecords) + vulRecords_.push_back(item.asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + 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_; +} + +int DescribeVulListResult::getCount()const +{ + return count_; +} + diff --git a/aegis/src/model/DescribeWarningRequest.cc b/aegis/src/model/DescribeWarningRequest.cc new file mode 100644 index 000000000..1cec802d6 --- /dev/null +++ b/aegis/src/model/DescribeWarningRequest.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::Aegis::Model::DescribeWarningRequest; + +DescribeWarningRequest::DescribeWarningRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeWarning") +{} + +DescribeWarningRequest::~DescribeWarningRequest() +{} + +std::string DescribeWarningRequest::getTypeNames()const +{ + return typeNames_; +} + +void DescribeWarningRequest::setTypeNames(const std::string& typeNames) +{ + typeNames_ = typeNames; + setParameter("TypeNames", typeNames); +} + +long DescribeWarningRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeWarningRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeWarningRequest::getRiskName()const +{ + return riskName_; +} + +void DescribeWarningRequest::setRiskName(const std::string& riskName) +{ + riskName_ = riskName; + setParameter("RiskName", riskName); +} + +std::string DescribeWarningRequest::getStatusList()const +{ + return statusList_; +} + +void DescribeWarningRequest::setStatusList(const std::string& statusList) +{ + statusList_ = statusList; + setParameter("StatusList", statusList); +} + +std::string DescribeWarningRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeWarningRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string DescribeWarningRequest::getRiskLevels()const +{ + return riskLevels_; +} + +void DescribeWarningRequest::setRiskLevels(const std::string& riskLevels) +{ + riskLevels_ = riskLevels; + setParameter("RiskLevels", riskLevels); +} + +int DescribeWarningRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeWarningRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeWarningRequest::getCurrentPage()const +{ + return currentPage_; +} + +void DescribeWarningRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string DescribeWarningRequest::getDealed()const +{ + return dealed_; +} + +void DescribeWarningRequest::setDealed(const std::string& dealed) +{ + dealed_ = dealed; + setParameter("Dealed", dealed); +} + +std::string DescribeWarningRequest::getSubTypeNames()const +{ + return subTypeNames_; +} + +void DescribeWarningRequest::setSubTypeNames(const std::string& subTypeNames) +{ + subTypeNames_ = subTypeNames; + setParameter("SubTypeNames", subTypeNames); +} + +std::string DescribeWarningRequest::getUuids()const +{ + return uuids_; +} + +void DescribeWarningRequest::setUuids(const std::string& uuids) +{ + uuids_ = uuids; + setParameter("Uuids", uuids); +} + diff --git a/aegis/src/model/DescribeWarningResult.cc b/aegis/src/model/DescribeWarningResult.cc new file mode 100644 index 000000000..ea3d998d5 --- /dev/null +++ b/aegis/src/model/DescribeWarningResult.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeWarningResult::DescribeWarningResult() : + ServiceResult() +{} + +DescribeWarningResult::DescribeWarningResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWarningResult::~DescribeWarningResult() +{} + +void DescribeWarningResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allWarnings = value["Warnings"]["warning"]; + for (const auto &item : allWarnings) + warnings_.push_back(item.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 DescribeWarningResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeWarningResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeWarningResult::getCurrentPage()const +{ + return currentPage_; +} + +int DescribeWarningResult::getCount()const +{ + return count_; +} + +std::vector DescribeWarningResult::getWarnings()const +{ + return warnings_; +} + diff --git a/aegis/src/model/DescribeWebshellRequest.cc b/aegis/src/model/DescribeWebshellRequest.cc new file mode 100644 index 000000000..380892e2c --- /dev/null +++ b/aegis/src/model/DescribeWebshellRequest.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::Aegis::Model::DescribeWebshellRequest; + +DescribeWebshellRequest::DescribeWebshellRequest() : + RpcServiceRequest("aegis", "2016-11-11", "DescribeWebshell") +{} + +DescribeWebshellRequest::~DescribeWebshellRequest() +{} + +long DescribeWebshellRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeWebshellRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeWebshellRequest::getSourceIp()const +{ + return sourceIp_; +} + +void DescribeWebshellRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +int DescribeWebshellRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeWebshellRequest::setGroupId(int groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +std::string DescribeWebshellRequest::getRemark()const +{ + return remark_; +} + +void DescribeWebshellRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + diff --git a/aegis/src/model/DescribeWebshellResult.cc b/aegis/src/model/DescribeWebshellResult.cc new file mode 100644 index 000000000..a39445b5e --- /dev/null +++ b/aegis/src/model/DescribeWebshellResult.cc @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +DescribeWebshellResult::DescribeWebshellResult() : + ServiceResult() +{} + +DescribeWebshellResult::DescribeWebshellResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeWebshellResult::~DescribeWebshellResult() +{} + +void DescribeWebshellResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + +} + +int DescribeWebshellResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeWebshellResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeWebshellResult::getCurrentPage()const +{ + return currentPage_; +} + diff --git a/aegis/src/model/GetAccountStatisticsRequest.cc b/aegis/src/model/GetAccountStatisticsRequest.cc new file mode 100644 index 000000000..fe1dce974 --- /dev/null +++ b/aegis/src/model/GetAccountStatisticsRequest.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::Aegis::Model::GetAccountStatisticsRequest; + +GetAccountStatisticsRequest::GetAccountStatisticsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "GetAccountStatistics") +{} + +GetAccountStatisticsRequest::~GetAccountStatisticsRequest() +{} + +std::string GetAccountStatisticsRequest::getEndTime()const +{ + return endTime_; +} + +void GetAccountStatisticsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string GetAccountStatisticsRequest::getStartTime()const +{ + return startTime_; +} + +void GetAccountStatisticsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + diff --git a/aegis/src/model/GetAccountStatisticsResult.cc b/aegis/src/model/GetAccountStatisticsResult.cc new file mode 100644 index 000000000..472e4aea4 --- /dev/null +++ b/aegis/src/model/GetAccountStatisticsResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +GetAccountStatisticsResult::GetAccountStatisticsResult() : + ServiceResult() +{} + +GetAccountStatisticsResult::GetAccountStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAccountStatisticsResult::~GetAccountStatisticsResult() +{} + +void GetAccountStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]; + for (auto value : allData) + { + Data dataObject; + if(!value["RemoteLogin"].isNull()) + dataObject.remoteLogin = std::stoi(value["RemoteLogin"].asString()); + if(!value["CrackSuccess"].isNull()) + dataObject.crackSuccess = std::stoi(value["CrackSuccess"].asString()); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetAccountStatisticsResult::getRequestId()const +{ + return requestId_; +} + +std::string GetAccountStatisticsResult::getMessage()const +{ + return message_; +} + +std::vector GetAccountStatisticsResult::getData()const +{ + return data_; +} + +std::string GetAccountStatisticsResult::getCode()const +{ + return code_; +} + +bool GetAccountStatisticsResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/GetCrackStatisticsRequest.cc b/aegis/src/model/GetCrackStatisticsRequest.cc new file mode 100644 index 000000000..8500f02dd --- /dev/null +++ b/aegis/src/model/GetCrackStatisticsRequest.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::Aegis::Model::GetCrackStatisticsRequest; + +GetCrackStatisticsRequest::GetCrackStatisticsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "GetCrackStatistics") +{} + +GetCrackStatisticsRequest::~GetCrackStatisticsRequest() +{} + +std::string GetCrackStatisticsRequest::getEndTime()const +{ + return endTime_; +} + +void GetCrackStatisticsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string GetCrackStatisticsRequest::getStartTime()const +{ + return startTime_; +} + +void GetCrackStatisticsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + diff --git a/aegis/src/model/GetCrackStatisticsResult.cc b/aegis/src/model/GetCrackStatisticsResult.cc new file mode 100644 index 000000000..c1334564a --- /dev/null +++ b/aegis/src/model/GetCrackStatisticsResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +GetCrackStatisticsResult::GetCrackStatisticsResult() : + ServiceResult() +{} + +GetCrackStatisticsResult::GetCrackStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCrackStatisticsResult::~GetCrackStatisticsResult() +{} + +void GetCrackStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]; + for (auto value : allData) + { + Data dataObject; + if(!value["Intercepted"].isNull()) + dataObject.intercepted = std::stoi(value["Intercepted"].asString()); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetCrackStatisticsResult::getRequestId()const +{ + return requestId_; +} + +std::string GetCrackStatisticsResult::getMessage()const +{ + return message_; +} + +std::vector GetCrackStatisticsResult::getData()const +{ + return data_; +} + +std::string GetCrackStatisticsResult::getCode()const +{ + return code_; +} + +bool GetCrackStatisticsResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/GetEntityListRequest.cc b/aegis/src/model/GetEntityListRequest.cc new file mode 100644 index 000000000..dd10233c0 --- /dev/null +++ b/aegis/src/model/GetEntityListRequest.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::Aegis::Model::GetEntityListRequest; + +GetEntityListRequest::GetEntityListRequest() : + RpcServiceRequest("aegis", "2016-11-11", "GetEntityList") +{} + +GetEntityListRequest::~GetEntityListRequest() +{} + +long GetEntityListRequest::getGroupId()const +{ + return groupId_; +} + +void GetEntityListRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int GetEntityListRequest::getPageSize()const +{ + return pageSize_; +} + +void GetEntityListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string GetEntityListRequest::getRemark()const +{ + return remark_; +} + +void GetEntityListRequest::setRemark(const std::string& remark) +{ + remark_ = remark; + setParameter("Remark", remark); +} + +std::string GetEntityListRequest::getEventType()const +{ + return eventType_; +} + +void GetEntityListRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + +int GetEntityListRequest::getCurrentPage()const +{ + return currentPage_; +} + +void GetEntityListRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string GetEntityListRequest::getRegionNo()const +{ + return regionNo_; +} + +void GetEntityListRequest::setRegionNo(const std::string& regionNo) +{ + regionNo_ = regionNo; + setParameter("RegionNo", regionNo); +} + diff --git a/aegis/src/model/GetEntityListResult.cc b/aegis/src/model/GetEntityListResult.cc new file mode 100644 index 000000000..cba5bcfbc --- /dev/null +++ b/aegis/src/model/GetEntityListResult.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 +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +GetEntityListResult::GetEntityListResult() : + ServiceResult() +{} + +GetEntityListResult::GetEntityListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEntityListResult::~GetEntityListResult() +{} + +void GetEntityListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]; + for (auto value : allData) + { + Data dataObject; + auto allList = value["List"]["Entity"]; + for (auto value : allList) + { + Data::Entity entityObject; + if(!value["Uuid"].isNull()) + entityObject.uuid = value["Uuid"].asString(); + if(!value["GroupId"].isNull()) + entityObject.groupId = std::stol(value["GroupId"].asString()); + if(!value["Ip"].isNull()) + entityObject.ip = value["Ip"].asString(); + if(!value["InstanceName"].isNull()) + entityObject.instanceName = value["InstanceName"].asString(); + if(!value["InstanceId"].isNull()) + entityObject.instanceId = value["InstanceId"].asString(); + if(!value["Region"].isNull()) + entityObject.region = value["Region"].asString(); + if(!value["Os"].isNull()) + entityObject.os = value["Os"].asString(); + if(!value["Flag"].isNull()) + entityObject.flag = value["Flag"].asString(); + if(!value["BuyVersion"].isNull()) + entityObject.buyVersion = value["BuyVersion"].asString(); + if(!value["AegisOnline"].isNull()) + entityObject.aegisOnline = value["AegisOnline"].asString() == "true"; + if(!value["aegisVersion"].isNull()) + entityObject.aegisVersion = value["aegisVersion"].asString(); + dataObject.list.push_back(entityObject); + } + auto allPageInfo = value["PageInfo"]; + for (auto value : allPageInfo) + { + Data::PageInfo pageInfoObject; + if(!value["CurrentPage"].isNull()) + pageInfoObject.currentPage = std::stoi(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageInfoObject.pageSize = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + pageInfoObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + pageInfoObject.count = std::stoi(value["Count"].asString()); + dataObject.pageInfo.push_back(pageInfoObject); + } + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetEntityListResult::getRequestId()const +{ + return requestId_; +} + +std::string GetEntityListResult::getMessage()const +{ + return message_; +} + +std::vector GetEntityListResult::getData()const +{ + return data_; +} + +std::string GetEntityListResult::getCode()const +{ + return code_; +} + +bool GetEntityListResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/GetStatisticsByUuidRequest.cc b/aegis/src/model/GetStatisticsByUuidRequest.cc new file mode 100644 index 000000000..8fb034536 --- /dev/null +++ b/aegis/src/model/GetStatisticsByUuidRequest.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::Aegis::Model::GetStatisticsByUuidRequest; + +GetStatisticsByUuidRequest::GetStatisticsByUuidRequest() : + RpcServiceRequest("aegis", "2016-11-11", "GetStatisticsByUuid") +{} + +GetStatisticsByUuidRequest::~GetStatisticsByUuidRequest() +{} + +std::string GetStatisticsByUuidRequest::getUuid()const +{ + return uuid_; +} + +void GetStatisticsByUuidRequest::setUuid(const std::string& uuid) +{ + uuid_ = uuid; + setParameter("Uuid", uuid); +} + diff --git a/aegis/src/model/GetStatisticsByUuidResult.cc b/aegis/src/model/GetStatisticsByUuidResult.cc new file mode 100644 index 000000000..f79b32da9 --- /dev/null +++ b/aegis/src/model/GetStatisticsByUuidResult.cc @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +GetStatisticsByUuidResult::GetStatisticsByUuidResult() : + ServiceResult() +{} + +GetStatisticsByUuidResult::GetStatisticsByUuidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStatisticsByUuidResult::~GetStatisticsByUuidResult() +{} + +void GetStatisticsByUuidResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Entity"]; + for (auto value : allData) + { + Entity dataObject; + if(!value["Uuid"].isNull()) + dataObject.uuid = value["Uuid"].asString(); + if(!value["Account"].isNull()) + dataObject.account = std::stoi(value["Account"].asString()); + if(!value["Health"].isNull()) + dataObject.health = std::stoi(value["Health"].asString()); + if(!value["Patch"].isNull()) + dataObject.patch = std::stoi(value["Patch"].asString()); + if(!value["Trojan"].isNull()) + dataObject.trojan = std::stoi(value["Trojan"].asString()); + if(!value["Online"].isNull()) + dataObject.online = value["Online"].asString() == "true"; + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetStatisticsByUuidResult::getRequestId()const +{ + return requestId_; +} + +std::string GetStatisticsByUuidResult::getMessage()const +{ + return message_; +} + +std::vector GetStatisticsByUuidResult::getData()const +{ + return data_; +} + +std::string GetStatisticsByUuidResult::getCode()const +{ + return code_; +} + +bool GetStatisticsByUuidResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/GetStatisticsRequest.cc b/aegis/src/model/GetStatisticsRequest.cc new file mode 100644 index 000000000..32d349052 --- /dev/null +++ b/aegis/src/model/GetStatisticsRequest.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::Aegis::Model::GetStatisticsRequest; + +GetStatisticsRequest::GetStatisticsRequest() : + RpcServiceRequest("aegis", "2016-11-11", "GetStatistics") +{} + +GetStatisticsRequest::~GetStatisticsRequest() +{} + +std::string GetStatisticsRequest::getEndTime()const +{ + return endTime_; +} + +void GetStatisticsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string GetStatisticsRequest::getStartTime()const +{ + return startTime_; +} + +void GetStatisticsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + diff --git a/aegis/src/model/GetStatisticsResult.cc b/aegis/src/model/GetStatisticsResult.cc new file mode 100644 index 000000000..e5f554b7e --- /dev/null +++ b/aegis/src/model/GetStatisticsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +GetStatisticsResult::GetStatisticsResult() : + ServiceResult() +{} + +GetStatisticsResult::GetStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStatisticsResult::~GetStatisticsResult() +{} + +void GetStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]; + for (auto value : allData) + { + Data dataObject; + if(!value["Account"].isNull()) + dataObject.account = std::stoi(value["Account"].asString()); + if(!value["Health"].isNull()) + dataObject.health = std::stoi(value["Health"].asString()); + if(!value["Patch"].isNull()) + dataObject.patch = std::stoi(value["Patch"].asString()); + if(!value["Trojan"].isNull()) + dataObject.trojan = std::stoi(value["Trojan"].asString()); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string GetStatisticsResult::getRequestId()const +{ + return requestId_; +} + +std::string GetStatisticsResult::getMessage()const +{ + return message_; +} + +std::vector GetStatisticsResult::getData()const +{ + return data_; +} + +std::string GetStatisticsResult::getCode()const +{ + return code_; +} + +bool GetStatisticsResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/ModifyBatchIgnoreVulRequest.cc b/aegis/src/model/ModifyBatchIgnoreVulRequest.cc new file mode 100644 index 000000000..d8c474d3a --- /dev/null +++ b/aegis/src/model/ModifyBatchIgnoreVulRequest.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::Aegis::Model::ModifyBatchIgnoreVulRequest; + +ModifyBatchIgnoreVulRequest::ModifyBatchIgnoreVulRequest() : + RpcServiceRequest("aegis", "2016-11-11", "ModifyBatchIgnoreVul") +{} + +ModifyBatchIgnoreVulRequest::~ModifyBatchIgnoreVulRequest() +{} + +std::string ModifyBatchIgnoreVulRequest::getReason()const +{ + return reason_; +} + +void ModifyBatchIgnoreVulRequest::setReason(const std::string& reason) +{ + reason_ = reason; + setParameter("Reason", reason); +} + +long ModifyBatchIgnoreVulRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBatchIgnoreVulRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyBatchIgnoreVulRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyBatchIgnoreVulRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string ModifyBatchIgnoreVulRequest::getInfo()const +{ + return info_; +} + +void ModifyBatchIgnoreVulRequest::setInfo(const std::string& info) +{ + info_ = info; + setParameter("Info", info); +} + diff --git a/aegis/src/model/ModifyBatchIgnoreVulResult.cc b/aegis/src/model/ModifyBatchIgnoreVulResult.cc new file mode 100644 index 000000000..62448906d --- /dev/null +++ b/aegis/src/model/ModifyBatchIgnoreVulResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +ModifyBatchIgnoreVulResult::ModifyBatchIgnoreVulResult() : + ServiceResult() +{} + +ModifyBatchIgnoreVulResult::ModifyBatchIgnoreVulResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBatchIgnoreVulResult::~ModifyBatchIgnoreVulResult() +{} + +void ModifyBatchIgnoreVulResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int ModifyBatchIgnoreVulResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool ModifyBatchIgnoreVulResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/ModifyStrategyRequest.cc b/aegis/src/model/ModifyStrategyRequest.cc new file mode 100644 index 000000000..c59613a97 --- /dev/null +++ b/aegis/src/model/ModifyStrategyRequest.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 + +using AlibabaCloud::Aegis::Model::ModifyStrategyRequest; + +ModifyStrategyRequest::ModifyStrategyRequest() : + RpcServiceRequest("aegis", "2016-11-11", "ModifyStrategy") +{} + +ModifyStrategyRequest::~ModifyStrategyRequest() +{} + +long ModifyStrategyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyStrategyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyStrategyRequest::getRiskSubTypeName()const +{ + return riskSubTypeName_; +} + +void ModifyStrategyRequest::setRiskSubTypeName(const std::string& riskSubTypeName) +{ + riskSubTypeName_ = riskSubTypeName; + setParameter("RiskSubTypeName", riskSubTypeName); +} + +std::string ModifyStrategyRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyStrategyRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string ModifyStrategyRequest::getCycleStartTime()const +{ + return cycleStartTime_; +} + +void ModifyStrategyRequest::setCycleStartTime(const std::string& cycleStartTime) +{ + cycleStartTime_ = cycleStartTime; + setParameter("CycleStartTime", cycleStartTime); +} + +std::string ModifyStrategyRequest::getName()const +{ + return name_; +} + +void ModifyStrategyRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyStrategyRequest::getCycleDays()const +{ + return cycleDays_; +} + +void ModifyStrategyRequest::setCycleDays(const std::string& cycleDays) +{ + cycleDays_ = cycleDays; + setParameter("CycleDays", cycleDays); +} + +std::string ModifyStrategyRequest::getId()const +{ + return id_; +} + +void ModifyStrategyRequest::setId(const std::string& id) +{ + id_ = id; + setParameter("Id", id); +} + diff --git a/aegis/src/model/ModifyStrategyResult.cc b/aegis/src/model/ModifyStrategyResult.cc new file mode 100644 index 000000000..48c537189 --- /dev/null +++ b/aegis/src/model/ModifyStrategyResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +ModifyStrategyResult::ModifyStrategyResult() : + ServiceResult() +{} + +ModifyStrategyResult::ModifyStrategyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyStrategyResult::~ModifyStrategyResult() +{} + +void ModifyStrategyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResult = value["Result"]; + for (auto value : allResult) + { + Result resultObject; + if(!value["StrategyId"].isNull()) + resultObject.strategyId = std::stoi(value["StrategyId"].asString()); + result_.push_back(resultObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int ModifyStrategyResult::getTotalCount()const +{ + return totalCount_; +} + +int ModifyStrategyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool ModifyStrategyResult::getSuccess()const +{ + return success_; +} + +std::vector ModifyStrategyResult::getResult()const +{ + return result_; +} + diff --git a/aegis/src/model/ModifyStrategyTargetRequest.cc b/aegis/src/model/ModifyStrategyTargetRequest.cc new file mode 100644 index 000000000..7147b78aa --- /dev/null +++ b/aegis/src/model/ModifyStrategyTargetRequest.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::Aegis::Model::ModifyStrategyTargetRequest; + +ModifyStrategyTargetRequest::ModifyStrategyTargetRequest() : + RpcServiceRequest("aegis", "2016-11-11", "ModifyStrategyTarget") +{} + +ModifyStrategyTargetRequest::~ModifyStrategyTargetRequest() +{} + +long ModifyStrategyTargetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyStrategyTargetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyStrategyTargetRequest::getSourceIp()const +{ + return sourceIp_; +} + +void ModifyStrategyTargetRequest::setSourceIp(const std::string& sourceIp) +{ + sourceIp_ = sourceIp; + setParameter("SourceIp", sourceIp); +} + +std::string ModifyStrategyTargetRequest::getType()const +{ + return type_; +} + +void ModifyStrategyTargetRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string ModifyStrategyTargetRequest::getConfig()const +{ + return config_; +} + +void ModifyStrategyTargetRequest::setConfig(const std::string& config) +{ + config_ = config; + setParameter("Config", config); +} + +std::string ModifyStrategyTargetRequest::getTarget()const +{ + return target_; +} + +void ModifyStrategyTargetRequest::setTarget(const std::string& target) +{ + target_ = target; + setParameter("Target", target); +} + diff --git a/aegis/src/model/ModifyStrategyTargetResult.cc b/aegis/src/model/ModifyStrategyTargetResult.cc new file mode 100644 index 000000000..be3307c91 --- /dev/null +++ b/aegis/src/model/ModifyStrategyTargetResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +ModifyStrategyTargetResult::ModifyStrategyTargetResult() : + ServiceResult() +{} + +ModifyStrategyTargetResult::ModifyStrategyTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyStrategyTargetResult::~ModifyStrategyTargetResult() +{} + +void ModifyStrategyTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/QueryCrackEventRequest.cc b/aegis/src/model/QueryCrackEventRequest.cc new file mode 100644 index 000000000..185df9b48 --- /dev/null +++ b/aegis/src/model/QueryCrackEventRequest.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::Aegis::Model::QueryCrackEventRequest; + +QueryCrackEventRequest::QueryCrackEventRequest() : + RpcServiceRequest("aegis", "2016-11-11", "QueryCrackEvent") +{} + +QueryCrackEventRequest::~QueryCrackEventRequest() +{} + +std::string QueryCrackEventRequest::getEndTime()const +{ + return endTime_; +} + +void QueryCrackEventRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +int QueryCrackEventRequest::getCurrentPage()const +{ + return currentPage_; +} + +void QueryCrackEventRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string QueryCrackEventRequest::getStartTime()const +{ + return startTime_; +} + +void QueryCrackEventRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryCrackEventRequest::getUuid()const +{ + return uuid_; +} + +void QueryCrackEventRequest::setUuid(const std::string& uuid) +{ + uuid_ = uuid; + setParameter("Uuid", uuid); +} + +int QueryCrackEventRequest::getStatus()const +{ + return status_; +} + +void QueryCrackEventRequest::setStatus(int status) +{ + status_ = status; + setParameter("Status", std::to_string(status)); +} + diff --git a/aegis/src/model/QueryCrackEventResult.cc b/aegis/src/model/QueryCrackEventResult.cc new file mode 100644 index 000000000..721c813cc --- /dev/null +++ b/aegis/src/model/QueryCrackEventResult.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +QueryCrackEventResult::QueryCrackEventResult() : + ServiceResult() +{} + +QueryCrackEventResult::QueryCrackEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryCrackEventResult::~QueryCrackEventResult() +{} + +void QueryCrackEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]; + for (auto value : allData) + { + Data dataObject; + auto allList = value["List"]["Entity"]; + for (auto value : allList) + { + Data::Entity entityObject; + if(!value["Uuid"].isNull()) + entityObject.uuid = value["Uuid"].asString(); + if(!value["AttackTime"].isNull()) + entityObject.attackTime = value["AttackTime"].asString(); + if(!value["AttackType"].isNull()) + entityObject.attackType = std::stoi(value["AttackType"].asString()); + if(!value["AttackTypeName"].isNull()) + entityObject.attackTypeName = value["AttackTypeName"].asString(); + if(!value["BuyVersion"].isNull()) + entityObject.buyVersion = value["BuyVersion"].asString(); + if(!value["CrackSourceIp"].isNull()) + entityObject.crackSourceIp = value["CrackSourceIp"].asString(); + if(!value["CrackTimes"].isNull()) + entityObject.crackTimes = std::stoi(value["CrackTimes"].asString()); + if(!value["GroupId"].isNull()) + entityObject.groupId = std::stoi(value["GroupId"].asString()); + if(!value["InstanceName"].isNull()) + entityObject.instanceName = value["InstanceName"].asString(); + if(!value["InstanceId"].isNull()) + entityObject.instanceId = value["InstanceId"].asString(); + if(!value["Ip"].isNull()) + entityObject.ip = value["Ip"].asString(); + if(!value["Region"].isNull()) + entityObject.region = value["Region"].asString(); + if(!value["Status"].isNull()) + entityObject.status = std::stoi(value["Status"].asString()); + if(!value["StatusName"].isNull()) + entityObject.statusName = value["StatusName"].asString(); + if(!value["Location"].isNull()) + entityObject.location = value["Location"].asString(); + if(!value["InWhite"].isNull()) + entityObject.inWhite = std::stoi(value["InWhite"].asString()); + if(!value["UserName"].isNull()) + entityObject.userName = value["UserName"].asString(); + dataObject.list.push_back(entityObject); + } + auto allPageInfo = value["PageInfo"]; + for (auto value : allPageInfo) + { + Data::PageInfo pageInfoObject; + if(!value["CurrentPage"].isNull()) + pageInfoObject.currentPage = std::stoi(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageInfoObject.pageSize = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + pageInfoObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + pageInfoObject.count = std::stoi(value["Count"].asString()); + dataObject.pageInfo.push_back(pageInfoObject); + } + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryCrackEventResult::getRequestId()const +{ + return requestId_; +} + +std::string QueryCrackEventResult::getMessage()const +{ + return message_; +} + +std::vector QueryCrackEventResult::getData()const +{ + return data_; +} + +std::string QueryCrackEventResult::getCode()const +{ + return code_; +} + +bool QueryCrackEventResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/QueryLoginEventRequest.cc b/aegis/src/model/QueryLoginEventRequest.cc new file mode 100644 index 000000000..388f79961 --- /dev/null +++ b/aegis/src/model/QueryLoginEventRequest.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::Aegis::Model::QueryLoginEventRequest; + +QueryLoginEventRequest::QueryLoginEventRequest() : + RpcServiceRequest("aegis", "2016-11-11", "QueryLoginEvent") +{} + +QueryLoginEventRequest::~QueryLoginEventRequest() +{} + +std::string QueryLoginEventRequest::getEndTime()const +{ + return endTime_; +} + +void QueryLoginEventRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +int QueryLoginEventRequest::getCurrentPage()const +{ + return currentPage_; +} + +void QueryLoginEventRequest::setCurrentPage(int currentPage) +{ + currentPage_ = currentPage; + setParameter("CurrentPage", std::to_string(currentPage)); +} + +std::string QueryLoginEventRequest::getStartTime()const +{ + return startTime_; +} + +void QueryLoginEventRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string QueryLoginEventRequest::getUuid()const +{ + return uuid_; +} + +void QueryLoginEventRequest::setUuid(const std::string& uuid) +{ + uuid_ = uuid; + setParameter("Uuid", uuid); +} + +int QueryLoginEventRequest::getStatus()const +{ + return status_; +} + +void QueryLoginEventRequest::setStatus(int status) +{ + status_ = status; + setParameter("Status", std::to_string(status)); +} + diff --git a/aegis/src/model/QueryLoginEventResult.cc b/aegis/src/model/QueryLoginEventResult.cc new file mode 100644 index 000000000..ad5b4a896 --- /dev/null +++ b/aegis/src/model/QueryLoginEventResult.cc @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +QueryLoginEventResult::QueryLoginEventResult() : + ServiceResult() +{} + +QueryLoginEventResult::QueryLoginEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryLoginEventResult::~QueryLoginEventResult() +{} + +void QueryLoginEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]; + for (auto value : allData) + { + Data dataObject; + auto allList = value["List"]["Entity"]; + for (auto value : allList) + { + Data::Entity entityObject; + if(!value["Uuid"].isNull()) + entityObject.uuid = value["Uuid"].asString(); + if(!value["LoginTime"].isNull()) + entityObject.loginTime = value["LoginTime"].asString(); + if(!value["LoginType"].isNull()) + entityObject.loginType = std::stoi(value["LoginType"].asString()); + if(!value["LoginTypeName"].isNull()) + entityObject.loginTypeName = value["LoginTypeName"].asString(); + if(!value["BuyVersion"].isNull()) + entityObject.buyVersion = value["BuyVersion"].asString(); + if(!value["LoginSourceIp"].isNull()) + entityObject.loginSourceIp = value["LoginSourceIp"].asString(); + if(!value["GroupId"].isNull()) + entityObject.groupId = std::stoi(value["GroupId"].asString()); + if(!value["InstanceName"].isNull()) + entityObject.instanceName = value["InstanceName"].asString(); + if(!value["InstanceId"].isNull()) + entityObject.instanceId = value["InstanceId"].asString(); + if(!value["Ip"].isNull()) + entityObject.ip = value["Ip"].asString(); + if(!value["Region"].isNull()) + entityObject.region = value["Region"].asString(); + if(!value["Status"].isNull()) + entityObject.status = std::stoi(value["Status"].asString()); + if(!value["StatusName"].isNull()) + entityObject.statusName = value["StatusName"].asString(); + if(!value["Location"].isNull()) + entityObject.location = value["Location"].asString(); + if(!value["UserName"].isNull()) + entityObject.userName = value["UserName"].asString(); + dataObject.list.push_back(entityObject); + } + auto allPageInfo = value["PageInfo"]; + for (auto value : allPageInfo) + { + Data::PageInfo pageInfoObject; + if(!value["CurrentPage"].isNull()) + pageInfoObject.currentPage = std::stoi(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageInfoObject.pageSize = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + pageInfoObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + pageInfoObject.count = std::stoi(value["Count"].asString()); + dataObject.pageInfo.push_back(pageInfoObject); + } + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string QueryLoginEventResult::getRequestId()const +{ + return requestId_; +} + +std::string QueryLoginEventResult::getMessage()const +{ + return message_; +} + +std::vector QueryLoginEventResult::getData()const +{ + return data_; +} + +std::string QueryLoginEventResult::getCode()const +{ + return code_; +} + +bool QueryLoginEventResult::getSuccess()const +{ + return success_; +} + diff --git a/aegis/src/model/ReleaseInstanceRequest.cc b/aegis/src/model/ReleaseInstanceRequest.cc new file mode 100644 index 000000000..07968aef8 --- /dev/null +++ b/aegis/src/model/ReleaseInstanceRequest.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::Aegis::Model::ReleaseInstanceRequest; + +ReleaseInstanceRequest::ReleaseInstanceRequest() : + RpcServiceRequest("aegis", "2016-11-11", "ReleaseInstance") +{} + +ReleaseInstanceRequest::~ReleaseInstanceRequest() +{} + +std::string ReleaseInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReleaseInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +long ReleaseInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/aegis/src/model/ReleaseInstanceResult.cc b/aegis/src/model/ReleaseInstanceResult.cc new file mode 100644 index 000000000..23fe4eff6 --- /dev/null +++ b/aegis/src/model/ReleaseInstanceResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +ReleaseInstanceResult::ReleaseInstanceResult() : + ServiceResult() +{} + +ReleaseInstanceResult::ReleaseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseInstanceResult::~ReleaseInstanceResult() +{} + +void ReleaseInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/aegis/src/model/RenewInstanceRequest.cc b/aegis/src/model/RenewInstanceRequest.cc new file mode 100644 index 000000000..f0fb72909 --- /dev/null +++ b/aegis/src/model/RenewInstanceRequest.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::Aegis::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() : + RpcServiceRequest("aegis", "2016-11-11", "RenewInstance") +{} + +RenewInstanceRequest::~RenewInstanceRequest() +{} + +int RenewInstanceRequest::getDuration()const +{ + return duration_; +} + +void RenewInstanceRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +std::string RenewInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RenewInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RenewInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RenewInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RenewInstanceRequest::getVmNumber()const +{ + return vmNumber_; +} + +void RenewInstanceRequest::setVmNumber(const std::string& vmNumber) +{ + vmNumber_ = vmNumber; + setParameter("VmNumber", vmNumber); +} + +long RenewInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenewInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RenewInstanceRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void RenewInstanceRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/aegis/src/model/RenewInstanceResult.cc b/aegis/src/model/RenewInstanceResult.cc new file mode 100644 index 000000000..bdcf3face --- /dev/null +++ b/aegis/src/model/RenewInstanceResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +RenewInstanceResult::RenewInstanceResult() : + ServiceResult() +{} + +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewInstanceResult::~RenewInstanceResult() +{} + +void RenewInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string RenewInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/aegis/src/model/UpgradeInstanceRequest.cc b/aegis/src/model/UpgradeInstanceRequest.cc new file mode 100644 index 000000000..5b4d4a728 --- /dev/null +++ b/aegis/src/model/UpgradeInstanceRequest.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::Aegis::Model::UpgradeInstanceRequest; + +UpgradeInstanceRequest::UpgradeInstanceRequest() : + RpcServiceRequest("aegis", "2016-11-11", "UpgradeInstance") +{} + +UpgradeInstanceRequest::~UpgradeInstanceRequest() +{} + +std::string UpgradeInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpgradeInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpgradeInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void UpgradeInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +int UpgradeInstanceRequest::getVmNumber()const +{ + return vmNumber_; +} + +void UpgradeInstanceRequest::setVmNumber(int vmNumber) +{ + vmNumber_ = vmNumber; + setParameter("VmNumber", std::to_string(vmNumber)); +} + +long UpgradeInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpgradeInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int UpgradeInstanceRequest::getVersionCode()const +{ + return versionCode_; +} + +void UpgradeInstanceRequest::setVersionCode(int versionCode) +{ + versionCode_ = versionCode; + setParameter("VersionCode", std::to_string(versionCode)); +} + diff --git a/aegis/src/model/UpgradeInstanceResult.cc b/aegis/src/model/UpgradeInstanceResult.cc new file mode 100644 index 000000000..5b4e6409d --- /dev/null +++ b/aegis/src/model/UpgradeInstanceResult.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::Aegis; +using namespace AlibabaCloud::Aegis::Model; + +UpgradeInstanceResult::UpgradeInstanceResult() : + ServiceResult() +{} + +UpgradeInstanceResult::UpgradeInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeInstanceResult::~UpgradeInstanceResult() +{} + +void UpgradeInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string UpgradeInstanceResult::getOrderId()const +{ + return orderId_; +} +