Compare commits
40 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e81be19ef | ||
|
|
bcda9aa4cd | ||
|
|
01ed244f91 | ||
|
|
979ae0c882 | ||
|
|
58b8b52591 | ||
|
|
29faefa1ab | ||
|
|
b03b322c96 | ||
|
|
0cdb7bfa7c | ||
|
|
4ff92e0924 | ||
|
|
acb3224329 | ||
|
|
36e644262a | ||
|
|
3f598709ce | ||
|
|
ff12aa8e1c | ||
|
|
35f5b170e3 | ||
|
|
af10d89e40 | ||
|
|
851f067179 | ||
|
|
d9c4d7f556 | ||
|
|
6b7018d7d5 | ||
|
|
de410cb26c | ||
|
|
63d1456017 | ||
|
|
53badb17c1 | ||
|
|
51c7466a7c | ||
|
|
e097e2342f | ||
|
|
21cd880292 | ||
|
|
6bb79f8a04 | ||
|
|
939eeccab4 | ||
|
|
c6fe210221 | ||
|
|
6c572378d9 | ||
|
|
6f86a0ac33 | ||
|
|
f2759cebfa | ||
|
|
e4a6e73946 | ||
|
|
f9cb2e2167 | ||
|
|
cc32a735e4 | ||
|
|
25bbb2bf65 | ||
|
|
143a7b3400 | ||
|
|
6f08307187 | ||
|
|
e915fe10cd | ||
|
|
949c6555a8 | ||
|
|
55ce8a3d14 | ||
|
|
bb602506ac |
119
CHANGELOG
119
CHANGELOG
@@ -1,3 +1,122 @@
|
||||
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.
|
||||
|
||||
|
||||
0
CHANGELOG.md
Normal file
0
CHANGELOG.md
Normal file
134
antiddos-public/CMakeLists.txt
Normal file
134
antiddos-public/CMakeLists.txt
Normal file
@@ -0,0 +1,134 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
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 )
|
||||
|
||||
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 )
|
||||
|
||||
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}
|
||||
)
|
||||
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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"
|
||||
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICCLIENT_H_
|
||||
@@ -14,17 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eas/model/GetAvailableRegionsRequest.h>
|
||||
#ifndef ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
#define ALIBABACLOUD_ANTIDDOS_PUBLIC_ANTIDDOS_PUBLICEXPORT_H_
|
||||
|
||||
using AlibabaCloud::Eas::Model::GetAvailableRegionsRequest;
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
GetAvailableRegionsRequest::GetAvailableRegionsRequest() :
|
||||
RoaServiceRequest("eas", "2018-05-22")
|
||||
{
|
||||
setResourcePath("/api/services/regions");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAvailableRegionsRequest::~GetAvailableRegionsRequest()
|
||||
{}
|
||||
#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_
|
||||
@@ -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_
|
||||
@@ -14,54 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_QUERYBIDRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_QUERYBIDRECORDSRESULT_H_
|
||||
#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/domain/DomainExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT QueryBidRecordsResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeBgpPackByIpResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BidRecord
|
||||
struct DdosbgpInfo
|
||||
{
|
||||
std::string bidder;
|
||||
std::string domainName;
|
||||
std::string currency;
|
||||
long bidTime;
|
||||
float bid;
|
||||
std::string ddosbgpInstanceId;
|
||||
std::string ip;
|
||||
int elasticThreshold;
|
||||
int baseThreshold;
|
||||
long expireTime;
|
||||
};
|
||||
|
||||
|
||||
QueryBidRecordsResult();
|
||||
explicit QueryBidRecordsResult(const std::string &payload);
|
||||
~QueryBidRecordsResult();
|
||||
int getCurrentPageNum()const;
|
||||
int getPageSize()const;
|
||||
int getTotalPageNum()const;
|
||||
std::vector<BidRecord> getData()const;
|
||||
int getTotalItemNum()const;
|
||||
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:
|
||||
int currentPageNum_;
|
||||
int pageSize_;
|
||||
int totalPageNum_;
|
||||
std::vector<BidRecord> data_;
|
||||
int totalItemNum_;
|
||||
DdosbgpInfo ddosbgpInfo_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYBIDRECORDSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEBGPPACKBYIPRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -14,50 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
|
||||
#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/domain/DomainExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT CreateFixedPriceDemandOrderResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeDdosCreditResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Module
|
||||
struct DdosCredit
|
||||
{
|
||||
long price;
|
||||
std::string orderNo;
|
||||
std::string domain;
|
||||
int score;
|
||||
std::string scoreLevel;
|
||||
int blackholeTime;
|
||||
};
|
||||
|
||||
|
||||
CreateFixedPriceDemandOrderResult();
|
||||
explicit CreateFixedPriceDemandOrderResult(const std::string &payload);
|
||||
~CreateFixedPriceDemandOrderResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getErrorCode()const;
|
||||
Module getModule()const;
|
||||
DescribeDdosCreditResult();
|
||||
explicit DescribeDdosCreditResult(const std::string &payload);
|
||||
~DescribeDdosCreditResult();
|
||||
DdosCredit getDdosCredit()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string errorCode_;
|
||||
Module module_;
|
||||
DdosCredit ddosCredit_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CREATEFIXEDPRICEDEMANDORDERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSCREDITRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -14,36 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_
|
||||
#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/ens/EnsExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ens
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ENS_EXPORT ConfigureSecurityGroupPermissionsResult : public ServiceResult
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
ConfigureSecurityGroupPermissionsResult();
|
||||
explicit ConfigureSecurityGroupPermissionsResult(const std::string &payload);
|
||||
~ConfigureSecurityGroupPermissionsResult();
|
||||
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_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEDDOSTHRESHOLDRESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -14,47 +14,45 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#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/imm/ImmExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Regions
|
||||
struct Region
|
||||
{
|
||||
struct RegionItem
|
||||
{
|
||||
std::vector<std::string> projectTypes;
|
||||
std::string regionId;
|
||||
};
|
||||
std::vector<RegionItem> region;
|
||||
std::string regionNo;
|
||||
std::string regionName;
|
||||
std::string regionEnName;
|
||||
std::string regionNoAlias;
|
||||
};
|
||||
|
||||
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
Regions getRegions()const;
|
||||
std::vector<Region> getRegions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Regions regions_;
|
||||
std::vector<Region> regions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_REQUESTPAYDEMANDRESULT_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_REQUESTPAYDEMANDRESULT_H_
|
||||
#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/domain/DomainExport.h>
|
||||
#include <alibabacloud/antiddos-public/Antiddos_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Antiddos_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT RequestPayDemandResult : public ServiceResult
|
||||
class ALIBABACLOUD_ANTIDDOS_PUBLIC_EXPORT ModifyDdosStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RequestPayDemandResult();
|
||||
explicit RequestPayDemandResult(const std::string &payload);
|
||||
~RequestPayDemandResult();
|
||||
ModifyDdosStatusResult();
|
||||
explicit ModifyDdosStatusResult(const std::string &payload);
|
||||
~ModifyDdosStatusResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_REQUESTPAYDEMANDRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ANTIDDOS_PUBLIC_MODEL_MODIFYDDOSSTATUSRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_
|
||||
521
antiddos-public/src/Antiddos-publicClient.cc
Normal file
521
antiddos-public/src/Antiddos-publicClient.cc
Normal file
@@ -0,0 +1,521 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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, "");
|
||||
}
|
||||
|
||||
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, "");
|
||||
}
|
||||
|
||||
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, "");
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
63
antiddos-public/src/model/DescribeBgpPackByIpRequest.cc
Normal file
63
antiddos-public/src/model/DescribeBgpPackByIpRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
74
antiddos-public/src/model/DescribeBgpPackByIpResult.cc
Normal file
74
antiddos-public/src/model/DescribeBgpPackByIpResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
90
antiddos-public/src/model/DescribeCapRequest.cc
Normal file
90
antiddos-public/src/model/DescribeCapRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,39 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/GetReserveDomainUrlResult.h>
|
||||
#include <alibabacloud/antiddos-public/model/DescribeCapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
GetReserveDomainUrlResult::GetReserveDomainUrlResult() :
|
||||
DescribeCapResult::DescribeCapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetReserveDomainUrlResult::GetReserveDomainUrlResult(const std::string &payload) :
|
||||
DescribeCapResult::DescribeCapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetReserveDomainUrlResult::~GetReserveDomainUrlResult()
|
||||
DescribeCapResult::~DescribeCapResult()
|
||||
{}
|
||||
|
||||
void GetReserveDomainUrlResult::parse(const std::string &payload)
|
||||
void DescribeCapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
auto capUrlNode = value["CapUrl"];
|
||||
if(!capUrlNode["Url"].isNull())
|
||||
capUrl_.url = capUrlNode["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetReserveDomainUrlResult::getUrl()const
|
||||
DescribeCapResult::CapUrl DescribeCapResult::getCapUrl()const
|
||||
{
|
||||
return url_;
|
||||
return capUrl_;
|
||||
}
|
||||
|
||||
63
antiddos-public/src/model/DescribeDdosCountRequest.cc
Normal file
63
antiddos-public/src/model/DescribeDdosCountRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
56
antiddos-public/src/model/DescribeDdosCountResult.cc
Normal file
56
antiddos-public/src/model/DescribeDdosCountResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
54
antiddos-public/src/model/DescribeDdosCreditRequest.cc
Normal file
54
antiddos-public/src/model/DescribeDdosCreditRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
63
antiddos-public/src/model/DescribeDdosCreditResult.cc
Normal file
63
antiddos-public/src/model/DescribeDdosCreditResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
99
antiddos-public/src/model/DescribeDdosEventListRequest.cc
Normal file
99
antiddos-public/src/model/DescribeDdosEventListRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
74
antiddos-public/src/model/DescribeDdosEventListResult.cc
Normal file
74
antiddos-public/src/model/DescribeDdosEventListResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
80
antiddos-public/src/model/DescribeDdosThresholdRequest.cc
Normal file
80
antiddos-public/src/model/DescribeDdosThresholdRequest.cc
Normal 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;
|
||||
}
|
||||
|
||||
73
antiddos-public/src/model/DescribeDdosThresholdResult.cc
Normal file
73
antiddos-public/src/model/DescribeDdosThresholdResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
144
antiddos-public/src/model/DescribeInstanceIpAddressRequest.cc
Normal file
144
antiddos-public/src/model/DescribeInstanceIpAddressRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
94
antiddos-public/src/model/DescribeInstanceIpAddressResult.cc
Normal file
94
antiddos-public/src/model/DescribeInstanceIpAddressResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
144
antiddos-public/src/model/DescribeInstanceRequest.cc
Normal file
144
antiddos-public/src/model/DescribeInstanceRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
84
antiddos-public/src/model/DescribeInstanceResult.cc
Normal file
84
antiddos-public/src/model/DescribeInstanceResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
90
antiddos-public/src/model/DescribeIpDdosThresholdRequest.cc
Normal file
90
antiddos-public/src/model/DescribeIpDdosThresholdRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
68
antiddos-public/src/model/DescribeIpDdosThresholdResult.cc
Normal file
68
antiddos-public/src/model/DescribeIpDdosThresholdResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
60
antiddos-public/src/model/DescribeIpLocationServiceResult.cc
Normal file
60
antiddos-public/src/model/DescribeIpLocationServiceResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
45
antiddos-public/src/model/DescribeRegionsRequest.cc
Normal file
45
antiddos-public/src/model/DescribeRegionsRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/DescribeRegionsResult.h>
|
||||
#include <alibabacloud/antiddos-public/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
@@ -39,22 +39,24 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto regionsNode = value["Regions"];
|
||||
auto allRegionNode = regionsNode["Region"]["RegionItem"];
|
||||
for (auto regionsNodeRegionRegionItem : allRegionNode)
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Regions::RegionItem regionItemObject;
|
||||
if(!regionsNodeRegionRegionItem["RegionId"].isNull())
|
||||
regionItemObject.regionId = regionsNodeRegionRegionItem["RegionId"].asString();
|
||||
auto allProjectTypes = value["ProjectTypes"]["ProjectTypes"];
|
||||
for (auto value : allProjectTypes)
|
||||
regionItemObject.projectTypes.push_back(value.asString());
|
||||
regions_.region.push_back(regionItemObject);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeRegionsResult::Regions DescribeRegionsResult::getRegions()const
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
81
antiddos-public/src/model/ModifyDdosStatusRequest.cc
Normal file
81
antiddos-public/src/model/ModifyDdosStatusRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/RequestPayDemandResult.h>
|
||||
#include <alibabacloud/antiddos-public/model/ModifyDdosStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
using namespace AlibabaCloud::Antiddos_public;
|
||||
using namespace AlibabaCloud::Antiddos_public::Model;
|
||||
|
||||
RequestPayDemandResult::RequestPayDemandResult() :
|
||||
ModifyDdosStatusResult::ModifyDdosStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RequestPayDemandResult::RequestPayDemandResult(const std::string &payload) :
|
||||
ModifyDdosStatusResult::ModifyDdosStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RequestPayDemandResult::~RequestPayDemandResult()
|
||||
ModifyDdosStatusResult::~ModifyDdosStatusResult()
|
||||
{}
|
||||
|
||||
void RequestPayDemandResult::parse(const std::string &payload)
|
||||
void ModifyDdosStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
108
antiddos-public/src/model/ModifyDefenseThresholdRequest.cc
Normal file
108
antiddos-public/src/model/ModifyDefenseThresholdRequest.cc
Normal 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");
|
||||
}
|
||||
|
||||
44
antiddos-public/src/model/ModifyDefenseThresholdResult.cc
Normal file
44
antiddos-public/src/model/ModifyDefenseThresholdResult.cc
Normal 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());
|
||||
|
||||
}
|
||||
|
||||
@@ -21,13 +21,13 @@ set(btripopen_public_header
|
||||
include/alibabacloud/btripopen/BtripOpenExport.h )
|
||||
|
||||
set(btripopen_public_header_model
|
||||
include/alibabacloud/btripopen/model/TakeAccessTokenRequest.h
|
||||
include/alibabacloud/btripopen/model/TakeAccessTokenResult.h )
|
||||
include/alibabacloud/btripopen/model/AccessTokenRequest.h
|
||||
include/alibabacloud/btripopen/model/AccessTokenResult.h )
|
||||
|
||||
set(btripopen_src
|
||||
src/BtripOpenClient.cc
|
||||
src/model/TakeAccessTokenRequest.cc
|
||||
src/model/TakeAccessTokenResult.cc )
|
||||
src/model/AccessTokenRequest.cc
|
||||
src/model/AccessTokenResult.cc )
|
||||
|
||||
add_library(btripopen ${LIB_TYPE}
|
||||
${btripopen_public_header}
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RoaServiceClient.h>
|
||||
#include "BtripOpenExport.h"
|
||||
#include "model/TakeAccessTokenRequest.h"
|
||||
#include "model/TakeAccessTokenResult.h"
|
||||
#include "model/AccessTokenRequest.h"
|
||||
#include "model/AccessTokenResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -33,17 +33,17 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_BTRIPOPEN_EXPORT BtripOpenClient : public RoaServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::TakeAccessTokenResult> TakeAccessTokenOutcome;
|
||||
typedef std::future<TakeAccessTokenOutcome> TakeAccessTokenOutcomeCallable;
|
||||
typedef std::function<void(const BtripOpenClient*, const Model::TakeAccessTokenRequest&, const TakeAccessTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TakeAccessTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::AccessTokenResult> AccessTokenOutcome;
|
||||
typedef std::future<AccessTokenOutcome> AccessTokenOutcomeCallable;
|
||||
typedef std::function<void(const BtripOpenClient*, const Model::AccessTokenRequest&, const AccessTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AccessTokenAsyncHandler;
|
||||
|
||||
BtripOpenClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
BtripOpenClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
BtripOpenClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~BtripOpenClient();
|
||||
TakeAccessTokenOutcome takeAccessToken(const Model::TakeAccessTokenRequest &request)const;
|
||||
void takeAccessTokenAsync(const Model::TakeAccessTokenRequest& request, const TakeAccessTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TakeAccessTokenOutcomeCallable takeAccessTokenCallable(const Model::TakeAccessTokenRequest& request) const;
|
||||
AccessTokenOutcome accessToken(const Model::AccessTokenRequest &request)const;
|
||||
void accessTokenAsync(const Model::AccessTokenRequest& request, const AccessTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AccessTokenOutcomeCallable accessTokenCallable(const Model::AccessTokenRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BTRIPOPEN_MODEL_TAKEACCESSTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_BTRIPOPEN_MODEL_TAKEACCESSTOKENREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BTRIPOPEN_MODEL_ACCESSTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_BTRIPOPEN_MODEL_ACCESSTOKENREQUEST_H_
|
||||
|
||||
#include <alibabacloud/btripopen/BtripOpenExport.h>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
@@ -26,10 +26,10 @@
|
||||
namespace AlibabaCloud {
|
||||
namespace BtripOpen {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_BTRIPOPEN_EXPORT TakeAccessTokenRequest : public RoaServiceRequest {
|
||||
class ALIBABACLOUD_BTRIPOPEN_EXPORT AccessTokenRequest : public RoaServiceRequest {
|
||||
public:
|
||||
TakeAccessTokenRequest();
|
||||
~TakeAccessTokenRequest();
|
||||
AccessTokenRequest();
|
||||
~AccessTokenRequest();
|
||||
std::string getApp_key() const;
|
||||
void setApp_key(const std::string &app_key);
|
||||
std::string getApp_secret() const;
|
||||
@@ -42,4 +42,4 @@ private:
|
||||
} // namespace Model
|
||||
} // namespace BtripOpen
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_BTRIPOPEN_MODEL_TAKEACCESSTOKENREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BTRIPOPEN_MODEL_ACCESSTOKENREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BTRIPOPEN_MODEL_TAKEACCESSTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_BTRIPOPEN_MODEL_TAKEACCESSTOKENRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BTRIPOPEN_MODEL_ACCESSTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_BTRIPOPEN_MODEL_ACCESSTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,36 +29,36 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BTRIPOPEN_EXPORT TakeAccessTokenResult : public ServiceResult
|
||||
class ALIBABACLOUD_BTRIPOPEN_EXPORT AccessTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long expire;
|
||||
std::string access_token;
|
||||
std::string token;
|
||||
};
|
||||
|
||||
|
||||
TakeAccessTokenResult();
|
||||
explicit TakeAccessTokenResult(const std::string &payload);
|
||||
~TakeAccessTokenResult();
|
||||
AccessTokenResult();
|
||||
explicit AccessTokenResult(const std::string &payload);
|
||||
~AccessTokenResult();
|
||||
std::string getRequestId()const;
|
||||
std::string getMessage()const;
|
||||
std::string getTraceId()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string requestId_;
|
||||
std::string message_;
|
||||
std::string traceId_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BTRIPOPEN_MODEL_TAKEACCESSTOKENRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BTRIPOPEN_MODEL_ACCESSTOKENRESULT_H_
|
||||
@@ -51,36 +51,36 @@ BtripOpenClient::BtripOpenClient(const std::string & accessKeyId, const std::str
|
||||
BtripOpenClient::~BtripOpenClient()
|
||||
{}
|
||||
|
||||
BtripOpenClient::TakeAccessTokenOutcome BtripOpenClient::takeAccessToken(const TakeAccessTokenRequest &request) const
|
||||
BtripOpenClient::AccessTokenOutcome BtripOpenClient::accessToken(const AccessTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TakeAccessTokenOutcome(endpointOutcome.error());
|
||||
return AccessTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TakeAccessTokenOutcome(TakeAccessTokenResult(outcome.result()));
|
||||
return AccessTokenOutcome(AccessTokenResult(outcome.result()));
|
||||
else
|
||||
return TakeAccessTokenOutcome(outcome.error());
|
||||
return AccessTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BtripOpenClient::takeAccessTokenAsync(const TakeAccessTokenRequest& request, const TakeAccessTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BtripOpenClient::accessTokenAsync(const AccessTokenRequest& request, const AccessTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, takeAccessToken(request), context);
|
||||
handler(this, request, accessToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BtripOpenClient::TakeAccessTokenOutcomeCallable BtripOpenClient::takeAccessTokenCallable(const TakeAccessTokenRequest &request) const
|
||||
BtripOpenClient::AccessTokenOutcomeCallable BtripOpenClient::accessTokenCallable(const AccessTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TakeAccessTokenOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<AccessTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->takeAccessToken(request);
|
||||
return this->accessToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
|
||||
@@ -14,32 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/btripopen/model/TakeAccessTokenRequest.h>
|
||||
#include <alibabacloud/btripopen/model/AccessTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::BtripOpen::Model::TakeAccessTokenRequest;
|
||||
using AlibabaCloud::BtripOpen::Model::AccessTokenRequest;
|
||||
|
||||
TakeAccessTokenRequest::TakeAccessTokenRequest()
|
||||
: RoaServiceRequest("btripopen", "2022-05-17") {
|
||||
setResourcePath("/btrip/open/access-token/take"};
|
||||
AccessTokenRequest::AccessTokenRequest()
|
||||
: RoaServiceRequest("btripopen", "2022-05-20") {
|
||||
setResourcePath("/btrip-open-auth/v1/access-token/action/take"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
TakeAccessTokenRequest::~TakeAccessTokenRequest() {}
|
||||
AccessTokenRequest::~AccessTokenRequest() {}
|
||||
|
||||
std::string TakeAccessTokenRequest::getApp_key() const {
|
||||
std::string AccessTokenRequest::getApp_key() const {
|
||||
return app_key_;
|
||||
}
|
||||
|
||||
void TakeAccessTokenRequest::setApp_key(const std::string &app_key) {
|
||||
void AccessTokenRequest::setApp_key(const std::string &app_key) {
|
||||
app_key_ = app_key;
|
||||
setParameter(std::string("app_key"), app_key);
|
||||
}
|
||||
|
||||
std::string TakeAccessTokenRequest::getApp_secret() const {
|
||||
std::string AccessTokenRequest::getApp_secret() const {
|
||||
return app_secret_;
|
||||
}
|
||||
|
||||
void TakeAccessTokenRequest::setApp_secret(const std::string &app_secret) {
|
||||
void AccessTokenRequest::setApp_secret(const std::string &app_secret) {
|
||||
app_secret_ = app_secret;
|
||||
setParameter(std::string("app_secret"), app_secret);
|
||||
}
|
||||
@@ -14,69 +14,69 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/btripopen/model/TakeAccessTokenResult.h>
|
||||
#include <alibabacloud/btripopen/model/AccessTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BtripOpen;
|
||||
using namespace AlibabaCloud::BtripOpen::Model;
|
||||
|
||||
TakeAccessTokenResult::TakeAccessTokenResult() :
|
||||
AccessTokenResult::AccessTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TakeAccessTokenResult::TakeAccessTokenResult(const std::string &payload) :
|
||||
AccessTokenResult::AccessTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TakeAccessTokenResult::~TakeAccessTokenResult()
|
||||
AccessTokenResult::~AccessTokenResult()
|
||||
{}
|
||||
|
||||
void TakeAccessTokenResult::parse(const std::string &payload)
|
||||
void AccessTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["data"];
|
||||
if(!dataNode["access_token"].isNull())
|
||||
data_.access_token = dataNode["access_token"].asString();
|
||||
if(!dataNode["token"].isNull())
|
||||
data_.token = dataNode["token"].asString();
|
||||
if(!dataNode["expire"].isNull())
|
||||
data_.expire = std::stol(dataNode["expire"].asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
if(!value["code"].isNull())
|
||||
code_ = value["code"].asString();
|
||||
if(!value["traceId"].isNull())
|
||||
traceId_ = value["traceId"].asString();
|
||||
if(!value["message"].isNull())
|
||||
message_ = value["message"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString();
|
||||
if(!value["code"].isNull())
|
||||
code_ = value["code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TakeAccessTokenResult::getRequestId()const
|
||||
std::string AccessTokenResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string TakeAccessTokenResult::getMessage()const
|
||||
std::string AccessTokenResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
TakeAccessTokenResult::Data TakeAccessTokenResult::getData()const
|
||||
std::string AccessTokenResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
AccessTokenResult::Data AccessTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string TakeAccessTokenResult::getCode()const
|
||||
std::string AccessTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string TakeAccessTokenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -59,6 +59,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterMulticastDomainResult.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterPeerAttachmentRequest.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterPeerAttachmentResult.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterPrefixListAssociationRequest.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterPrefixListAssociationResult.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterRouteEntryRequest.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterRouteEntryResult.h
|
||||
include/alibabacloud/cbn/model/CreateTransitRouterRouteTableRequest.h
|
||||
@@ -97,6 +99,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterMulticastDomainResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPeerAttachmentResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPrefixListAssociationRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterPrefixListAssociationResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRouteEntryRequest.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRouteEntryResult.h
|
||||
include/alibabacloud/cbn/model/DeleteTransitRouterRouteTableRequest.h
|
||||
@@ -193,6 +197,8 @@ set(cbn_public_header_model
|
||||
include/alibabacloud/cbn/model/ListTransitRouterMulticastGroupsResult.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterPeerAttachmentsRequest.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterPeerAttachmentsResult.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationRequest.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationResult.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterRouteEntriesRequest.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterRouteEntriesResult.h
|
||||
include/alibabacloud/cbn/model/ListTransitRouterRouteTableAssociationsRequest.h
|
||||
@@ -316,6 +322,8 @@ set(cbn_src
|
||||
src/model/CreateTransitRouterMulticastDomainResult.cc
|
||||
src/model/CreateTransitRouterPeerAttachmentRequest.cc
|
||||
src/model/CreateTransitRouterPeerAttachmentResult.cc
|
||||
src/model/CreateTransitRouterPrefixListAssociationRequest.cc
|
||||
src/model/CreateTransitRouterPrefixListAssociationResult.cc
|
||||
src/model/CreateTransitRouterRouteEntryRequest.cc
|
||||
src/model/CreateTransitRouterRouteEntryResult.cc
|
||||
src/model/CreateTransitRouterRouteTableRequest.cc
|
||||
@@ -354,6 +362,8 @@ set(cbn_src
|
||||
src/model/DeleteTransitRouterMulticastDomainResult.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentRequest.cc
|
||||
src/model/DeleteTransitRouterPeerAttachmentResult.cc
|
||||
src/model/DeleteTransitRouterPrefixListAssociationRequest.cc
|
||||
src/model/DeleteTransitRouterPrefixListAssociationResult.cc
|
||||
src/model/DeleteTransitRouterRouteEntryRequest.cc
|
||||
src/model/DeleteTransitRouterRouteEntryResult.cc
|
||||
src/model/DeleteTransitRouterRouteTableRequest.cc
|
||||
@@ -450,6 +460,8 @@ set(cbn_src
|
||||
src/model/ListTransitRouterMulticastGroupsResult.cc
|
||||
src/model/ListTransitRouterPeerAttachmentsRequest.cc
|
||||
src/model/ListTransitRouterPeerAttachmentsResult.cc
|
||||
src/model/ListTransitRouterPrefixListAssociationRequest.cc
|
||||
src/model/ListTransitRouterPrefixListAssociationResult.cc
|
||||
src/model/ListTransitRouterRouteEntriesRequest.cc
|
||||
src/model/ListTransitRouterRouteEntriesResult.cc
|
||||
src/model/ListTransitRouterRouteTableAssociationsRequest.cc
|
||||
|
||||
@@ -60,6 +60,8 @@
|
||||
#include "model/CreateTransitRouterMulticastDomainResult.h"
|
||||
#include "model/CreateTransitRouterPeerAttachmentRequest.h"
|
||||
#include "model/CreateTransitRouterPeerAttachmentResult.h"
|
||||
#include "model/CreateTransitRouterPrefixListAssociationRequest.h"
|
||||
#include "model/CreateTransitRouterPrefixListAssociationResult.h"
|
||||
#include "model/CreateTransitRouterRouteEntryRequest.h"
|
||||
#include "model/CreateTransitRouterRouteEntryResult.h"
|
||||
#include "model/CreateTransitRouterRouteTableRequest.h"
|
||||
@@ -98,6 +100,8 @@
|
||||
#include "model/DeleteTransitRouterMulticastDomainResult.h"
|
||||
#include "model/DeleteTransitRouterPeerAttachmentRequest.h"
|
||||
#include "model/DeleteTransitRouterPeerAttachmentResult.h"
|
||||
#include "model/DeleteTransitRouterPrefixListAssociationRequest.h"
|
||||
#include "model/DeleteTransitRouterPrefixListAssociationResult.h"
|
||||
#include "model/DeleteTransitRouterRouteEntryRequest.h"
|
||||
#include "model/DeleteTransitRouterRouteEntryResult.h"
|
||||
#include "model/DeleteTransitRouterRouteTableRequest.h"
|
||||
@@ -194,6 +198,8 @@
|
||||
#include "model/ListTransitRouterMulticastGroupsResult.h"
|
||||
#include "model/ListTransitRouterPeerAttachmentsRequest.h"
|
||||
#include "model/ListTransitRouterPeerAttachmentsResult.h"
|
||||
#include "model/ListTransitRouterPrefixListAssociationRequest.h"
|
||||
#include "model/ListTransitRouterPrefixListAssociationResult.h"
|
||||
#include "model/ListTransitRouterRouteEntriesRequest.h"
|
||||
#include "model/ListTransitRouterRouteEntriesResult.h"
|
||||
#include "model/ListTransitRouterRouteTableAssociationsRequest.h"
|
||||
@@ -342,6 +348,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateTransitRouterPeerAttachmentResult> CreateTransitRouterPeerAttachmentOutcome;
|
||||
typedef std::future<CreateTransitRouterPeerAttachmentOutcome> CreateTransitRouterPeerAttachmentOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::CreateTransitRouterPeerAttachmentRequest&, const CreateTransitRouterPeerAttachmentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTransitRouterPeerAttachmentAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTransitRouterPrefixListAssociationResult> CreateTransitRouterPrefixListAssociationOutcome;
|
||||
typedef std::future<CreateTransitRouterPrefixListAssociationOutcome> CreateTransitRouterPrefixListAssociationOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::CreateTransitRouterPrefixListAssociationRequest&, const CreateTransitRouterPrefixListAssociationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTransitRouterPrefixListAssociationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTransitRouterRouteEntryResult> CreateTransitRouterRouteEntryOutcome;
|
||||
typedef std::future<CreateTransitRouterRouteEntryOutcome> CreateTransitRouterRouteEntryOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::CreateTransitRouterRouteEntryRequest&, const CreateTransitRouterRouteEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTransitRouterRouteEntryAsyncHandler;
|
||||
@@ -399,6 +408,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteTransitRouterPeerAttachmentResult> DeleteTransitRouterPeerAttachmentOutcome;
|
||||
typedef std::future<DeleteTransitRouterPeerAttachmentOutcome> DeleteTransitRouterPeerAttachmentOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTransitRouterPeerAttachmentRequest&, const DeleteTransitRouterPeerAttachmentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTransitRouterPeerAttachmentAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTransitRouterPrefixListAssociationResult> DeleteTransitRouterPrefixListAssociationOutcome;
|
||||
typedef std::future<DeleteTransitRouterPrefixListAssociationOutcome> DeleteTransitRouterPrefixListAssociationOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTransitRouterPrefixListAssociationRequest&, const DeleteTransitRouterPrefixListAssociationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTransitRouterPrefixListAssociationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTransitRouterRouteEntryResult> DeleteTransitRouterRouteEntryOutcome;
|
||||
typedef std::future<DeleteTransitRouterRouteEntryOutcome> DeleteTransitRouterRouteEntryOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::DeleteTransitRouterRouteEntryRequest&, const DeleteTransitRouterRouteEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTransitRouterRouteEntryAsyncHandler;
|
||||
@@ -543,6 +555,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListTransitRouterPeerAttachmentsResult> ListTransitRouterPeerAttachmentsOutcome;
|
||||
typedef std::future<ListTransitRouterPeerAttachmentsOutcome> ListTransitRouterPeerAttachmentsOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::ListTransitRouterPeerAttachmentsRequest&, const ListTransitRouterPeerAttachmentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTransitRouterPeerAttachmentsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTransitRouterPrefixListAssociationResult> ListTransitRouterPrefixListAssociationOutcome;
|
||||
typedef std::future<ListTransitRouterPrefixListAssociationOutcome> ListTransitRouterPrefixListAssociationOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::ListTransitRouterPrefixListAssociationRequest&, const ListTransitRouterPrefixListAssociationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTransitRouterPrefixListAssociationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTransitRouterRouteEntriesResult> ListTransitRouterRouteEntriesOutcome;
|
||||
typedef std::future<ListTransitRouterRouteEntriesOutcome> ListTransitRouterRouteEntriesOutcomeCallable;
|
||||
typedef std::function<void(const CbnClient*, const Model::ListTransitRouterRouteEntriesRequest&, const ListTransitRouterRouteEntriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTransitRouterRouteEntriesAsyncHandler;
|
||||
@@ -728,6 +743,9 @@ namespace AlibabaCloud
|
||||
CreateTransitRouterPeerAttachmentOutcome createTransitRouterPeerAttachment(const Model::CreateTransitRouterPeerAttachmentRequest &request)const;
|
||||
void createTransitRouterPeerAttachmentAsync(const Model::CreateTransitRouterPeerAttachmentRequest& request, const CreateTransitRouterPeerAttachmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTransitRouterPeerAttachmentOutcomeCallable createTransitRouterPeerAttachmentCallable(const Model::CreateTransitRouterPeerAttachmentRequest& request) const;
|
||||
CreateTransitRouterPrefixListAssociationOutcome createTransitRouterPrefixListAssociation(const Model::CreateTransitRouterPrefixListAssociationRequest &request)const;
|
||||
void createTransitRouterPrefixListAssociationAsync(const Model::CreateTransitRouterPrefixListAssociationRequest& request, const CreateTransitRouterPrefixListAssociationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTransitRouterPrefixListAssociationOutcomeCallable createTransitRouterPrefixListAssociationCallable(const Model::CreateTransitRouterPrefixListAssociationRequest& request) const;
|
||||
CreateTransitRouterRouteEntryOutcome createTransitRouterRouteEntry(const Model::CreateTransitRouterRouteEntryRequest &request)const;
|
||||
void createTransitRouterRouteEntryAsync(const Model::CreateTransitRouterRouteEntryRequest& request, const CreateTransitRouterRouteEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTransitRouterRouteEntryOutcomeCallable createTransitRouterRouteEntryCallable(const Model::CreateTransitRouterRouteEntryRequest& request) const;
|
||||
@@ -785,6 +803,9 @@ namespace AlibabaCloud
|
||||
DeleteTransitRouterPeerAttachmentOutcome deleteTransitRouterPeerAttachment(const Model::DeleteTransitRouterPeerAttachmentRequest &request)const;
|
||||
void deleteTransitRouterPeerAttachmentAsync(const Model::DeleteTransitRouterPeerAttachmentRequest& request, const DeleteTransitRouterPeerAttachmentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTransitRouterPeerAttachmentOutcomeCallable deleteTransitRouterPeerAttachmentCallable(const Model::DeleteTransitRouterPeerAttachmentRequest& request) const;
|
||||
DeleteTransitRouterPrefixListAssociationOutcome deleteTransitRouterPrefixListAssociation(const Model::DeleteTransitRouterPrefixListAssociationRequest &request)const;
|
||||
void deleteTransitRouterPrefixListAssociationAsync(const Model::DeleteTransitRouterPrefixListAssociationRequest& request, const DeleteTransitRouterPrefixListAssociationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTransitRouterPrefixListAssociationOutcomeCallable deleteTransitRouterPrefixListAssociationCallable(const Model::DeleteTransitRouterPrefixListAssociationRequest& request) const;
|
||||
DeleteTransitRouterRouteEntryOutcome deleteTransitRouterRouteEntry(const Model::DeleteTransitRouterRouteEntryRequest &request)const;
|
||||
void deleteTransitRouterRouteEntryAsync(const Model::DeleteTransitRouterRouteEntryRequest& request, const DeleteTransitRouterRouteEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTransitRouterRouteEntryOutcomeCallable deleteTransitRouterRouteEntryCallable(const Model::DeleteTransitRouterRouteEntryRequest& request) const;
|
||||
@@ -929,6 +950,9 @@ namespace AlibabaCloud
|
||||
ListTransitRouterPeerAttachmentsOutcome listTransitRouterPeerAttachments(const Model::ListTransitRouterPeerAttachmentsRequest &request)const;
|
||||
void listTransitRouterPeerAttachmentsAsync(const Model::ListTransitRouterPeerAttachmentsRequest& request, const ListTransitRouterPeerAttachmentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTransitRouterPeerAttachmentsOutcomeCallable listTransitRouterPeerAttachmentsCallable(const Model::ListTransitRouterPeerAttachmentsRequest& request) const;
|
||||
ListTransitRouterPrefixListAssociationOutcome listTransitRouterPrefixListAssociation(const Model::ListTransitRouterPrefixListAssociationRequest &request)const;
|
||||
void listTransitRouterPrefixListAssociationAsync(const Model::ListTransitRouterPrefixListAssociationRequest& request, const ListTransitRouterPrefixListAssociationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTransitRouterPrefixListAssociationOutcomeCallable listTransitRouterPrefixListAssociationCallable(const Model::ListTransitRouterPrefixListAssociationRequest& request) const;
|
||||
ListTransitRouterRouteEntriesOutcome listTransitRouterRouteEntries(const Model::ListTransitRouterRouteEntriesRequest &request)const;
|
||||
void listTransitRouterRouteEntriesAsync(const Model::ListTransitRouterRouteEntriesRequest& request, const ListTransitRouterRouteEntriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTransitRouterRouteEntriesOutcomeCallable listTransitRouterRouteEntriesCallable(const Model::ListTransitRouterRouteEntriesRequest& request) const;
|
||||
|
||||
@@ -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_CBN_MODEL_CREATETRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_CREATETRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cbn {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CBN_EXPORT CreateTransitRouterPrefixListAssociationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateTransitRouterPrefixListAssociationRequest();
|
||||
~CreateTransitRouterPrefixListAssociationRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getPrefixListId() const;
|
||||
void setPrefixListId(const std::string &prefixListId);
|
||||
long getOwnerUid() const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
std::string getNextHopType() const;
|
||||
void setNextHopType(const std::string &nextHopType);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTransitRouterId() const;
|
||||
void setTransitRouterId(const std::string &transitRouterId);
|
||||
std::string getTransitRouterTableId() const;
|
||||
void setTransitRouterTableId(const std::string &transitRouterTableId);
|
||||
std::string getNextHop() const;
|
||||
void setNextHop(const std::string &nextHop);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string prefixListId_;
|
||||
long ownerUid_;
|
||||
std::string nextHopType_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string transitRouterId_;
|
||||
std::string transitRouterTableId_;
|
||||
std::string nextHop_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cbn
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_CREATETRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_CREATETRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_CREATETRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT CreateTransitRouterPrefixListAssociationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateTransitRouterPrefixListAssociationResult();
|
||||
explicit CreateTransitRouterPrefixListAssociationResult(const std::string &payload);
|
||||
~CreateTransitRouterPrefixListAssociationResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_CREATETRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cbn {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteTransitRouterPrefixListAssociationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteTransitRouterPrefixListAssociationRequest();
|
||||
~DeleteTransitRouterPrefixListAssociationRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getPrefixListId() const;
|
||||
void setPrefixListId(const std::string &prefixListId);
|
||||
std::string getNextHopType() const;
|
||||
void setNextHopType(const std::string &nextHopType);
|
||||
bool getDryRun() const;
|
||||
void setDryRun(bool dryRun);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTransitRouterId() const;
|
||||
void setTransitRouterId(const std::string &transitRouterId);
|
||||
std::string getTransitRouterTableId() const;
|
||||
void setTransitRouterTableId(const std::string &transitRouterTableId);
|
||||
std::string getNextHop() const;
|
||||
void setNextHop(const std::string &nextHop);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string regionId_;
|
||||
std::string prefixListId_;
|
||||
std::string nextHopType_;
|
||||
bool dryRun_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string transitRouterId_;
|
||||
std::string transitRouterTableId_;
|
||||
std::string nextHop_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cbn
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT DeleteTransitRouterPrefixListAssociationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationResult();
|
||||
explicit DeleteTransitRouterPrefixListAssociationResult(const std::string &payload);
|
||||
~DeleteTransitRouterPrefixListAssociationResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_DELETETRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CBN_MODEL_LISTTRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_LISTTRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cbn {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CBN_EXPORT ListTransitRouterPrefixListAssociationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListTransitRouterPrefixListAssociationRequest();
|
||||
~ListTransitRouterPrefixListAssociationRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getPrefixListId() const;
|
||||
void setPrefixListId(const std::string &prefixListId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
long getOwnerUid() const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTransitRouterId() const;
|
||||
void setTransitRouterId(const std::string &transitRouterId);
|
||||
std::string getTransitRouterTableId() const;
|
||||
void setTransitRouterTableId(const std::string &transitRouterTableId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string regionId_;
|
||||
std::string prefixListId_;
|
||||
int pageSize_;
|
||||
long ownerUid_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string transitRouterId_;
|
||||
std::string transitRouterTableId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cbn
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_LISTTRANSITROUTERPREFIXLISTASSOCIATIONREQUEST_H_
|
||||
@@ -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_CBN_MODEL_LISTTRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CBN_MODEL_LISTTRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cbn/CbnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cbn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CBN_EXPORT ListTransitRouterPrefixListAssociationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PrefixList
|
||||
{
|
||||
std::string status;
|
||||
std::string transitRouterTableId;
|
||||
std::string nextHopType;
|
||||
std::string prefixListId;
|
||||
long ownerUid;
|
||||
std::string nextHop;
|
||||
std::string nextHopInstanceId;
|
||||
};
|
||||
|
||||
|
||||
ListTransitRouterPrefixListAssociationResult();
|
||||
explicit ListTransitRouterPrefixListAssociationResult(const std::string &payload);
|
||||
~ListTransitRouterPrefixListAssociationResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<PrefixList> getPrefixLists()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::vector<PrefixList> prefixLists_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CBN_MODEL_LISTTRANSITROUTERPREFIXLISTASSOCIATIONRESULT_H_
|
||||
@@ -735,6 +735,42 @@ CbnClient::CreateTransitRouterPeerAttachmentOutcomeCallable CbnClient::createTra
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateTransitRouterPrefixListAssociationOutcome CbnClient::createTransitRouterPrefixListAssociation(const CreateTransitRouterPrefixListAssociationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateTransitRouterPrefixListAssociationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateTransitRouterPrefixListAssociationOutcome(CreateTransitRouterPrefixListAssociationResult(outcome.result()));
|
||||
else
|
||||
return CreateTransitRouterPrefixListAssociationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::createTransitRouterPrefixListAssociationAsync(const CreateTransitRouterPrefixListAssociationRequest& request, const CreateTransitRouterPrefixListAssociationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createTransitRouterPrefixListAssociation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::CreateTransitRouterPrefixListAssociationOutcomeCallable CbnClient::createTransitRouterPrefixListAssociationCallable(const CreateTransitRouterPrefixListAssociationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateTransitRouterPrefixListAssociationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createTransitRouterPrefixListAssociation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::CreateTransitRouterRouteEntryOutcome CbnClient::createTransitRouterRouteEntry(const CreateTransitRouterRouteEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1455,42 @@ CbnClient::DeleteTransitRouterPeerAttachmentOutcomeCallable CbnClient::deleteTra
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterPrefixListAssociationOutcome CbnClient::deleteTransitRouterPrefixListAssociation(const DeleteTransitRouterPrefixListAssociationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteTransitRouterPrefixListAssociationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteTransitRouterPrefixListAssociationOutcome(DeleteTransitRouterPrefixListAssociationResult(outcome.result()));
|
||||
else
|
||||
return DeleteTransitRouterPrefixListAssociationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::deleteTransitRouterPrefixListAssociationAsync(const DeleteTransitRouterPrefixListAssociationRequest& request, const DeleteTransitRouterPrefixListAssociationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteTransitRouterPrefixListAssociation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterPrefixListAssociationOutcomeCallable CbnClient::deleteTransitRouterPrefixListAssociationCallable(const DeleteTransitRouterPrefixListAssociationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteTransitRouterPrefixListAssociationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteTransitRouterPrefixListAssociation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::DeleteTransitRouterRouteEntryOutcome CbnClient::deleteTransitRouterRouteEntry(const DeleteTransitRouterRouteEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3147,6 +3219,42 @@ CbnClient::ListTransitRouterPeerAttachmentsOutcomeCallable CbnClient::listTransi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ListTransitRouterPrefixListAssociationOutcome CbnClient::listTransitRouterPrefixListAssociation(const ListTransitRouterPrefixListAssociationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTransitRouterPrefixListAssociationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTransitRouterPrefixListAssociationOutcome(ListTransitRouterPrefixListAssociationResult(outcome.result()));
|
||||
else
|
||||
return ListTransitRouterPrefixListAssociationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CbnClient::listTransitRouterPrefixListAssociationAsync(const ListTransitRouterPrefixListAssociationRequest& request, const ListTransitRouterPrefixListAssociationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTransitRouterPrefixListAssociation(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CbnClient::ListTransitRouterPrefixListAssociationOutcomeCallable CbnClient::listTransitRouterPrefixListAssociationCallable(const ListTransitRouterPrefixListAssociationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTransitRouterPrefixListAssociationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTransitRouterPrefixListAssociation(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CbnClient::ListTransitRouterRouteEntriesOutcome CbnClient::listTransitRouterRouteEntries(const ListTransitRouterRouteEntriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
144
cbn/src/model/CreateTransitRouterPrefixListAssociationRequest.cc
Normal file
144
cbn/src/model/CreateTransitRouterPrefixListAssociationRequest.cc
Normal 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/cbn/model/CreateTransitRouterPrefixListAssociationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::CreateTransitRouterPrefixListAssociationRequest;
|
||||
|
||||
CreateTransitRouterPrefixListAssociationRequest::CreateTransitRouterPrefixListAssociationRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "CreateTransitRouterPrefixListAssociation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTransitRouterPrefixListAssociationRequest::~CreateTransitRouterPrefixListAssociationRequest() {}
|
||||
|
||||
long CreateTransitRouterPrefixListAssociationRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getPrefixListId() const {
|
||||
return prefixListId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setPrefixListId(const std::string &prefixListId) {
|
||||
prefixListId_ = prefixListId;
|
||||
setParameter(std::string("PrefixListId"), prefixListId);
|
||||
}
|
||||
|
||||
long CreateTransitRouterPrefixListAssociationRequest::getOwnerUid() const {
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setOwnerUid(long ownerUid) {
|
||||
ownerUid_ = ownerUid;
|
||||
setParameter(std::string("OwnerUid"), std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getNextHopType() const {
|
||||
return nextHopType_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setNextHopType(const std::string &nextHopType) {
|
||||
nextHopType_ = nextHopType;
|
||||
setParameter(std::string("NextHopType"), nextHopType);
|
||||
}
|
||||
|
||||
bool CreateTransitRouterPrefixListAssociationRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CreateTransitRouterPrefixListAssociationRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getTransitRouterTableId() const {
|
||||
return transitRouterTableId_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setTransitRouterTableId(const std::string &transitRouterTableId) {
|
||||
transitRouterTableId_ = transitRouterTableId;
|
||||
setParameter(std::string("TransitRouterTableId"), transitRouterTableId);
|
||||
}
|
||||
|
||||
std::string CreateTransitRouterPrefixListAssociationRequest::getNextHop() const {
|
||||
return nextHop_;
|
||||
}
|
||||
|
||||
void CreateTransitRouterPrefixListAssociationRequest::setNextHop(const std::string &nextHop) {
|
||||
nextHop_ = nextHop;
|
||||
setParameter(std::string("NextHop"), nextHop);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,31 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/domain/model/AcceptDemandResult.h>
|
||||
#include <alibabacloud/cbn/model/CreateTransitRouterPrefixListAssociationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Domain;
|
||||
using namespace AlibabaCloud::Domain::Model;
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
AcceptDemandResult::AcceptDemandResult() :
|
||||
CreateTransitRouterPrefixListAssociationResult::CreateTransitRouterPrefixListAssociationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AcceptDemandResult::AcceptDemandResult(const std::string &payload) :
|
||||
CreateTransitRouterPrefixListAssociationResult::CreateTransitRouterPrefixListAssociationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AcceptDemandResult::~AcceptDemandResult()
|
||||
CreateTransitRouterPrefixListAssociationResult::~CreateTransitRouterPrefixListAssociationResult()
|
||||
{}
|
||||
|
||||
void AcceptDemandResult::parse(const std::string &payload)
|
||||
void CreateTransitRouterPrefixListAssociationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["BindUrl"].isNull())
|
||||
bindUrl_ = value["BindUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AcceptDemandResult::getBindUrl()const
|
||||
{
|
||||
return bindUrl_;
|
||||
}
|
||||
|
||||
135
cbn/src/model/DeleteTransitRouterPrefixListAssociationRequest.cc
Normal file
135
cbn/src/model/DeleteTransitRouterPrefixListAssociationRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/cbn/model/DeleteTransitRouterPrefixListAssociationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::DeleteTransitRouterPrefixListAssociationRequest;
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationRequest::DeleteTransitRouterPrefixListAssociationRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "DeleteTransitRouterPrefixListAssociation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationRequest::~DeleteTransitRouterPrefixListAssociationRequest() {}
|
||||
|
||||
long DeleteTransitRouterPrefixListAssociationRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getPrefixListId() const {
|
||||
return prefixListId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setPrefixListId(const std::string &prefixListId) {
|
||||
prefixListId_ = prefixListId;
|
||||
setParameter(std::string("PrefixListId"), prefixListId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getNextHopType() const {
|
||||
return nextHopType_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setNextHopType(const std::string &nextHopType) {
|
||||
nextHopType_ = nextHopType;
|
||||
setParameter(std::string("NextHopType"), nextHopType);
|
||||
}
|
||||
|
||||
bool DeleteTransitRouterPrefixListAssociationRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setDryRun(bool dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteTransitRouterPrefixListAssociationRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getTransitRouterTableId() const {
|
||||
return transitRouterTableId_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setTransitRouterTableId(const std::string &transitRouterTableId) {
|
||||
transitRouterTableId_ = transitRouterTableId;
|
||||
setParameter(std::string("TransitRouterTableId"), transitRouterTableId);
|
||||
}
|
||||
|
||||
std::string DeleteTransitRouterPrefixListAssociationRequest::getNextHop() const {
|
||||
return nextHop_;
|
||||
}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationRequest::setNextHop(const std::string &nextHop) {
|
||||
nextHop_ = nextHop;
|
||||
setParameter(std::string("NextHop"), nextHop);
|
||||
}
|
||||
|
||||
@@ -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/cbn/model/DeleteTransitRouterPrefixListAssociationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationResult::DeleteTransitRouterPrefixListAssociationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationResult::DeleteTransitRouterPrefixListAssociationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTransitRouterPrefixListAssociationResult::~DeleteTransitRouterPrefixListAssociationResult()
|
||||
{}
|
||||
|
||||
void DeleteTransitRouterPrefixListAssociationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
126
cbn/src/model/ListTransitRouterPrefixListAssociationRequest.cc
Normal file
126
cbn/src/model/ListTransitRouterPrefixListAssociationRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cbn/model/ListTransitRouterPrefixListAssociationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cbn::Model::ListTransitRouterPrefixListAssociationRequest;
|
||||
|
||||
ListTransitRouterPrefixListAssociationRequest::ListTransitRouterPrefixListAssociationRequest()
|
||||
: RpcServiceRequest("cbn", "2017-09-12", "ListTransitRouterPrefixListAssociation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTransitRouterPrefixListAssociationRequest::~ListTransitRouterPrefixListAssociationRequest() {}
|
||||
|
||||
long ListTransitRouterPrefixListAssociationRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getPrefixListId() const {
|
||||
return prefixListId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setPrefixListId(const std::string &prefixListId) {
|
||||
prefixListId_ = prefixListId;
|
||||
setParameter(std::string("PrefixListId"), prefixListId);
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListTransitRouterPrefixListAssociationRequest::getOwnerUid() const {
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setOwnerUid(long ownerUid) {
|
||||
ownerUid_ = ownerUid;
|
||||
setParameter(std::string("OwnerUid"), std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long ListTransitRouterPrefixListAssociationRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getTransitRouterId() const {
|
||||
return transitRouterId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setTransitRouterId(const std::string &transitRouterId) {
|
||||
transitRouterId_ = transitRouterId;
|
||||
setParameter(std::string("TransitRouterId"), transitRouterId);
|
||||
}
|
||||
|
||||
std::string ListTransitRouterPrefixListAssociationRequest::getTransitRouterTableId() const {
|
||||
return transitRouterTableId_;
|
||||
}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationRequest::setTransitRouterTableId(const std::string &transitRouterTableId) {
|
||||
transitRouterTableId_ = transitRouterTableId;
|
||||
setParameter(std::string("TransitRouterTableId"), transitRouterTableId);
|
||||
}
|
||||
|
||||
@@ -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/cbn/model/ListTransitRouterPrefixListAssociationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cbn;
|
||||
using namespace AlibabaCloud::Cbn::Model;
|
||||
|
||||
ListTransitRouterPrefixListAssociationResult::ListTransitRouterPrefixListAssociationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTransitRouterPrefixListAssociationResult::ListTransitRouterPrefixListAssociationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTransitRouterPrefixListAssociationResult::~ListTransitRouterPrefixListAssociationResult()
|
||||
{}
|
||||
|
||||
void ListTransitRouterPrefixListAssociationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPrefixListsNode = value["PrefixLists"]["PrefixList"];
|
||||
for (auto valuePrefixListsPrefixList : allPrefixListsNode)
|
||||
{
|
||||
PrefixList prefixListsObject;
|
||||
if(!valuePrefixListsPrefixList["PrefixListId"].isNull())
|
||||
prefixListsObject.prefixListId = valuePrefixListsPrefixList["PrefixListId"].asString();
|
||||
if(!valuePrefixListsPrefixList["OwnerUid"].isNull())
|
||||
prefixListsObject.ownerUid = std::stol(valuePrefixListsPrefixList["OwnerUid"].asString());
|
||||
if(!valuePrefixListsPrefixList["Status"].isNull())
|
||||
prefixListsObject.status = valuePrefixListsPrefixList["Status"].asString();
|
||||
if(!valuePrefixListsPrefixList["NextHop"].isNull())
|
||||
prefixListsObject.nextHop = valuePrefixListsPrefixList["NextHop"].asString();
|
||||
if(!valuePrefixListsPrefixList["NextHopInstanceId"].isNull())
|
||||
prefixListsObject.nextHopInstanceId = valuePrefixListsPrefixList["NextHopInstanceId"].asString();
|
||||
if(!valuePrefixListsPrefixList["NextHopType"].isNull())
|
||||
prefixListsObject.nextHopType = valuePrefixListsPrefixList["NextHopType"].asString();
|
||||
if(!valuePrefixListsPrefixList["TransitRouterTableId"].isNull())
|
||||
prefixListsObject.transitRouterTableId = valuePrefixListsPrefixList["TransitRouterTableId"].asString();
|
||||
prefixLists_.push_back(prefixListsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListTransitRouterPrefixListAssociationResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListTransitRouterPrefixListAssociationResult::PrefixList> ListTransitRouterPrefixListAssociationResult::getPrefixLists()const
|
||||
{
|
||||
return prefixLists_;
|
||||
}
|
||||
|
||||
@@ -41,10 +41,18 @@ set(cloudesl_public_header_model
|
||||
include/alibabacloud/cloudesl/model/BatchInsertItemsResult.h
|
||||
include/alibabacloud/cloudesl/model/BatchUpdateEventRequest.h
|
||||
include/alibabacloud/cloudesl/model/BatchUpdateEventResult.h
|
||||
include/alibabacloud/cloudesl/model/BindDeviceLayoutRequest.h
|
||||
include/alibabacloud/cloudesl/model/BindDeviceLayoutResult.h
|
||||
include/alibabacloud/cloudesl/model/BindEslDeviceRequest.h
|
||||
include/alibabacloud/cloudesl/model/BindEslDeviceResult.h
|
||||
include/alibabacloud/cloudesl/model/CheckServiceLinkedRoleForDeletingRequest.h
|
||||
include/alibabacloud/cloudesl/model/CheckServiceLinkedRoleForDeletingResult.h
|
||||
include/alibabacloud/cloudesl/model/CopyCompanyTemplateViewRequest.h
|
||||
include/alibabacloud/cloudesl/model/CopyCompanyTemplateViewResult.h
|
||||
include/alibabacloud/cloudesl/model/CopyLayoutRequest.h
|
||||
include/alibabacloud/cloudesl/model/CopyLayoutResult.h
|
||||
include/alibabacloud/cloudesl/model/CopyTemplateGroupRequest.h
|
||||
include/alibabacloud/cloudesl/model/CopyTemplateGroupResult.h
|
||||
include/alibabacloud/cloudesl/model/CreateStoreRequest.h
|
||||
include/alibabacloud/cloudesl/model/CreateStoreResult.h
|
||||
include/alibabacloud/cloudesl/model/DeleteApDeviceRequest.h
|
||||
@@ -53,10 +61,14 @@ set(cloudesl_public_header_model
|
||||
include/alibabacloud/cloudesl/model/DeleteCompanyTemplateResult.h
|
||||
include/alibabacloud/cloudesl/model/DeleteItemRequest.h
|
||||
include/alibabacloud/cloudesl/model/DeleteItemResult.h
|
||||
include/alibabacloud/cloudesl/model/DeleteLayoutRequest.h
|
||||
include/alibabacloud/cloudesl/model/DeleteLayoutResult.h
|
||||
include/alibabacloud/cloudesl/model/DeleteMaterialRequest.h
|
||||
include/alibabacloud/cloudesl/model/DeleteMaterialResult.h
|
||||
include/alibabacloud/cloudesl/model/DeleteStoreRequest.h
|
||||
include/alibabacloud/cloudesl/model/DeleteStoreResult.h
|
||||
include/alibabacloud/cloudesl/model/DeleteTemplateGroupRequest.h
|
||||
include/alibabacloud/cloudesl/model/DeleteTemplateGroupResult.h
|
||||
include/alibabacloud/cloudesl/model/DeleteUserRequest.h
|
||||
include/alibabacloud/cloudesl/model/DeleteUserResult.h
|
||||
include/alibabacloud/cloudesl/model/DescribeApDevicesRequest.h
|
||||
@@ -101,22 +113,44 @@ set(cloudesl_public_header_model
|
||||
include/alibabacloud/cloudesl/model/DescribeUsersResult.h
|
||||
include/alibabacloud/cloudesl/model/ExportEslDevicesRequest.h
|
||||
include/alibabacloud/cloudesl/model/ExportEslDevicesResult.h
|
||||
include/alibabacloud/cloudesl/model/GetAddMaterialStatusRequest.h
|
||||
include/alibabacloud/cloudesl/model/GetAddMaterialStatusResult.h
|
||||
include/alibabacloud/cloudesl/model/GetCompanyTemplatePictureRequest.h
|
||||
include/alibabacloud/cloudesl/model/GetCompanyTemplatePictureResult.h
|
||||
include/alibabacloud/cloudesl/model/GetCompanyTemplatePictureByJobRequest.h
|
||||
include/alibabacloud/cloudesl/model/GetCompanyTemplatePictureByJobResult.h
|
||||
include/alibabacloud/cloudesl/model/GetCompanyTemplatePictureNewRequest.h
|
||||
include/alibabacloud/cloudesl/model/GetCompanyTemplatePictureNewResult.h
|
||||
include/alibabacloud/cloudesl/model/GetEslDevicesRequest.h
|
||||
include/alibabacloud/cloudesl/model/GetEslDevicesResult.h
|
||||
include/alibabacloud/cloudesl/model/GetItemMaterialRequest.h
|
||||
include/alibabacloud/cloudesl/model/GetItemMaterialResult.h
|
||||
include/alibabacloud/cloudesl/model/GetUserRequest.h
|
||||
include/alibabacloud/cloudesl/model/GetUserResult.h
|
||||
include/alibabacloud/cloudesl/model/QueryContainerListRequest.h
|
||||
include/alibabacloud/cloudesl/model/QueryContainerListResult.h
|
||||
include/alibabacloud/cloudesl/model/QueryLayoutByDeviceRequest.h
|
||||
include/alibabacloud/cloudesl/model/QueryLayoutByDeviceResult.h
|
||||
include/alibabacloud/cloudesl/model/QueryLayoutDetailRequest.h
|
||||
include/alibabacloud/cloudesl/model/QueryLayoutDetailResult.h
|
||||
include/alibabacloud/cloudesl/model/QueryTemplateGroupListRequest.h
|
||||
include/alibabacloud/cloudesl/model/QueryTemplateGroupListResult.h
|
||||
include/alibabacloud/cloudesl/model/QueryTemplateListByGroupIdRequest.h
|
||||
include/alibabacloud/cloudesl/model/QueryTemplateListByGroupIdResult.h
|
||||
include/alibabacloud/cloudesl/model/SaveLayoutRequest.h
|
||||
include/alibabacloud/cloudesl/model/SaveLayoutResult.h
|
||||
include/alibabacloud/cloudesl/model/SaveTemplateGroupRequest.h
|
||||
include/alibabacloud/cloudesl/model/SaveTemplateGroupResult.h
|
||||
include/alibabacloud/cloudesl/model/SyncAddMaterialRequest.h
|
||||
include/alibabacloud/cloudesl/model/SyncAddMaterialResult.h
|
||||
include/alibabacloud/cloudesl/model/UnassignUserRequest.h
|
||||
include/alibabacloud/cloudesl/model/UnassignUserResult.h
|
||||
include/alibabacloud/cloudesl/model/UnbindEslDeviceRequest.h
|
||||
include/alibabacloud/cloudesl/model/UnbindEslDeviceResult.h
|
||||
include/alibabacloud/cloudesl/model/UpdateCompanyTemplateRequest.h
|
||||
include/alibabacloud/cloudesl/model/UpdateCompanyTemplateResult.h
|
||||
include/alibabacloud/cloudesl/model/UpdateCompanyTemplateViewRequest.h
|
||||
include/alibabacloud/cloudesl/model/UpdateCompanyTemplateViewResult.h
|
||||
include/alibabacloud/cloudesl/model/UpdateEslDeviceLightRequest.h
|
||||
include/alibabacloud/cloudesl/model/UpdateEslDeviceLightResult.h
|
||||
include/alibabacloud/cloudesl/model/UpdateItemMaterialRequest.h
|
||||
@@ -152,10 +186,18 @@ set(cloudesl_src
|
||||
src/model/BatchInsertItemsResult.cc
|
||||
src/model/BatchUpdateEventRequest.cc
|
||||
src/model/BatchUpdateEventResult.cc
|
||||
src/model/BindDeviceLayoutRequest.cc
|
||||
src/model/BindDeviceLayoutResult.cc
|
||||
src/model/BindEslDeviceRequest.cc
|
||||
src/model/BindEslDeviceResult.cc
|
||||
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
|
||||
src/model/CheckServiceLinkedRoleForDeletingResult.cc
|
||||
src/model/CopyCompanyTemplateViewRequest.cc
|
||||
src/model/CopyCompanyTemplateViewResult.cc
|
||||
src/model/CopyLayoutRequest.cc
|
||||
src/model/CopyLayoutResult.cc
|
||||
src/model/CopyTemplateGroupRequest.cc
|
||||
src/model/CopyTemplateGroupResult.cc
|
||||
src/model/CreateStoreRequest.cc
|
||||
src/model/CreateStoreResult.cc
|
||||
src/model/DeleteApDeviceRequest.cc
|
||||
@@ -164,10 +206,14 @@ set(cloudesl_src
|
||||
src/model/DeleteCompanyTemplateResult.cc
|
||||
src/model/DeleteItemRequest.cc
|
||||
src/model/DeleteItemResult.cc
|
||||
src/model/DeleteLayoutRequest.cc
|
||||
src/model/DeleteLayoutResult.cc
|
||||
src/model/DeleteMaterialRequest.cc
|
||||
src/model/DeleteMaterialResult.cc
|
||||
src/model/DeleteStoreRequest.cc
|
||||
src/model/DeleteStoreResult.cc
|
||||
src/model/DeleteTemplateGroupRequest.cc
|
||||
src/model/DeleteTemplateGroupResult.cc
|
||||
src/model/DeleteUserRequest.cc
|
||||
src/model/DeleteUserResult.cc
|
||||
src/model/DescribeApDevicesRequest.cc
|
||||
@@ -212,22 +258,44 @@ set(cloudesl_src
|
||||
src/model/DescribeUsersResult.cc
|
||||
src/model/ExportEslDevicesRequest.cc
|
||||
src/model/ExportEslDevicesResult.cc
|
||||
src/model/GetAddMaterialStatusRequest.cc
|
||||
src/model/GetAddMaterialStatusResult.cc
|
||||
src/model/GetCompanyTemplatePictureRequest.cc
|
||||
src/model/GetCompanyTemplatePictureResult.cc
|
||||
src/model/GetCompanyTemplatePictureByJobRequest.cc
|
||||
src/model/GetCompanyTemplatePictureByJobResult.cc
|
||||
src/model/GetCompanyTemplatePictureNewRequest.cc
|
||||
src/model/GetCompanyTemplatePictureNewResult.cc
|
||||
src/model/GetEslDevicesRequest.cc
|
||||
src/model/GetEslDevicesResult.cc
|
||||
src/model/GetItemMaterialRequest.cc
|
||||
src/model/GetItemMaterialResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/QueryContainerListRequest.cc
|
||||
src/model/QueryContainerListResult.cc
|
||||
src/model/QueryLayoutByDeviceRequest.cc
|
||||
src/model/QueryLayoutByDeviceResult.cc
|
||||
src/model/QueryLayoutDetailRequest.cc
|
||||
src/model/QueryLayoutDetailResult.cc
|
||||
src/model/QueryTemplateGroupListRequest.cc
|
||||
src/model/QueryTemplateGroupListResult.cc
|
||||
src/model/QueryTemplateListByGroupIdRequest.cc
|
||||
src/model/QueryTemplateListByGroupIdResult.cc
|
||||
src/model/SaveLayoutRequest.cc
|
||||
src/model/SaveLayoutResult.cc
|
||||
src/model/SaveTemplateGroupRequest.cc
|
||||
src/model/SaveTemplateGroupResult.cc
|
||||
src/model/SyncAddMaterialRequest.cc
|
||||
src/model/SyncAddMaterialResult.cc
|
||||
src/model/UnassignUserRequest.cc
|
||||
src/model/UnassignUserResult.cc
|
||||
src/model/UnbindEslDeviceRequest.cc
|
||||
src/model/UnbindEslDeviceResult.cc
|
||||
src/model/UpdateCompanyTemplateRequest.cc
|
||||
src/model/UpdateCompanyTemplateResult.cc
|
||||
src/model/UpdateCompanyTemplateViewRequest.cc
|
||||
src/model/UpdateCompanyTemplateViewResult.cc
|
||||
src/model/UpdateEslDeviceLightRequest.cc
|
||||
src/model/UpdateEslDeviceLightResult.cc
|
||||
src/model/UpdateItemMaterialRequest.cc
|
||||
|
||||
@@ -42,10 +42,18 @@
|
||||
#include "model/BatchInsertItemsResult.h"
|
||||
#include "model/BatchUpdateEventRequest.h"
|
||||
#include "model/BatchUpdateEventResult.h"
|
||||
#include "model/BindDeviceLayoutRequest.h"
|
||||
#include "model/BindDeviceLayoutResult.h"
|
||||
#include "model/BindEslDeviceRequest.h"
|
||||
#include "model/BindEslDeviceResult.h"
|
||||
#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
|
||||
#include "model/CheckServiceLinkedRoleForDeletingResult.h"
|
||||
#include "model/CopyCompanyTemplateViewRequest.h"
|
||||
#include "model/CopyCompanyTemplateViewResult.h"
|
||||
#include "model/CopyLayoutRequest.h"
|
||||
#include "model/CopyLayoutResult.h"
|
||||
#include "model/CopyTemplateGroupRequest.h"
|
||||
#include "model/CopyTemplateGroupResult.h"
|
||||
#include "model/CreateStoreRequest.h"
|
||||
#include "model/CreateStoreResult.h"
|
||||
#include "model/DeleteApDeviceRequest.h"
|
||||
@@ -54,10 +62,14 @@
|
||||
#include "model/DeleteCompanyTemplateResult.h"
|
||||
#include "model/DeleteItemRequest.h"
|
||||
#include "model/DeleteItemResult.h"
|
||||
#include "model/DeleteLayoutRequest.h"
|
||||
#include "model/DeleteLayoutResult.h"
|
||||
#include "model/DeleteMaterialRequest.h"
|
||||
#include "model/DeleteMaterialResult.h"
|
||||
#include "model/DeleteStoreRequest.h"
|
||||
#include "model/DeleteStoreResult.h"
|
||||
#include "model/DeleteTemplateGroupRequest.h"
|
||||
#include "model/DeleteTemplateGroupResult.h"
|
||||
#include "model/DeleteUserRequest.h"
|
||||
#include "model/DeleteUserResult.h"
|
||||
#include "model/DescribeApDevicesRequest.h"
|
||||
@@ -102,22 +114,44 @@
|
||||
#include "model/DescribeUsersResult.h"
|
||||
#include "model/ExportEslDevicesRequest.h"
|
||||
#include "model/ExportEslDevicesResult.h"
|
||||
#include "model/GetAddMaterialStatusRequest.h"
|
||||
#include "model/GetAddMaterialStatusResult.h"
|
||||
#include "model/GetCompanyTemplatePictureRequest.h"
|
||||
#include "model/GetCompanyTemplatePictureResult.h"
|
||||
#include "model/GetCompanyTemplatePictureByJobRequest.h"
|
||||
#include "model/GetCompanyTemplatePictureByJobResult.h"
|
||||
#include "model/GetCompanyTemplatePictureNewRequest.h"
|
||||
#include "model/GetCompanyTemplatePictureNewResult.h"
|
||||
#include "model/GetEslDevicesRequest.h"
|
||||
#include "model/GetEslDevicesResult.h"
|
||||
#include "model/GetItemMaterialRequest.h"
|
||||
#include "model/GetItemMaterialResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/QueryContainerListRequest.h"
|
||||
#include "model/QueryContainerListResult.h"
|
||||
#include "model/QueryLayoutByDeviceRequest.h"
|
||||
#include "model/QueryLayoutByDeviceResult.h"
|
||||
#include "model/QueryLayoutDetailRequest.h"
|
||||
#include "model/QueryLayoutDetailResult.h"
|
||||
#include "model/QueryTemplateGroupListRequest.h"
|
||||
#include "model/QueryTemplateGroupListResult.h"
|
||||
#include "model/QueryTemplateListByGroupIdRequest.h"
|
||||
#include "model/QueryTemplateListByGroupIdResult.h"
|
||||
#include "model/SaveLayoutRequest.h"
|
||||
#include "model/SaveLayoutResult.h"
|
||||
#include "model/SaveTemplateGroupRequest.h"
|
||||
#include "model/SaveTemplateGroupResult.h"
|
||||
#include "model/SyncAddMaterialRequest.h"
|
||||
#include "model/SyncAddMaterialResult.h"
|
||||
#include "model/UnassignUserRequest.h"
|
||||
#include "model/UnassignUserResult.h"
|
||||
#include "model/UnbindEslDeviceRequest.h"
|
||||
#include "model/UnbindEslDeviceResult.h"
|
||||
#include "model/UpdateCompanyTemplateRequest.h"
|
||||
#include "model/UpdateCompanyTemplateResult.h"
|
||||
#include "model/UpdateCompanyTemplateViewRequest.h"
|
||||
#include "model/UpdateCompanyTemplateViewResult.h"
|
||||
#include "model/UpdateEslDeviceLightRequest.h"
|
||||
#include "model/UpdateEslDeviceLightResult.h"
|
||||
#include "model/UpdateItemMaterialRequest.h"
|
||||
@@ -169,12 +203,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::BatchUpdateEventResult> BatchUpdateEventOutcome;
|
||||
typedef std::future<BatchUpdateEventOutcome> BatchUpdateEventOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::BatchUpdateEventRequest&, const BatchUpdateEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchUpdateEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindDeviceLayoutResult> BindDeviceLayoutOutcome;
|
||||
typedef std::future<BindDeviceLayoutOutcome> BindDeviceLayoutOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::BindDeviceLayoutRequest&, const BindDeviceLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindDeviceLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindEslDeviceResult> BindEslDeviceOutcome;
|
||||
typedef std::future<BindEslDeviceOutcome> BindEslDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::BindEslDeviceRequest&, const BindEslDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindEslDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckServiceLinkedRoleForDeletingResult> CheckServiceLinkedRoleForDeletingOutcome;
|
||||
typedef std::future<CheckServiceLinkedRoleForDeletingOutcome> CheckServiceLinkedRoleForDeletingOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::CheckServiceLinkedRoleForDeletingRequest&, const CheckServiceLinkedRoleForDeletingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckServiceLinkedRoleForDeletingAsyncHandler;
|
||||
typedef Outcome<Error, Model::CopyCompanyTemplateViewResult> CopyCompanyTemplateViewOutcome;
|
||||
typedef std::future<CopyCompanyTemplateViewOutcome> CopyCompanyTemplateViewOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::CopyCompanyTemplateViewRequest&, const CopyCompanyTemplateViewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CopyCompanyTemplateViewAsyncHandler;
|
||||
typedef Outcome<Error, Model::CopyLayoutResult> CopyLayoutOutcome;
|
||||
typedef std::future<CopyLayoutOutcome> CopyLayoutOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::CopyLayoutRequest&, const CopyLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CopyLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::CopyTemplateGroupResult> CopyTemplateGroupOutcome;
|
||||
typedef std::future<CopyTemplateGroupOutcome> CopyTemplateGroupOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::CopyTemplateGroupRequest&, const CopyTemplateGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CopyTemplateGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateStoreResult> CreateStoreOutcome;
|
||||
typedef std::future<CreateStoreOutcome> CreateStoreOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::CreateStoreRequest&, const CreateStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStoreAsyncHandler;
|
||||
@@ -187,12 +233,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteItemResult> DeleteItemOutcome;
|
||||
typedef std::future<DeleteItemOutcome> DeleteItemOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteItemRequest&, const DeleteItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteItemAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLayoutResult> DeleteLayoutOutcome;
|
||||
typedef std::future<DeleteLayoutOutcome> DeleteLayoutOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteLayoutRequest&, const DeleteLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMaterialResult> DeleteMaterialOutcome;
|
||||
typedef std::future<DeleteMaterialOutcome> DeleteMaterialOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteMaterialRequest&, const DeleteMaterialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMaterialAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteStoreResult> DeleteStoreOutcome;
|
||||
typedef std::future<DeleteStoreOutcome> DeleteStoreOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteStoreRequest&, const DeleteStoreOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteStoreAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTemplateGroupResult> DeleteTemplateGroupOutcome;
|
||||
typedef std::future<DeleteTemplateGroupOutcome> DeleteTemplateGroupOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteTemplateGroupRequest&, const DeleteTemplateGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTemplateGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserResult> DeleteUserOutcome;
|
||||
typedef std::future<DeleteUserOutcome> DeleteUserOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::DeleteUserRequest&, const DeleteUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserAsyncHandler;
|
||||
@@ -259,6 +311,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ExportEslDevicesResult> ExportEslDevicesOutcome;
|
||||
typedef std::future<ExportEslDevicesOutcome> ExportEslDevicesOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::ExportEslDevicesRequest&, const ExportEslDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportEslDevicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAddMaterialStatusResult> GetAddMaterialStatusOutcome;
|
||||
typedef std::future<GetAddMaterialStatusOutcome> GetAddMaterialStatusOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::GetAddMaterialStatusRequest&, const GetAddMaterialStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAddMaterialStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCompanyTemplatePictureResult> GetCompanyTemplatePictureOutcome;
|
||||
typedef std::future<GetCompanyTemplatePictureOutcome> GetCompanyTemplatePictureOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::GetCompanyTemplatePictureRequest&, const GetCompanyTemplatePictureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCompanyTemplatePictureAsyncHandler;
|
||||
@@ -268,12 +323,36 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCompanyTemplatePictureNewResult> GetCompanyTemplatePictureNewOutcome;
|
||||
typedef std::future<GetCompanyTemplatePictureNewOutcome> GetCompanyTemplatePictureNewOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::GetCompanyTemplatePictureNewRequest&, const GetCompanyTemplatePictureNewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCompanyTemplatePictureNewAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetEslDevicesResult> GetEslDevicesOutcome;
|
||||
typedef std::future<GetEslDevicesOutcome> GetEslDevicesOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::GetEslDevicesRequest&, const GetEslDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEslDevicesAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetItemMaterialResult> GetItemMaterialOutcome;
|
||||
typedef std::future<GetItemMaterialOutcome> GetItemMaterialOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::GetItemMaterialRequest&, const GetItemMaterialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetItemMaterialAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryContainerListResult> QueryContainerListOutcome;
|
||||
typedef std::future<QueryContainerListOutcome> QueryContainerListOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::QueryContainerListRequest&, const QueryContainerListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryContainerListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryLayoutByDeviceResult> QueryLayoutByDeviceOutcome;
|
||||
typedef std::future<QueryLayoutByDeviceOutcome> QueryLayoutByDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::QueryLayoutByDeviceRequest&, const QueryLayoutByDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryLayoutByDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryLayoutDetailResult> QueryLayoutDetailOutcome;
|
||||
typedef std::future<QueryLayoutDetailOutcome> QueryLayoutDetailOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::QueryLayoutDetailRequest&, const QueryLayoutDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryLayoutDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryTemplateGroupListResult> QueryTemplateGroupListOutcome;
|
||||
typedef std::future<QueryTemplateGroupListOutcome> QueryTemplateGroupListOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::QueryTemplateGroupListRequest&, const QueryTemplateGroupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTemplateGroupListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryTemplateListByGroupIdResult> QueryTemplateListByGroupIdOutcome;
|
||||
typedef std::future<QueryTemplateListByGroupIdOutcome> QueryTemplateListByGroupIdOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::QueryTemplateListByGroupIdRequest&, const QueryTemplateListByGroupIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTemplateListByGroupIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::SaveLayoutResult> SaveLayoutOutcome;
|
||||
typedef std::future<SaveLayoutOutcome> SaveLayoutOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::SaveLayoutRequest&, const SaveLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::SaveTemplateGroupResult> SaveTemplateGroupOutcome;
|
||||
typedef std::future<SaveTemplateGroupOutcome> SaveTemplateGroupOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::SaveTemplateGroupRequest&, const SaveTemplateGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveTemplateGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::SyncAddMaterialResult> SyncAddMaterialOutcome;
|
||||
typedef std::future<SyncAddMaterialOutcome> SyncAddMaterialOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::SyncAddMaterialRequest&, const SyncAddMaterialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncAddMaterialAsyncHandler;
|
||||
@@ -283,6 +362,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UnbindEslDeviceResult> UnbindEslDeviceOutcome;
|
||||
typedef std::future<UnbindEslDeviceOutcome> UnbindEslDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::UnbindEslDeviceRequest&, const UnbindEslDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindEslDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateCompanyTemplateResult> UpdateCompanyTemplateOutcome;
|
||||
typedef std::future<UpdateCompanyTemplateOutcome> UpdateCompanyTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::UpdateCompanyTemplateRequest&, const UpdateCompanyTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCompanyTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateCompanyTemplateViewResult> UpdateCompanyTemplateViewOutcome;
|
||||
typedef std::future<UpdateCompanyTemplateViewOutcome> UpdateCompanyTemplateViewOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::UpdateCompanyTemplateViewRequest&, const UpdateCompanyTemplateViewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCompanyTemplateViewAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateEslDeviceLightResult> UpdateEslDeviceLightOutcome;
|
||||
typedef std::future<UpdateEslDeviceLightOutcome> UpdateEslDeviceLightOutcomeCallable;
|
||||
typedef std::function<void(const CloudeslClient*, const Model::UpdateEslDeviceLightRequest&, const UpdateEslDeviceLightOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateEslDeviceLightAsyncHandler;
|
||||
@@ -336,12 +421,24 @@ namespace AlibabaCloud
|
||||
BatchUpdateEventOutcome batchUpdateEvent(const Model::BatchUpdateEventRequest &request)const;
|
||||
void batchUpdateEventAsync(const Model::BatchUpdateEventRequest& request, const BatchUpdateEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchUpdateEventOutcomeCallable batchUpdateEventCallable(const Model::BatchUpdateEventRequest& request) const;
|
||||
BindDeviceLayoutOutcome bindDeviceLayout(const Model::BindDeviceLayoutRequest &request)const;
|
||||
void bindDeviceLayoutAsync(const Model::BindDeviceLayoutRequest& request, const BindDeviceLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindDeviceLayoutOutcomeCallable bindDeviceLayoutCallable(const Model::BindDeviceLayoutRequest& request) const;
|
||||
BindEslDeviceOutcome bindEslDevice(const Model::BindEslDeviceRequest &request)const;
|
||||
void bindEslDeviceAsync(const Model::BindEslDeviceRequest& request, const BindEslDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindEslDeviceOutcomeCallable bindEslDeviceCallable(const Model::BindEslDeviceRequest& request) const;
|
||||
CheckServiceLinkedRoleForDeletingOutcome checkServiceLinkedRoleForDeleting(const Model::CheckServiceLinkedRoleForDeletingRequest &request)const;
|
||||
void checkServiceLinkedRoleForDeletingAsync(const Model::CheckServiceLinkedRoleForDeletingRequest& request, const CheckServiceLinkedRoleForDeletingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckServiceLinkedRoleForDeletingOutcomeCallable checkServiceLinkedRoleForDeletingCallable(const Model::CheckServiceLinkedRoleForDeletingRequest& request) const;
|
||||
CopyCompanyTemplateViewOutcome copyCompanyTemplateView(const Model::CopyCompanyTemplateViewRequest &request)const;
|
||||
void copyCompanyTemplateViewAsync(const Model::CopyCompanyTemplateViewRequest& request, const CopyCompanyTemplateViewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CopyCompanyTemplateViewOutcomeCallable copyCompanyTemplateViewCallable(const Model::CopyCompanyTemplateViewRequest& request) const;
|
||||
CopyLayoutOutcome copyLayout(const Model::CopyLayoutRequest &request)const;
|
||||
void copyLayoutAsync(const Model::CopyLayoutRequest& request, const CopyLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CopyLayoutOutcomeCallable copyLayoutCallable(const Model::CopyLayoutRequest& request) const;
|
||||
CopyTemplateGroupOutcome copyTemplateGroup(const Model::CopyTemplateGroupRequest &request)const;
|
||||
void copyTemplateGroupAsync(const Model::CopyTemplateGroupRequest& request, const CopyTemplateGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CopyTemplateGroupOutcomeCallable copyTemplateGroupCallable(const Model::CopyTemplateGroupRequest& request) const;
|
||||
CreateStoreOutcome createStore(const Model::CreateStoreRequest &request)const;
|
||||
void createStoreAsync(const Model::CreateStoreRequest& request, const CreateStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateStoreOutcomeCallable createStoreCallable(const Model::CreateStoreRequest& request) const;
|
||||
@@ -354,12 +451,18 @@ namespace AlibabaCloud
|
||||
DeleteItemOutcome deleteItem(const Model::DeleteItemRequest &request)const;
|
||||
void deleteItemAsync(const Model::DeleteItemRequest& request, const DeleteItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteItemOutcomeCallable deleteItemCallable(const Model::DeleteItemRequest& request) const;
|
||||
DeleteLayoutOutcome deleteLayout(const Model::DeleteLayoutRequest &request)const;
|
||||
void deleteLayoutAsync(const Model::DeleteLayoutRequest& request, const DeleteLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteLayoutOutcomeCallable deleteLayoutCallable(const Model::DeleteLayoutRequest& request) const;
|
||||
DeleteMaterialOutcome deleteMaterial(const Model::DeleteMaterialRequest &request)const;
|
||||
void deleteMaterialAsync(const Model::DeleteMaterialRequest& request, const DeleteMaterialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMaterialOutcomeCallable deleteMaterialCallable(const Model::DeleteMaterialRequest& request) const;
|
||||
DeleteStoreOutcome deleteStore(const Model::DeleteStoreRequest &request)const;
|
||||
void deleteStoreAsync(const Model::DeleteStoreRequest& request, const DeleteStoreAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteStoreOutcomeCallable deleteStoreCallable(const Model::DeleteStoreRequest& request) const;
|
||||
DeleteTemplateGroupOutcome deleteTemplateGroup(const Model::DeleteTemplateGroupRequest &request)const;
|
||||
void deleteTemplateGroupAsync(const Model::DeleteTemplateGroupRequest& request, const DeleteTemplateGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteTemplateGroupOutcomeCallable deleteTemplateGroupCallable(const Model::DeleteTemplateGroupRequest& request) const;
|
||||
DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const;
|
||||
void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const;
|
||||
@@ -426,6 +529,9 @@ namespace AlibabaCloud
|
||||
ExportEslDevicesOutcome exportEslDevices(const Model::ExportEslDevicesRequest &request)const;
|
||||
void exportEslDevicesAsync(const Model::ExportEslDevicesRequest& request, const ExportEslDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExportEslDevicesOutcomeCallable exportEslDevicesCallable(const Model::ExportEslDevicesRequest& request) const;
|
||||
GetAddMaterialStatusOutcome getAddMaterialStatus(const Model::GetAddMaterialStatusRequest &request)const;
|
||||
void getAddMaterialStatusAsync(const Model::GetAddMaterialStatusRequest& request, const GetAddMaterialStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAddMaterialStatusOutcomeCallable getAddMaterialStatusCallable(const Model::GetAddMaterialStatusRequest& request) const;
|
||||
GetCompanyTemplatePictureOutcome getCompanyTemplatePicture(const Model::GetCompanyTemplatePictureRequest &request)const;
|
||||
void getCompanyTemplatePictureAsync(const Model::GetCompanyTemplatePictureRequest& request, const GetCompanyTemplatePictureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCompanyTemplatePictureOutcomeCallable getCompanyTemplatePictureCallable(const Model::GetCompanyTemplatePictureRequest& request) const;
|
||||
@@ -435,12 +541,36 @@ namespace AlibabaCloud
|
||||
GetCompanyTemplatePictureNewOutcome getCompanyTemplatePictureNew(const Model::GetCompanyTemplatePictureNewRequest &request)const;
|
||||
void getCompanyTemplatePictureNewAsync(const Model::GetCompanyTemplatePictureNewRequest& request, const GetCompanyTemplatePictureNewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCompanyTemplatePictureNewOutcomeCallable getCompanyTemplatePictureNewCallable(const Model::GetCompanyTemplatePictureNewRequest& request) const;
|
||||
GetEslDevicesOutcome getEslDevices(const Model::GetEslDevicesRequest &request)const;
|
||||
void getEslDevicesAsync(const Model::GetEslDevicesRequest& request, const GetEslDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetEslDevicesOutcomeCallable getEslDevicesCallable(const Model::GetEslDevicesRequest& request) const;
|
||||
GetItemMaterialOutcome getItemMaterial(const Model::GetItemMaterialRequest &request)const;
|
||||
void getItemMaterialAsync(const Model::GetItemMaterialRequest& request, const GetItemMaterialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetItemMaterialOutcomeCallable getItemMaterialCallable(const Model::GetItemMaterialRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
QueryContainerListOutcome queryContainerList(const Model::QueryContainerListRequest &request)const;
|
||||
void queryContainerListAsync(const Model::QueryContainerListRequest& request, const QueryContainerListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryContainerListOutcomeCallable queryContainerListCallable(const Model::QueryContainerListRequest& request) const;
|
||||
QueryLayoutByDeviceOutcome queryLayoutByDevice(const Model::QueryLayoutByDeviceRequest &request)const;
|
||||
void queryLayoutByDeviceAsync(const Model::QueryLayoutByDeviceRequest& request, const QueryLayoutByDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryLayoutByDeviceOutcomeCallable queryLayoutByDeviceCallable(const Model::QueryLayoutByDeviceRequest& request) const;
|
||||
QueryLayoutDetailOutcome queryLayoutDetail(const Model::QueryLayoutDetailRequest &request)const;
|
||||
void queryLayoutDetailAsync(const Model::QueryLayoutDetailRequest& request, const QueryLayoutDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryLayoutDetailOutcomeCallable queryLayoutDetailCallable(const Model::QueryLayoutDetailRequest& request) const;
|
||||
QueryTemplateGroupListOutcome queryTemplateGroupList(const Model::QueryTemplateGroupListRequest &request)const;
|
||||
void queryTemplateGroupListAsync(const Model::QueryTemplateGroupListRequest& request, const QueryTemplateGroupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryTemplateGroupListOutcomeCallable queryTemplateGroupListCallable(const Model::QueryTemplateGroupListRequest& request) const;
|
||||
QueryTemplateListByGroupIdOutcome queryTemplateListByGroupId(const Model::QueryTemplateListByGroupIdRequest &request)const;
|
||||
void queryTemplateListByGroupIdAsync(const Model::QueryTemplateListByGroupIdRequest& request, const QueryTemplateListByGroupIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryTemplateListByGroupIdOutcomeCallable queryTemplateListByGroupIdCallable(const Model::QueryTemplateListByGroupIdRequest& request) const;
|
||||
SaveLayoutOutcome saveLayout(const Model::SaveLayoutRequest &request)const;
|
||||
void saveLayoutAsync(const Model::SaveLayoutRequest& request, const SaveLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveLayoutOutcomeCallable saveLayoutCallable(const Model::SaveLayoutRequest& request) const;
|
||||
SaveTemplateGroupOutcome saveTemplateGroup(const Model::SaveTemplateGroupRequest &request)const;
|
||||
void saveTemplateGroupAsync(const Model::SaveTemplateGroupRequest& request, const SaveTemplateGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveTemplateGroupOutcomeCallable saveTemplateGroupCallable(const Model::SaveTemplateGroupRequest& request) const;
|
||||
SyncAddMaterialOutcome syncAddMaterial(const Model::SyncAddMaterialRequest &request)const;
|
||||
void syncAddMaterialAsync(const Model::SyncAddMaterialRequest& request, const SyncAddMaterialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SyncAddMaterialOutcomeCallable syncAddMaterialCallable(const Model::SyncAddMaterialRequest& request) const;
|
||||
@@ -450,6 +580,12 @@ namespace AlibabaCloud
|
||||
UnbindEslDeviceOutcome unbindEslDevice(const Model::UnbindEslDeviceRequest &request)const;
|
||||
void unbindEslDeviceAsync(const Model::UnbindEslDeviceRequest& request, const UnbindEslDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindEslDeviceOutcomeCallable unbindEslDeviceCallable(const Model::UnbindEslDeviceRequest& request) const;
|
||||
UpdateCompanyTemplateOutcome updateCompanyTemplate(const Model::UpdateCompanyTemplateRequest &request)const;
|
||||
void updateCompanyTemplateAsync(const Model::UpdateCompanyTemplateRequest& request, const UpdateCompanyTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateCompanyTemplateOutcomeCallable updateCompanyTemplateCallable(const Model::UpdateCompanyTemplateRequest& request) const;
|
||||
UpdateCompanyTemplateViewOutcome updateCompanyTemplateView(const Model::UpdateCompanyTemplateViewRequest &request)const;
|
||||
void updateCompanyTemplateViewAsync(const Model::UpdateCompanyTemplateViewRequest& request, const UpdateCompanyTemplateViewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateCompanyTemplateViewOutcomeCallable updateCompanyTemplateViewCallable(const Model::UpdateCompanyTemplateViewRequest& request) const;
|
||||
UpdateEslDeviceLightOutcome updateEslDeviceLight(const Model::UpdateEslDeviceLightRequest &request)const;
|
||||
void updateEslDeviceLightAsync(const Model::UpdateEslDeviceLightRequest& request, const UpdateEslDeviceLightAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateEslDeviceLightOutcomeCallable updateEslDeviceLightCallable(const Model::UpdateEslDeviceLightRequest& request) const;
|
||||
|
||||
@@ -55,8 +55,12 @@ namespace AlibabaCloud
|
||||
void setIfDefault(bool ifDefault);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
std::string getTemplateSceneId()const;
|
||||
void setTemplateSceneId(const std::string& templateSceneId);
|
||||
bool getIfSourceCode()const;
|
||||
void setIfSourceCode(bool ifSourceCode);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
bool getIfMember()const;
|
||||
void setIfMember(bool ifMember);
|
||||
int getLayout()const;
|
||||
@@ -75,7 +79,9 @@ namespace AlibabaCloud
|
||||
std::string vendor_;
|
||||
bool ifDefault_;
|
||||
std::string templateName_;
|
||||
std::string templateSceneId_;
|
||||
bool ifSourceCode_;
|
||||
std::string groupId_;
|
||||
bool ifMember_;
|
||||
int layout_;
|
||||
bool ifOutOfInventory_;
|
||||
|
||||
@@ -88,6 +88,7 @@ namespace AlibabaCloud
|
||||
std::string itemPicUrl;
|
||||
std::string forestSecondId;
|
||||
std::string supplierName;
|
||||
bool beClearance;
|
||||
std::string material;
|
||||
std::string modelNumber;
|
||||
std::string saleSpec;
|
||||
|
||||
@@ -14,41 +14,41 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_BIDDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_BIDDOMAINREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDDEVICELAYOUTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_BINDDEVICELAYOUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/domain/DomainExport.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT BidDomainRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT BindDeviceLayoutRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BidDomainRequest();
|
||||
~BidDomainRequest();
|
||||
BindDeviceLayoutRequest();
|
||||
~BindDeviceLayoutRequest();
|
||||
|
||||
std::string getAuctionId()const;
|
||||
void setAuctionId(const std::string& auctionId);
|
||||
float getMaxBid()const;
|
||||
void setMaxBid(float maxBid);
|
||||
std::string getCurrency()const;
|
||||
void setCurrency(const std::string& currency);
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
std::string getLayoutId()const;
|
||||
void setLayoutId(const std::string& layoutId);
|
||||
std::string getEslBarCode()const;
|
||||
void setEslBarCode(const std::string& eslBarCode);
|
||||
|
||||
private:
|
||||
std::string auctionId_;
|
||||
float maxBid_;
|
||||
std::string currency_;
|
||||
std::string storeId_;
|
||||
std::string layoutId_;
|
||||
std::string eslBarCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_BIDDOMAINREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BINDDEVICELAYOUTREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_BINDDEVICELAYOUTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_BINDDEVICELAYOUTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT BindDeviceLayoutResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BindDeviceLayoutResult();
|
||||
explicit BindDeviceLayoutResult(const std::string &payload);
|
||||
~BindDeviceLayoutResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_BINDDEVICELAYOUTRESULT_H_
|
||||
@@ -37,27 +37,39 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getExtraParams()const;
|
||||
void setExtraParams(const std::string& extraParams);
|
||||
std::string getContainerName()const;
|
||||
void setContainerName(const std::string& containerName);
|
||||
std::string getStoreId()const;
|
||||
void setStoreId(const std::string& storeId);
|
||||
std::string getLayoutId()const;
|
||||
void setLayoutId(const std::string& layoutId);
|
||||
int getLayer()const;
|
||||
void setLayer(int layer);
|
||||
std::string getEslBarCode()const;
|
||||
void setEslBarCode(const std::string& eslBarCode);
|
||||
std::string getLayoutName()const;
|
||||
void setLayoutName(const std::string& layoutName);
|
||||
std::string getItemBarCode()const;
|
||||
void setItemBarCode(const std::string& itemBarCode);
|
||||
std::string getColumn()const;
|
||||
void setColumn(const std::string& column);
|
||||
std::string getShelf()const;
|
||||
void setShelf(const std::string& shelf);
|
||||
std::string getContainerId()const;
|
||||
void setContainerId(const std::string& containerId);
|
||||
|
||||
private:
|
||||
std::string extraParams_;
|
||||
std::string containerName_;
|
||||
std::string storeId_;
|
||||
std::string layoutId_;
|
||||
int layer_;
|
||||
std::string eslBarCode_;
|
||||
std::string layoutName_;
|
||||
std::string itemBarCode_;
|
||||
std::string column_;
|
||||
std::string shelf_;
|
||||
std::string containerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_CLOUDESL_MODEL_COPYCOMPANYTEMPLATEVIEWREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_COPYCOMPANYTEMPLATEVIEWREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT CopyCompanyTemplateViewRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CopyCompanyTemplateViewRequest();
|
||||
~CopyCompanyTemplateViewRequest();
|
||||
|
||||
std::string getExtraParams()const;
|
||||
void setExtraParams(const std::string& extraParams);
|
||||
std::string getTargetName()const;
|
||||
void setTargetName(const std::string& targetName);
|
||||
std::string getModelId()const;
|
||||
void setModelId(const std::string& modelId);
|
||||
std::string getTargetVersion()const;
|
||||
void setTargetVersion(const std::string& targetVersion);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
long getTargetGroupId()const;
|
||||
void setTargetGroupId(long targetGroupId);
|
||||
|
||||
private:
|
||||
std::string extraParams_;
|
||||
std::string targetName_;
|
||||
std::string modelId_;
|
||||
std::string targetVersion_;
|
||||
std::string templateId_;
|
||||
long targetGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COPYCOMPANYTEMPLATEVIEWREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_COPYCOMPANYTEMPLATEVIEWRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_COPYCOMPANYTEMPLATEVIEWRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT CopyCompanyTemplateViewResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CopyCompanyTemplateViewResult();
|
||||
explicit CopyCompanyTemplateViewResult(const std::string &payload);
|
||||
~CopyCompanyTemplateViewResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COPYCOMPANYTEMPLATEVIEWRESULT_H_
|
||||
@@ -14,38 +14,41 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_FINISHDEMANDREQUEST_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_FINISHDEMANDREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_COPYLAYOUTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_COPYLAYOUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/domain/DomainExport.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT FinishDemandRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT CopyLayoutRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
FinishDemandRequest();
|
||||
~FinishDemandRequest();
|
||||
CopyLayoutRequest();
|
||||
~CopyLayoutRequest();
|
||||
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getMessage()const;
|
||||
void setMessage(const std::string& message);
|
||||
long getLayoutId()const;
|
||||
void setLayoutId(long layoutId);
|
||||
std::string getTemplateVersion()const;
|
||||
void setTemplateVersion(const std::string& templateVersion);
|
||||
std::string getEslModelId()const;
|
||||
void setEslModelId(const std::string& eslModelId);
|
||||
|
||||
private:
|
||||
std::string bizId_;
|
||||
std::string message_;
|
||||
long layoutId_;
|
||||
std::string templateVersion_;
|
||||
std::string eslModelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_FINISHDEMANDREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COPYLAYOUTREQUEST_H_
|
||||
@@ -14,52 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_COPYLAYOUTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_COPYLAYOUTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/domain/DomainExport.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT CheckDomainStatusResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT CopyLayoutResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Module
|
||||
{
|
||||
long endTime;
|
||||
float price;
|
||||
long regDate;
|
||||
std::string domain;
|
||||
long deadDate;
|
||||
};
|
||||
|
||||
|
||||
CheckDomainStatusResult();
|
||||
explicit CheckDomainStatusResult(const std::string &payload);
|
||||
~CheckDomainStatusResult();
|
||||
int getHttpStatusCode()const;
|
||||
CopyLayoutResult();
|
||||
explicit CopyLayoutResult(const std::string &payload);
|
||||
~CopyLayoutResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
Module getModule()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
Module module_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COPYLAYOUTRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_COPYTEMPLATEGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_COPYTEMPLATEGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT CopyTemplateGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CopyTemplateGroupRequest();
|
||||
~CopyTemplateGroupRequest();
|
||||
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getTemplateVersion()const;
|
||||
void setTemplateVersion(const std::string& templateVersion);
|
||||
std::string getEslModelId()const;
|
||||
void setEslModelId(const std::string& eslModelId);
|
||||
|
||||
private:
|
||||
std::string groupId_;
|
||||
std::string templateVersion_;
|
||||
std::string eslModelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COPYTEMPLATEGROUPREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_COPYTEMPLATEGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_COPYTEMPLATEGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT CopyTemplateGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CopyTemplateGroupResult();
|
||||
explicit CopyTemplateGroupResult(const std::string &payload);
|
||||
~CopyTemplateGroupResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_COPYTEMPLATEGROUPRESULT_H_
|
||||
@@ -14,35 +14,35 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETELAYOUTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_DELETELAYOUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/domain/DomainExport.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT CheckDomainStatusRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT DeleteLayoutRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckDomainStatusRequest();
|
||||
~CheckDomainStatusRequest();
|
||||
DeleteLayoutRequest();
|
||||
~DeleteLayoutRequest();
|
||||
|
||||
std::string getDomain()const;
|
||||
void setDomain(const std::string& domain);
|
||||
std::string getLayoutId()const;
|
||||
void setLayoutId(const std::string& layoutId);
|
||||
|
||||
private:
|
||||
std::string domain_;
|
||||
std::string layoutId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_CHECKDOMAINSTATUSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETELAYOUTREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETELAYOUTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_DELETELAYOUTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT DeleteLayoutResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteLayoutResult();
|
||||
explicit DeleteLayoutResult(const std::string &payload);
|
||||
~DeleteLayoutResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETELAYOUTRESULT_H_
|
||||
@@ -14,35 +14,35 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DOMAIN_MODEL_QUERYBOOKINGDOMAININFOREQUEST_H_
|
||||
#define ALIBABACLOUD_DOMAIN_MODEL_QUERYBOOKINGDOMAININFOREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETETEMPLATEGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_DELETETEMPLATEGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/domain/DomainExport.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Domain
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DOMAIN_EXPORT QueryBookingDomainInfoRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT DeleteTemplateGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryBookingDomainInfoRequest();
|
||||
~QueryBookingDomainInfoRequest();
|
||||
DeleteTemplateGroupRequest();
|
||||
~DeleteTemplateGroupRequest();
|
||||
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
|
||||
private:
|
||||
std::string domainName_;
|
||||
std::string groupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DOMAIN_MODEL_QUERYBOOKINGDOMAININFOREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETETEMPLATEGROUPREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDESL_MODEL_DELETETEMPLATEGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDESL_MODEL_DELETETEMPLATEGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudesl/CloudeslExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudesl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDESL_EXPORT DeleteTemplateGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteTemplateGroupResult();
|
||||
explicit DeleteTemplateGroupResult(const std::string &payload);
|
||||
~DeleteTemplateGroupResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string dynamicCode_;
|
||||
std::string errorCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDESL_MODEL_DELETETEMPLATEGROUPRESULT_H_
|
||||
@@ -36,8 +36,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string bindId;
|
||||
std::string originalPrice;
|
||||
std::string gmtModified;
|
||||
std::string actionPrice;
|
||||
std::string gmtModified;
|
||||
std::string eslPic;
|
||||
std::string promotionStart;
|
||||
std::string itemBarCode;
|
||||
@@ -50,12 +50,13 @@ namespace AlibabaCloud
|
||||
std::string priceUnit;
|
||||
std::string itemShortTitle;
|
||||
std::string storeId;
|
||||
std::string containerName;
|
||||
std::string itemTitle;
|
||||
std::string eslStatus;
|
||||
std::string skuId;
|
||||
std::string templateId;
|
||||
std::string eslConnectAp;
|
||||
std::string eslStatus;
|
||||
bool bePromotion;
|
||||
std::string eslConnectAp;
|
||||
std::string templateId;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,18 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct EslDeviceInfo
|
||||
{
|
||||
int batteryLevel;
|
||||
std::string layoutId;
|
||||
int screenHeight;
|
||||
std::string lastCommunicateTime;
|
||||
std::string mac;
|
||||
std::string type;
|
||||
std::string eslBarCode;
|
||||
int eslSignal;
|
||||
int batteryLevel;
|
||||
std::string storeId;
|
||||
std::string typeEncode;
|
||||
std::string model;
|
||||
int screenWidth;
|
||||
int screenHeight;
|
||||
std::string layoutName;
|
||||
std::string eslStatus;
|
||||
std::string lastCommunicateTime;
|
||||
std::string mac;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user