Compare commits

...

106 Commits

Author SHA1 Message Date
sdk-team
36af71113d Add new API DescribeGrantRulesToResource . 2022-09-23 10:37:44 +00:00
sdk-team
6bdbd9482a Support ipv4-network. 2022-09-23 03:03:17 +00:00
sdk-team
fb4f6ae3b1 Init. 2022-09-23 01:51:58 +00:00
sdk-team
39b81f8e34 Release EstimateMonocularVideoDepth. 2022-09-22 08:47:56 +00:00
sdk-team
3b8df66c89 Release CustomizeClassifyImage. 2022-09-22 08:46:08 +00:00
sdk-team
f9202a675c Generated 2016-11-01 for live. 2022-09-21 08:09:42 +00:00
sdk-team
1b0819437f Automatically generate sdk tasks. 2022-09-21 03:14:17 +00:00
sdk-team
3d05a2f21a Release ScreenEC. 2022-09-21 01:55:20 +00:00
sdk-team
a358f4d5f0 Remove useless Agent parameters. 2022-09-20 07:59:33 +00:00
sdk-team
b42b0028db Release CustomizeClassifyImage. 2022-09-19 10:20:31 +00:00
sdk-team
320438db47 Release EstimateMonocularVideoDepth. 2022-09-19 09:51:37 +00:00
sdk-team
364ec55dbb Change RefreshAssets Public. 2022-09-19 01:47:59 +00:00
sdk-team
f8807bdf99 Add location endpoint. 2022-09-16 08:46:16 +00:00
sdk-team
af797c3520 Init amp. 2022-09-16 08:37:12 +00:00
sdk-team
98aeacc7c2 Init amp. 2022-09-16 08:12:09 +00:00
sdk-team
0363b94b0d Init amp. 2022-09-16 08:04:22 +00:00
sdk-team
97a4f5217e Iot_20180120 old version sdk. 2022-09-16 03:44:28 +00:00
sdk-team
a336e2d994 Support remote coordinate control. 2022-09-16 02:43:01 +00:00
sdk-team
aa1a6d2362 Generated 2016-11-01 for live. 2022-09-15 08:18:20 +00:00
sdk-team
587e1e512e Generated 2016-11-01 for live. 2022-09-15 07:28:18 +00:00
sdk-team
949e7960dc Add spInstanceId and spInstanceType for api OnsInstanceBaseInfo. 2022-09-14 13:26:18 +00:00
sdk-team
1b0c1eab88 Generated 2017-07-14 for EHPC. 2022-09-14 03:34:52 +00:00
sdk-team
469ca3633e Add API BatchAddFeishuUsers. 2022-09-08 13:27:21 +00:00
sdk-team
6da60ce557 Update API Error Code And Some Parameters Checks. 2022-09-08 13:16:04 +00:00
sdk-team
70f6c89c06 Change RefreshAssets Public. 2022-09-08 07:27:16 +00:00
sdk-team
1ac934250e Change RefreshAssets Public. 2022-09-08 03:13:35 +00:00
sdk-team
852d78709b SmartSales-OpenAPI. 2022-09-07 09:43:53 +00:00
sdk-team
db913af39d Support attribute filtering for DescribeInstanceTypes. 2022-09-07 07:20:50 +00:00
sdk-team
2f8cd1121d Iot_20180120 old version sdk. 2022-09-06 08:57:19 +00:00
sdk-team
15ad2ff078 Update sdk. 2022-09-05 08:57:07 +00:00
sdk-team
6f27a24f42 Support STS. 2022-09-05 08:31:43 +00:00
sdk-team
5faaf0ce0e Init. 2022-09-05 02:44:56 +00:00
sdk-team
5c849887e8 Support STS. 2022-08-31 11:37:28 +00:00
sdk-team
011b8ae4c5 Generated 2020-05-18 for dataworks-public. 2022-08-31 11:30:00 +00:00
sdk-team
82ed15642d Support More Open Api. 2022-08-31 08:27:46 +00:00
sdk-team
53cb186ca3 Init. 2022-08-31 08:11:30 +00:00
sdk-team
6f733cd473 Change GetFileDetectResult Public. 2022-08-31 07:38:28 +00:00
sdk-team
384ce24607 Support create image with boot mode. 2022-08-31 06:15:01 +00:00
sdk-team
8ec9faabe1 Supported new features etc. 2022-08-31 02:17:57 +00:00
sdk-team
dddd6b352c Update param NextHopType visibility for DeleteTransitRouterPrefixListAssociation . 2022-08-26 07:06:50 +00:00
sdk-team
bd7c649ba2 Add AvailableZones for ListTransitRouterAvailableResource. 2022-08-25 09:05:02 +00:00
sdk-team
e1a6fce136 Iot_20180120 Old sdk. 2022-08-25 07:38:12 +00:00
sdk-team
fb7804f7b0 Add kms apis. 2022-08-25 06:41:18 +00:00
sdk-team
ef5165d686 Add ErrorCode for CreateTransitRouterPrefixListAssociation . 2022-08-24 18:16:47 +00:00
sdk-team
2744d4cd2d Update ScreenChestCT. 2022-08-24 02:16:11 +00:00
sdk-team
e1863f13bf The action parameter is required for some APIs. 2022-08-23 07:10:32 +00:00
sdk-team
51b79e2956 Change GetFileDetectResult Public. 2022-08-22 08:53:42 +00:00
sdk-team
6d52fc0e8d Automatically generate sdk tasks. 2022-08-22 08:30:38 +00:00
sdk-team
d0405dd61f Automatically generate sdk tasks. 2022-08-22 06:25:46 +00:00
sdk-team
1227bba30c Supported new features etc. 2022-08-18 10:22:53 +00:00
sdk-team
04416d35c6 Supported new features for outbound. 2022-08-18 10:06:52 +00:00
sdk-team
e75a9596ef Change GetFileDetectResult Public. 2022-08-16 13:57:05 +00:00
sdk-team
6700b9eb65 Generated 2020-05-18 for dataworks-public. 2022-08-16 06:14:39 +00:00
sdk-team
2b1cad3ddf Update Lindorm OpenAPI. 2022-08-16 03:22:11 +00:00
sdk-team
517d9852d6 update Lindorm OpenAPI. 2022-08-15 06:41:06 +00:00
sdk-team
4840d6ca87 AMP version. 2022-08-11 13:17:14 +00:00
sdk-team
99c7c0b611 Fix ListManagedRules bugs. 2022-08-11 10:15:30 +00:00
sdk-team
c6319b3fbc Generated 2020-05-18 for dataworks-public. 2022-08-11 02:21:44 +00:00
sdk-team
80439374d5 Support API ARMInstance. 2022-08-09 05:24:35 +00:00
sdk-team
9fde20e6f6 Automatically generate sdk tasks. 2022-08-05 03:16:09 +00:00
sdk-team
fefb29dee6 Supported more query conditions when searching resource group. 2022-08-03 06:59:11 +00:00
sdk-team
5e824d55da Support ecs instance diagnostic features. 2022-08-02 03:05:23 +00:00
sdk-team
192d947607 Update CreateKey and CreateSecret. 2022-08-01 07:59:35 +00:00
sdk-team
0f0940e32a AMP version. 2022-07-29 10:02:17 +00:00
sdk-team
3ad3e4b062 Change ListCheckInstanceResult Public. 2022-07-29 09:37:05 +00:00
sdk-team
3e81be19ef AMP version. 2022-07-28 15:49:27 +00:00
sdk-team
bcda9aa4cd AMP version. 2022-07-28 14:44:22 +00:00
sdk-team
01ed244f91 Fix bug. 2022-07-28 07:38:55 +00:00
sdk-team
979ae0c882 Automatically generate sdk tasks. 2022-07-28 07:11:21 +00:00
sdk-team
58b8b52591 Add GetImageInfos api. 2022-07-28 06:42:44 +00:00
sdk-team
29faefa1ab Support ListProxies API to return protocolType, protocolPort and remove mysqlPort. 2022-07-27 08:32:23 +00:00
sdk-team
b03b322c96 Update. 2022-07-27 02:04:47 +00:00
sdk-team
0cdb7bfa7c Change ListCheckInstanceResult Public. 2022-07-26 08:10:29 +00:00
sdk-team
4ff92e0924 Support API ARMInstance. 2022-07-26 06:15:45 +00:00
sdk-team
acb3224329 Add cmsGroupId parameter to CreateApplicationGroupRequest. 2022-07-26 04:06:30 +00:00
sdk-team
36e644262a Change ListCheckInstanceResult Public. 2022-07-26 03:45:07 +00:00
sdk-team
3f598709ce Change ListCheckInstanceResult GetCheckDetail Public. 2022-07-25 09:57:32 +00:00
sdk-team
ff12aa8e1c Update MonitorExamination. 2022-07-25 08:14:54 +00:00
sdk-team
35f5b170e3 Update SegmentOAR. 2022-07-25 07:51:19 +00:00
sdk-team
af10d89e40 Change ListCheckInstanceResult GetCheckDetail Public. 2022-07-25 03:28:53 +00:00
sdk-team
851f067179 Change ListCheckInstanceResult GetCheckDetail Public. 2022-07-22 09:42:24 +00:00
sdk-team
d9c4d7f556 Update ScreenChestCT Release SegmentOAR. 2022-07-22 08:32:25 +00:00
sdk-team
6b7018d7d5 Update ScreenChestCT - Release SegmentOAR. 2022-07-22 08:22:52 +00:00
sdk-team
de410cb26c Support PreConfigRule. 2022-07-21 11:37:12 +00:00
sdk-team
63d1456017 Add kms apis. 2022-07-21 08:44:47 +00:00
sdk-team
53badb17c1 Ram action config. 2022-07-21 07:40:36 +00:00
sdk-team
51c7466a7c Add Body Detection and Image Splicing API. 2022-07-21 02:16:05 +00:00
sdk-team
e097e2342f Change getFileDetectResult. 2022-07-20 12:20:05 +00:00
sdk-team
21cd880292 Support AK Audit API. 2022-07-20 07:13:20 +00:00
sdk-team
6bb79f8a04 Add Body Detection and Image Splicing API. 2022-07-20 07:05:47 +00:00
sdk-team
939eeccab4 Generated 2020-05-18 for dataworks-public. 2022-07-20 02:51:00 +00:00
sdk-team
c6fe210221 Generated 2020-05-18 for dataworks-public. 2022-07-19 06:41:23 +00:00
sdk-team
6c572378d9 Support MatchAddressType in RouteMap API. 2022-07-19 03:20:12 +00:00
sdk-team
6f86a0ac33 Add Mutimedia Screen API Support. 2022-07-18 13:18:50 +00:00
sdk-team
f2759cebfa Change cspm ListCheckResult api. 2022-07-18 08:21:50 +00:00
sdk-team
e4a6e73946 Support Elastic Desktop Service. 2022-07-18 03:41:11 +00:00
sdk-team
f9cb2e2167 Test. 2022-07-18 03:05:36 +00:00
sdk-team
cc32a735e4 Add cspm ListCheckResult api. 2022-07-15 09:06:24 +00:00
sdk-team
25bbb2bf65 Add open file detect api. 2022-07-15 02:25:17 +00:00
sdk-team
143a7b3400 Support Security Group Batch Manager Rules. 2022-07-15 02:01:04 +00:00
sdk-team
6f08307187 Automatically generate sdk tasks. 2022-07-13 06:55:42 +00:00
sdk-team
e915fe10cd Automatically generate sdk tasks. 2022-07-12 10:00:36 +00:00
sdk-team
949c6555a8 Support Storage And Network Features For LaunchTemplate. 2022-07-11 12:00:42 +00:00
sdk-team
55ce8a3d14 Add new api for rule. 2022-07-11 07:59:17 +00:00
sdk-team
bb602506ac Add open file detect api. 2022-07-11 03:23:04 +00:00
sdk-team
bd54b5cd5c Automatically generate sdk tasks. 2022-07-08 06:58:46 +00:00
7157 changed files with 310093 additions and 199047 deletions

147
CHANGELOG
View File

@@ -1,3 +1,150 @@
2022-08-11 Version: 1.36.1221
- Fix ListManagedRules bugs.
2022-08-11 Version: 1.36.1220
- Generated 2020-05-18 for `dataworks-public`.
2022-08-09 Version: 1.36.1219
- Support API ARMInstance.
- Support Control ARM API.
2022-08-05 Version: 1.36.1218
- Automatically generate sdk tasks.
2022-08-03 Version: 1.36.1217
- Supported more query conditions when searching resource group.
2022-08-02 Version: 1.36.1216
- Support ecs instance diagnostic features.
2022-08-01 Version: 1.36.1215
- Update CreateKey and CreateSecret.
2022-07-29 Version: 1.36.1213
- Change ListCheckInstanceResult Public.
2022-07-28 Version: 1.36.1212
- AMP version.
2022-07-28 Version: 1.36.1211
- Fix bug.
2022-07-28 Version: 1.36.1210
- Automatically generate sdk tasks.
2022-07-28 Version: 1.36.1209
- Add GetImageInfos api.
2022-07-27 Version: 1.36.1208
- Support ListProxies API to return protocolType, protocolPort and remove mysqlPort.
- Support GetProxy API to return protocolType, protocolPort and remove mysqlPort.
2022-07-27 Version: 1.36.1207
- Update.
2022-07-26 Version: 1.36.1206
- Change ListCheckInstanceResult Public.
2022-07-26 Version: 1.36.1205
- Support API ARMInstance.
- Support Control ARM API.
2022-07-26 Version: 1.36.1204
- Add cmsGroupId parameter to CreateApplicationGroupRequest.
2022-07-26 Version: 1.36.1203
- Change ListCheckInstanceResult Public.
2022-07-25 Version: 1.36.1202
- Change ListCheckInstanceResult GetCheckDetail Public.
2022-07-25 Version: 1.36.1201
- Update MonitorExamination.
2022-07-25 Version: 1.36.1200
- Update SegmentOAR.
2022-07-25 Version: 1.36.1199
- Change ListCheckInstanceResult GetCheckDetail Public.
2022-07-22 Version: 1.36.1198
- Change ListCheckInstanceResult GetCheckDetail Public.
2022-07-22 Version: 1.36.1197
- Update ScreenChestCT Release SegmentOAR.
2022-07-22 Version: 1.36.1196
- Update ScreenChestCT - Release SegmentOAR.
2022-07-21 Version: 1.36.1195
- Support PreConfigRule.
2022-07-21 Version: 1.36.1194
- Add kms apis.
2022-07-21 Version: 1.36.1193
- Ram action config.
2022-07-21 Version: 1.36.1192
- Add Body Detection and Image Splicing API.
2022-07-20 Version: 1.36.1191
- Change getFileDetectResult.
2022-07-20 Version: 1.36.1190
- Support AK Audit API.
2022-07-20 Version: 1.36.1189
- Add Body Detection and Image Splicing API.
2022-07-20 Version: 1.36.1188
- Generated 2020-05-18 for `dataworks-public`.
2022-07-19 Version: 1.36.1187
- Generated 2020-05-18 for `dataworks-public`.
2022-07-19 Version: 1.36.1186
- Support MatchAddressType in RouteMap API.
2022-07-18 Version: 1.36.1185
- Add Mutimedia Screen API Support.
2022-07-18 Version: 1.36.1184
- Change cspm ListCheckResult api.
2022-07-18 Version: 1.36.1183
- Support Elastic Desktop Service.
2022-07-18 Version: 1.36.1182
- Test.
2022-07-15 Version: 1.36.1181
- Add cspm ListCheckResult api.
2022-07-15 Version: 1.36.1180
- Add open file detect api.
2022-07-15 Version: 1.36.1179
- Support Security Group Batch Manager Rules.
2022-07-13 Version: 1.36.1178
- Automatically generate sdk tasks.
2022-07-12 Version: 1.36.1177
- Automatically generate sdk tasks.
2022-07-11 Version: 1.36.1176
- Support Storage And Network Features For LaunchTemplate.
2022-07-11 Version: 1.36.1175
- Add new api for rule.
2022-07-11 Version: 1.36.1174
- Add open file detect api.
2022-07-08 Version: 1.36.1173
- Automatically generate sdk tasks.
2022-07-08 Version: 1.36.1172
- Automatically generate sdk tasks.

0
CHANGELOG.md Normal file
View File

View File

@@ -1 +1 @@
1.36.1172
1.36.1277

View File

@@ -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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(antiddos-public_public_header
include/alibabacloud/antiddos-public/Antiddos_publicClient.h
include/alibabacloud/antiddos-public/Antiddos_publicExport.h )
set(antiddos-public_public_header_model
include/alibabacloud/antiddos-public/model/DescribeBgpPackByIpRequest.h
include/alibabacloud/antiddos-public/model/DescribeBgpPackByIpResult.h
include/alibabacloud/antiddos-public/model/DescribeCapRequest.h
include/alibabacloud/antiddos-public/model/DescribeCapResult.h
include/alibabacloud/antiddos-public/model/DescribeDdosCountRequest.h
include/alibabacloud/antiddos-public/model/DescribeDdosCountResult.h
include/alibabacloud/antiddos-public/model/DescribeDdosCreditRequest.h
include/alibabacloud/antiddos-public/model/DescribeDdosCreditResult.h
include/alibabacloud/antiddos-public/model/DescribeDdosEventListRequest.h
include/alibabacloud/antiddos-public/model/DescribeDdosEventListResult.h
include/alibabacloud/antiddos-public/model/DescribeDdosThresholdRequest.h
include/alibabacloud/antiddos-public/model/DescribeDdosThresholdResult.h
include/alibabacloud/antiddos-public/model/DescribeInstanceRequest.h
include/alibabacloud/antiddos-public/model/DescribeInstanceResult.h
include/alibabacloud/antiddos-public/model/DescribeInstanceIpAddressRequest.h
include/alibabacloud/antiddos-public/model/DescribeInstanceIpAddressResult.h
include/alibabacloud/antiddos-public/model/DescribeIpDdosThresholdRequest.h
include/alibabacloud/antiddos-public/model/DescribeIpDdosThresholdResult.h
include/alibabacloud/antiddos-public/model/DescribeIpLocationServiceRequest.h
include/alibabacloud/antiddos-public/model/DescribeIpLocationServiceResult.h
include/alibabacloud/antiddos-public/model/DescribeRegionsRequest.h
include/alibabacloud/antiddos-public/model/DescribeRegionsResult.h
include/alibabacloud/antiddos-public/model/ModifyDdosStatusRequest.h
include/alibabacloud/antiddos-public/model/ModifyDdosStatusResult.h
include/alibabacloud/antiddos-public/model/ModifyDefenseThresholdRequest.h
include/alibabacloud/antiddos-public/model/ModifyDefenseThresholdResult.h
include/alibabacloud/antiddos-public/model/ModifyIpDefenseThresholdRequest.h
include/alibabacloud/antiddos-public/model/ModifyIpDefenseThresholdResult.h )
set(antiddos-public_src
src/Antiddos-publicClient.cc
src/model/DescribeBgpPackByIpRequest.cc
src/model/DescribeBgpPackByIpResult.cc
src/model/DescribeCapRequest.cc
src/model/DescribeCapResult.cc
src/model/DescribeDdosCountRequest.cc
src/model/DescribeDdosCountResult.cc
src/model/DescribeDdosCreditRequest.cc
src/model/DescribeDdosCreditResult.cc
src/model/DescribeDdosEventListRequest.cc
src/model/DescribeDdosEventListResult.cc
src/model/DescribeDdosThresholdRequest.cc
src/model/DescribeDdosThresholdResult.cc
src/model/DescribeInstanceRequest.cc
src/model/DescribeInstanceResult.cc
src/model/DescribeInstanceIpAddressRequest.cc
src/model/DescribeInstanceIpAddressResult.cc
src/model/DescribeIpDdosThresholdRequest.cc
src/model/DescribeIpDdosThresholdResult.cc
src/model/DescribeIpLocationServiceRequest.cc
src/model/DescribeIpLocationServiceResult.cc
src/model/DescribeRegionsRequest.cc
src/model/DescribeRegionsResult.cc
src/model/ModifyDdosStatusRequest.cc
src/model/ModifyDdosStatusResult.cc
src/model/ModifyDefenseThresholdRequest.cc
src/model/ModifyDefenseThresholdResult.cc
src/model/ModifyIpDefenseThresholdRequest.cc
src/model/ModifyIpDefenseThresholdResult.cc )
add_library(antiddos-public ${LIB_TYPE}
${antiddos-public_public_header}
${antiddos-public_public_header_model}
${antiddos-public_src})
set_target_properties(antiddos-public
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}antiddos-public
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(antiddos-public
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_ANTIDDOS_PUBLIC_LIBRARY)
endif()
target_include_directories(antiddos-public
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(antiddos-public
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(antiddos-public
jsoncpp)
target_include_directories(antiddos-public
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(antiddos-public
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(antiddos-public
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(antiddos-public
PRIVATE /usr/include/jsoncpp)
target_link_libraries(antiddos-public
jsoncpp)
endif()
install(FILES ${antiddos-public_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/antiddos-public)
install(FILES ${antiddos-public_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/antiddos-public/model)
install(TARGETS antiddos-public
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -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.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICCLIENT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "Antiddos_publicExport.h"
#include "model/DescribeBgpPackByIpRequest.h"
#include "model/DescribeBgpPackByIpResult.h"
#include "model/DescribeCapRequest.h"
#include "model/DescribeCapResult.h"
#include "model/DescribeDdosCountRequest.h"
#include "model/DescribeDdosCountResult.h"
#include "model/DescribeDdosCreditRequest.h"
#include "model/DescribeDdosCreditResult.h"
#include "model/DescribeDdosEventListRequest.h"
#include "model/DescribeDdosEventListResult.h"
#include "model/DescribeDdosThresholdRequest.h"
#include "model/DescribeDdosThresholdResult.h"
#include "model/DescribeInstanceRequest.h"
#include "model/DescribeInstanceResult.h"
#include "model/DescribeInstanceIpAddressRequest.h"
#include "model/DescribeInstanceIpAddressResult.h"
#include "model/DescribeIpDdosThresholdRequest.h"
#include "model/DescribeIpDdosThresholdResult.h"
#include "model/DescribeIpLocationServiceRequest.h"
#include "model/DescribeIpLocationServiceResult.h"
#include "model/DescribeRegionsRequest.h"
#include "model/DescribeRegionsResult.h"
#include "model/ModifyDdosStatusRequest.h"
#include "model/ModifyDdosStatusResult.h"
#include "model/ModifyDefenseThresholdRequest.h"
#include "model/ModifyDefenseThresholdResult.h"
#include "model/ModifyIpDefenseThresholdRequest.h"
#include "model/ModifyIpDefenseThresholdResult.h"
namespace AlibabaCloud
{
namespace Antiddos_public
{
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT Antiddos_publicClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::DescribeBgpPackByIpResult> DescribeBgpPackByIpOutcome;
typedef std::future<DescribeBgpPackByIpOutcome> DescribeBgpPackByIpOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeBgpPackByIpRequest&, const DescribeBgpPackByIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBgpPackByIpAsyncHandler;
typedef Outcome<Error, Model::DescribeCapResult> DescribeCapOutcome;
typedef std::future<DescribeCapOutcome> DescribeCapOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeCapRequest&, const DescribeCapOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCapAsyncHandler;
typedef Outcome<Error, Model::DescribeDdosCountResult> DescribeDdosCountOutcome;
typedef std::future<DescribeDdosCountOutcome> DescribeDdosCountOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosCountRequest&, const DescribeDdosCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosCountAsyncHandler;
typedef Outcome<Error, Model::DescribeDdosCreditResult> DescribeDdosCreditOutcome;
typedef std::future<DescribeDdosCreditOutcome> DescribeDdosCreditOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosCreditRequest&, const DescribeDdosCreditOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosCreditAsyncHandler;
typedef Outcome<Error, Model::DescribeDdosEventListResult> DescribeDdosEventListOutcome;
typedef std::future<DescribeDdosEventListOutcome> DescribeDdosEventListOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosEventListRequest&, const DescribeDdosEventListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosEventListAsyncHandler;
typedef Outcome<Error, Model::DescribeDdosThresholdResult> DescribeDdosThresholdOutcome;
typedef std::future<DescribeDdosThresholdOutcome> DescribeDdosThresholdOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeDdosThresholdRequest&, const DescribeDdosThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDdosThresholdAsyncHandler;
typedef Outcome<Error, Model::DescribeInstanceResult> DescribeInstanceOutcome;
typedef std::future<DescribeInstanceOutcome> DescribeInstanceOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeInstanceRequest&, const DescribeInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceAsyncHandler;
typedef Outcome<Error, Model::DescribeInstanceIpAddressResult> DescribeInstanceIpAddressOutcome;
typedef std::future<DescribeInstanceIpAddressOutcome> DescribeInstanceIpAddressOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeInstanceIpAddressRequest&, const DescribeInstanceIpAddressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceIpAddressAsyncHandler;
typedef Outcome<Error, Model::DescribeIpDdosThresholdResult> DescribeIpDdosThresholdOutcome;
typedef std::future<DescribeIpDdosThresholdOutcome> DescribeIpDdosThresholdOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeIpDdosThresholdRequest&, const DescribeIpDdosThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpDdosThresholdAsyncHandler;
typedef Outcome<Error, Model::DescribeIpLocationServiceResult> DescribeIpLocationServiceOutcome;
typedef std::future<DescribeIpLocationServiceOutcome> DescribeIpLocationServiceOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeIpLocationServiceRequest&, const DescribeIpLocationServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIpLocationServiceAsyncHandler;
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
typedef Outcome<Error, Model::ModifyDdosStatusResult> ModifyDdosStatusOutcome;
typedef std::future<ModifyDdosStatusOutcome> ModifyDdosStatusOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::ModifyDdosStatusRequest&, const ModifyDdosStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDdosStatusAsyncHandler;
typedef Outcome<Error, Model::ModifyDefenseThresholdResult> ModifyDefenseThresholdOutcome;
typedef std::future<ModifyDefenseThresholdOutcome> ModifyDefenseThresholdOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::ModifyDefenseThresholdRequest&, const ModifyDefenseThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDefenseThresholdAsyncHandler;
typedef Outcome<Error, Model::ModifyIpDefenseThresholdResult> ModifyIpDefenseThresholdOutcome;
typedef std::future<ModifyIpDefenseThresholdOutcome> ModifyIpDefenseThresholdOutcomeCallable;
typedef std::function<void(const Antiddos_publicClient*, const Model::ModifyIpDefenseThresholdRequest&, const ModifyIpDefenseThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyIpDefenseThresholdAsyncHandler;
Antiddos_publicClient(const Credentials &credentials, const ClientConfiguration &configuration);
Antiddos_publicClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
Antiddos_publicClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~Antiddos_publicClient();
DescribeBgpPackByIpOutcome describeBgpPackByIp(const Model::DescribeBgpPackByIpRequest &request)const;
void describeBgpPackByIpAsync(const Model::DescribeBgpPackByIpRequest& request, const DescribeBgpPackByIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBgpPackByIpOutcomeCallable describeBgpPackByIpCallable(const Model::DescribeBgpPackByIpRequest& request) const;
DescribeCapOutcome describeCap(const Model::DescribeCapRequest &request)const;
void describeCapAsync(const Model::DescribeCapRequest& request, const DescribeCapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCapOutcomeCallable describeCapCallable(const Model::DescribeCapRequest& request) const;
DescribeDdosCountOutcome describeDdosCount(const Model::DescribeDdosCountRequest &request)const;
void describeDdosCountAsync(const Model::DescribeDdosCountRequest& request, const DescribeDdosCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDdosCountOutcomeCallable describeDdosCountCallable(const Model::DescribeDdosCountRequest& request) const;
DescribeDdosCreditOutcome describeDdosCredit(const Model::DescribeDdosCreditRequest &request)const;
void describeDdosCreditAsync(const Model::DescribeDdosCreditRequest& request, const DescribeDdosCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDdosCreditOutcomeCallable describeDdosCreditCallable(const Model::DescribeDdosCreditRequest& request) const;
DescribeDdosEventListOutcome describeDdosEventList(const Model::DescribeDdosEventListRequest &request)const;
void describeDdosEventListAsync(const Model::DescribeDdosEventListRequest& request, const DescribeDdosEventListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDdosEventListOutcomeCallable describeDdosEventListCallable(const Model::DescribeDdosEventListRequest& request) const;
DescribeDdosThresholdOutcome describeDdosThreshold(const Model::DescribeDdosThresholdRequest &request)const;
void describeDdosThresholdAsync(const Model::DescribeDdosThresholdRequest& request, const DescribeDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDdosThresholdOutcomeCallable describeDdosThresholdCallable(const Model::DescribeDdosThresholdRequest& request) const;
DescribeInstanceOutcome describeInstance(const Model::DescribeInstanceRequest &request)const;
void describeInstanceAsync(const Model::DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceOutcomeCallable describeInstanceCallable(const Model::DescribeInstanceRequest& request) const;
DescribeInstanceIpAddressOutcome describeInstanceIpAddress(const Model::DescribeInstanceIpAddressRequest &request)const;
void describeInstanceIpAddressAsync(const Model::DescribeInstanceIpAddressRequest& request, const DescribeInstanceIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceIpAddressOutcomeCallable describeInstanceIpAddressCallable(const Model::DescribeInstanceIpAddressRequest& request) const;
DescribeIpDdosThresholdOutcome describeIpDdosThreshold(const Model::DescribeIpDdosThresholdRequest &request)const;
void describeIpDdosThresholdAsync(const Model::DescribeIpDdosThresholdRequest& request, const DescribeIpDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeIpDdosThresholdOutcomeCallable describeIpDdosThresholdCallable(const Model::DescribeIpDdosThresholdRequest& request) const;
DescribeIpLocationServiceOutcome describeIpLocationService(const Model::DescribeIpLocationServiceRequest &request)const;
void describeIpLocationServiceAsync(const Model::DescribeIpLocationServiceRequest& request, const DescribeIpLocationServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeIpLocationServiceOutcomeCallable describeIpLocationServiceCallable(const Model::DescribeIpLocationServiceRequest& request) const;
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
ModifyDdosStatusOutcome modifyDdosStatus(const Model::ModifyDdosStatusRequest &request)const;
void modifyDdosStatusAsync(const Model::ModifyDdosStatusRequest& request, const ModifyDdosStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDdosStatusOutcomeCallable modifyDdosStatusCallable(const Model::ModifyDdosStatusRequest& request) const;
ModifyDefenseThresholdOutcome modifyDefenseThreshold(const Model::ModifyDefenseThresholdRequest &request)const;
void modifyDefenseThresholdAsync(const Model::ModifyDefenseThresholdRequest& request, const ModifyDefenseThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDefenseThresholdOutcomeCallable modifyDefenseThresholdCallable(const Model::ModifyDefenseThresholdRequest& request) const;
ModifyIpDefenseThresholdOutcome modifyIpDefenseThreshold(const Model::ModifyIpDefenseThresholdRequest &request)const;
void modifyIpDefenseThresholdAsync(const Model::ModifyIpDefenseThresholdRequest& request, const ModifyIpDefenseThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyIpDefenseThresholdOutcomeCallable modifyIpDefenseThresholdCallable(const Model::ModifyIpDefenseThresholdRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICCLIENT_H_

View File

@@ -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_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_ANTIDDOS_PUBLIC_LIBRARY)
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT
#endif
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_

View File

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

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
namespace AlibabaCloud
{
namespace Antiddos_public
{
namespace Model
{
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeBgpPackByIpResult : public ServiceResult
{
public:
struct DdosbgpInfo
{
std::string ddosbgpInstanceId;
std::string ip;
int elasticThreshold;
int baseThreshold;
long expireTime;
};
DescribeBgpPackByIpResult();
explicit DescribeBgpPackByIpResult(const std::string &payload);
~DescribeBgpPackByIpResult();
DdosbgpInfo getDdosbgpInfo()const;
int getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
DdosbgpInfo ddosbgpInfo_;
int code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_

View File

@@ -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_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeCapRequest : public RpcServiceRequest {
public:
DescribeCapRequest();
~DescribeCapRequest();
std::string getInternetIp() const;
void setInternetIp(const std::string &internetIp);
long getBegTime() const;
void setBegTime(long begTime);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
std::string internetIp_;
long begTime_;
std::string sourceIp_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
std::string instanceId_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPREQUEST_H_

View File

@@ -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_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPRESULT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
namespace AlibabaCloud
{
namespace Antiddos_public
{
namespace Model
{
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeCapResult : public ServiceResult
{
public:
struct CapUrl
{
std::string url;
};
DescribeCapResult();
explicit DescribeCapResult(const std::string &payload);
~DescribeCapResult();
CapUrl getCapUrl()const;
protected:
void parse(const std::string &payload);
private:
CapUrl capUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBECAPRESULT_H_

View File

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

View File

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

View File

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

View File

@@ -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_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
namespace AlibabaCloud
{
namespace Antiddos_public
{
namespace Model
{
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosCreditResult : public ServiceResult
{
public:
struct DdosCredit
{
int score;
std::string scoreLevel;
int blackholeTime;
};
DescribeDdosCreditResult();
explicit DescribeDdosCreditResult(const std::string &payload);
~DescribeDdosCreditResult();
DdosCredit getDdosCredit()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
DdosCredit ddosCredit_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosEventListRequest : public RpcServiceRequest {
public:
DescribeDdosEventListRequest();
~DescribeDdosEventListRequest();
std::string getInternetIp() const;
void setInternetIp(const std::string &internetIp);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
int getCurrentPage() const;
void setCurrentPage(int currentPage);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
std::string internetIp_;
std::string sourceIp_;
int pageSize_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
int currentPage_;
std::string instanceId_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSEVENTLISTREQUEST_H_

View File

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

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosThresholdRequest : public RpcServiceRequest {
public:
DescribeDdosThresholdRequest();
~DescribeDdosThresholdRequest();
std::string getDdosType() const;
void setDdosType(const std::string &ddosType);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
std::vector<std::string> getInstanceIds() const;
void setInstanceIds(const std::vector<std::string> &instanceIds);
private:
std::string ddosType_;
std::string sourceIp_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
std::vector<std::string> instanceIds_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDREQUEST_H_

View File

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

View File

@@ -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_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceIpAddressRequest : public RpcServiceRequest {
public:
DescribeInstanceIpAddressRequest();
~DescribeInstanceIpAddressRequest();
std::string getEagleEyeRpcId() const;
void setEagleEyeRpcId(const std::string &eagleEyeRpcId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getEagleEyeTraceId() const;
void setEagleEyeTraceId(const std::string &eagleEyeTraceId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
std::string getDdosStatus() const;
void setDdosStatus(const std::string &ddosStatus);
int getCurrentPage() const;
void setCurrentPage(int currentPage);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getEagleEyeUserData() const;
void setEagleEyeUserData(const std::string &eagleEyeUserData);
std::string getInstanceIp() const;
void setInstanceIp(const std::string &instanceIp);
private:
std::string eagleEyeRpcId_;
std::string sourceIp_;
std::string eagleEyeTraceId_;
int pageSize_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
std::string ddosStatus_;
int currentPage_;
std::string instanceName_;
std::string instanceId_;
std::string eagleEyeUserData_;
std::string instanceIp_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSREQUEST_H_

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSRESULT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
namespace AlibabaCloud
{
namespace Antiddos_public
{
namespace Model
{
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceIpAddressResult : public ServiceResult
{
public:
struct Instance
{
struct IpAddressConfigItem
{
int defensePpsThreshold;
int defenseBpsThreshold;
std::string ipVersion;
std::string instanceIp;
std::string ipStatus;
std::string regionId;
int elasticThreshold;
bool isBgppack;
int blackholeThreshold;
};
std::string instanceName;
std::string instanceId;
std::string instanceStatus;
std::vector<Instance::IpAddressConfigItem> ipAddressConfig;
std::string instanceType;
};
DescribeInstanceIpAddressResult();
explicit DescribeInstanceIpAddressResult(const std::string &payload);
~DescribeInstanceIpAddressResult();
int getTotal()const;
std::vector<Instance> getInstanceList()const;
protected:
void parse(const std::string &payload);
private:
int total_;
std::vector<Instance> instanceList_;
};
}
}
}
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEIPADDRESSRESULT_H_

View File

@@ -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_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceRequest : public RpcServiceRequest {
public:
DescribeInstanceRequest();
~DescribeInstanceRequest();
std::string getEagleEyeRpcId() const;
void setEagleEyeRpcId(const std::string &eagleEyeRpcId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getEagleEyeTraceId() const;
void setEagleEyeTraceId(const std::string &eagleEyeTraceId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
std::string getDdosStatus() const;
void setDdosStatus(const std::string &ddosStatus);
int getCurrentPage() const;
void setCurrentPage(int currentPage);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getEagleEyeUserData() const;
void setEagleEyeUserData(const std::string &eagleEyeUserData);
std::string getInstanceIp() const;
void setInstanceIp(const std::string &instanceIp);
private:
std::string eagleEyeRpcId_;
std::string sourceIp_;
std::string eagleEyeTraceId_;
int pageSize_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
std::string ddosStatus_;
int currentPage_;
std::string instanceName_;
std::string instanceId_;
std::string eagleEyeUserData_;
std::string instanceIp_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCEREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCERESULT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
namespace AlibabaCloud
{
namespace Antiddos_public
{
namespace Model
{
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeInstanceResult : public ServiceResult
{
public:
struct Instance
{
std::string instanceName;
int defensePpsThreshold;
int defenseBpsThreshold;
std::string ipVersion;
std::string instanceId;
std::string instanceStatus;
std::string instanceIp;
int elasticThreshold;
std::string instanceType;
bool isBgppack;
int blackholeThreshold;
};
DescribeInstanceResult();
explicit DescribeInstanceResult(const std::string &payload);
~DescribeInstanceResult();
int getTotal()const;
std::vector<Instance> getInstanceList()const;
protected:
void parse(const std::string &payload);
private:
int total_;
std::vector<Instance> instanceList_;
};
}
}
}
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEINSTANCERESULT_H_

View File

@@ -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_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeIpDdosThresholdRequest : public RpcServiceRequest {
public:
DescribeIpDdosThresholdRequest();
~DescribeIpDdosThresholdRequest();
std::string getInternetIp() const;
void setInternetIp(const std::string &internetIp);
std::string getDdosType() const;
void setDdosType(const std::string &ddosType);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
std::string internetIp_;
std::string ddosType_;
std::string sourceIp_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
std::string instanceId_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPDDOSTHRESHOLDREQUEST_H_

View File

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

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICEREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICEREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeIpLocationServiceRequest : public RpcServiceRequest {
public:
DescribeIpLocationServiceRequest();
~DescribeIpLocationServiceRequest();
std::string getInternetIp() const;
void setInternetIp(const std::string &internetIp);
std::string getEagleEyeRpcId() const;
void setEagleEyeRpcId(const std::string &eagleEyeRpcId);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getEagleEyeTraceId() const;
void setEagleEyeTraceId(const std::string &eagleEyeTraceId);
std::string getLang() const;
void setLang(const std::string &lang);
std::string getEagleEyeUserData() const;
void setEagleEyeUserData(const std::string &eagleEyeUserData);
private:
std::string internetIp_;
std::string eagleEyeRpcId_;
std::string sourceIp_;
std::string eagleEyeTraceId_;
std::string lang_;
std::string eagleEyeUserData_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICEREQUEST_H_

View File

@@ -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_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICERESULT_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
namespace AlibabaCloud
{
namespace Antiddos_public
{
namespace Model
{
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeIpLocationServiceResult : public ServiceResult
{
public:
struct Instance
{
std::string instanceName;
std::string internetIp;
std::string instanceId;
std::string region;
std::string instanceType;
};
DescribeIpLocationServiceResult();
explicit DescribeIpLocationServiceResult(const std::string &payload);
~DescribeIpLocationServiceResult();
Instance getInstance()const;
protected:
void parse(const std::string &payload);
private:
Instance instance_;
};
}
}
}
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEIPLOCATIONSERVICERESULT_H_

View File

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

View File

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

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDdosStatusRequest : public RpcServiceRequest {
public:
ModifyDdosStatusRequest();
~ModifyDdosStatusRequest();
std::string getInternetIp() const;
void setInternetIp(const std::string &internetIp);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
std::string internetIp_;
std::string sourceIp_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
std::string instanceId_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSREQUEST_H_

View File

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

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDefenseThresholdRequest : public RpcServiceRequest {
public:
ModifyDefenseThresholdRequest();
~ModifyDefenseThresholdRequest();
std::string getInternetIp() const;
void setInternetIp(const std::string &internetIp);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
int getBps() const;
void setBps(int bps);
int getPps() const;
void setPps(int pps);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
bool getIsAuto() const;
void setIsAuto(bool isAuto);
private:
std::string internetIp_;
std::string sourceIp_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
int bps_;
int pps_;
std::string instanceId_;
bool isAuto_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDEFENSETHRESHOLDREQUEST_H_

View File

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

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYIPDEFENSETHRESHOLDREQUEST_H_
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYIPDEFENSETHRESHOLDREQUEST_H_
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Antiddos_public {
namespace Model {
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyIpDefenseThresholdRequest : public RpcServiceRequest {
public:
ModifyIpDefenseThresholdRequest();
~ModifyIpDefenseThresholdRequest();
std::string getInternetIp() const;
void setInternetIp(const std::string &internetIp);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getDdosRegionId() const;
void setDdosRegionId(const std::string &ddosRegionId);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getLang() const;
void setLang(const std::string &lang);
int getBps() const;
void setBps(int bps);
int getPps() const;
void setPps(int pps);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
bool getIsAuto() const;
void setIsAuto(bool isAuto);
private:
std::string internetIp_;
std::string sourceIp_;
std::string ddosRegionId_;
std::string instanceType_;
std::string lang_;
int bps_;
int pps_;
std::string instanceId_;
bool isAuto_;
};
} // namespace Model
} // namespace Antiddos_public
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYIPDEFENSETHRESHOLDREQUEST_H_

View File

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

View File

@@ -0,0 +1,557 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/Antiddos_publicClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
namespace
{
const std::string SERVICE_NAME = "antiddos-public";
}
Antiddos_publicClient::Antiddos_publicClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ddosbasic");
}
Antiddos_publicClient::Antiddos_publicClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ddosbasic");
}
Antiddos_publicClient::Antiddos_publicClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ddosbasic");
}
Antiddos_publicClient::~Antiddos_publicClient()
{}
Antiddos_publicClient::DescribeBgpPackByIpOutcome Antiddos_publicClient::describeBgpPackByIp(const DescribeBgpPackByIpRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeBgpPackByIpOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeBgpPackByIpOutcome(DescribeBgpPackByIpResult(outcome.result()));
else
return DescribeBgpPackByIpOutcome(outcome.error());
}
void Antiddos_publicClient::describeBgpPackByIpAsync(const DescribeBgpPackByIpRequest& request, const DescribeBgpPackByIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeBgpPackByIp(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeBgpPackByIpOutcomeCallable Antiddos_publicClient::describeBgpPackByIpCallable(const DescribeBgpPackByIpRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeBgpPackByIpOutcome()>>(
[this, request]()
{
return this->describeBgpPackByIp(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeCapOutcome Antiddos_publicClient::describeCap(const DescribeCapRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCapOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCapOutcome(DescribeCapResult(outcome.result()));
else
return DescribeCapOutcome(outcome.error());
}
void Antiddos_publicClient::describeCapAsync(const DescribeCapRequest& request, const DescribeCapAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCap(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeCapOutcomeCallable Antiddos_publicClient::describeCapCallable(const DescribeCapRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCapOutcome()>>(
[this, request]()
{
return this->describeCap(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeDdosCountOutcome Antiddos_publicClient::describeDdosCount(const DescribeDdosCountRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDdosCountOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDdosCountOutcome(DescribeDdosCountResult(outcome.result()));
else
return DescribeDdosCountOutcome(outcome.error());
}
void Antiddos_publicClient::describeDdosCountAsync(const DescribeDdosCountRequest& request, const DescribeDdosCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDdosCount(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeDdosCountOutcomeCallable Antiddos_publicClient::describeDdosCountCallable(const DescribeDdosCountRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDdosCountOutcome()>>(
[this, request]()
{
return this->describeDdosCount(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeDdosCreditOutcome Antiddos_publicClient::describeDdosCredit(const DescribeDdosCreditRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDdosCreditOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDdosCreditOutcome(DescribeDdosCreditResult(outcome.result()));
else
return DescribeDdosCreditOutcome(outcome.error());
}
void Antiddos_publicClient::describeDdosCreditAsync(const DescribeDdosCreditRequest& request, const DescribeDdosCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDdosCredit(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeDdosCreditOutcomeCallable Antiddos_publicClient::describeDdosCreditCallable(const DescribeDdosCreditRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDdosCreditOutcome()>>(
[this, request]()
{
return this->describeDdosCredit(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeDdosEventListOutcome Antiddos_publicClient::describeDdosEventList(const DescribeDdosEventListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDdosEventListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDdosEventListOutcome(DescribeDdosEventListResult(outcome.result()));
else
return DescribeDdosEventListOutcome(outcome.error());
}
void Antiddos_publicClient::describeDdosEventListAsync(const DescribeDdosEventListRequest& request, const DescribeDdosEventListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDdosEventList(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeDdosEventListOutcomeCallable Antiddos_publicClient::describeDdosEventListCallable(const DescribeDdosEventListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDdosEventListOutcome()>>(
[this, request]()
{
return this->describeDdosEventList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeDdosThresholdOutcome Antiddos_publicClient::describeDdosThreshold(const DescribeDdosThresholdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDdosThresholdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDdosThresholdOutcome(DescribeDdosThresholdResult(outcome.result()));
else
return DescribeDdosThresholdOutcome(outcome.error());
}
void Antiddos_publicClient::describeDdosThresholdAsync(const DescribeDdosThresholdRequest& request, const DescribeDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDdosThreshold(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeDdosThresholdOutcomeCallable Antiddos_publicClient::describeDdosThresholdCallable(const DescribeDdosThresholdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDdosThresholdOutcome()>>(
[this, request]()
{
return this->describeDdosThreshold(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeInstanceOutcome Antiddos_publicClient::describeInstance(const DescribeInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeInstanceOutcome(DescribeInstanceResult(outcome.result()));
else
return DescribeInstanceOutcome(outcome.error());
}
void Antiddos_publicClient::describeInstanceAsync(const DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeInstanceOutcomeCallable Antiddos_publicClient::describeInstanceCallable(const DescribeInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeInstanceOutcome()>>(
[this, request]()
{
return this->describeInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeInstanceIpAddressOutcome Antiddos_publicClient::describeInstanceIpAddress(const DescribeInstanceIpAddressRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeInstanceIpAddressOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeInstanceIpAddressOutcome(DescribeInstanceIpAddressResult(outcome.result()));
else
return DescribeInstanceIpAddressOutcome(outcome.error());
}
void Antiddos_publicClient::describeInstanceIpAddressAsync(const DescribeInstanceIpAddressRequest& request, const DescribeInstanceIpAddressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeInstanceIpAddress(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeInstanceIpAddressOutcomeCallable Antiddos_publicClient::describeInstanceIpAddressCallable(const DescribeInstanceIpAddressRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeInstanceIpAddressOutcome()>>(
[this, request]()
{
return this->describeInstanceIpAddress(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeIpDdosThresholdOutcome Antiddos_publicClient::describeIpDdosThreshold(const DescribeIpDdosThresholdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeIpDdosThresholdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeIpDdosThresholdOutcome(DescribeIpDdosThresholdResult(outcome.result()));
else
return DescribeIpDdosThresholdOutcome(outcome.error());
}
void Antiddos_publicClient::describeIpDdosThresholdAsync(const DescribeIpDdosThresholdRequest& request, const DescribeIpDdosThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeIpDdosThreshold(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeIpDdosThresholdOutcomeCallable Antiddos_publicClient::describeIpDdosThresholdCallable(const DescribeIpDdosThresholdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeIpDdosThresholdOutcome()>>(
[this, request]()
{
return this->describeIpDdosThreshold(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeIpLocationServiceOutcome Antiddos_publicClient::describeIpLocationService(const DescribeIpLocationServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeIpLocationServiceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeIpLocationServiceOutcome(DescribeIpLocationServiceResult(outcome.result()));
else
return DescribeIpLocationServiceOutcome(outcome.error());
}
void Antiddos_publicClient::describeIpLocationServiceAsync(const DescribeIpLocationServiceRequest& request, const DescribeIpLocationServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeIpLocationService(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeIpLocationServiceOutcomeCallable Antiddos_publicClient::describeIpLocationServiceCallable(const DescribeIpLocationServiceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeIpLocationServiceOutcome()>>(
[this, request]()
{
return this->describeIpLocationService(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::DescribeRegionsOutcome Antiddos_publicClient::describeRegions(const DescribeRegionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRegionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
else
return DescribeRegionsOutcome(outcome.error());
}
void Antiddos_publicClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRegions(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::DescribeRegionsOutcomeCallable Antiddos_publicClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
[this, request]()
{
return this->describeRegions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::ModifyDdosStatusOutcome Antiddos_publicClient::modifyDdosStatus(const ModifyDdosStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDdosStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDdosStatusOutcome(ModifyDdosStatusResult(outcome.result()));
else
return ModifyDdosStatusOutcome(outcome.error());
}
void Antiddos_publicClient::modifyDdosStatusAsync(const ModifyDdosStatusRequest& request, const ModifyDdosStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDdosStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::ModifyDdosStatusOutcomeCallable Antiddos_publicClient::modifyDdosStatusCallable(const ModifyDdosStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDdosStatusOutcome()>>(
[this, request]()
{
return this->modifyDdosStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::ModifyDefenseThresholdOutcome Antiddos_publicClient::modifyDefenseThreshold(const ModifyDefenseThresholdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDefenseThresholdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDefenseThresholdOutcome(ModifyDefenseThresholdResult(outcome.result()));
else
return ModifyDefenseThresholdOutcome(outcome.error());
}
void Antiddos_publicClient::modifyDefenseThresholdAsync(const ModifyDefenseThresholdRequest& request, const ModifyDefenseThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDefenseThreshold(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::ModifyDefenseThresholdOutcomeCallable Antiddos_publicClient::modifyDefenseThresholdCallable(const ModifyDefenseThresholdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDefenseThresholdOutcome()>>(
[this, request]()
{
return this->modifyDefenseThreshold(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Antiddos_publicClient::ModifyIpDefenseThresholdOutcome Antiddos_publicClient::modifyIpDefenseThreshold(const ModifyIpDefenseThresholdRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyIpDefenseThresholdOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyIpDefenseThresholdOutcome(ModifyIpDefenseThresholdResult(outcome.result()));
else
return ModifyIpDefenseThresholdOutcome(outcome.error());
}
void Antiddos_publicClient::modifyIpDefenseThresholdAsync(const ModifyIpDefenseThresholdRequest& request, const ModifyIpDefenseThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyIpDefenseThreshold(request), context);
};
asyncExecute(new Runnable(fn));
}
Antiddos_publicClient::ModifyIpDefenseThresholdOutcomeCallable Antiddos_publicClient::modifyIpDefenseThresholdCallable(const ModifyIpDefenseThresholdRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyIpDefenseThresholdOutcome()>>(
[this, request]()
{
return this->modifyIpDefenseThreshold(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeBgpPackByIpRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeBgpPackByIpRequest;
DescribeBgpPackByIpRequest::DescribeBgpPackByIpRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeBgpPackByIp") {
setMethod(HttpRequest::Method::Post);
}
DescribeBgpPackByIpRequest::~DescribeBgpPackByIpRequest() {}
std::string DescribeBgpPackByIpRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeBgpPackByIpRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeBgpPackByIpRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeBgpPackByIpRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeBgpPackByIpRequest::getLang() const {
return lang_;
}
void DescribeBgpPackByIpRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string DescribeBgpPackByIpRequest::getIp() const {
return ip_;
}
void DescribeBgpPackByIpRequest::setIp(const std::string &ip) {
ip_ = ip;
setParameter(std::string("Ip"), ip);
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeBgpPackByIpResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeBgpPackByIpResult::DescribeBgpPackByIpResult() :
ServiceResult()
{}
DescribeBgpPackByIpResult::DescribeBgpPackByIpResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBgpPackByIpResult::~DescribeBgpPackByIpResult()
{}
void DescribeBgpPackByIpResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto ddosbgpInfoNode = value["DdosbgpInfo"];
if(!ddosbgpInfoNode["Ip"].isNull())
ddosbgpInfo_.ip = ddosbgpInfoNode["Ip"].asString();
if(!ddosbgpInfoNode["ExpireTime"].isNull())
ddosbgpInfo_.expireTime = std::stol(ddosbgpInfoNode["ExpireTime"].asString());
if(!ddosbgpInfoNode["ElasticThreshold"].isNull())
ddosbgpInfo_.elasticThreshold = std::stoi(ddosbgpInfoNode["ElasticThreshold"].asString());
if(!ddosbgpInfoNode["BaseThreshold"].isNull())
ddosbgpInfo_.baseThreshold = std::stoi(ddosbgpInfoNode["BaseThreshold"].asString());
if(!ddosbgpInfoNode["DdosbgpInstanceId"].isNull())
ddosbgpInfo_.ddosbgpInstanceId = ddosbgpInfoNode["DdosbgpInstanceId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
DescribeBgpPackByIpResult::DdosbgpInfo DescribeBgpPackByIpResult::getDdosbgpInfo()const
{
return ddosbgpInfo_;
}
int DescribeBgpPackByIpResult::getCode()const
{
return code_;
}
bool DescribeBgpPackByIpResult::getSuccess()const
{
return success_;
}

View File

@@ -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 <alibabacloud/antiddos-public/model/DescribeCapRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeCapRequest;
DescribeCapRequest::DescribeCapRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeCap") {
setMethod(HttpRequest::Method::Post);
}
DescribeCapRequest::~DescribeCapRequest() {}
std::string DescribeCapRequest::getInternetIp() const {
return internetIp_;
}
void DescribeCapRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
long DescribeCapRequest::getBegTime() const {
return begTime_;
}
void DescribeCapRequest::setBegTime(long begTime) {
begTime_ = begTime;
setParameter(std::string("BegTime"), std::to_string(begTime));
}
std::string DescribeCapRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeCapRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeCapRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeCapRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeCapRequest::getInstanceType() const {
return instanceType_;
}
void DescribeCapRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeCapRequest::getLang() const {
return lang_;
}
void DescribeCapRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string DescribeCapRequest::getInstanceId() const {
return instanceId_;
}
void DescribeCapRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -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 <alibabacloud/antiddos-public/model/DescribeCapResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeCapResult::DescribeCapResult() :
ServiceResult()
{}
DescribeCapResult::DescribeCapResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCapResult::~DescribeCapResult()
{}
void DescribeCapResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto capUrlNode = value["CapUrl"];
if(!capUrlNode["Url"].isNull())
capUrl_.url = capUrlNode["Url"].asString();
}
DescribeCapResult::CapUrl DescribeCapResult::getCapUrl()const
{
return capUrl_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeDdosCountRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeDdosCountRequest;
DescribeDdosCountRequest::DescribeDdosCountRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeDdosCount") {
setMethod(HttpRequest::Method::Post);
}
DescribeDdosCountRequest::~DescribeDdosCountRequest() {}
std::string DescribeDdosCountRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeDdosCountRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeDdosCountRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeDdosCountRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeDdosCountRequest::getInstanceType() const {
return instanceType_;
}
void DescribeDdosCountRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeDdosCountRequest::getLang() const {
return lang_;
}
void DescribeDdosCountRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,99 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeDdosEventListRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeDdosEventListRequest;
DescribeDdosEventListRequest::DescribeDdosEventListRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeDdosEventList") {
setMethod(HttpRequest::Method::Post);
}
DescribeDdosEventListRequest::~DescribeDdosEventListRequest() {}
std::string DescribeDdosEventListRequest::getInternetIp() const {
return internetIp_;
}
void DescribeDdosEventListRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
std::string DescribeDdosEventListRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeDdosEventListRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
int DescribeDdosEventListRequest::getPageSize() const {
return pageSize_;
}
void DescribeDdosEventListRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeDdosEventListRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeDdosEventListRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeDdosEventListRequest::getInstanceType() const {
return instanceType_;
}
void DescribeDdosEventListRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeDdosEventListRequest::getLang() const {
return lang_;
}
void DescribeDdosEventListRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
int DescribeDdosEventListRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeDdosEventListRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeDdosEventListRequest::getInstanceId() const {
return instanceId_;
}
void DescribeDdosEventListRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeDdosEventListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeDdosEventListResult::DescribeDdosEventListResult() :
ServiceResult()
{}
DescribeDdosEventListResult::DescribeDdosEventListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDdosEventListResult::~DescribeDdosEventListResult()
{}
void DescribeDdosEventListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDdosEventListNode = value["DdosEventList"]["DdosEvent"];
for (auto valueDdosEventListDdosEvent : allDdosEventListNode)
{
DdosEvent ddosEventListObject;
if(!valueDdosEventListDdosEvent["DdosType"].isNull())
ddosEventListObject.ddosType = valueDdosEventListDdosEvent["DdosType"].asString();
if(!valueDdosEventListDdosEvent["EndTime"].isNull())
ddosEventListObject.endTime = std::stol(valueDdosEventListDdosEvent["EndTime"].asString());
if(!valueDdosEventListDdosEvent["StartTime"].isNull())
ddosEventListObject.startTime = std::stol(valueDdosEventListDdosEvent["StartTime"].asString());
if(!valueDdosEventListDdosEvent["DelayTime"].isNull())
ddosEventListObject.delayTime = std::stol(valueDdosEventListDdosEvent["DelayTime"].asString());
if(!valueDdosEventListDdosEvent["DdosStatus"].isNull())
ddosEventListObject.ddosStatus = valueDdosEventListDdosEvent["DdosStatus"].asString();
if(!valueDdosEventListDdosEvent["UnBlackholeTime"].isNull())
ddosEventListObject.unBlackholeTime = std::stol(valueDdosEventListDdosEvent["UnBlackholeTime"].asString());
ddosEventList_.push_back(ddosEventListObject);
}
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::vector<DescribeDdosEventListResult::DdosEvent> DescribeDdosEventListResult::getDdosEventList()const
{
return ddosEventList_;
}
int DescribeDdosEventListResult::getTotal()const
{
return total_;
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeDdosThresholdRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeDdosThresholdRequest;
DescribeDdosThresholdRequest::DescribeDdosThresholdRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeDdosThreshold") {
setMethod(HttpRequest::Method::Post);
}
DescribeDdosThresholdRequest::~DescribeDdosThresholdRequest() {}
std::string DescribeDdosThresholdRequest::getDdosType() const {
return ddosType_;
}
void DescribeDdosThresholdRequest::setDdosType(const std::string &ddosType) {
ddosType_ = ddosType;
setParameter(std::string("DdosType"), ddosType);
}
std::string DescribeDdosThresholdRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeDdosThresholdRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeDdosThresholdRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeDdosThresholdRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeDdosThresholdRequest::getInstanceType() const {
return instanceType_;
}
void DescribeDdosThresholdRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeDdosThresholdRequest::getLang() const {
return lang_;
}
void DescribeDdosThresholdRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::vector<std::string> DescribeDdosThresholdRequest::getInstanceIds() const {
return instanceIds_;
}
void DescribeDdosThresholdRequest::setInstanceIds(const std::vector<std::string> &instanceIds) {
instanceIds_ = instanceIds;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeDdosThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeDdosThresholdResult::DescribeDdosThresholdResult() :
ServiceResult()
{}
DescribeDdosThresholdResult::DescribeDdosThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDdosThresholdResult::~DescribeDdosThresholdResult()
{}
void DescribeDdosThresholdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allThresholdsNode = value["Thresholds"]["Threshold"];
for (auto valueThresholdsThreshold : allThresholdsNode)
{
Threshold thresholdsObject;
if(!valueThresholdsThreshold["DdosType"].isNull())
thresholdsObject.ddosType = valueThresholdsThreshold["DdosType"].asString();
if(!valueThresholdsThreshold["IsAuto"].isNull())
thresholdsObject.isAuto = valueThresholdsThreshold["IsAuto"].asString() == "true";
if(!valueThresholdsThreshold["MaxBps"].isNull())
thresholdsObject.maxBps = std::stoi(valueThresholdsThreshold["MaxBps"].asString());
if(!valueThresholdsThreshold["ElasticBps"].isNull())
thresholdsObject.elasticBps = std::stoi(valueThresholdsThreshold["ElasticBps"].asString());
if(!valueThresholdsThreshold["InstanceId"].isNull())
thresholdsObject.instanceId = valueThresholdsThreshold["InstanceId"].asString();
if(!valueThresholdsThreshold["Bps"].isNull())
thresholdsObject.bps = std::stoi(valueThresholdsThreshold["Bps"].asString());
if(!valueThresholdsThreshold["Pps"].isNull())
thresholdsObject.pps = std::stoi(valueThresholdsThreshold["Pps"].asString());
if(!valueThresholdsThreshold["MaxPps"].isNull())
thresholdsObject.maxPps = std::stoi(valueThresholdsThreshold["MaxPps"].asString());
if(!valueThresholdsThreshold["InternetIp"].isNull())
thresholdsObject.internetIp = valueThresholdsThreshold["InternetIp"].asString();
thresholds_.push_back(thresholdsObject);
}
}
std::vector<DescribeDdosThresholdResult::Threshold> DescribeDdosThresholdResult::getThresholds()const
{
return thresholds_;
}

View File

@@ -0,0 +1,144 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeInstanceIpAddressRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeInstanceIpAddressRequest;
DescribeInstanceIpAddressRequest::DescribeInstanceIpAddressRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeInstanceIpAddress") {
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceIpAddressRequest::~DescribeInstanceIpAddressRequest() {}
std::string DescribeInstanceIpAddressRequest::getEagleEyeRpcId() const {
return eagleEyeRpcId_;
}
void DescribeInstanceIpAddressRequest::setEagleEyeRpcId(const std::string &eagleEyeRpcId) {
eagleEyeRpcId_ = eagleEyeRpcId;
setBodyParameter(std::string("EagleEyeRpcId"), eagleEyeRpcId);
}
std::string DescribeInstanceIpAddressRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeInstanceIpAddressRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeInstanceIpAddressRequest::getEagleEyeTraceId() const {
return eagleEyeTraceId_;
}
void DescribeInstanceIpAddressRequest::setEagleEyeTraceId(const std::string &eagleEyeTraceId) {
eagleEyeTraceId_ = eagleEyeTraceId;
setBodyParameter(std::string("EagleEyeTraceId"), eagleEyeTraceId);
}
int DescribeInstanceIpAddressRequest::getPageSize() const {
return pageSize_;
}
void DescribeInstanceIpAddressRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeInstanceIpAddressRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeInstanceIpAddressRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeInstanceIpAddressRequest::getInstanceType() const {
return instanceType_;
}
void DescribeInstanceIpAddressRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeInstanceIpAddressRequest::getLang() const {
return lang_;
}
void DescribeInstanceIpAddressRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string DescribeInstanceIpAddressRequest::getDdosStatus() const {
return ddosStatus_;
}
void DescribeInstanceIpAddressRequest::setDdosStatus(const std::string &ddosStatus) {
ddosStatus_ = ddosStatus;
setParameter(std::string("DdosStatus"), ddosStatus);
}
int DescribeInstanceIpAddressRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeInstanceIpAddressRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeInstanceIpAddressRequest::getInstanceName() const {
return instanceName_;
}
void DescribeInstanceIpAddressRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
std::string DescribeInstanceIpAddressRequest::getInstanceId() const {
return instanceId_;
}
void DescribeInstanceIpAddressRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DescribeInstanceIpAddressRequest::getEagleEyeUserData() const {
return eagleEyeUserData_;
}
void DescribeInstanceIpAddressRequest::setEagleEyeUserData(const std::string &eagleEyeUserData) {
eagleEyeUserData_ = eagleEyeUserData;
setBodyParameter(std::string("EagleEyeUserData"), eagleEyeUserData);
}
std::string DescribeInstanceIpAddressRequest::getInstanceIp() const {
return instanceIp_;
}
void DescribeInstanceIpAddressRequest::setInstanceIp(const std::string &instanceIp) {
instanceIp_ = instanceIp;
setParameter(std::string("InstanceIp"), instanceIp);
}

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeInstanceIpAddressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeInstanceIpAddressResult::DescribeInstanceIpAddressResult() :
ServiceResult()
{}
DescribeInstanceIpAddressResult::DescribeInstanceIpAddressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceIpAddressResult::~DescribeInstanceIpAddressResult()
{}
void DescribeInstanceIpAddressResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceListNode = value["InstanceList"]["Instance"];
for (auto valueInstanceListInstance : allInstanceListNode)
{
Instance instanceListObject;
if(!valueInstanceListInstance["InstanceId"].isNull())
instanceListObject.instanceId = valueInstanceListInstance["InstanceId"].asString();
if(!valueInstanceListInstance["InstanceType"].isNull())
instanceListObject.instanceType = valueInstanceListInstance["InstanceType"].asString();
if(!valueInstanceListInstance["InstanceName"].isNull())
instanceListObject.instanceName = valueInstanceListInstance["InstanceName"].asString();
if(!valueInstanceListInstance["InstanceStatus"].isNull())
instanceListObject.instanceStatus = valueInstanceListInstance["InstanceStatus"].asString();
auto allIpAddressConfigNode = valueInstanceListInstance["IpAddressConfig"]["IpAddressConfigItem"];
for (auto valueInstanceListInstanceIpAddressConfigIpAddressConfigItem : allIpAddressConfigNode)
{
Instance::IpAddressConfigItem ipAddressConfigObject;
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["InstanceIp"].isNull())
ipAddressConfigObject.instanceIp = valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["InstanceIp"].asString();
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["IsBgppack"].isNull())
ipAddressConfigObject.isBgppack = valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["IsBgppack"].asString() == "true";
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["IpVersion"].isNull())
ipAddressConfigObject.ipVersion = valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["IpVersion"].asString();
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["IpStatus"].isNull())
ipAddressConfigObject.ipStatus = valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["IpStatus"].asString();
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["RegionId"].isNull())
ipAddressConfigObject.regionId = valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["RegionId"].asString();
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["ElasticThreshold"].isNull())
ipAddressConfigObject.elasticThreshold = std::stoi(valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["ElasticThreshold"].asString());
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["BlackholeThreshold"].isNull())
ipAddressConfigObject.blackholeThreshold = std::stoi(valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["BlackholeThreshold"].asString());
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["DefenseBpsThreshold"].isNull())
ipAddressConfigObject.defenseBpsThreshold = std::stoi(valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["DefenseBpsThreshold"].asString());
if(!valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["DefensePpsThreshold"].isNull())
ipAddressConfigObject.defensePpsThreshold = std::stoi(valueInstanceListInstanceIpAddressConfigIpAddressConfigItem["DefensePpsThreshold"].asString());
instanceListObject.ipAddressConfig.push_back(ipAddressConfigObject);
}
instanceList_.push_back(instanceListObject);
}
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
int DescribeInstanceIpAddressResult::getTotal()const
{
return total_;
}
std::vector<DescribeInstanceIpAddressResult::Instance> DescribeInstanceIpAddressResult::getInstanceList()const
{
return instanceList_;
}

View File

@@ -0,0 +1,144 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeInstanceRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeInstanceRequest;
DescribeInstanceRequest::DescribeInstanceRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeInstance") {
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceRequest::~DescribeInstanceRequest() {}
std::string DescribeInstanceRequest::getEagleEyeRpcId() const {
return eagleEyeRpcId_;
}
void DescribeInstanceRequest::setEagleEyeRpcId(const std::string &eagleEyeRpcId) {
eagleEyeRpcId_ = eagleEyeRpcId;
setBodyParameter(std::string("eagleEyeRpcId"), eagleEyeRpcId);
}
std::string DescribeInstanceRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeInstanceRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeInstanceRequest::getEagleEyeTraceId() const {
return eagleEyeTraceId_;
}
void DescribeInstanceRequest::setEagleEyeTraceId(const std::string &eagleEyeTraceId) {
eagleEyeTraceId_ = eagleEyeTraceId;
setBodyParameter(std::string("eagleEyeTraceId"), eagleEyeTraceId);
}
int DescribeInstanceRequest::getPageSize() const {
return pageSize_;
}
void DescribeInstanceRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeInstanceRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeInstanceRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeInstanceRequest::getInstanceType() const {
return instanceType_;
}
void DescribeInstanceRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeInstanceRequest::getLang() const {
return lang_;
}
void DescribeInstanceRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string DescribeInstanceRequest::getDdosStatus() const {
return ddosStatus_;
}
void DescribeInstanceRequest::setDdosStatus(const std::string &ddosStatus) {
ddosStatus_ = ddosStatus;
setParameter(std::string("DdosStatus"), ddosStatus);
}
int DescribeInstanceRequest::getCurrentPage() const {
return currentPage_;
}
void DescribeInstanceRequest::setCurrentPage(int currentPage) {
currentPage_ = currentPage;
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
}
std::string DescribeInstanceRequest::getInstanceName() const {
return instanceName_;
}
void DescribeInstanceRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}
std::string DescribeInstanceRequest::getInstanceId() const {
return instanceId_;
}
void DescribeInstanceRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string DescribeInstanceRequest::getEagleEyeUserData() const {
return eagleEyeUserData_;
}
void DescribeInstanceRequest::setEagleEyeUserData(const std::string &eagleEyeUserData) {
eagleEyeUserData_ = eagleEyeUserData;
setBodyParameter(std::string("eagleEyeUserData"), eagleEyeUserData);
}
std::string DescribeInstanceRequest::getInstanceIp() const {
return instanceIp_;
}
void DescribeInstanceRequest::setInstanceIp(const std::string &instanceIp) {
instanceIp_ = instanceIp;
setParameter(std::string("InstanceIp"), instanceIp);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/DescribeInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeInstanceResult::DescribeInstanceResult() :
ServiceResult()
{}
DescribeInstanceResult::DescribeInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceResult::~DescribeInstanceResult()
{}
void DescribeInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceListNode = value["InstanceList"]["Instance"];
for (auto valueInstanceListInstance : allInstanceListNode)
{
Instance instanceListObject;
if(!valueInstanceListInstance["InstanceIp"].isNull())
instanceListObject.instanceIp = valueInstanceListInstance["InstanceIp"].asString();
if(!valueInstanceListInstance["IsBgppack"].isNull())
instanceListObject.isBgppack = valueInstanceListInstance["IsBgppack"].asString() == "true";
if(!valueInstanceListInstance["IpVersion"].isNull())
instanceListObject.ipVersion = valueInstanceListInstance["IpVersion"].asString();
if(!valueInstanceListInstance["ElasticThreshold"].isNull())
instanceListObject.elasticThreshold = std::stoi(valueInstanceListInstance["ElasticThreshold"].asString());
if(!valueInstanceListInstance["BlackholeThreshold"].isNull())
instanceListObject.blackholeThreshold = std::stoi(valueInstanceListInstance["BlackholeThreshold"].asString());
if(!valueInstanceListInstance["DefenseBpsThreshold"].isNull())
instanceListObject.defenseBpsThreshold = std::stoi(valueInstanceListInstance["DefenseBpsThreshold"].asString());
if(!valueInstanceListInstance["InstanceName"].isNull())
instanceListObject.instanceName = valueInstanceListInstance["InstanceName"].asString();
if(!valueInstanceListInstance["InstanceStatus"].isNull())
instanceListObject.instanceStatus = valueInstanceListInstance["InstanceStatus"].asString();
if(!valueInstanceListInstance["DefensePpsThreshold"].isNull())
instanceListObject.defensePpsThreshold = std::stoi(valueInstanceListInstance["DefensePpsThreshold"].asString());
if(!valueInstanceListInstance["InstanceId"].isNull())
instanceListObject.instanceId = valueInstanceListInstance["InstanceId"].asString();
if(!valueInstanceListInstance["InstanceType"].isNull())
instanceListObject.instanceType = valueInstanceListInstance["InstanceType"].asString();
instanceList_.push_back(instanceListObject);
}
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
int DescribeInstanceResult::getTotal()const
{
return total_;
}
std::vector<DescribeInstanceResult::Instance> DescribeInstanceResult::getInstanceList()const
{
return instanceList_;
}

View File

@@ -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 <alibabacloud/antiddos-public/model/DescribeIpDdosThresholdRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeIpDdosThresholdRequest;
DescribeIpDdosThresholdRequest::DescribeIpDdosThresholdRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeIpDdosThreshold") {
setMethod(HttpRequest::Method::Post);
}
DescribeIpDdosThresholdRequest::~DescribeIpDdosThresholdRequest() {}
std::string DescribeIpDdosThresholdRequest::getInternetIp() const {
return internetIp_;
}
void DescribeIpDdosThresholdRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
std::string DescribeIpDdosThresholdRequest::getDdosType() const {
return ddosType_;
}
void DescribeIpDdosThresholdRequest::setDdosType(const std::string &ddosType) {
ddosType_ = ddosType;
setParameter(std::string("DdosType"), ddosType);
}
std::string DescribeIpDdosThresholdRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeIpDdosThresholdRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeIpDdosThresholdRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void DescribeIpDdosThresholdRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string DescribeIpDdosThresholdRequest::getInstanceType() const {
return instanceType_;
}
void DescribeIpDdosThresholdRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string DescribeIpDdosThresholdRequest::getLang() const {
return lang_;
}
void DescribeIpDdosThresholdRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string DescribeIpDdosThresholdRequest::getInstanceId() const {
return instanceId_;
}
void DescribeIpDdosThresholdRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

@@ -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.
*/
#include <alibabacloud/antiddos-public/model/DescribeIpDdosThresholdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeIpDdosThresholdResult::DescribeIpDdosThresholdResult() :
ServiceResult()
{}
DescribeIpDdosThresholdResult::DescribeIpDdosThresholdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIpDdosThresholdResult::~DescribeIpDdosThresholdResult()
{}
void DescribeIpDdosThresholdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto thresholdNode = value["Threshold"];
if(!thresholdNode["DdosType"].isNull())
threshold_.ddosType = thresholdNode["DdosType"].asString();
if(!thresholdNode["IsAuto"].isNull())
threshold_.isAuto = thresholdNode["IsAuto"].asString() == "true";
if(!thresholdNode["MaxBps"].isNull())
threshold_.maxBps = std::stoi(thresholdNode["MaxBps"].asString());
if(!thresholdNode["ElasticBps"].isNull())
threshold_.elasticBps = std::stoi(thresholdNode["ElasticBps"].asString());
if(!thresholdNode["InstanceId"].isNull())
threshold_.instanceId = thresholdNode["InstanceId"].asString();
if(!thresholdNode["Bps"].isNull())
threshold_.bps = std::stoi(thresholdNode["Bps"].asString());
if(!thresholdNode["Pps"].isNull())
threshold_.pps = std::stoi(thresholdNode["Pps"].asString());
if(!thresholdNode["MaxPps"].isNull())
threshold_.maxPps = std::stoi(thresholdNode["MaxPps"].asString());
if(!thresholdNode["InternetIp"].isNull())
threshold_.internetIp = thresholdNode["InternetIp"].asString();
}
DescribeIpDdosThresholdResult::Threshold DescribeIpDdosThresholdResult::getThreshold()const
{
return threshold_;
}

View File

@@ -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 <alibabacloud/antiddos-public/model/DescribeIpLocationServiceRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeIpLocationServiceRequest;
DescribeIpLocationServiceRequest::DescribeIpLocationServiceRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeIpLocationService") {
setMethod(HttpRequest::Method::Post);
}
DescribeIpLocationServiceRequest::~DescribeIpLocationServiceRequest() {}
std::string DescribeIpLocationServiceRequest::getInternetIp() const {
return internetIp_;
}
void DescribeIpLocationServiceRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
std::string DescribeIpLocationServiceRequest::getEagleEyeRpcId() const {
return eagleEyeRpcId_;
}
void DescribeIpLocationServiceRequest::setEagleEyeRpcId(const std::string &eagleEyeRpcId) {
eagleEyeRpcId_ = eagleEyeRpcId;
setBodyParameter(std::string("EagleEyeRpcId"), eagleEyeRpcId);
}
std::string DescribeIpLocationServiceRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeIpLocationServiceRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeIpLocationServiceRequest::getEagleEyeTraceId() const {
return eagleEyeTraceId_;
}
void DescribeIpLocationServiceRequest::setEagleEyeTraceId(const std::string &eagleEyeTraceId) {
eagleEyeTraceId_ = eagleEyeTraceId;
setBodyParameter(std::string("EagleEyeTraceId"), eagleEyeTraceId);
}
std::string DescribeIpLocationServiceRequest::getLang() const {
return lang_;
}
void DescribeIpLocationServiceRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string DescribeIpLocationServiceRequest::getEagleEyeUserData() const {
return eagleEyeUserData_;
}
void DescribeIpLocationServiceRequest::setEagleEyeUserData(const std::string &eagleEyeUserData) {
eagleEyeUserData_ = eagleEyeUserData;
setBodyParameter(std::string("EagleEyeUserData"), eagleEyeUserData);
}

View File

@@ -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 <alibabacloud/antiddos-public/model/DescribeIpLocationServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Antiddos_public;
using namespace AlibabaCloud::Antiddos_public::Model;
DescribeIpLocationServiceResult::DescribeIpLocationServiceResult() :
ServiceResult()
{}
DescribeIpLocationServiceResult::DescribeIpLocationServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIpLocationServiceResult::~DescribeIpLocationServiceResult()
{}
void DescribeIpLocationServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto instanceNode = value["Instance"];
if(!instanceNode["InstanceId"].isNull())
instance_.instanceId = instanceNode["InstanceId"].asString();
if(!instanceNode["InstanceName"].isNull())
instance_.instanceName = instanceNode["InstanceName"].asString();
if(!instanceNode["InternetIp"].isNull())
instance_.internetIp = instanceNode["InternetIp"].asString();
if(!instanceNode["InstanceType"].isNull())
instance_.instanceType = instanceNode["InstanceType"].asString();
if(!instanceNode["Region"].isNull())
instance_.region = instanceNode["Region"].asString();
}
DescribeIpLocationServiceResult::Instance DescribeIpLocationServiceResult::getInstance()const
{
return instance_;
}

View File

@@ -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 <alibabacloud/antiddos-public/model/DescribeRegionsRequest.h>
using AlibabaCloud::Antiddos_public::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "DescribeRegions") {
setMethod(HttpRequest::Method::Post);
}
DescribeRegionsRequest::~DescribeRegionsRequest() {}
std::string DescribeRegionsRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeRegionsRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeRegionsRequest::getLang() const {
return lang_;
}
void DescribeRegionsRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}

View File

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

View File

@@ -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 <alibabacloud/antiddos-public/model/ModifyDdosStatusRequest.h>
using AlibabaCloud::Antiddos_public::Model::ModifyDdosStatusRequest;
ModifyDdosStatusRequest::ModifyDdosStatusRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "ModifyDdosStatus") {
setMethod(HttpRequest::Method::Post);
}
ModifyDdosStatusRequest::~ModifyDdosStatusRequest() {}
std::string ModifyDdosStatusRequest::getInternetIp() const {
return internetIp_;
}
void ModifyDdosStatusRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
std::string ModifyDdosStatusRequest::getSourceIp() const {
return sourceIp_;
}
void ModifyDdosStatusRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ModifyDdosStatusRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void ModifyDdosStatusRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string ModifyDdosStatusRequest::getInstanceType() const {
return instanceType_;
}
void ModifyDdosStatusRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string ModifyDdosStatusRequest::getLang() const {
return lang_;
}
void ModifyDdosStatusRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string ModifyDdosStatusRequest::getInstanceId() const {
return instanceId_;
}
void ModifyDdosStatusRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}

View File

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

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/ModifyDefenseThresholdRequest.h>
using AlibabaCloud::Antiddos_public::Model::ModifyDefenseThresholdRequest;
ModifyDefenseThresholdRequest::ModifyDefenseThresholdRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "ModifyDefenseThreshold") {
setMethod(HttpRequest::Method::Post);
}
ModifyDefenseThresholdRequest::~ModifyDefenseThresholdRequest() {}
std::string ModifyDefenseThresholdRequest::getInternetIp() const {
return internetIp_;
}
void ModifyDefenseThresholdRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
std::string ModifyDefenseThresholdRequest::getSourceIp() const {
return sourceIp_;
}
void ModifyDefenseThresholdRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ModifyDefenseThresholdRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void ModifyDefenseThresholdRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string ModifyDefenseThresholdRequest::getInstanceType() const {
return instanceType_;
}
void ModifyDefenseThresholdRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string ModifyDefenseThresholdRequest::getLang() const {
return lang_;
}
void ModifyDefenseThresholdRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
int ModifyDefenseThresholdRequest::getBps() const {
return bps_;
}
void ModifyDefenseThresholdRequest::setBps(int bps) {
bps_ = bps;
setParameter(std::string("Bps"), std::to_string(bps));
}
int ModifyDefenseThresholdRequest::getPps() const {
return pps_;
}
void ModifyDefenseThresholdRequest::setPps(int pps) {
pps_ = pps;
setParameter(std::string("Pps"), std::to_string(pps));
}
std::string ModifyDefenseThresholdRequest::getInstanceId() const {
return instanceId_;
}
void ModifyDefenseThresholdRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
bool ModifyDefenseThresholdRequest::getIsAuto() const {
return isAuto_;
}
void ModifyDefenseThresholdRequest::setIsAuto(bool isAuto) {
isAuto_ = isAuto;
setParameter(std::string("IsAuto"), isAuto ? "true" : "false");
}

View File

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

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/antiddos-public/model/ModifyIpDefenseThresholdRequest.h>
using AlibabaCloud::Antiddos_public::Model::ModifyIpDefenseThresholdRequest;
ModifyIpDefenseThresholdRequest::ModifyIpDefenseThresholdRequest()
: RpcServiceRequest("antiddos-public", "2017-05-18", "ModifyIpDefenseThreshold") {
setMethod(HttpRequest::Method::Post);
}
ModifyIpDefenseThresholdRequest::~ModifyIpDefenseThresholdRequest() {}
std::string ModifyIpDefenseThresholdRequest::getInternetIp() const {
return internetIp_;
}
void ModifyIpDefenseThresholdRequest::setInternetIp(const std::string &internetIp) {
internetIp_ = internetIp;
setParameter(std::string("InternetIp"), internetIp);
}
std::string ModifyIpDefenseThresholdRequest::getSourceIp() const {
return sourceIp_;
}
void ModifyIpDefenseThresholdRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string ModifyIpDefenseThresholdRequest::getDdosRegionId() const {
return ddosRegionId_;
}
void ModifyIpDefenseThresholdRequest::setDdosRegionId(const std::string &ddosRegionId) {
ddosRegionId_ = ddosRegionId;
setParameter(std::string("DdosRegionId"), ddosRegionId);
}
std::string ModifyIpDefenseThresholdRequest::getInstanceType() const {
return instanceType_;
}
void ModifyIpDefenseThresholdRequest::setInstanceType(const std::string &instanceType) {
instanceType_ = instanceType;
setParameter(std::string("InstanceType"), instanceType);
}
std::string ModifyIpDefenseThresholdRequest::getLang() const {
return lang_;
}
void ModifyIpDefenseThresholdRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
int ModifyIpDefenseThresholdRequest::getBps() const {
return bps_;
}
void ModifyIpDefenseThresholdRequest::setBps(int bps) {
bps_ = bps;
setParameter(std::string("Bps"), std::to_string(bps));
}
int ModifyIpDefenseThresholdRequest::getPps() const {
return pps_;
}
void ModifyIpDefenseThresholdRequest::setPps(int pps) {
pps_ = pps;
setParameter(std::string("Pps"), std::to_string(pps));
}
std::string ModifyIpDefenseThresholdRequest::getInstanceId() const {
return instanceId_;
}
void ModifyIpDefenseThresholdRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
bool ModifyIpDefenseThresholdRequest::getIsAuto() const {
return isAuto_;
}
void ModifyIpDefenseThresholdRequest::setIsAuto(bool isAuto) {
isAuto_ = isAuto;
setParameter(std::string("IsAuto"), isAuto ? "true" : "false");
}

View File

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

View File

@@ -21,16 +21,24 @@ set(arms_public_header
include/alibabacloud/arms/ARMSExport.h )
set(arms_public_header_model
include/alibabacloud/arms/model/AddAliClusterIdsToPrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/AddAliClusterIdsToPrometheusGlobalViewResult.h
include/alibabacloud/arms/model/AddGrafanaRequest.h
include/alibabacloud/arms/model/AddGrafanaResult.h
include/alibabacloud/arms/model/AddIntegrationRequest.h
include/alibabacloud/arms/model/AddIntegrationResult.h
include/alibabacloud/arms/model/AddPrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/AddPrometheusGlobalViewResult.h
include/alibabacloud/arms/model/AddPrometheusGlobalViewByAliClusterIdsRequest.h
include/alibabacloud/arms/model/AddPrometheusGlobalViewByAliClusterIdsResult.h
include/alibabacloud/arms/model/AddPrometheusInstanceRequest.h
include/alibabacloud/arms/model/AddPrometheusInstanceResult.h
include/alibabacloud/arms/model/AddRecordingRuleRequest.h
include/alibabacloud/arms/model/AddRecordingRuleResult.h
include/alibabacloud/arms/model/AppendInstancesToPrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/AppendInstancesToPrometheusGlobalViewResult.h
include/alibabacloud/arms/model/ApplyScenarioRequest.h
include/alibabacloud/arms/model/ApplyScenarioResult.h
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingResult.h
include/alibabacloud/arms/model/CheckServiceStatusRequest.h
include/alibabacloud/arms/model/CheckServiceStatusResult.h
include/alibabacloud/arms/model/ConfigAppRequest.h
@@ -39,122 +47,210 @@ set(arms_public_header_model
include/alibabacloud/arms/model/CreateAlertContactResult.h
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
include/alibabacloud/arms/model/CreateAlertContactGroupResult.h
include/alibabacloud/arms/model/CreateAlertTemplateRequest.h
include/alibabacloud/arms/model/CreateAlertTemplateResult.h
include/alibabacloud/arms/model/CreateDispatchRuleRequest.h
include/alibabacloud/arms/model/CreateDispatchRuleResult.h
include/alibabacloud/arms/model/CreateIntegrationRequest.h
include/alibabacloud/arms/model/CreateIntegrationResult.h
include/alibabacloud/arms/model/CreateOrUpdateAlertRuleRequest.h
include/alibabacloud/arms/model/CreateOrUpdateAlertRuleResult.h
include/alibabacloud/arms/model/CreateOrUpdateContactRequest.h
include/alibabacloud/arms/model/CreateOrUpdateContactResult.h
include/alibabacloud/arms/model/CreateOrUpdateContactGroupRequest.h
include/alibabacloud/arms/model/CreateOrUpdateContactGroupResult.h
include/alibabacloud/arms/model/CreateOrUpdateEventBridgeIntegrationRequest.h
include/alibabacloud/arms/model/CreateOrUpdateEventBridgeIntegrationResult.h
include/alibabacloud/arms/model/CreateOrUpdateIMRobotRequest.h
include/alibabacloud/arms/model/CreateOrUpdateIMRobotResult.h
include/alibabacloud/arms/model/CreateOrUpdateNotificationPolicyRequest.h
include/alibabacloud/arms/model/CreateOrUpdateNotificationPolicyResult.h
include/alibabacloud/arms/model/CreateOrUpdateSilencePolicyRequest.h
include/alibabacloud/arms/model/CreateOrUpdateSilencePolicyResult.h
include/alibabacloud/arms/model/CreateOrUpdateWebhookContactRequest.h
include/alibabacloud/arms/model/CreateOrUpdateWebhookContactResult.h
include/alibabacloud/arms/model/CreatePrometheusAlertRuleRequest.h
include/alibabacloud/arms/model/CreatePrometheusAlertRuleResult.h
include/alibabacloud/arms/model/CreateRetcodeAppRequest.h
include/alibabacloud/arms/model/CreateRetcodeAppResult.h
include/alibabacloud/arms/model/CreateSyntheticTaskRequest.h
include/alibabacloud/arms/model/CreateSyntheticTaskResult.h
include/alibabacloud/arms/model/CreateWebhookRequest.h
include/alibabacloud/arms/model/CreateWebhookResult.h
include/alibabacloud/arms/model/CreateWehookRequest.h
include/alibabacloud/arms/model/CreateWehookResult.h
include/alibabacloud/arms/model/DelAuthTokenRequest.h
include/alibabacloud/arms/model/DelAuthTokenResult.h
include/alibabacloud/arms/model/DeleteAlertContactRequest.h
include/alibabacloud/arms/model/DeleteAlertContactResult.h
include/alibabacloud/arms/model/DeleteAlertContactGroupRequest.h
include/alibabacloud/arms/model/DeleteAlertContactGroupResult.h
include/alibabacloud/arms/model/DeleteAlertRuleRequest.h
include/alibabacloud/arms/model/DeleteAlertRuleResult.h
include/alibabacloud/arms/model/DeleteAlertRulesRequest.h
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
include/alibabacloud/arms/model/DeleteAlertTemplateRequest.h
include/alibabacloud/arms/model/DeleteAlertTemplateResult.h
include/alibabacloud/arms/model/DeleteCmsExporterRequest.h
include/alibabacloud/arms/model/DeleteCmsExporterResult.h
include/alibabacloud/arms/model/DeleteContactRequest.h
include/alibabacloud/arms/model/DeleteContactResult.h
include/alibabacloud/arms/model/DeleteContactGroupRequest.h
include/alibabacloud/arms/model/DeleteContactGroupResult.h
include/alibabacloud/arms/model/DeleteDispatchRuleRequest.h
include/alibabacloud/arms/model/DeleteDispatchRuleResult.h
include/alibabacloud/arms/model/DeleteEventBridgeIntegrationRequest.h
include/alibabacloud/arms/model/DeleteEventBridgeIntegrationResult.h
include/alibabacloud/arms/model/DeleteGrafanaResourceRequest.h
include/alibabacloud/arms/model/DeleteGrafanaResourceResult.h
include/alibabacloud/arms/model/DeleteIMRobotRequest.h
include/alibabacloud/arms/model/DeleteIMRobotResult.h
include/alibabacloud/arms/model/DeleteIntegrationRequest.h
include/alibabacloud/arms/model/DeleteIntegrationResult.h
include/alibabacloud/arms/model/DeleteIntegrationsRequest.h
include/alibabacloud/arms/model/DeleteIntegrationsResult.h
include/alibabacloud/arms/model/DeleteNotificationPolicyRequest.h
include/alibabacloud/arms/model/DeleteNotificationPolicyResult.h
include/alibabacloud/arms/model/DeletePrometheusAlertRuleRequest.h
include/alibabacloud/arms/model/DeletePrometheusAlertRuleResult.h
include/alibabacloud/arms/model/DeletePrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/DeletePrometheusGlobalViewResult.h
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
include/alibabacloud/arms/model/DeleteScenarioRequest.h
include/alibabacloud/arms/model/DeleteScenarioResult.h
include/alibabacloud/arms/model/DeleteSilencePolicyRequest.h
include/alibabacloud/arms/model/DeleteSilencePolicyResult.h
include/alibabacloud/arms/model/DeleteSourceMapRequest.h
include/alibabacloud/arms/model/DeleteSourceMapResult.h
include/alibabacloud/arms/model/DeleteSyntheticTaskRequest.h
include/alibabacloud/arms/model/DeleteSyntheticTaskResult.h
include/alibabacloud/arms/model/DeleteTraceAppRequest.h
include/alibabacloud/arms/model/DeleteTraceAppResult.h
include/alibabacloud/arms/model/DeleteWebhookContactRequest.h
include/alibabacloud/arms/model/DeleteWebhookContactResult.h
include/alibabacloud/arms/model/DescribeContactGroupsRequest.h
include/alibabacloud/arms/model/DescribeContactGroupsResult.h
include/alibabacloud/arms/model/DescribeContactsRequest.h
include/alibabacloud/arms/model/DescribeContactsResult.h
include/alibabacloud/arms/model/DescribeDispatchRuleRequest.h
include/alibabacloud/arms/model/DescribeDispatchRuleResult.h
include/alibabacloud/arms/model/DescribeIMRobotsRequest.h
include/alibabacloud/arms/model/DescribeIMRobotsResult.h
include/alibabacloud/arms/model/DescribePrometheusAlertRuleRequest.h
include/alibabacloud/arms/model/DescribePrometheusAlertRuleResult.h
include/alibabacloud/arms/model/DescribeTraceLicenseKeyRequest.h
include/alibabacloud/arms/model/DescribeTraceLicenseKeyResult.h
include/alibabacloud/arms/model/DescribeTraceLocationRequest.h
include/alibabacloud/arms/model/DescribeTraceLocationResult.h
include/alibabacloud/arms/model/DisableAlertTemplateRequest.h
include/alibabacloud/arms/model/DisableAlertTemplateResult.h
include/alibabacloud/arms/model/EnableAlertTemplateRequest.h
include/alibabacloud/arms/model/EnableAlertTemplateResult.h
include/alibabacloud/arms/model/ExportPrometheusRulesRequest.h
include/alibabacloud/arms/model/ExportPrometheusRulesResult.h
include/alibabacloud/arms/model/DescribeWebhookContactsRequest.h
include/alibabacloud/arms/model/DescribeWebhookContactsResult.h
include/alibabacloud/arms/model/GetAgentDownloadUrlRequest.h
include/alibabacloud/arms/model/GetAgentDownloadUrlResult.h
include/alibabacloud/arms/model/GetAlertRulesRequest.h
include/alibabacloud/arms/model/GetAlertRulesResult.h
include/alibabacloud/arms/model/GetAppApiByPageRequest.h
include/alibabacloud/arms/model/GetAppApiByPageResult.h
include/alibabacloud/arms/model/GetArmsConsoleUrlRequest.h
include/alibabacloud/arms/model/GetArmsConsoleUrlResult.h
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
include/alibabacloud/arms/model/GetAuthTokenRequest.h
include/alibabacloud/arms/model/GetAuthTokenResult.h
include/alibabacloud/arms/model/GetClusterAllUrlRequest.h
include/alibabacloud/arms/model/GetClusterAllUrlResult.h
include/alibabacloud/arms/model/GetExploreUrlRequest.h
include/alibabacloud/arms/model/GetExploreUrlResult.h
include/alibabacloud/arms/model/GetIntegrationTokenRequest.h
include/alibabacloud/arms/model/GetIntegrationTokenResult.h
include/alibabacloud/arms/model/GetIntegrationStateRequest.h
include/alibabacloud/arms/model/GetIntegrationStateResult.h
include/alibabacloud/arms/model/GetManagedPrometheusStatusRequest.h
include/alibabacloud/arms/model/GetManagedPrometheusStatusResult.h
include/alibabacloud/arms/model/GetMultipleTraceRequest.h
include/alibabacloud/arms/model/GetMultipleTraceResult.h
include/alibabacloud/arms/model/GetOnCallSchedulesDetailRequest.h
include/alibabacloud/arms/model/GetOnCallSchedulesDetailResult.h
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
include/alibabacloud/arms/model/GetPrometheusApiTokenResult.h
include/alibabacloud/arms/model/GetPrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/GetPrometheusGlobalViewResult.h
include/alibabacloud/arms/model/GetRecordingRuleRequest.h
include/alibabacloud/arms/model/GetRecordingRuleResult.h
include/alibabacloud/arms/model/GetRetcodeShareUrlRequest.h
include/alibabacloud/arms/model/GetRetcodeShareUrlResult.h
include/alibabacloud/arms/model/GetSourceMapInfoRequest.h
include/alibabacloud/arms/model/GetSourceMapInfoResult.h
include/alibabacloud/arms/model/GetStackRequest.h
include/alibabacloud/arms/model/GetStackResult.h
include/alibabacloud/arms/model/GetSyntheticTaskDetailRequest.h
include/alibabacloud/arms/model/GetSyntheticTaskDetailResult.h
include/alibabacloud/arms/model/GetSyntheticTaskListRequest.h
include/alibabacloud/arms/model/GetSyntheticTaskListResult.h
include/alibabacloud/arms/model/GetSyntheticTaskMonitorsRequest.h
include/alibabacloud/arms/model/GetSyntheticTaskMonitorsResult.h
include/alibabacloud/arms/model/GetTraceRequest.h
include/alibabacloud/arms/model/GetTraceResult.h
include/alibabacloud/arms/model/GetTraceAppRequest.h
include/alibabacloud/arms/model/GetTraceAppResult.h
include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h
include/alibabacloud/arms/model/ImportAppAlertRulesResult.h
include/alibabacloud/arms/model/ImportCustomAlertRulesRequest.h
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
include/alibabacloud/arms/model/ImportPrometheusRulesRequest.h
include/alibabacloud/arms/model/ImportPrometheusRulesResult.h
include/alibabacloud/arms/model/InstallCmsExporterRequest.h
include/alibabacloud/arms/model/InstallCmsExporterResult.h
include/alibabacloud/arms/model/InstallManagedPrometheusRequest.h
include/alibabacloud/arms/model/InstallManagedPrometheusResult.h
include/alibabacloud/arms/model/ListActivatedAlertsRequest.h
include/alibabacloud/arms/model/ListActivatedAlertsResult.h
include/alibabacloud/arms/model/ListAlertTemplatesRequest.h
include/alibabacloud/arms/model/ListAlertTemplatesResult.h
include/alibabacloud/arms/model/ListAlertEventsRequest.h
include/alibabacloud/arms/model/ListAlertEventsResult.h
include/alibabacloud/arms/model/ListAlertsRequest.h
include/alibabacloud/arms/model/ListAlertsResult.h
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
include/alibabacloud/arms/model/ListCmsInstancesRequest.h
include/alibabacloud/arms/model/ListCmsInstancesResult.h
include/alibabacloud/arms/model/ListDashboardsRequest.h
include/alibabacloud/arms/model/ListDashboardsResult.h
include/alibabacloud/arms/model/ListDashboardsByNameRequest.h
include/alibabacloud/arms/model/ListDashboardsByNameResult.h
include/alibabacloud/arms/model/ListDispatchRuleRequest.h
include/alibabacloud/arms/model/ListDispatchRuleResult.h
include/alibabacloud/arms/model/ListPromClustersRequest.h
include/alibabacloud/arms/model/ListPromClustersResult.h
include/alibabacloud/arms/model/ListEscalationPoliciesRequest.h
include/alibabacloud/arms/model/ListEscalationPoliciesResult.h
include/alibabacloud/arms/model/ListEventBridgeIntegrationsRequest.h
include/alibabacloud/arms/model/ListEventBridgeIntegrationsResult.h
include/alibabacloud/arms/model/ListInsightsEventsRequest.h
include/alibabacloud/arms/model/ListInsightsEventsResult.h
include/alibabacloud/arms/model/ListIntegrationRequest.h
include/alibabacloud/arms/model/ListIntegrationResult.h
include/alibabacloud/arms/model/ListNotificationPoliciesRequest.h
include/alibabacloud/arms/model/ListNotificationPoliciesResult.h
include/alibabacloud/arms/model/ListOnCallSchedulesRequest.h
include/alibabacloud/arms/model/ListOnCallSchedulesResult.h
include/alibabacloud/arms/model/ListPrometheusAlertRulesRequest.h
include/alibabacloud/arms/model/ListPrometheusAlertRulesResult.h
include/alibabacloud/arms/model/ListPrometheusAlertTemplatesRequest.h
include/alibabacloud/arms/model/ListPrometheusAlertTemplatesResult.h
include/alibabacloud/arms/model/ListPrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/ListPrometheusGlobalViewResult.h
include/alibabacloud/arms/model/ListPrometheusInstancesRequest.h
include/alibabacloud/arms/model/ListPrometheusInstancesResult.h
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
include/alibabacloud/arms/model/ListRetcodeAppsResult.h
include/alibabacloud/arms/model/ListScenarioRequest.h
include/alibabacloud/arms/model/ListScenarioResult.h
include/alibabacloud/arms/model/ListServerlessTopNAppsRequest.h
include/alibabacloud/arms/model/ListServerlessTopNAppsResult.h
include/alibabacloud/arms/model/ListSilencePoliciesRequest.h
include/alibabacloud/arms/model/ListSilencePoliciesResult.h
include/alibabacloud/arms/model/ListTraceAppsRequest.h
include/alibabacloud/arms/model/ListTraceAppsResult.h
include/alibabacloud/arms/model/ManageGetRecordingRuleRequest.h
include/alibabacloud/arms/model/ManageGetRecordingRuleResult.h
include/alibabacloud/arms/model/ManageRecordingRuleRequest.h
include/alibabacloud/arms/model/ManageRecordingRuleResult.h
include/alibabacloud/arms/model/OpenArmsDefaultSLRRequest.h
include/alibabacloud/arms/model/OpenArmsDefaultSLRResult.h
include/alibabacloud/arms/model/OpenArmsServiceRequest.h
include/alibabacloud/arms/model/OpenArmsServiceResult.h
include/alibabacloud/arms/model/OpenArmsServiceSecondVersionRequest.h
include/alibabacloud/arms/model/OpenArmsServiceSecondVersionResult.h
include/alibabacloud/arms/model/OpenVClusterRequest.h
include/alibabacloud/arms/model/OpenVClusterResult.h
include/alibabacloud/arms/model/OpenXtraceDefaultSLRRequest.h
include/alibabacloud/arms/model/OpenXtraceDefaultSLRResult.h
include/alibabacloud/arms/model/QueryDatasetRequest.h
include/alibabacloud/arms/model/QueryDatasetResult.h
include/alibabacloud/arms/model/QueryMetricRequest.h
include/alibabacloud/arms/model/QueryMetricResult.h
include/alibabacloud/arms/model/QueryMetricByPageRequest.h
include/alibabacloud/arms/model/QueryMetricByPageResult.h
include/alibabacloud/arms/model/QueryPromInstallStatusRequest.h
include/alibabacloud/arms/model/QueryPromInstallStatusResult.h
include/alibabacloud/arms/model/QueryReleaseMetricRequest.h
include/alibabacloud/arms/model/QueryReleaseMetricResult.h
include/alibabacloud/arms/model/RemoveAliClusterIdsFromPrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/RemoveAliClusterIdsFromPrometheusGlobalViewResult.h
include/alibabacloud/arms/model/RemoveSourcesFromPrometheusGlobalViewRequest.h
include/alibabacloud/arms/model/RemoveSourcesFromPrometheusGlobalViewResult.h
include/alibabacloud/arms/model/SaveTraceAppConfigRequest.h
include/alibabacloud/arms/model/SaveTraceAppConfigResult.h
include/alibabacloud/arms/model/SearchAlertContactRequest.h
@@ -177,43 +273,61 @@ set(arms_public_header_model
include/alibabacloud/arms/model/SearchTracesResult.h
include/alibabacloud/arms/model/SearchTracesByPageRequest.h
include/alibabacloud/arms/model/SearchTracesByPageResult.h
include/alibabacloud/arms/model/SendCustomIncidentsRequest.h
include/alibabacloud/arms/model/SendCustomIncidentsResult.h
include/alibabacloud/arms/model/SendMseIncidentRequest.h
include/alibabacloud/arms/model/SendMseIncidentResult.h
include/alibabacloud/arms/model/SendTTSVerifyLinkRequest.h
include/alibabacloud/arms/model/SendTTSVerifyLinkResult.h
include/alibabacloud/arms/model/SetRetcodeShareStatusRequest.h
include/alibabacloud/arms/model/SetRetcodeShareStatusResult.h
include/alibabacloud/arms/model/StartAlertRequest.h
include/alibabacloud/arms/model/StartAlertResult.h
include/alibabacloud/arms/model/StopAlertRequest.h
include/alibabacloud/arms/model/StopAlertResult.h
include/alibabacloud/arms/model/SwitchSyntheticTaskStatusRequest.h
include/alibabacloud/arms/model/SwitchSyntheticTaskStatusResult.h
include/alibabacloud/arms/model/SyncRecordingRulesRequest.h
include/alibabacloud/arms/model/SyncRecordingRulesResult.h
include/alibabacloud/arms/model/TurnOnSecondSwitchRequest.h
include/alibabacloud/arms/model/TurnOnSecondSwitchResult.h
include/alibabacloud/arms/model/UninstallManagedPrometheusRequest.h
include/alibabacloud/arms/model/UninstallManagedPrometheusResult.h
include/alibabacloud/arms/model/UninstallPromClusterRequest.h
include/alibabacloud/arms/model/UninstallPromClusterResult.h
include/alibabacloud/arms/model/UpdateAlertContactRequest.h
include/alibabacloud/arms/model/UpdateAlertContactResult.h
include/alibabacloud/arms/model/UpdateAlertContactGroupRequest.h
include/alibabacloud/arms/model/UpdateAlertContactGroupResult.h
include/alibabacloud/arms/model/UpdateAlertRuleRequest.h
include/alibabacloud/arms/model/UpdateAlertRuleResult.h
include/alibabacloud/arms/model/UpdateAlertTemplateRequest.h
include/alibabacloud/arms/model/UpdateAlertTemplateResult.h
include/alibabacloud/arms/model/UpdateDispatchRuleRequest.h
include/alibabacloud/arms/model/UpdateDispatchRuleResult.h
include/alibabacloud/arms/model/UpdateIntegrationRequest.h
include/alibabacloud/arms/model/UpdateIntegrationResult.h
include/alibabacloud/arms/model/UpdatePrometheusAlertRuleRequest.h
include/alibabacloud/arms/model/UpdatePrometheusAlertRuleResult.h
include/alibabacloud/arms/model/UpdateWebhookRequest.h
include/alibabacloud/arms/model/UpdateWebhookResult.h )
include/alibabacloud/arms/model/UpdateWebhookResult.h
include/alibabacloud/arms/model/UploadRequest.h
include/alibabacloud/arms/model/UploadResult.h )
set(arms_src
src/ARMSClient.cc
src/model/AddAliClusterIdsToPrometheusGlobalViewRequest.cc
src/model/AddAliClusterIdsToPrometheusGlobalViewResult.cc
src/model/AddGrafanaRequest.cc
src/model/AddGrafanaResult.cc
src/model/AddIntegrationRequest.cc
src/model/AddIntegrationResult.cc
src/model/AddPrometheusGlobalViewRequest.cc
src/model/AddPrometheusGlobalViewResult.cc
src/model/AddPrometheusGlobalViewByAliClusterIdsRequest.cc
src/model/AddPrometheusGlobalViewByAliClusterIdsResult.cc
src/model/AddPrometheusInstanceRequest.cc
src/model/AddPrometheusInstanceResult.cc
src/model/AddRecordingRuleRequest.cc
src/model/AddRecordingRuleResult.cc
src/model/AppendInstancesToPrometheusGlobalViewRequest.cc
src/model/AppendInstancesToPrometheusGlobalViewResult.cc
src/model/ApplyScenarioRequest.cc
src/model/ApplyScenarioResult.cc
src/model/CheckDataConsistencyRequest.cc
src/model/CheckDataConsistencyResult.cc
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
src/model/CheckServiceLinkedRoleForDeletingResult.cc
src/model/CheckServiceStatusRequest.cc
src/model/CheckServiceStatusResult.cc
src/model/ConfigAppRequest.cc
@@ -222,122 +336,210 @@ set(arms_src
src/model/CreateAlertContactResult.cc
src/model/CreateAlertContactGroupRequest.cc
src/model/CreateAlertContactGroupResult.cc
src/model/CreateAlertTemplateRequest.cc
src/model/CreateAlertTemplateResult.cc
src/model/CreateDispatchRuleRequest.cc
src/model/CreateDispatchRuleResult.cc
src/model/CreateIntegrationRequest.cc
src/model/CreateIntegrationResult.cc
src/model/CreateOrUpdateAlertRuleRequest.cc
src/model/CreateOrUpdateAlertRuleResult.cc
src/model/CreateOrUpdateContactRequest.cc
src/model/CreateOrUpdateContactResult.cc
src/model/CreateOrUpdateContactGroupRequest.cc
src/model/CreateOrUpdateContactGroupResult.cc
src/model/CreateOrUpdateEventBridgeIntegrationRequest.cc
src/model/CreateOrUpdateEventBridgeIntegrationResult.cc
src/model/CreateOrUpdateIMRobotRequest.cc
src/model/CreateOrUpdateIMRobotResult.cc
src/model/CreateOrUpdateNotificationPolicyRequest.cc
src/model/CreateOrUpdateNotificationPolicyResult.cc
src/model/CreateOrUpdateSilencePolicyRequest.cc
src/model/CreateOrUpdateSilencePolicyResult.cc
src/model/CreateOrUpdateWebhookContactRequest.cc
src/model/CreateOrUpdateWebhookContactResult.cc
src/model/CreatePrometheusAlertRuleRequest.cc
src/model/CreatePrometheusAlertRuleResult.cc
src/model/CreateRetcodeAppRequest.cc
src/model/CreateRetcodeAppResult.cc
src/model/CreateSyntheticTaskRequest.cc
src/model/CreateSyntheticTaskResult.cc
src/model/CreateWebhookRequest.cc
src/model/CreateWebhookResult.cc
src/model/CreateWehookRequest.cc
src/model/CreateWehookResult.cc
src/model/DelAuthTokenRequest.cc
src/model/DelAuthTokenResult.cc
src/model/DeleteAlertContactRequest.cc
src/model/DeleteAlertContactResult.cc
src/model/DeleteAlertContactGroupRequest.cc
src/model/DeleteAlertContactGroupResult.cc
src/model/DeleteAlertRuleRequest.cc
src/model/DeleteAlertRuleResult.cc
src/model/DeleteAlertRulesRequest.cc
src/model/DeleteAlertRulesResult.cc
src/model/DeleteAlertTemplateRequest.cc
src/model/DeleteAlertTemplateResult.cc
src/model/DeleteCmsExporterRequest.cc
src/model/DeleteCmsExporterResult.cc
src/model/DeleteContactRequest.cc
src/model/DeleteContactResult.cc
src/model/DeleteContactGroupRequest.cc
src/model/DeleteContactGroupResult.cc
src/model/DeleteDispatchRuleRequest.cc
src/model/DeleteDispatchRuleResult.cc
src/model/DeleteEventBridgeIntegrationRequest.cc
src/model/DeleteEventBridgeIntegrationResult.cc
src/model/DeleteGrafanaResourceRequest.cc
src/model/DeleteGrafanaResourceResult.cc
src/model/DeleteIMRobotRequest.cc
src/model/DeleteIMRobotResult.cc
src/model/DeleteIntegrationRequest.cc
src/model/DeleteIntegrationResult.cc
src/model/DeleteIntegrationsRequest.cc
src/model/DeleteIntegrationsResult.cc
src/model/DeleteNotificationPolicyRequest.cc
src/model/DeleteNotificationPolicyResult.cc
src/model/DeletePrometheusAlertRuleRequest.cc
src/model/DeletePrometheusAlertRuleResult.cc
src/model/DeletePrometheusGlobalViewRequest.cc
src/model/DeletePrometheusGlobalViewResult.cc
src/model/DeleteRetcodeAppRequest.cc
src/model/DeleteRetcodeAppResult.cc
src/model/DeleteScenarioRequest.cc
src/model/DeleteScenarioResult.cc
src/model/DeleteSilencePolicyRequest.cc
src/model/DeleteSilencePolicyResult.cc
src/model/DeleteSourceMapRequest.cc
src/model/DeleteSourceMapResult.cc
src/model/DeleteSyntheticTaskRequest.cc
src/model/DeleteSyntheticTaskResult.cc
src/model/DeleteTraceAppRequest.cc
src/model/DeleteTraceAppResult.cc
src/model/DeleteWebhookContactRequest.cc
src/model/DeleteWebhookContactResult.cc
src/model/DescribeContactGroupsRequest.cc
src/model/DescribeContactGroupsResult.cc
src/model/DescribeContactsRequest.cc
src/model/DescribeContactsResult.cc
src/model/DescribeDispatchRuleRequest.cc
src/model/DescribeDispatchRuleResult.cc
src/model/DescribeIMRobotsRequest.cc
src/model/DescribeIMRobotsResult.cc
src/model/DescribePrometheusAlertRuleRequest.cc
src/model/DescribePrometheusAlertRuleResult.cc
src/model/DescribeTraceLicenseKeyRequest.cc
src/model/DescribeTraceLicenseKeyResult.cc
src/model/DescribeTraceLocationRequest.cc
src/model/DescribeTraceLocationResult.cc
src/model/DisableAlertTemplateRequest.cc
src/model/DisableAlertTemplateResult.cc
src/model/EnableAlertTemplateRequest.cc
src/model/EnableAlertTemplateResult.cc
src/model/ExportPrometheusRulesRequest.cc
src/model/ExportPrometheusRulesResult.cc
src/model/DescribeWebhookContactsRequest.cc
src/model/DescribeWebhookContactsResult.cc
src/model/GetAgentDownloadUrlRequest.cc
src/model/GetAgentDownloadUrlResult.cc
src/model/GetAlertRulesRequest.cc
src/model/GetAlertRulesResult.cc
src/model/GetAppApiByPageRequest.cc
src/model/GetAppApiByPageResult.cc
src/model/GetArmsConsoleUrlRequest.cc
src/model/GetArmsConsoleUrlResult.cc
src/model/GetConsistencySnapshotRequest.cc
src/model/GetConsistencySnapshotResult.cc
src/model/GetAuthTokenRequest.cc
src/model/GetAuthTokenResult.cc
src/model/GetClusterAllUrlRequest.cc
src/model/GetClusterAllUrlResult.cc
src/model/GetExploreUrlRequest.cc
src/model/GetExploreUrlResult.cc
src/model/GetIntegrationTokenRequest.cc
src/model/GetIntegrationTokenResult.cc
src/model/GetIntegrationStateRequest.cc
src/model/GetIntegrationStateResult.cc
src/model/GetManagedPrometheusStatusRequest.cc
src/model/GetManagedPrometheusStatusResult.cc
src/model/GetMultipleTraceRequest.cc
src/model/GetMultipleTraceResult.cc
src/model/GetOnCallSchedulesDetailRequest.cc
src/model/GetOnCallSchedulesDetailResult.cc
src/model/GetPrometheusApiTokenRequest.cc
src/model/GetPrometheusApiTokenResult.cc
src/model/GetPrometheusGlobalViewRequest.cc
src/model/GetPrometheusGlobalViewResult.cc
src/model/GetRecordingRuleRequest.cc
src/model/GetRecordingRuleResult.cc
src/model/GetRetcodeShareUrlRequest.cc
src/model/GetRetcodeShareUrlResult.cc
src/model/GetSourceMapInfoRequest.cc
src/model/GetSourceMapInfoResult.cc
src/model/GetStackRequest.cc
src/model/GetStackResult.cc
src/model/GetSyntheticTaskDetailRequest.cc
src/model/GetSyntheticTaskDetailResult.cc
src/model/GetSyntheticTaskListRequest.cc
src/model/GetSyntheticTaskListResult.cc
src/model/GetSyntheticTaskMonitorsRequest.cc
src/model/GetSyntheticTaskMonitorsResult.cc
src/model/GetTraceRequest.cc
src/model/GetTraceResult.cc
src/model/GetTraceAppRequest.cc
src/model/GetTraceAppResult.cc
src/model/ImportAppAlertRulesRequest.cc
src/model/ImportAppAlertRulesResult.cc
src/model/ImportCustomAlertRulesRequest.cc
src/model/ImportCustomAlertRulesResult.cc
src/model/ImportPrometheusRulesRequest.cc
src/model/ImportPrometheusRulesResult.cc
src/model/InstallCmsExporterRequest.cc
src/model/InstallCmsExporterResult.cc
src/model/InstallManagedPrometheusRequest.cc
src/model/InstallManagedPrometheusResult.cc
src/model/ListActivatedAlertsRequest.cc
src/model/ListActivatedAlertsResult.cc
src/model/ListAlertTemplatesRequest.cc
src/model/ListAlertTemplatesResult.cc
src/model/ListAlertEventsRequest.cc
src/model/ListAlertEventsResult.cc
src/model/ListAlertsRequest.cc
src/model/ListAlertsResult.cc
src/model/ListClusterFromGrafanaRequest.cc
src/model/ListClusterFromGrafanaResult.cc
src/model/ListCmsInstancesRequest.cc
src/model/ListCmsInstancesResult.cc
src/model/ListDashboardsRequest.cc
src/model/ListDashboardsResult.cc
src/model/ListDashboardsByNameRequest.cc
src/model/ListDashboardsByNameResult.cc
src/model/ListDispatchRuleRequest.cc
src/model/ListDispatchRuleResult.cc
src/model/ListPromClustersRequest.cc
src/model/ListPromClustersResult.cc
src/model/ListEscalationPoliciesRequest.cc
src/model/ListEscalationPoliciesResult.cc
src/model/ListEventBridgeIntegrationsRequest.cc
src/model/ListEventBridgeIntegrationsResult.cc
src/model/ListInsightsEventsRequest.cc
src/model/ListInsightsEventsResult.cc
src/model/ListIntegrationRequest.cc
src/model/ListIntegrationResult.cc
src/model/ListNotificationPoliciesRequest.cc
src/model/ListNotificationPoliciesResult.cc
src/model/ListOnCallSchedulesRequest.cc
src/model/ListOnCallSchedulesResult.cc
src/model/ListPrometheusAlertRulesRequest.cc
src/model/ListPrometheusAlertRulesResult.cc
src/model/ListPrometheusAlertTemplatesRequest.cc
src/model/ListPrometheusAlertTemplatesResult.cc
src/model/ListPrometheusGlobalViewRequest.cc
src/model/ListPrometheusGlobalViewResult.cc
src/model/ListPrometheusInstancesRequest.cc
src/model/ListPrometheusInstancesResult.cc
src/model/ListRetcodeAppsRequest.cc
src/model/ListRetcodeAppsResult.cc
src/model/ListScenarioRequest.cc
src/model/ListScenarioResult.cc
src/model/ListServerlessTopNAppsRequest.cc
src/model/ListServerlessTopNAppsResult.cc
src/model/ListSilencePoliciesRequest.cc
src/model/ListSilencePoliciesResult.cc
src/model/ListTraceAppsRequest.cc
src/model/ListTraceAppsResult.cc
src/model/ManageGetRecordingRuleRequest.cc
src/model/ManageGetRecordingRuleResult.cc
src/model/ManageRecordingRuleRequest.cc
src/model/ManageRecordingRuleResult.cc
src/model/OpenArmsDefaultSLRRequest.cc
src/model/OpenArmsDefaultSLRResult.cc
src/model/OpenArmsServiceRequest.cc
src/model/OpenArmsServiceResult.cc
src/model/OpenArmsServiceSecondVersionRequest.cc
src/model/OpenArmsServiceSecondVersionResult.cc
src/model/OpenVClusterRequest.cc
src/model/OpenVClusterResult.cc
src/model/OpenXtraceDefaultSLRRequest.cc
src/model/OpenXtraceDefaultSLRResult.cc
src/model/QueryDatasetRequest.cc
src/model/QueryDatasetResult.cc
src/model/QueryMetricRequest.cc
src/model/QueryMetricResult.cc
src/model/QueryMetricByPageRequest.cc
src/model/QueryMetricByPageResult.cc
src/model/QueryPromInstallStatusRequest.cc
src/model/QueryPromInstallStatusResult.cc
src/model/QueryReleaseMetricRequest.cc
src/model/QueryReleaseMetricResult.cc
src/model/RemoveAliClusterIdsFromPrometheusGlobalViewRequest.cc
src/model/RemoveAliClusterIdsFromPrometheusGlobalViewResult.cc
src/model/RemoveSourcesFromPrometheusGlobalViewRequest.cc
src/model/RemoveSourcesFromPrometheusGlobalViewResult.cc
src/model/SaveTraceAppConfigRequest.cc
src/model/SaveTraceAppConfigResult.cc
src/model/SearchAlertContactRequest.cc
@@ -360,30 +562,40 @@ set(arms_src
src/model/SearchTracesResult.cc
src/model/SearchTracesByPageRequest.cc
src/model/SearchTracesByPageResult.cc
src/model/SendCustomIncidentsRequest.cc
src/model/SendCustomIncidentsResult.cc
src/model/SendMseIncidentRequest.cc
src/model/SendMseIncidentResult.cc
src/model/SendTTSVerifyLinkRequest.cc
src/model/SendTTSVerifyLinkResult.cc
src/model/SetRetcodeShareStatusRequest.cc
src/model/SetRetcodeShareStatusResult.cc
src/model/StartAlertRequest.cc
src/model/StartAlertResult.cc
src/model/StopAlertRequest.cc
src/model/StopAlertResult.cc
src/model/SwitchSyntheticTaskStatusRequest.cc
src/model/SwitchSyntheticTaskStatusResult.cc
src/model/SyncRecordingRulesRequest.cc
src/model/SyncRecordingRulesResult.cc
src/model/TurnOnSecondSwitchRequest.cc
src/model/TurnOnSecondSwitchResult.cc
src/model/UninstallManagedPrometheusRequest.cc
src/model/UninstallManagedPrometheusResult.cc
src/model/UninstallPromClusterRequest.cc
src/model/UninstallPromClusterResult.cc
src/model/UpdateAlertContactRequest.cc
src/model/UpdateAlertContactResult.cc
src/model/UpdateAlertContactGroupRequest.cc
src/model/UpdateAlertContactGroupResult.cc
src/model/UpdateAlertRuleRequest.cc
src/model/UpdateAlertRuleResult.cc
src/model/UpdateAlertTemplateRequest.cc
src/model/UpdateAlertTemplateResult.cc
src/model/UpdateDispatchRuleRequest.cc
src/model/UpdateDispatchRuleResult.cc
src/model/UpdateIntegrationRequest.cc
src/model/UpdateIntegrationResult.cc
src/model/UpdatePrometheusAlertRuleRequest.cc
src/model/UpdatePrometheusAlertRuleResult.cc
src/model/UpdateWebhookRequest.cc
src/model/UpdateWebhookResult.cc )
src/model/UpdateWebhookResult.cc
src/model/UploadRequest.cc
src/model/UploadResult.cc )
add_library(arms ${LIB_TYPE}
${arms_public_header}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDALICLUSTERIDSTOPROMETHEUSGLOBALVIEWREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDALICLUSTERIDSTOPROMETHEUSGLOBALVIEWREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AddAliClusterIdsToPrometheusGlobalViewRequest : public RpcServiceRequest {
public:
AddAliClusterIdsToPrometheusGlobalViewRequest();
~AddAliClusterIdsToPrometheusGlobalViewRequest();
std::string getGlobalViewClusterId() const;
void setGlobalViewClusterId(const std::string &globalViewClusterId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getClusterIds() const;
void setClusterIds(const std::string &clusterIds);
std::string getGroupName() const;
void setGroupName(const std::string &groupName);
private:
std::string globalViewClusterId_;
std::string regionId_;
std::string clusterIds_;
std::string groupName_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDALICLUSTERIDSTOPROMETHEUSGLOBALVIEWREQUEST_H_

View File

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

View File

@@ -1,54 +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_ARMS_MODEL_ADDGRAFANAREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT AddGrafanaRequest : public RpcServiceRequest
{
public:
AddGrafanaRequest();
~AddGrafanaRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getIntegration()const;
void setIntegration(const std::string& integration);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
private:
std::string regionId_;
std::string integration_;
std::string clusterId_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AddGrafanaRequest : public RpcServiceRequest {
public:
AddGrafanaRequest();
~AddGrafanaRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getIntegration() const;
void setIntegration(const std::string &integration);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
private:
std::string regionId_;
std::string integration_;
std::string clusterId_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDGRAFANAREQUEST_H_

View File

@@ -1,54 +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_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT AddIntegrationRequest : public RpcServiceRequest
{
public:
AddIntegrationRequest();
~AddIntegrationRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getIntegration()const;
void setIntegration(const std::string& integration);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
private:
std::string regionId_;
std::string integration_;
std::string clusterId_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AddIntegrationRequest : public RpcServiceRequest {
public:
AddIntegrationRequest();
~AddIntegrationRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getIntegration() const;
void setIntegration(const std::string &integration);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
private:
std::string regionId_;
std::string integration_;
std::string clusterId_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDINTEGRATIONREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSGLOBALVIEWBYALICLUSTERIDSREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSGLOBALVIEWBYALICLUSTERIDSREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AddPrometheusGlobalViewByAliClusterIdsRequest : public RpcServiceRequest {
public:
AddPrometheusGlobalViewByAliClusterIdsRequest();
~AddPrometheusGlobalViewByAliClusterIdsRequest();
std::string getProductCode() const;
void setProductCode(const std::string &productCode);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getClusterIds() const;
void setClusterIds(const std::string &clusterIds);
std::string getGroupName() const;
void setGroupName(const std::string &groupName);
private:
std::string productCode_;
std::string regionId_;
std::string clusterIds_;
std::string groupName_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSGLOBALVIEWBYALICLUSTERIDSREQUEST_H_

View File

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

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSGLOBALVIEWREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSGLOBALVIEWREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AddPrometheusGlobalViewRequest : public RpcServiceRequest {
public:
AddPrometheusGlobalViewRequest();
~AddPrometheusGlobalViewRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getGroupName() const;
void setGroupName(const std::string &groupName);
std::string getClusters() const;
void setClusters(const std::string &clusters);
private:
std::string regionId_;
std::string groupName_;
std::string clusters_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSGLOBALVIEWREQUEST_H_

View File

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

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSINSTANCEREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSINSTANCEREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AddPrometheusInstanceRequest : public RpcServiceRequest {
public:
AddPrometheusInstanceRequest();
~AddPrometheusInstanceRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getName() const;
void setName(const std::string &name);
std::string getType() const;
void setType(const std::string &type);
private:
std::string regionId_;
std::string name_;
std::string type_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDPROMETHEUSINSTANCEREQUEST_H_

View File

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

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_ADDRECORDINGRULEREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_ADDRECORDINGRULEREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AddRecordingRuleRequest : public RpcServiceRequest {
public:
AddRecordingRuleRequest();
~AddRecordingRuleRequest();
std::string getRuleYaml() const;
void setRuleYaml(const std::string &ruleYaml);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
private:
std::string ruleYaml_;
std::string regionId_;
std::string clusterId_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_ADDRECORDINGRULEREQUEST_H_

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_APPENDINSTANCESTOPROMETHEUSGLOBALVIEWREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_APPENDINSTANCESTOPROMETHEUSGLOBALVIEWREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT AppendInstancesToPrometheusGlobalViewRequest : public RpcServiceRequest {
public:
AppendInstancesToPrometheusGlobalViewRequest();
~AppendInstancesToPrometheusGlobalViewRequest();
std::string getGlobalViewClusterId() const;
void setGlobalViewClusterId(const std::string &globalViewClusterId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getGroupName() const;
void setGroupName(const std::string &groupName);
std::string getClusters() const;
void setClusters(const std::string &clusters);
private:
std::string globalViewClusterId_;
std::string regionId_;
std::string groupName_;
std::string clusters_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_APPENDINSTANCESTOPROMETHEUSGLOBALVIEWREQUEST_H_

View File

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

View File

@@ -1,78 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT ApplyScenarioRequest : public RpcServiceRequest
{
public:
ApplyScenarioRequest();
~ApplyScenarioRequest();
bool getSnForce()const;
void setSnForce(bool snForce);
std::string getSign()const;
void setSign(const std::string& sign);
bool getSnStat()const;
void setSnStat(bool snStat);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getScenario()const;
void setScenario(const std::string& scenario);
bool getSnDump()const;
void setSnDump(bool snDump);
std::string getAppId()const;
void setAppId(const std::string& appId);
std::string getName()const;
void setName(const std::string& name);
bool getSnTransfer()const;
void setSnTransfer(bool snTransfer);
bool getUpdateOption()const;
void setUpdateOption(bool updateOption);
std::string getConfig()const;
void setConfig(const std::string& config);
private:
bool snForce_;
std::string sign_;
bool snStat_;
std::string regionId_;
std::string scenario_;
bool snDump_;
std::string appId_;
std::string name_;
bool snTransfer_;
bool updateOption_;
std::string config_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT ApplyScenarioRequest : public RpcServiceRequest {
public:
ApplyScenarioRequest();
~ApplyScenarioRequest();
bool getSnForce() const;
void setSnForce(bool snForce);
std::string getSign() const;
void setSign(const std::string &sign);
bool getSnStat() const;
void setSnStat(bool snStat);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getScenario() const;
void setScenario(const std::string &scenario);
bool getSnDump() const;
void setSnDump(bool snDump);
std::string getAppId() const;
void setAppId(const std::string &appId);
std::string getName() const;
void setName(const std::string &name);
bool getSnTransfer() const;
void setSnTransfer(bool snTransfer);
bool getUpdateOption() const;
void setUpdateOption(bool updateOption);
std::string getConfig() const;
void setConfig(const std::string &config);
private:
bool snForce_;
std::string sign_;
bool snStat_;
std::string regionId_;
std::string scenario_;
bool snDump_;
std::string appId_;
std::string name_;
bool snTransfer_;
bool updateOption_;
std::string config_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_APPLYSCENARIOREQUEST_H_

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CheckDataConsistencyRequest : public RpcServiceRequest
{
public:
CheckDataConsistencyRequest();
~CheckDataConsistencyRequest();
long getCurrentTimestamp()const;
void setCurrentTimestamp(long currentTimestamp);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getAppType()const;
void setAppType(const std::string& appType);
std::string getPid()const;
void setPid(const std::string& pid);
std::string getProxyUserId()const;
void setProxyUserId(const std::string& proxyUserId);
private:
long currentTimestamp_;
std::string regionId_;
std::string appType_;
std::string pid_;
std::string proxyUserId_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CheckDataConsistencyResult : public ServiceResult
{
public:
CheckDataConsistencyResult();
explicit CheckDataConsistencyResult(const std::string &payload);
~CheckDataConsistencyResult();
bool getIsDataConsistency()const;
protected:
void parse(const std::string &payload);
private:
bool isDataConsistency_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CheckServiceLinkedRoleForDeletingRequest : public RpcServiceRequest
{
public:
CheckServiceLinkedRoleForDeletingRequest();
~CheckServiceLinkedRoleForDeletingRequest();
std::string getSPIRegionId()const;
void setSPIRegionId(const std::string& sPIRegionId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getRoleArn()const;
void setRoleArn(const std::string& roleArn);
std::string getDeletionTaskId()const;
void setDeletionTaskId(const std::string& deletionTaskId);
std::string getServiceName()const;
void setServiceName(const std::string& serviceName);
private:
std::string sPIRegionId_;
std::string regionId_;
std::string roleArn_;
std::string deletionTaskId_;
std::string serviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGREQUEST_H_

View File

@@ -1,58 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGRESULT_H_
#define ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CheckServiceLinkedRoleForDeletingResult : public ServiceResult
{
public:
struct RoleUsagesItem
{
std::string region;
std::vector<std::string> resources;
};
CheckServiceLinkedRoleForDeletingResult();
explicit CheckServiceLinkedRoleForDeletingResult(const std::string &payload);
~CheckServiceLinkedRoleForDeletingResult();
bool getDeletable()const;
std::vector<RoleUsagesItem> getRoleUsages()const;
protected:
void parse(const std::string &payload);
private:
bool deletable_;
std::vector<RoleUsagesItem> roleUsages_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKSERVICELINKEDROLEFORDELETINGRESULT_H_

View File

@@ -1,51 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CHECKSERVICESTATUSREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CHECKSERVICESTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CheckServiceStatusRequest : public RpcServiceRequest
{
public:
CheckServiceStatusRequest();
~CheckServiceStatusRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getSvcCode()const;
void setSvcCode(const std::string& svcCode);
private:
std::string regionId_;
std::string svcCode_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKSERVICESTATUSREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CHECKSERVICESTATUSREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CHECKSERVICESTATUSREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CheckServiceStatusRequest : public RpcServiceRequest {
public:
CheckServiceStatusRequest();
~CheckServiceStatusRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getSvcCode() const;
void setSvcCode(const std::string &svcCode);
private:
std::string regionId_;
std::string svcCode_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKSERVICESTATUSREQUEST_H_

View File

@@ -1,54 +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_ARMS_MODEL_CONFIGAPPREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT ConfigAppRequest : public RpcServiceRequest
{
public:
ConfigAppRequest();
~ConfigAppRequest();
std::string getAppIds()const;
void setAppIds(const std::string& appIds);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getEnable()const;
void setEnable(const std::string& enable);
private:
std::string appIds_;
std::string regionId_;
std::string enable_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT ConfigAppRequest : public RpcServiceRequest {
public:
ConfigAppRequest();
~ConfigAppRequest();
std::string getAppIds() const;
void setAppIds(const std::string &appIds);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getEnable() const;
void setEnable(const std::string &enable);
private:
std::string appIds_;
std::string regionId_;
std::string enable_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_

View File

@@ -1,57 +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_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactGroupRequest : public RpcServiceRequest
{
public:
CreateAlertContactGroupRequest();
~CreateAlertContactGroupRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getContactGroupName()const;
void setContactGroupName(const std::string& contactGroupName);
std::string getProxyUserId()const;
void setProxyUserId(const std::string& proxyUserId);
std::string getContactIds()const;
void setContactIds(const std::string& contactIds);
private:
std::string regionId_;
std::string contactGroupName_;
std::string proxyUserId_;
std::string contactIds_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactGroupRequest : public RpcServiceRequest {
public:
CreateAlertContactGroupRequest();
~CreateAlertContactGroupRequest();
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getContactGroupName() const;
void setContactGroupName(const std::string &contactGroupName);
std::string getProxyUserId() const;
void setProxyUserId(const std::string &proxyUserId);
std::string getContactIds() const;
void setContactIds(const std::string &contactIds);
private:
std::string regionId_;
std::string contactGroupName_;
std::string proxyUserId_;
std::string contactIds_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTGROUPREQUEST_H_

View File

@@ -1,66 +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_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactRequest : public RpcServiceRequest
{
public:
CreateAlertContactRequest();
~CreateAlertContactRequest();
std::string getPhoneNum()const;
void setPhoneNum(const std::string& phoneNum);
std::string getProxyUserId()const;
void setProxyUserId(const std::string& proxyUserId);
std::string getContactName()const;
void setContactName(const std::string& contactName);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getDingRobotWebhookUrl()const;
void setDingRobotWebhookUrl(const std::string& dingRobotWebhookUrl);
std::string getEmail()const;
void setEmail(const std::string& email);
bool getSystemNoc()const;
void setSystemNoc(bool systemNoc);
private:
std::string phoneNum_;
std::string proxyUserId_;
std::string contactName_;
std::string regionId_;
std::string dingRobotWebhookUrl_;
std::string email_;
bool systemNoc_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateAlertContactRequest : public RpcServiceRequest {
public:
CreateAlertContactRequest();
~CreateAlertContactRequest();
std::string getPhoneNum() const;
void setPhoneNum(const std::string &phoneNum);
std::string getProxyUserId() const;
void setProxyUserId(const std::string &proxyUserId);
std::string getContactName() const;
void setContactName(const std::string &contactName);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getDingRobotWebhookUrl() const;
void setDingRobotWebhookUrl(const std::string &dingRobotWebhookUrl);
std::string getEmail() const;
void setEmail(const std::string &email);
bool getSystemNoc() const;
void setSystemNoc(bool systemNoc);
private:
std::string phoneNum_;
std::string proxyUserId_;
std::string contactName_;
std::string regionId_;
std::string dingRobotWebhookUrl_;
std::string email_;
bool systemNoc_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTCONTACTREQUEST_H_

View File

@@ -1,78 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ARMS_MODEL_CREATEALERTTEMPLATEREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateAlertTemplateRequest : public RpcServiceRequest
{
public:
CreateAlertTemplateRequest();
~CreateAlertTemplateRequest();
std::string getTemplateProvider()const;
void setTemplateProvider(const std::string& templateProvider);
std::string getAnnotations()const;
void setAnnotations(const std::string& annotations);
std::string getRule()const;
void setRule(const std::string& rule);
std::string getProxyUserId()const;
void setProxyUserId(const std::string& proxyUserId);
std::string getType()const;
void setType(const std::string& type);
std::string getMessage()const;
void setMessage(const std::string& message);
std::string getParentId()const;
void setParentId(const std::string& parentId);
std::string getLabels()const;
void setLabels(const std::string& labels);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getName()const;
void setName(const std::string& name);
std::string getMatchExpressions()const;
void setMatchExpressions(const std::string& matchExpressions);
private:
std::string templateProvider_;
std::string annotations_;
std::string rule_;
std::string proxyUserId_;
std::string type_;
std::string message_;
std::string parentId_;
std::string labels_;
std::string regionId_;
std::string name_;
std::string matchExpressions_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATEREQUEST_H_

View File

@@ -1,82 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_ARMS_MODEL_CREATEALERTTEMPLATERESULT_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateAlertTemplateResult : public ServiceResult
{
public:
struct AlertTemplate
{
struct LabelMatchExpressionGrid
{
struct LabelMatchExpressionGroup
{
struct LabelMatchExpression
{
std::string value;
std::string _operator;
std::string key;
};
std::vector<LabelMatchExpressionGroup::LabelMatchExpression> labelMatchExpressions;
};
std::vector<LabelMatchExpressionGroup> labelMatchExpressionGroups;
};
int parentId;
bool status;
std::string message;
std::string templateProvider;
LabelMatchExpressionGrid labelMatchExpressionGrid;
std::string labels;
std::string alertProvider;
std::string name;
std::string type;
std::string annotations;
std::string userId;
bool _public;
int id;
std::string rule;
};
CreateAlertTemplateResult();
explicit CreateAlertTemplateResult(const std::string &payload);
~CreateAlertTemplateResult();
AlertTemplate getAlertTemplate()const;
protected:
void parse(const std::string &payload);
private:
AlertTemplate alertTemplate_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEALERTTEMPLATERESULT_H_

View File

@@ -1,54 +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_ARMS_MODEL_CREATEDISPATCHRULEREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEDISPATCHRULEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateDispatchRuleRequest : public RpcServiceRequest
{
public:
CreateDispatchRuleRequest();
~CreateDispatchRuleRequest();
std::string getDispatchRule()const;
void setDispatchRule(const std::string& dispatchRule);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getProxyUserId()const;
void setProxyUserId(const std::string& proxyUserId);
private:
std::string dispatchRule_;
std::string regionId_;
std::string proxyUserId_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEDISPATCHRULEREQUEST_H_
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEDISPATCHRULEREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEDISPATCHRULEREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateDispatchRuleRequest : public RpcServiceRequest {
public:
CreateDispatchRuleRequest();
~CreateDispatchRuleRequest();
std::string getDispatchRule() const;
void setDispatchRule(const std::string &dispatchRule);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getProxyUserId() const;
void setProxyUserId(const std::string &proxyUserId);
private:
std::string dispatchRule_;
std::string regionId_;
std::string proxyUserId_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEDISPATCHRULEREQUEST_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEINTEGRATIONREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEINTEGRATIONREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateIntegrationRequest : public RpcServiceRequest {
public:
CreateIntegrationRequest();
~CreateIntegrationRequest();
bool getAutoRecover() const;
void setAutoRecover(bool autoRecover);
long getRecoverTime() const;
void setRecoverTime(long recoverTime);
std::string getIntegrationName() const;
void setIntegrationName(const std::string &integrationName);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getIntegrationProductType() const;
void setIntegrationProductType(const std::string &integrationProductType);
private:
bool autoRecover_;
long recoverTime_;
std::string integrationName_;
std::string description_;
std::string integrationProductType_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEINTEGRATIONREQUEST_H_

View File

@@ -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_ARMS_MODEL_CREATEINTEGRATIONRESULT_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEINTEGRATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateIntegrationResult : public ServiceResult
{
public:
struct Integration
{
std::string integrationName;
std::string description;
bool autoRecover;
long integrationId;
std::string integrationProductType;
long recoverTime;
};
CreateIntegrationResult();
explicit CreateIntegrationResult(const std::string &payload);
~CreateIntegrationResult();
Integration getIntegration()const;
protected:
void parse(const std::string &payload);
private:
Integration integration_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEINTEGRATIONRESULT_H_

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEALERTRULEREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEALERTRULEREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateOrUpdateAlertRuleRequest : public RpcServiceRequest {
public:
CreateOrUpdateAlertRuleRequest();
~CreateOrUpdateAlertRuleRequest();
long getAlertGroup() const;
void setAlertGroup(long alertGroup);
std::string getAlertName() const;
void setAlertName(const std::string &alertName);
std::string getAlertStatus() const;
void setAlertStatus(const std::string &alertStatus);
std::string getAnnotations() const;
void setAnnotations(const std::string &annotations);
long getDuration() const;
void setDuration(long duration);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getMetricsKey() const;
void setMetricsKey(const std::string &metricsKey);
std::string getAlertRuleContent() const;
void setAlertRuleContent(const std::string &alertRuleContent);
std::string getPromQL() const;
void setPromQL(const std::string &promQL);
std::string getLevel() const;
void setLevel(const std::string &level);
bool getAutoAddNewApplication() const;
void setAutoAddNewApplication(bool autoAddNewApplication);
std::string getFilters() const;
void setFilters(const std::string &filters);
std::string getClusterId() const;
void setClusterId(const std::string &clusterId);
std::string getMessage() const;
void setMessage(const std::string &message);
std::string getNotifyStrategy() const;
void setNotifyStrategy(const std::string &notifyStrategy);
std::string getLabels() const;
void setLabels(const std::string &labels);
std::string getAlertType() const;
void setAlertType(const std::string &alertType);
std::string getAlertCheckType() const;
void setAlertCheckType(const std::string &alertCheckType);
std::string getMetricsType() const;
void setMetricsType(const std::string &metricsType);
long getAlertId() const;
void setAlertId(long alertId);
std::string getPids() const;
void setPids(const std::string &pids);
private:
long alertGroup_;
std::string alertName_;
std::string alertStatus_;
std::string annotations_;
long duration_;
std::string regionId_;
std::string metricsKey_;
std::string alertRuleContent_;
std::string promQL_;
std::string level_;
bool autoAddNewApplication_;
std::string filters_;
std::string clusterId_;
std::string message_;
std::string notifyStrategy_;
std::string labels_;
std::string alertType_;
std::string alertCheckType_;
std::string metricsType_;
long alertId_;
std::string pids_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEALERTRULEREQUEST_H_

View File

@@ -0,0 +1,122 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEALERTRULERESULT_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEALERTRULERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateOrUpdateAlertRuleResult : public ServiceResult
{
public:
struct AlertRule
{
struct AlertRuleContent
{
struct AlertRuleItemsItem
{
std::string metricKey;
std::string value;
std::string _operator;
std::string aggregate;
float n;
};
std::string condition;
std::vector<AlertRuleItemsItem> alertRuleItems;
};
struct Filters
{
struct DimFiltersItem
{
std::string filterOpt;
std::vector<std::string> filterValues;
std::string filterKey;
};
struct CustomSLSFiltersItem
{
std::string opt;
std::string t;
std::string value;
bool show;
std::string key;
};
std::vector<CustomSLSFiltersItem> customSLSFilters;
std::vector<std::string> customSLSWheres;
std::vector<std::string> customSLSGroupByDimensions;
std::vector<DimFiltersItem> dimFilters;
};
struct LabelsItem
{
std::string value;
std::string name;
};
struct AnnotationsItem
{
std::string value;
std::string name;
};
std::string alertName;
long createdTime;
std::string message;
std::string clusterId;
std::string promQL;
std::string alertCheckType;
AlertRuleContent alertRuleContent;
std::string notifyStrategy;
std::vector<LabelsItem> labels;
std::string duration;
std::vector<std::string> pids;
std::string alertType;
Filters filters;
float alertId;
long alertGroup;
std::vector<AnnotationsItem> annotations;
std::string extend;
std::string userId;
std::string alertStatus;
bool autoAddNewApplication;
std::string level;
std::string regionId;
long updatedTime;
std::string metricsType;
};
CreateOrUpdateAlertRuleResult();
explicit CreateOrUpdateAlertRuleResult(const std::string &payload);
~CreateOrUpdateAlertRuleResult();
AlertRule getAlertRule()const;
protected:
void parse(const std::string &payload);
private:
AlertRule alertRule_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEALERTRULERESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATECONTACTGROUPREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATECONTACTGROUPREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateOrUpdateContactGroupRequest : public RpcServiceRequest {
public:
CreateOrUpdateContactGroupRequest();
~CreateOrUpdateContactGroupRequest();
long getContactGroupId() const;
void setContactGroupId(long contactGroupId);
std::string getContactGroupName() const;
void setContactGroupName(const std::string &contactGroupName);
std::string getProxyUserId() const;
void setProxyUserId(const std::string &proxyUserId);
std::string getContactIds() const;
void setContactIds(const std::string &contactIds);
private:
long contactGroupId_;
std::string contactGroupName_;
std::string proxyUserId_;
std::string contactIds_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATECONTACTGROUPREQUEST_H_

View File

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

View File

@@ -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_ARMS_MODEL_CREATEORUPDATECONTACTREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATECONTACTREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateOrUpdateContactRequest : public RpcServiceRequest {
public:
CreateOrUpdateContactRequest();
~CreateOrUpdateContactRequest();
long getContactId() const;
void setContactId(long contactId);
long getReissueSendNotice() const;
void setReissueSendNotice(long reissueSendNotice);
bool getIsVerify() const;
void setIsVerify(bool isVerify);
std::string getProxyUserId() const;
void setProxyUserId(const std::string &proxyUserId);
std::string getContactName() const;
void setContactName(const std::string &contactName);
std::string getPhone() const;
void setPhone(const std::string &phone);
std::string getEmail() const;
void setEmail(const std::string &email);
private:
long contactId_;
long reissueSendNotice_;
bool isVerify_;
std::string proxyUserId_;
std::string contactName_;
std::string phone_;
std::string email_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATECONTACTREQUEST_H_

View File

@@ -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_ARMS_MODEL_CREATEORUPDATECONTACTRESULT_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATECONTACTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/arms/ARMSExport.h>
namespace AlibabaCloud
{
namespace ARMS
{
namespace Model
{
class ALIBABACLOUD_ARMS_EXPORT CreateOrUpdateContactResult : public ServiceResult
{
public:
struct AlertContact
{
std::string email;
bool isVerify;
std::string phone;
float contactId;
std::string contactName;
long reissueSendNotice;
};
CreateOrUpdateContactResult();
explicit CreateOrUpdateContactResult(const std::string &payload);
~CreateOrUpdateContactResult();
AlertContact getAlertContact()const;
protected:
void parse(const std::string &payload);
private:
AlertContact alertContact_;
};
}
}
}
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATECONTACTRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEEVENTBRIDGEINTEGRATIONREQUEST_H_
#define ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEEVENTBRIDGEINTEGRATIONREQUEST_H_
#include <alibabacloud/arms/ARMSExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ARMS {
namespace Model {
class ALIBABACLOUD_ARMS_EXPORT CreateOrUpdateEventBridgeIntegrationRequest : public RpcServiceRequest {
public:
CreateOrUpdateEventBridgeIntegrationRequest();
~CreateOrUpdateEventBridgeIntegrationRequest();
std::string getAccessSecret() const;
void setAccessSecret(const std::string &accessSecret);
std::string getEventBusRegionId() const;
void setEventBusRegionId(const std::string &eventBusRegionId);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSource() const;
void setSource(const std::string &source);
std::string getEventBusName() const;
void setEventBusName(const std::string &eventBusName);
std::string getEndpoint() const;
void setEndpoint(const std::string &endpoint);
std::string getAccessKey() const;
void setAccessKey(const std::string &accessKey);
std::string getName() const;
void setName(const std::string &name);
long getId() const;
void setId(long id);
private:
std::string accessSecret_;
std::string eventBusRegionId_;
std::string description_;
std::string source_;
std::string eventBusName_;
std::string endpoint_;
std::string accessKey_;
std::string name_;
long id_;
};
} // namespace Model
} // namespace ARMS
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEORUPDATEEVENTBRIDGEINTEGRATIONREQUEST_H_

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